No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

KunLun Mission Critical Server Oracle Database Oracle 12c R1 (RAC) Best Practice 02

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Time Synchronization

Configuring Time Synchronization

You are advised to use the NTP time synchronization mechanism rather than the Oracle Cluster Time Synchronization Service (CTSS) mechanism. Perform the following steps to modify the configuration files.

NOTE:

Ignore the NTP alarms generated when installing Oracle Grid Infrastructure. The chrony package may cause errors during the installation check of Oracle Grid Infrastructure. Before configuring the NTP service, run the rpm -e chrony-2.1.1-3.el7.x86_64 command to uninstall the chrony package (modify the file name based on the actual situation).

  • If the OS is RHEL 6, perform the following steps:
    1. Run the service ntpd start and chkconfig ntpd on commands to automatically start the NTP service at system startup.
      [root@dbn01 ~]# service ntpd start
      [root@dbn01 ~]# chkconfig ntpd on
    2. Run the vi /etc/ntp.conf command to open the NTP configuration file, and add "server 192.168.35.31" to the file.
      [root@dbn01 ~]# vi /etc/ntp.conf

      Press I to edit the ntp.conf file and add the NTP server IP address to the file.

      Format: server NTP server IP address

      The following uses 192.168.35.31 as an example.

      server 192.168.35.31

      Press Esc to switch the vi editor to the CLI mode. Press the colon (:) key to go to the bottom line. Type wq and press Enter to save the modification and exit the vi editor.

    3. Run the service ntp restart command to restart the NTP service.
      [root@dbn01 ~]# service ntpd restart
    4. Run the ntpq -p command to check the NTP service status.
      [root@dbn01 ~]# ntpq -p
      remote refid st t when poll reach delay offset jitter
      ==============================================================================
      192.168.35.31 .LOCL. 1 u 2 64 1 0.417 5.373 0.000
  • If the database node OS is RHEL 7, run the following command to modify the configuration file:
    1. Run the systemctl enable ntpd.service command to automatically start the NTP service at system startup.
      [root@dbn01~]# systemctl enable ntpd.service
    2. Run the vi /etc/ntp.conf command to open the NTP configuration file.
      [root@dbn01~]# vi /etc/ntp.conf

      Press I to edit the ntp.conf file and add the NTP server IP address to the file.

      Format:

      server NTP server IP address

      The following uses 192.168.35.31 as an example.

      server 192.168.35.31

      Press Esc to switch the vi editor to the CLI mode, press the colon (:) key to go to the bottom line, and type wq and press Enter to save the modification and exit the vi editor.

    3. Run the systemctl restart ntpd.service command to restart the NTP service.
      [root@dbn01~]# systemctl restart ntpd.service
    4. Run the ntpq -p command to check the NTP service status.
      [root@dbn01~]# ntpq -p
      remote refid st t when poll reach delay offset jitter
      ==============================================================================
      192.168.35.31 .LOCL. 1 u 2 64 1 0.417 5.373 0.000

Download
Updated: 2019-02-01

Document ID: EDOC1100053123

Views: 13818

Downloads: 14

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next