文章目錄
- 環境
- 文檔用途
- 詳細信息
環境
系統平臺:Linux x86-64 Red Hat Enterprise Linux 7
版本:9.0
文檔用途
1、本文檔用于指導V9數據庫替換授權。
2、V9數據庫授權文件為license.dat。
詳細信息
1、上傳新的授權文件到服務器并修改授權文件屬主為highgo
chown highgo. /hgdata/license.dat
2、查找授權目錄license文件夾
授權目錄license文件夾在安裝目錄下
①可以通過環境變量查看安裝目錄
[highgo@slave ~]$ echo $HGDB_HOME/hgdata/highgo/hgdb-enterprise-9.1.1
②或者find命令查找license文件夾
[highgo@slave ~]$ find / -iname license -print/hgdata/highgo/hgdb-enterprise-9.1.1/license
3、替換授權
①備份之前授權文件
[highgo@slave ~]$ mv /hgdata/highgo/hgdb-enterprise-9.1.1/license/license.dat /hgdata/highgo/hgdb-enterprise-9.1.1/license/license.dat.bak
②放置新的授權
[highgo@slave ~]$ mv /hgdata/license.dat /hgdata/highgo/hgdb-enterprise-9.1.1/license/
③授權生效
[highgo@slave ~]$ pg_ctl reloadserver signaled
④查看授權到期時間
[highgo@slave ~]$ licchkLicense version: 1.2License serial: A20230222N004656License status: normalUser info: xxx集團有限公司License auth type: formalLicense used type: 交付Create time: 2023年12月11日Final time: 2099年12月31日Highgo database version: hgdb-enterprise-9.1.1Project info: xxx集團有限公司信息化項目(一期)Max connections: 0Max CPU cores: unlimitDefault database name: highgoDefault database user: highgoDefault database port: 5866Hardware code: 00000000000000000000000000000000
4、授權命令其他信息
①查看授權文件信息(注意:此命令并不會將授權導入到數據庫)
[highgo@slave ~]$ licchk -f /hgdata/license.datLicense version: 1.2License serial: A20230222N004656License status: normalUser info: xxx集團有限公司License auth type: formalLicense used type: 交付Create time: 2023年12月11日Final time: 2099年12月31日Highgo database version: hgdb-enterprise-9.1.1Project info: xxx集團有限公司信息化項目(一期)Max connections: 0Max CPU cores: unlimitDefault database name: highgoDefault database user: highgoDefault database port: 5866Hardware code: 00000000000000000000000000000000
②查看授權命令參數
[highgo@slave ~]$ licchk --helpUsage:licchk [OPTION]... [DATADIR]
Options:
-l, --list list enabled function items-a, --all all functional items-v, --view show desc information-f, --filename=xxx.dat set license filename-c, --check=xxx.txt check hardware code, then exit.-U, --username obtain the username from the license file.-P, --port obtain the port from the license file.-V, --version output version information, then exit-?, --help show this help, then exit