V9数据库替换授权

文章目录

环境

系统平台:Linux x86-64 Red Hat Enterprise Linux 7

版本:9.0

文档用途

1、本文档用于指导V9数据库替换授权。

2、V9数据库授权文件为license.dat。

详细信息

1、上传新的授权文件到服务器并修改授权文件属主为highgo

sql 复制代码
chown highgo. /hgdata/license.dat

2、查找授权目录license文件夹

授权目录license文件夹在安装目录下

①可以通过环境变量查看安装目录

sql 复制代码
[highgo@slave ~]$ echo $HGDB_HOME

/hgdata/highgo/hgdb-enterprise-9.1.1

②或者find命令查找license文件夹

sql 复制代码
[highgo@slave ~]$ find / -iname license -print

/hgdata/highgo/hgdb-enterprise-9.1.1/license

3、替换授权

①备份之前授权文件

sql 复制代码
[highgo@slave ~]$ mv /hgdata/highgo/hgdb-enterprise-9.1.1/license/license.dat  /hgdata/highgo/hgdb-enterprise-9.1.1/license/license.dat.bak

②放置新的授权

sql 复制代码
[highgo@slave ~]$ mv /hgdata/license.dat  /hgdata/highgo/hgdb-enterprise-9.1.1/license/

③授权生效

sql 复制代码
[highgo@slave ~]$ pg_ctl reload

server signaled

④查看授权到期时间

sql 复制代码
[highgo@slave ~]$ licchk

License version: 1.2

License serial: A20230222N004656

License status: normal

User info: xxx集团有限公司

License auth type: formal

License used type: 交付

Create time: 2023年12月11日

Final time: 2099年12月31日

Highgo database version: hgdb-enterprise-9.1.1

Project info: xxx集团有限公司信息化项目(一期)

Max connections: 0

Max CPU cores: unlimit

Default database name: highgo

Default database user: highgo

Default database port: 5866

Hardware code: 00000000000000000000000000000000

4、授权命令其他信息

①查看授权文件信息(注意:此命令并不会将授权导入到数据库)

xml 复制代码
[highgo@slave ~]$ licchk -f /hgdata/license.dat

License version: 1.2

License serial: A20230222N004656

License status: normal

User info: xxx集团有限公司

License auth type: formal

License used type: 交付

Create time: 2023年12月11日

Final time: 2099年12月31日

Highgo database version: hgdb-enterprise-9.1.1

Project info: xxx集团有限公司信息化项目(一期)

Max connections: 0

Max CPU cores: unlimit

Default database name: highgo

Default database user: highgo

Default database port: 5866

Hardware code: 00000000000000000000000000000000

②查看授权命令参数

sql 复制代码
[highgo@slave ~]$ licchk --help

Usage:

  licchk [OPTION]... [DATADIR]

Options:

xml 复制代码
  -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
相关推荐
isNotNullX39 分钟前
据字典是什么?和数据库、数据仓库有什么关系?
大数据·数据库·数据仓库·oracle·数据治理
考虑考虑1 小时前
数据库唯一索引
数据库·后端·mysql
AA-代码批发V哥1 小时前
MySQL之事务深度解析
数据库·mysql
里探2 小时前
在Django中把Base64字符串保存为ImageField
数据库·django
全栈小52 小时前
【数据库】零门槛在线体验KingbaseES平台,SQL Server模式高阶玩法,动态创建数据体验函数、存储过程等功能
数据库·sql server·金仓·kingbasees平台
奈斯ing3 小时前
【MySQL篇】高效学习官方文档指南(基于MySQL8.0版本详解)
运维·数据库·学习·mysql
Brandon汐3 小时前
数据库part2---子查询
数据库·sql
Tapdata 钛铂数据4 小时前
信创 CDC 实战|国产数据库的数据高速通道:OceanBase 实时入仓 StarRocks
数据库·oceanbase
liyongjie4 小时前
openGauss数据库DWR报告解读
数据库·oracle
楼台的春风4 小时前
【Linux驱动开发 ---- 4.1_sysfs 详解】
linux·运维·c语言·数据库·人工智能·驱动开发·嵌入式硬件