达梦数据库更新key文件
情景
当达梦数据库连接报错,显示网络异常连接异常/超时,可能是授权文件dm.key过期了
查看日志文件:/home/dmdba/dmdbms/log/dm_DMSERVER_*.log
日志记录:
License checking by auto timer every day!
License has already expired.
...
License violation detected, or product has expired. System halt!
更新key文件
1、查看服务状态
-
如果忘记了,可以通过查看日志知道服务名称
cd /home/dmdba/dmdbms/log/ 或者 cd /home/dmdba/dmdbms/bin log 日志文件夹中会有记录服务的日志 / bin 文件夹中也会有记录数据库服务名称的文件 -
查看服务状态
systemctl status DmServiceXX
version info: enterprise
Database's huge_with_delta is 1, and rlog_gen_for_huge is 0!
os_sema2_create_low, create and inc sema success, key:235673867, sem_id:131072, sem_value:1!
DM Database Server x64 V8 1-1-126-20.09.04-126608-ENT startup...
fil_sys_init
Database mode = 0, oguid = 0
License has already expired.
License violation detected, or product has expired. System halt!
2、替换key文件
将key 文件存放到数据库服务器安装目录下:/home/dmdbms/bin ,用新dm.key 替换旧的 dm.key 文件
3、重启服务
systemctl start DmServiceDMTEST
|