openGauss数据库巡检脚本说明

1、openGauss数据库运行方式

需要有华为的gsql客户端,或PostgreSQL数据库的psql客户端都可以,运行方式如下:

若是openGauss或华为的GaussDB数据库的gsql客户端,则执行:

gsql -U gaussdb -h 192.168.66.35 -p 15432 -d postgres -W'lhr@123XXT' -H -f D:\DB_openGauss_HC_lhr_v7.0.0.sql > d:\a.html

若是PostgreSQL数据库的psql客户端,则执行:

psql -U gaussdb -h 192.168.66.35 -p 54324 -d postgres -W -H -f D:\DB_openGauss_HC_lhr_v7.0.0.sql > d:\a.html

2、html巡检结果

这里只列出部分结果,完整示例请参考: openGauss数据库巡检结果示例

其它的详细内容可以参考:https://share.weiyun.com/FQY9zcm0

其它不再列举。

3、所有数据库类型巡检

请参考:https://www.dbaup.com/shujukuxunjianjiaoben.html

Copyright © 小麦苗 2024 修订时间: 2024-09-11 17:18:00

results matching ""

    No results matching ""