熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Oracle >> 正文

Oracle 10g RAC網絡設置

2022-06-13   來源: Oracle 

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

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

hosts文件的設置

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

#

# Internet host table

#

localhost

dbrac dbrachurraycomcn loghost

dbracvip dbracviphurraycomcn

dbracpriv dbracprivhurraycomcn

dbrachb dbrachbhurraycomcn

dbrac dbrachurraycomcn

dbracvip dbracviphurraycomcn

dbracpriv dbracprivhurraycomcn

dbrachb dbrachbhurraycomcn

監聽器的配置

我的監聽器文件配置如下

bash$ cat listenerora

# listeneroradbrac Network Configuration

File: /opt/oracle/product//db/network/admin/listeneroradbrac

# Generated by Oracle configuration tools
LISTENER_DBRAC =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = dbracvip)(PORT = )(IP = FIRST))

)

(ADDRESS_LIST =

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

)

(ADDRESS_LIST =

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

)

)

)
     

tnsnamesora文件配置

網絡服務名等配置如下

bash$ cat tnsnamesora

# tnsnamesora Network Configuration File: /opt/oracle/product//db/network/admin/tnsnamesora

# Generated by Oracle configuration tools

EYGLE =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = dbracvip)(PORT = ))

(CONNECT_DATA =

(SERVER = DEDICATED)

(SERVICE_NAME = eygle)

(INSTANCE_NAME = eygle)

)

)
EYGLE =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = dbracvip)(PORT = ))

(CONNECT_DATA =

(SERVER = DEDICATED)

(SERVICE_NAME = eygle)

(INSTANCE_NAME = eygle)

)

)

EYGLE =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = dbracvip)(PORT = ))

(ADDRESS = (PROTOCOL = TCP)(HOST = dbracvip)(PORT = ))

(LOAD_BALANCE = yes)

(CONNECT_DATA =

(SERVER = DEDICATED)

(SERVICE_NAME = eygle)

(FAILOVER_MODE =

(TYPE = SELECT)

(METHOD = BASIC)

(RETRIES = )

(DELAY = )

)

)

)

LISTENERS_EYGLE =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = dbracvip)(PORT = ))

(ADDRESS = (PROTOCOL = TCP)(HOST = dbracvip)(PORT = ))

)

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


From:http://tw.wingwit.com/Article/program/Oracle/201311/19002.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.