
文章目录环境文档用途详细信息环境系统平台Linux x86-64 Red Hat Enterprise Linux 7版本9.0文档用途1、本文档用于指导V9数据库替换授权。2、V9数据库授权文件为license.dat。详细信息1、上传新的授权文件到服务器并修改授权文件属主为highgochown highgo. /hgdata/license.dat2、查找授权目录license文件夹授权目录license文件夹在安装目录下①可以通过环境变量查看安装目录[highgoslave ~]$ echo $HGDB_HOME/hgdata/highgo/hgdb-enterprise-9.1.1②或者find命令查找license文件夹[highgoslave ~]$ find / -iname license -print/hgdata/highgo/hgdb-enterprise-9.1.1/license3、替换授权①备份之前授权文件[highgoslave ~]$ mv /hgdata/highgo/hgdb-enterprise-9.1.1/license/license.dat /hgdata/highgo/hgdb-enterprise-9.1.1/license/license.dat.bak②放置新的授权[highgoslave ~]$ mv /hgdata/license.dat /hgdata/highgo/hgdb-enterprise-9.1.1/license/③授权生效[highgoslave ~]$ pg_ctl reloadserver signaled④查看授权到期时间[highgoslave ~]$ 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: 000000000000000000000000000000004、授权命令其他信息①查看授权文件信息注意此命令并不会将授权导入到数据库[highgoslave ~]$ 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②查看授权命令参数[highgoslave ~]$ licchk --helpUsage:licchk [OPTION]… [DATADIR]Options:-l, --list list enabled function items-a, --all all functional items-v, --view show desc information-f, --filenamexxx.dat set license filename-c, --checkxxx.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