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


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

FusionCube DB 3.1 Database Best Practice 03 (Oracle RAC 11g R2)
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 Cluster Network

Configuring the Cluster Network


This section uses two database nodes as an example to describe how to configure the /etc/hosts file. You need to perform the following operations on all database nodes.


Configure the host name and network information based on the data plan in Oracle RAC Node Network Plan.

  1. Configure the host names based on the data plan. For example, set the host names to dbn01 and dbn02.


    Set host names for all database nodes. The names cannot contain special characters such as _ and @. Lowercase letters are recommended.

    • If the database node uses Oracle Linux 6 or Red Hat Linux 6, run the following command to change the value of HOSTNAME. The host name takes effect after you exit and create a new SSH connection.
      [root@dbn01~ ]# hostname dbn01  
      [root@dbn01~ ]# vi /etc/sysconfig/network 
    • If the database node uses Red Hat Linux 7, run the following command to set the host name. The host name takes effect after you exit and create a new SSH connection.
      [root@dbn01~ ]# hostnamectl set-hostname dbn01

  2. Configure /etc/hosts as planned.

    Table 3-1 System cluster plan

    IP Address Type

    Domain Name

    IP Address


    Public IP address





    Private IP














    Required only when the DNS server is deployed.


    Required only when the DNS server is deployed.

    Run the vi /etc/hosts command on each database node, and modify the public, private, virtual, and SCAN IP addresses according to the data plan.

    • Delete the line (generally the third line in the etc/hosts file) that specifies the mapping between the original host name and the management IP address, and add the following information in bold:
    • If no DNS server is required, configure only one SCAN IP address, that is, dbn-scan.
    [root@dbn01~ ]# vi /etc/hosts localhost localhost.localdomain localhost4 localhost4.localdomain4 
    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 localhost.localdomain   localhost 
    #Public   dbn01   dbn02 
    #Private    dbn01-priv    dbn02-priv 
    #Virtual   dbn01-vip   dbn02-vip 
    #scan   dbn-scan   dbn-scan  dbn-scan  

Updated: 2018-12-26

Document ID: EDOC1100035759

Views: 44542

Downloads: 54

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next