In an Oracle 10G environment, if you want to build a cluster, you need to synchronize the clock, which requires an NTP server.
1, on the timing system machine, edit/etc/ntp.conf
Retrict default Nomodify
Restrict 127.0.0.1
Server 127.127.1.0
Fudge 127.127.1.0 Stratum 8
Driftfile/var/lib/ntp/drift
Broadcastdelay 0.008
Then restart the NTPD service
Service NTPD Restart
2, on the other host to synchronize the clock can
Ntpdate xxxxx
More is run automatically in Crond
Crontab-e
*/5 * * * */usr/sbin/ntpdate xxxxx
Sync every five minutes
Problems encountered:
1, ntpdate[6480]: No server suitable for synchronization found
Use ntpdate-d xxxx to view
10.0.0.1:server Dropped:strata too high
Stratum 16
Normally, stratum is between 0 and 15, which means that NTP server is not synchronized with itself or its server.
After you join Fudge 127.127.1.0 stratum 8, after you restart the NTP service on an NTP server, the NTP server itself or the synchronization with its server takes a period of time, about a few minutes.
Use ntpq-p xxxxxx to view its status
REMOTEREFIDST T when poll reachdelayoffsetjitter
==============================================================================
*local (0). LOCL.8 l62643770.0000.0000.001
That means it's normal.
You can use Ntpdate to synchronize time.
NTP Server Setup