oracle rac 11.2.0.4 two nodes are not time synchronized
Check the database time zone is not the same discovery:
Node oracle3:
SQL> SELECT TZ_OFFSET(SESSIONTIMEZONE), TZ_OFFSET(DBTIMEZONE) FROM DUAL;
TZ_OFFS TZ_OFFS
------- -------
+08:00 +00:00
Node Oracle4:
SQL> SELECT TZ_OFFSET(SESSIONTIMEZONE), TZ_OFFSET(DBTIMEZONE) FROM DUAL;
TZ_OFFS TZ_OFFS
------- -------
+00:00 +00:00
Then check the cluster time synchronization server, it found that state observation mode, the normal state should be active!
Node Oracle3
[oracle@oracle3 ~]$ crsctl check ctss
CRS-4700: The Cluster Time Synchronization Service is in Observer mode.
Node Oracle4
[oracle@oracle4 ~]$ crsctl check ctss
CRS-4700: The Cluster Time Synchronization Service is in Observer mode.
View Linux server's current time zone the following command:
[root@oracle4 ~]# date +"%Z %z"
or
[root@oracle4 ~]# date -R
Concrete results, the following was found is not the same!
Node Oracle3:
[root@oracle3 ogg]# date +"%Z %z"
UTC +0000
Node Oracle4:
[oracle@oracle3 ~]$ date +"%Z %z"
CST +0800
Modify set the time zone, I am using Method 2
1, and then select
tzselect
Method 2
Copy the appropriate time zone file, a replacement area file system; or create a link file
cp / usr / share / zoneinfo / main area when $ / $ secondary time zone / etc / localtime
For example, you can use in China:
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
After adjusting for time zone and then again to check the cluster time synchronization service status is still not found
Node Oracle3
[oracle@oracle3 ~]$ crsctl check ctss
CRS-4700: The Cluster Time Synchronization Service is in Observer mode.
节点Oracle4 郑州不孕不育医院:http://jbk.39.net/yiyuanzaixian/zztjyy//
[oracle@oracle4 ~]$ crsctl check ctss
CRS-4700: The Cluster Time Synchronization Service is in Observer mode.
网上有人说需要把Linux的ntpd服务停掉,查看我的本身就是stop的
[root@oracle3 Asia]# service ntpd status
ntpd is stopped
[root@oracle4 Asia]# service ntpd status
ntpd is stopped
还有人说需要把配置文件删除,删除后集群时间同步服务状态为依旧不对
mv /etc/ntp.conf /etc/ntp.conf.bak
操作完成之后,依旧没有好,
原来是我的这两台机器的时间已经差太多了,超过1秒就不能同步了,
然后修改时间为另一台的,
[root@oracle3 Asia]#date -s "15:41:26 CST"
再次查看ctss时间同步服务状态为active的了:
[oracle@oracle3 ~]$ crsctl check ctss
CRS-4701: The Cluster Time Synchronization Service is in Active mode.
CRS-4702: Offset (in msec): 1729800
[oracle@oracle4 ~]$ crsctl check ctss
CRS-4701: The Cluster Time Synchronization Service is in Active mode.
CRS-4702: Offset (in msec): 1729800