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.
Node Oracle4
[oracle@oracle4 ~]$ crsctl check ctss
CRS-4700: The Cluster Time Synchronization Service is in Observer mode.
Some say the Internet needs to Linux's ntpd service stopped, my own view is that the stop
[root@oracle3 Asia]# service ntpd status
ntpd is stopped
[root@oracle4 Asia]# service ntpd status
ntpd is stopped
Others say the need to delete a profile, time synchronization service cluster state is still not deleted
mv /etc/ntp.conf /etc/ntp.conf.bak
After the operation is complete, still no good,
It was my time between the two machines has been a big change, more than one second can not be synchronized,
Then modify the time of another,
[root@oracle3 Asia]#date -s "15:41:26 CST"
View ctss time synchronization service is active in the state again:
[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