轉載一個step by step change public-ip and vip on RAC
更改10g RAC公網IP以及VIP的簡單步驟:
1. Stop all crs resources 標準操作步驟,參考另一帖子:
http://space.itpub.net/628922/viewspace-690171
2. Modify /etc/hosts 這裡修改以後為如下:
[oracle@hsdb1 admin]$ cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 #### for oracle rac 192.168.5.220 hsdb1 192.168.5.222 hsdb1-vip 10.10.10.1 hsdb1-priv 192.168.5.221 hsdb2 192.168.5.223 hsdb2-vip 10.10.10.2 hsdb2-priv (注:RAC中所有節點都需要進行修改。)
3. Change $ORACLE_HOME/network/admin/listener.ora 這裡修改以後如下:
[oracle@hsdb1 admin]$ cat listener.ora ……………………………………………………………………………………………………
LISTENER_HSDB1 = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.5.222)(PORT = 1521)(IP = FIRST)) (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.5.220)(PORT = 1521)(IP = FIRST)) ) )
(注:如果這裡host你用的name,那麼不必進行修改。)
4. Delete Public eth0 (在其中一個node操作即可) [root@localhost bin]# ./oifcfg getif
eth0 192.168.1.0 global public eth1 10.10.10.0 global cluster_interconnect [root@localhost bin]# ./oifcfg delif -global eth0 [root@localhost bin]# ./oifcfg getif
eth1 10.10.10.0 global cluster_interconnect
5. Add new public eth0 [root@localhost bin]# ./oifcfg setif -global eth0/192.168.5.0:public [root@localhost bin]# ./oifcfg getif
eth0 192.168.5.0 global public <== 新的網段 eth1 10.10.10.0 global cluster_interconnect (注:因為vip地址必須跟public ip處於同一網段,故公網IP網段更改以後,必須更改vip地址或網段。)
6. Change vip ++++++ Node 1 ++++++ [root@hsdb1 bin]# ./srvctl modify nodeapps -n hsdb1 -A 192.168.5.222/255.255.255.0/eth0 ++++++ Node 2 ++++++ [root@hsdb2 bin]# ./srvctl modify nodeapps -n hsdb2 -A 192.168.5.223/255.255.255.0/eth0
7. Start cluster all resource
參考另一個帖子:
http://space.itpub.net/628922/viewspace-690171 crs_stat -t 如果有OFFLINE的resource,手工crs_start啟動即可
8. Change local_listener
++++++ Node 1 ++++++
SQL>show parameter listener
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener string (ADDRESS=(PROTOCOL=tcp)(HOST=1
92.168.1.222)(PORT=1521))
SQL>ALTER system SET local_listener = '(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.5.222)(PORT = 1521))' scope = BOTH sid = 'hskj1';
System altered.
++++++ Node 2 ++++++
SQL> ALTER system SET local_listener = '(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.5.223)(PORT = 1521))' scope = BOTH sid = 'hskj2';
System altered.
另外,ssh等效性不需要重新配置。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/628922/viewspace-719290/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Learn c++ step by step (轉)C++
- Oracle 12c GI/RAC Step-by-Step安裝指南(一)Oracle
- 安裝linux(step by step)(轉)Linux
- Learn C++ step by step(2) (轉)C++
- step by step install oracle 10g rac asm on windowsOracle 10gASMWindows
- ClearCase使用入門--step by step(序) (轉)
- Step By Step Install Oracle10g RAC On Hp-uxOracleUX
- Step-By-Step Installation of 9i RAC on IBM AIXIBMAI
- Step-By-Step Installation of RAC with RAW Datafiles on Windows 2000Windows
- React Step by StepReact
- Step By Step of Configuring Oracle 11gR2 (11.2.0.1) RAC to RAC DataguardOracle
- Step by Step, 為OSRFX2建立一個KMDF驅動程式
- Oracle 12c GI/RAC Step-by-Step安裝指南(二)Oracle
- Oracle 12c GI/RAC Step-by-Step安裝指南(三)Oracle
- Oracle 12c GI/RAC Step-by-Step安裝指南(四)Oracle
- Oracle 12c GI/RAC Step-by-Step安裝指南(五)Oracle
- Oracle 12c GI/RAC Step-by-Step安裝指南(六)Oracle
- step by step install oracle 10g rac asm操作文件Oracle 10gASM
- oracle10g simpe AQ step by step(一)Oracle
- STREAMS筆記(1) step by step 建立一個Streams複製環境筆記
- Command 模式 Step by Step模式
- BAPI Step by step GuidanceAPIGUI
- Step by Step TimesTen --- ttIsqlSQL
- Vue.js SSR Step by Step (2) – 一個簡單的同構DEMOVue.js
- Vue.js SSR Step by Step (2) - 一個簡單的同構DEMOVue.js
- Step-to-Step Installation of 10G RAC on RedHat AS 3.0 – Single Node(二)Redhat
- Promise的實現(step by step)Promise
- Step-to-Step Installation of 10G RAC on RedHat AS 3.0 – Single Node(qiangtang)Redhat
- 使用RMAN備份集搭建Oracle Dataguard Step by Step(一)Oracle
- Oracle 11gR2 Active DataGuard配置Step By Step(一)Oracle
- Step by Step TimesTen --- DataStore的雙向複製( 一)AST
- GoldenGate<一> step by step installation and configurationGo
- Linux Software RAID step by stepLinuxAI
- Git Step by Step (3):Git物件模型Git物件模型
- Oracle高階複製Step by StepOracle
- 單步除錯 step into/step out/step over 區別詳解除錯
- ABP應用開發(Step by Step)-下篇
- ABP應用開發(Step by Step)-上篇