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 the hosts File

Configuring the hosts File

  • The following uses two database nodes as an example to describe how to install Oracle RAC.
  • Perform the following operations on each database node.
  • In a test environment, you can set only one SCAN IP address.

Procedure

  1. In this example, the /etc/hosts file is configured based on following table. Change the values according to the actual situation.

    Table 2-1 Network plan

    IP Address Type

    Domain Name

    IP Address

    Description

    Public IP address

    dbn01

    192.168.35.41

    Service IP address

    dbn02

    192.168.35.42

    Service IP address

    Private IP address

    dbn01-priv

    10.10.0.1

    Cluster internal communication

    dbn02-priv

    10.10.0.2

    Cluster internal communication

    Virtual IP address

    dbn01-vip

    192.168.35.125

    The public, virtual, and SCAN IP addresses must be on the same network segment.

    dbn02-vip

    192.168.35.126

    SCAN IP address

    dbn-scan

    192.168.35.124

  2. Run the vi /etc/hosts command on each database node, and modify the following parameters (modify the public, private, virtual, and SCAN IP addresses based the network plan). If no DNS server is available, configure a SCAN IP address.

    [root@dbn01 ~]# vi /etc/hosts
    127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
    127.0.0.1 localhost.localdomain localhost
    #Public
    192.168.35.41 dbn01
    192.168.35.42 dbn02
    #Private
    10.10.0.1 dbn01-priv
    10.10.0.2 dbn02-priv
    #Virtual
    192.168.35.125 dbn01-vip
    192.168.35.126 dbn02-vip
    #scan
    192.168.35.124 dbn-scan

  3. Change the value of HOSTNAME to the planned host name based on the OS type.

    NOTE:

    Change the host name of each database node. The host name cannot contain special characters such as underscores (_) and at signs (@). It is recommended that the host names be lowercase letters.

    • If the database node OS is RHEL 6, run the following command to configure the host name. Then disconnect and reestablish the remote SSH connection for the configuration to take effect.
      [root@dbn01 ~]# vim /etc/sysconfig/network
      NETWORKING=yes
      HOSTNAME=dbn01
    • If the database node OS is RHEL 7, run the following command to configure the host name. Then disconnect and reestablish the remote SSH connection for the configuration to take effect.
      [root@dbn01~ ]# hostnamectl set-hostname dbn01

Download
Updated: 2019-02-01

Document ID: EDOC1100053123

Views: 13810

Downloads: 14

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