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

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

NOTE:

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.

Procedure

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.

    NOTE:

    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 
      HOSTNAME=dbn01
    • 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

    Remarks

    Public IP address

    dbn01

    10.32.213.4

    -

    dbn02

    10.32.213.5

    -

    Private IP

    dbn01-priv

    172.21.50.4

    -

    dbn02-priv

    172.21.50.5

    -

    VIP

    dbn01-vip

    10.32.213.6

    -

    dbn02-vip

    10.32.213.7

    -

    SCAN IP

    dbn-scan

    10.32.213.8

    -

    dbn-scan

    10.32.213.9

    Required only when the DNS server is deployed.

    dbn-scan

    10.32.213.10

    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
    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 
    10.32.213.4   dbn01 
    10.32.213.5   dbn02 
    #Private 
    172.21.50.4    dbn01-priv 
    172.21.50.5    dbn02-priv 
    #Virtual 
    10.32.213.6   dbn01-vip 
    10.32.213.7   dbn02-vip 
    #scan 
    10.32.213.8   dbn-scan     
    10.32.213.9   dbn-scan  
    10.32.213.10  dbn-scan  

Translation
Download
Updated: 2018-12-26

Document ID: EDOC1100035759

Views: 24112

Downloads: 32

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