一、当前情况说明:
目前数据库操作系统时间比实际时间慢10分钟,由于时间差距比较大,因此不建议轮换重启,预留停机窗口后,整体停集群后进行修改更为保险。
二、操作前检查
2节点检查
###hisdb2(root):
crsctl stat res -t
crsctl stat res -t -init
1节点检查
###hisdb1(root):
crsctl stat res -t
crsctl stat res -t -init
三、详细操作步骤:
查看数据库连接情况
select inst_id,count(*) from gv$session group by inst_id order by inst_id;
为了数据安全起见,最好是关闭数据库实例
su - oracle
srvctl stop database -d xxxx
1号节点关闭集群
[root]
crsctl stop crs
2号节点关闭集群
[root]
crsctl stop crs
两个节点修改时间
date -s “yyyy-mm-dd hh24:mi:ss”
hwclock -w
重启集群
1号节点开启集群
[root]
crsctl start crs
2号节点开启集群
[root]
crsctl start crs
查看集群情况:
crsctl stat res -t
两个节点开启数据库:
su – oracle
srvctl start database -d xxxx