Updating the License
Updating the DM License
- Stop the database service.
- Go to the database installation directory /home/dmdba/dmdbms/bin and back up the dm.key file.
- Copy the permanent license file dm.key to the database installation directory /home/dmdba/dmdbms/bin and restart the database service.
Updating the Kingbase License
- Go to the database installation directory /opt/Kingbase/ES/V8/KESRealPro/V008R006C008B0020/.
- In the directory, replace the license.dat file with the latest license file and keep the file name unchanged.
- Re-create a soft link.
1ln -s /opt/Kingbase/ES/V8/KESRealPro/V008R006C008B0020/license.dat /opt/Kingbase/ES/V8/license.dat
- Restart the database service.
Updating the BES License
- Upload the license file to the license directory in the BES_AppServer installation path.
- Change the owner of and permission for the license file.
1 2
chown bes:bes ${licenseFile} chmod 700 ${licenseFile}
${licenseFile}: absolute path of the license file. The file name must be bes.lic.txt. Example path: /home/bes/bes_appserver_standard_9.5.5.7266/license/bes.lic.txt
- If the BES_AppServer service has been started, run the following command to stop the service:
1 2 3
su - bes cd ${bes_appserver}/bin ./iastool --user admin --passwordfile ../conf/.passwordfile stop --server
If the command output contains "Command stop --server executed successfully", the service is stopped successfully.
${bes_appserver} indicates the example BES_AppServer installation directory. Replace it with the actual directory.
- Import the license.
1./lmadm import-lic --sourcepath=${licensePath}
If the command output contains "License xxx.txt has been imported into /home/bes/bes_appserver_standard_9.5.5.7266/license/bes.lic successfully", the license is successfully imported.
${licensePath} indicates the absolute path of the directory where the certificate is stored, for example, /home/bes/bes_appserver_standard_9.5.5.7266/license.
Updating the TongWeb License
- In the TongWeb installation directory, replace the license.dat file with the latest license file and keep the file name unchanged.
- Open a new target server window, go to the bin directory in the TongWeb installation directory, and run the following command to stop the service:
1bash stopserver.sh - Restart the service.
1bash startserver.sh
Parent topic: Others