【AntDB Installation and Deployment Documentation】Centralized Database Copyright Management
Centralized database copyright management
This chapter describes the use of database copyright management.
Centralized database without license file
If there is no official license file, a trial license file will be created when the database is installed (initdb): adb_license_trail, the data in the file is encrypted expiration date, the expiration date is the current time + 30 days. The trial license file will be copied to the backup library during the pg_basebackup.
If you execute the initdb command, the trial license file adb_license_trail will be generated in the data directory of the database.
Activate adb_license_trail
After the database is started, activate the trial version of adb_license_trail file directly. After activation, it is valid for 30 days.
Centralized database with license file
Users need to go to the company's GTM platform to apply for the database license, get the license file, place the license file in the data directory of the main library, and then connect to the main library to execute the license activation command (activate antdb_license) or restart the main library (pg_ctl start/ restart), which is used to activate the license on the master.
Place the license in the data directory of the standby library, then connect to the standby library and execute the license activation command (activate antdb_license) or restart the standby library (pg_ctl start/restart) to activate the license of the standby library.
If there are multiple backups, each backup needs to be activated.
Activate antdb_license
activate antdb_license; #Activate the license file in the data directory
View the license information
The show antdb_license command allows you to view the license information of the trial and full version.
show antdb_license; #View license information
License Expiration
After the license expires, re-link the database, a warning message will be given, but it will not affect the database related operations. Replace the new license file and use it directly after activation.