欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 科技 > IT业 > V9数据库替换授权

V9数据库替换授权

2025/5/25 17:15:29 来源:https://blog.csdn.net/pg_hgdb/article/details/148158414  浏览:    关键词:V9数据库替换授权

文章目录

  • 环境
  • 文档用途
  • 详细信息

环境

系统平台: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: 20231211日Final time: 20991231日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

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词