程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> Oracle數據庫 >> 關於Oracle數據庫 >> Oracle 10g RAC網絡設置

Oracle 10g RAC網絡設置

編輯:關於Oracle數據庫

    在Oracle10g RAC的安裝過程中,網絡的設置需要謹慎,也極其重要。

    以下將我的Oracle10g RAC環境的網絡配置列舉一下,供參考。

    1.hosts文件的設置

    由於RAC要設置多個地址,所以需要准備好網絡環境,我的hosts文件設置如下:

    #

    # Internet host table

    #

    127.0.0.1 localhost

    172.16.19.11 db210-rac1 db210-rac1.hurray.com.cn loghost

    172.16.19.211 db210-rac1vip db210-rac1vip.hurray.com.cn

    192.168.18.11 db210-rac1priv db210-rac1priv.hurray.com.cn

    192.168.19.11 db210-rac1hb db210-rac1hb.hurray.com.cn

    172.16.19.12 db210-rac2 db210-rac2.hurray.com.cn

    172.16.19.212 db210-rac2vip db210-rac2vip.hurray.com.cn

    192.168.18.12 db210-rac2priv db210-rac2priv.hurray.com.cn

    192.168.19.12 db210-rac2hb db210-rac2hb.hurray.com.cn

    2.監聽器的配置

    我的監聽器文件配置如下:

    bash-2.05$ cat listener.ora

    # listener.ora.db210-rac1 Network Configuration

    File: /opt/oracle/product/10.2.0/db/network/admin/listener.ora.db210-rac1

    # Generated by Oracle configuration tools.
    LISTENER_DB210-RAC1 =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP)(HOST = db210-rac1vip)(PORT = 1521)(IP = FIRST))

    )

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.19.11)(PORT = 1521)(IP = FIRST))

    )

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))

    )

    )

    )
         

    3.tnsnames.ora文件配置

    網絡服務名等配置如下:

    bash-2.05$ cat tnsnames.ora

    # tnsnames.ora Network Configuration File: /opt/oracle/product/10.2.0/db/network/admin/tnsnames.ora

    # Generated by Oracle configuration tools.

    EYGLE2 =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = db210-rac2vip)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = eygle)

    (INSTANCE_NAME = eygle2)

    )

    )
    EYGLE1 =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = db210-rac1vip)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = eygle)

    (INSTANCE_NAME = eygle1)

    )

    )

    EYGLE =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = db210-rac1vip)(PORT = 1521))

    (ADDRESS = (PROTOCOL = TCP)(HOST = db210-rac2vip)(PORT = 1521))

    (LOAD_BALANCE = yes)

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = eygle)

    (FAILOVER_MODE =

    (TYPE = SELECT)

    (METHOD = BASIC)

    (RETRIES = 180)

    (DELAY = 5)

    )

    )

    )

    LISTENERS_EYGLE =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP)(HOST = db210-rac1vip)(PORT = 1521))

    (ADDRESS = (PROTOCOL = TCP)(HOST = db210-rac2vip)(PORT = 1521))

    )

    這就是主要的一些配置文件,其中,Oracle的相關配置文件都是自動生成的,VIP可以實現故障時的自動切換。

    1. 上一頁:
    2. 下一頁:
    Copyright © 程式師世界 All Rights Reserved