环境
系统平台:N/A
版本:4.5
症状
HGDB4.5.6无法使用HGDB4.5.5data目录启动,报错信息为:
等待服务器进程启动 …2021-03-24 16:51:02.782 CST [63316] 致命错误: fail to read from audit_param.conf
已停止等待
pg_ctl: 无法启动服务器进程
检查日志输出.
问题原因
HGDB4.5.6对audit_param.conf文件进行了修改,与4.5.5版本相比增加了hg_audit_keep_days等参数,所以在启动过程中读取audit_param.conf不成功,故启动失败。
解决方案
- 将HGDB4.5.5data目录下的audit_param.conf文件修改名称或移动至其他位置
mv /opt/HighGo4.5.5-see/data/audit_param.conf /opt/HighGo4.5.5-see/data/audit_param.conf-bak
- 拷贝HGDB4.5.6data下的audit_param.conf至4.5.5data下
cp /opt/HighGo4.5.6-see/data/audit_param.conf /opt/HighGo4.5.5-see/data/
- 启动数据库
[root@ha1 data]# pg_ctl start -D /opt/HighGo4.5.5-see/data/
等待服务器进程启动 ....2021-03-24 17:22:04.776 CST [65275] 日志: data encryption performed by sm4
2021-03-24 17:22:04.779 CST [65275] 日志: 正在启动 HighGo Security Enterprise Edition Database System 4.5.6 on CentOS7 x86_64,build on 20210303
2021-03-24 17:22:04.780 CST [65275] 日志: 正在监听IPv6地址"::1",端口 5867
2021-03-24 17:22:04.780 CST [65275] 日志: 正在监听IPv4地址"127.0.0.1",端口 5867
2021-03-24 17:22:04.782 CST [65275] 日志: 在Unix套接字 "/tmp/.s.PGSQL.5867"上侦听
2021-03-24 17:22:04.793 CST [65275] 日志: This is a trial edition, validate until 2021-04-22 09:52:28.
2021-03-24 17:22:04.797 CST [65277] 日志: 数据库上次关闭时间为 2021-03-24 16:50:39 CST
2021-03-24 17:22:04.798 CST [65277] 日志: Switchover the SSHA Role. Current is NONE
2021-03-24 17:22:04.801 CST [65275] 日志: 数据库系统准备接受连接
完成
服务器进程已经启动
问题解决。