Rate This Document
Findability
Accuracy
Completeness
Readability

Updating the License

Updating the DM License

  1. Stop the database service.
  2. Go to the database installation directory /home/dmdba/dmdbms/bin and back up the dm.key file.
  3. 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

  1. Go to the database installation directory /opt/Kingbase/ES/V8/KESRealPro/V008R006C008B0020/.
  2. In the directory, replace the license.dat file with the latest license file and keep the file name unchanged.
  3. Re-create a soft link.
    1
    ln -s /opt/Kingbase/ES/V8/KESRealPro/V008R006C008B0020/license.dat /opt/Kingbase/ES/V8/license.dat
    
  4. Restart the database service.
    1
    /opt/Kingbase/ES/V8/Server/bin/sys_ctl -D /opt/Kingbase/ES/V8/data restart
    

    For more information about Kingbase licenses, see the Kingbase Documentation.

Updating the BES License

  1. Upload the license file to the license directory in the BES_AppServer installation path.
  2. 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

  3. 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.

  4. 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

  1. In the TongWeb installation directory, replace the license.dat file with the latest license file and keep the file name unchanged.
  2. 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:
    1
    bash stopserver.sh
    
  3. Restart the service.
    1
    bash startserver.sh