Oracle 10G RAC中去除asm例項與vip的依賴關係
Oracle 10G rac安裝完成之後,如果使用asm,那麼預設情況下 asm是依賴於vip的,如果vip因故失效,會導致asm同時失效,在10.2.0.3上這個問題已經得到修復。
在metelink上有一個文件(doc:4865736.8),介紹了一個方法接觸asm與vip的依賴關係,下面演示器過程:
1、找到asm資源名稱,紅色部分為asm資源名稱
[root@rac1 ~]# crs_stat NAME=ora.cnhtm.cnhtm1.inst TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.cnhtm.cnhtm2.inst TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 NAME=ora.cnhtm.db TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.rac1.ASM1.asm TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.rac1.LISTENER_RAC1.lsnr TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.rac1.gsd TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.rac1.ons TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.rac1.vip TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.rac2.ASM2.asm TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 NAME=ora.rac2.LISTENER_RAC2.lsnr TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 NAME=ora.rac2.gsd TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 NAME=ora.rac2.ons TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 NAME=ora.rac2.vip TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 |
2、檢視asm資源是否依賴於vip
如果REQUIRED_RESOURCES=後邊有vip資源的值,證明asm依賴於vip(紅色部分),需要進行修改
ora.rac1.ASM1.asm
[root@rac1 tmp]# crs_stat -p ora.rac1.ASM1.asm NAME=ora.rac1.ASM1.asm TYPE=application ACTION_SCRIPT=/u01/app/oracle/product/10.2.0/db_1/bin/racgwrap ACTIVE_PLACEMENT=0 AUTO_START=1 CHECK_INTERVAL=600 DESCRIPTION=CRS application for ASM instance FAILOVER_DELAY=0 FAILURE_INTERVAL=0 FAILURE_THRESHOLD=0 HOSTING_MEMBERS=rac1 OPTIONAL_RESOURCES= PLACEMENT=restricted REQUIRED_RESOURCES=ora.rac1.vip RESTART_ATTEMPTS=5 SCRIPT_TIMEOUT=600 START_TIMEOUT=0 STOP_TIMEOUT=0 UPTIME_THRESHOLD=7d USR_ORA_ALERT_NAME= USR_ORA_CHECK_TIMEOUT=0 USR_ORA_CONNECT_STR=/ as sysdba USR_ORA_DEBUG=0 USR_ORA_DISCONNECT=false USR_ORA_FLAGS= USR_ORA_IF= USR_ORA_INST_NOT_SHUTDOWN= USR_ORA_LANG= USR_ORA_NETMASK= USR_ORA_OPEN_MODE=mount USR_ORA_OPI=false USR_ORA_PFILE= USR_ORA_PRECONNECT=none USR_ORA_SRV= USR_ORA_START_TIMEOUT=0 USR_ORA_STOP_MODE=immediate USR_ORA_STOP_TIMEOUT=0 USR_ORA_VIP= |
ora.rac2.ASM2.asm
[root@rac1 tmp]# crs_stat -p ora.rac2.ASM2.asm NAME=ora.rac2.ASM2.asm TYPE=application ACTION_SCRIPT=/u01/app/oracle/product/10.2.0/db_1/bin/racgwrap ACTIVE_PLACEMENT=0 AUTO_START=1 CHECK_INTERVAL=600 DESCRIPTION=CRS application for ASM instance FAILOVER_DELAY=0 FAILURE_INTERVAL=0 FAILURE_THRESHOLD=0 HOSTING_MEMBERS=rac2 OPTIONAL_RESOURCES= PLACEMENT=restricted REQUIRED_RESOURCES=ora.rac2.vip RESTART_ATTEMPTS=5 SCRIPT_TIMEOUT=600 START_TIMEOUT=0 STOP_TIMEOUT=0 UPTIME_THRESHOLD=7d USR_ORA_ALERT_NAME= USR_ORA_CHECK_TIMEOUT=0 USR_ORA_CONNECT_STR=/ as sysdba USR_ORA_DEBUG=0 USR_ORA_DISCONNECT=false USR_ORA_FLAGS= USR_ORA_IF= USR_ORA_INST_NOT_SHUTDOWN= USR_ORA_LANG= USR_ORA_NETMASK= USR_ORA_OPEN_MODE=mount USR_ORA_OPI=false USR_ORA_PFILE= USR_ORA_PRECONNECT=none USR_ORA_SRV= USR_ORA_START_TIMEOUT=0 USR_ORA_STOP_MODE=immediate USR_ORA_STOP_TIMEOUT=0 USR_ORA_VIP= |
3、將asm資源註冊資訊儲存到臨時檔案中
ora.rac1.ASM1.asm
[root@rac1 ~]# crs_stat -p ora.rac1.ASM1.asm > /tmp/ora.rac1.ASM1.asm.cap |
ora.rac2.ASM2.asm
[root@rac1 ~]# crs_stat -p ora.rac2.ASM2.asm > /tmp/ora.rac2.ASM2.asm.cap |
4、修改儲存的asm資原始檔
[root@rac1 ~]# cd /tmp [root@rac1 tmp]# ls -l *cap -rw-r--r-- 1 root root 823 Jan 18 16:34 ora.rac1.ASM1.asm.cap -rw-r--r-- 1 root root 823 Jan 18 16:35 ora.rac2.ASM2.asm.cap |
修改的方法就是將REQUIRED_RESOURCES=後的vip資訊去掉,下面紅色部分為修改後的結果
ora.rac1.ASM1.asm
[root@rac1 tmp]# cat ora.rac1.ASM1.asm.cap NAME=ora.rac1.ASM1.asm TYPE=application ACTION_SCRIPT=/u01/app/oracle/product/10.2.0/db_1/bin/racgwrap ACTIVE_PLACEMENT=0 AUTO_START=1 CHECK_INTERVAL=600 DESCRIPTION=CRS application for ASM instance FAILOVER_DELAY=0 FAILURE_INTERVAL=0 FAILURE_THRESHOLD=0 HOSTING_MEMBERS=rac1 OPTIONAL_RESOURCES= PLACEMENT=restricted REQUIRED_RESOURCES= RESTART_ATTEMPTS=5 SCRIPT_TIMEOUT=600 START_TIMEOUT=0 STOP_TIMEOUT=0 UPTIME_THRESHOLD=7d USR_ORA_ALERT_NAME= USR_ORA_CHECK_TIMEOUT=0 USR_ORA_CONNECT_STR=/ as sysdba USR_ORA_DEBUG=0 USR_ORA_DISCONNECT=false USR_ORA_FLAGS= USR_ORA_IF= USR_ORA_INST_NOT_SHUTDOWN= USR_ORA_LANG= USR_ORA_NETMASK= USR_ORA_OPEN_MODE=mount USR_ORA_OPI=false USR_ORA_PFILE= USR_ORA_PRECONNECT=none USR_ORA_SRV= USR_ORA_START_TIMEOUT=0 USR_ORA_STOP_MODE=immediate USR_ORA_STOP_TIMEOUT=0 USR_ORA_VIP= |
ora.rac2.ASM2.asm
[root@rac1 tmp]# cat ora.rac2.ASM2.asm.cap NAME=ora.rac2.ASM2.asm TYPE=application ACTION_SCRIPT=/u01/app/oracle/product/10.2.0/db_1/bin/racgwrap ACTIVE_PLACEMENT=0 AUTO_START=1 CHECK_INTERVAL=600 DESCRIPTION=CRS application for ASM instance FAILOVER_DELAY=0 FAILURE_INTERVAL=0 FAILURE_THRESHOLD=0 HOSTING_MEMBERS=rac2 OPTIONAL_RESOURCES= PLACEMENT=restricted REQUIRED_RESOURCES= RESTART_ATTEMPTS=5 SCRIPT_TIMEOUT=600 START_TIMEOUT=0 STOP_TIMEOUT=0 UPTIME_THRESHOLD=7d USR_ORA_ALERT_NAME= USR_ORA_CHECK_TIMEOUT=0 USR_ORA_CONNECT_STR=/ as sysdba USR_ORA_DEBUG=0 USR_ORA_DISCONNECT=false USR_ORA_FLAGS= USR_ORA_IF= USR_ORA_INST_NOT_SHUTDOWN= USR_ORA_LANG= USR_ORA_NETMASK= USR_ORA_OPEN_MODE=mount USR_ORA_OPI=false USR_ORA_PFILE= USR_ORA_PRECONNECT=none USR_ORA_SRV= USR_ORA_START_TIMEOUT=0 USR_ORA_STOP_MODE=immediate USR_ORA_STOP_TIMEOUT=0 USR_ORA_VIP= |
5、用修改過的檔案重新註冊asm資源
ora.rac1.ASM1.asm
[root@rac1 tmp]# crs_register -u ora.rac1.ASM1.asm -dir /tmp |
ora.rac2.ASM2.asm
[root@rac1 tmp]# crs_register -u ora.rac2.ASM2.asm -dir /tmp |
6、檢視asm是否還依賴於vip資源
下面結果顯示asm已經不依賴於vip資源,紅色行
ora.rac1.ASM1.asm
[root@rac1 tmp]# crs_stat -p ora.rac1.ASM1.asm NAME=ora.rac1.ASM1.asm TYPE=application ACTION_SCRIPT=/u01/app/oracle/product/10.2.0/db_1/bin/racgwrap ACTIVE_PLACEMENT=0 AUTO_START=1 CHECK_INTERVAL=600 DESCRIPTION=CRS application for ASM instance FAILOVER_DELAY=0 FAILURE_INTERVAL=0 FAILURE_THRESHOLD=0 HOSTING_MEMBERS=rac1 OPTIONAL_RESOURCES= PLACEMENT=restricted REQUIRED_RESOURCES= RESTART_ATTEMPTS=5 SCRIPT_TIMEOUT=600 START_TIMEOUT=0 STOP_TIMEOUT=0 UPTIME_THRESHOLD=7d USR_ORA_ALERT_NAME= USR_ORA_CHECK_TIMEOUT=0 USR_ORA_CONNECT_STR=/ as sysdba USR_ORA_DEBUG=0 USR_ORA_DISCONNECT=false USR_ORA_FLAGS= USR_ORA_IF= USR_ORA_INST_NOT_SHUTDOWN= USR_ORA_LANG= USR_ORA_NETMASK= USR_ORA_OPEN_MODE=mount USR_ORA_OPI=false USR_ORA_PFILE= USR_ORA_PRECONNECT=none USR_ORA_SRV= USR_ORA_START_TIMEOUT=0 USR_ORA_STOP_MODE=immediate USR_ORA_STOP_TIMEOUT=0 USR_ORA_VIP= |
ora.rac2.ASM2.asm
[root@rac1 tmp]# crs_stat -p ora.rac2.ASM2.asm NAME=ora.rac2.ASM2.asm TYPE=application ACTION_SCRIPT=/u01/app/oracle/product/10.2.0/db_1/bin/racgwrap ACTIVE_PLACEMENT=0 AUTO_START=1 CHECK_INTERVAL=600 DESCRIPTION=CRS application for ASM instance FAILOVER_DELAY=0 FAILURE_INTERVAL=0 FAILURE_THRESHOLD=0 HOSTING_MEMBERS=rac2 OPTIONAL_RESOURCES= PLACEMENT=restricted REQUIRED_RESOURCES= RESTART_ATTEMPTS=5 SCRIPT_TIMEOUT=600 START_TIMEOUT=0 STOP_TIMEOUT=0 UPTIME_THRESHOLD=7d USR_ORA_ALERT_NAME= USR_ORA_CHECK_TIMEOUT=0 USR_ORA_CONNECT_STR=/ as sysdba USR_ORA_DEBUG=0 USR_ORA_DISCONNECT=false USR_ORA_FLAGS= USR_ORA_IF= USR_ORA_INST_NOT_SHUTDOWN= USR_ORA_LANG= USR_ORA_NETMASK= USR_ORA_OPEN_MODE=mount USR_ORA_OPI=false USR_ORA_PFILE= USR_ORA_PRECONNECT=none USR_ORA_SRV= USR_ORA_START_TIMEOUT=0 USR_ORA_STOP_MODE=immediate USR_ORA_STOP_TIMEOUT=0 USR_ORA_VIP= |
--end--
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22049049/viewspace-1030663/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle rac的vip與srvctl啟動關係Oracle
- 關聯關係與依賴關係的區別
- maven中scope依賴範圍與classpath的關係Maven
- OSGI中的service依賴關係管理
- oracle 10g asm 例項開關機順序Oracle 10gASM
- 【Oracle ASM】關於asm例項與db例項中的磁碟狀態_詳細分析過程OracleASM
- Maven 依賴關係Maven
- Oracle 查詢鎖之間的依賴關係Oracle
- Oracle單例項+ASM啟動與關閉Oracle單例ASM
- build task依賴關係UI
- 10g rac asm 恢復到 單例項(二)ASM單例
- 10g rac asm 恢復到 單例項(一)ASM單例
- CentOS 6.4安裝Oracle 10g2 rac 包的依賴關係備記CentOSOracle 10g
- Elasticsearch依賴與Spring對應關係ElasticsearchSpring
- 10g RAC中修改VIP地址
- (轉)Oracle rac環境下清除asm例項OracleASM
- Oracle 10g RAC增加節點例項Oracle 10g
- 11g ASM例項記憶體大小與diskgroup大小的關係ASM記憶體
- Oracle 10g RAC vip 漂移問題Oracle 10g
- ORACLE包和過程依賴關係測試(轉)Oracle
- Maven中如何管理多模組專案的依賴關係Maven
- 如何管理前端專案中的複雜依賴關係前端
- 修改oracle 10g rac(rhel4)的vipOracle 10g
- Spring框架模組依賴關係Spring框架
- mysql主外來鍵依賴關係MySql
- depmod解決模組依賴關係
- Oracle 10g RAC跨例項控制並行Oracle 10g並行
- Oracle RAC與AIX重啟的關係OracleAI
- 【物件導向依賴關係概念總結】物件導向程式設計的五種依賴關係物件程式設計
- javascript 依賴注入程式碼例項JavaScript依賴注入
- RAC+DG(asm單例項)ASM單例
- Android專案的依賴關係解析Android
- 分析資料庫的依賴關係(轉)資料庫
- 如何檢視Oracle RAC的asm磁碟的udev對應關係OracleASMdev
- 什麼是專案管理中的任務依賴關係專案管理
- Oracle RAC ASM磁碟組擴容時遇到的VIP漂移OracleASM
- 在RAC中修改ASM例項的sys使用者口令ASM
- 【python】【安裝包依賴關係】Python