Oracle 11g部分 RAC資源不隨機自啟動解決辦法
Oracle 11g RAC
部分資源不隨機自啟動解決辦法
一、 現象描述
開啟2節點RAC伺服器時,某些資源不隨系統開機自啟動
# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.DATA.dg ora....up.type ONLINE ONLINE rac2
ora.FRA.dg ora....up.type ONLINE ONLINE rac2
ora....ER.lsnr ora....er.type OFFLINE OFFLINE
ora....N1.lsnr ora....er.type ONLINE ONLINE rac2
ora....VOTE.dg ora....up.type ONLINE ONLINE rac1
ora.asm ora.asm.type ONLINE ONLINE rac1
ora.cvu ora.cvu.type ONLINE ONLINE rac2
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora....network ora....rk.type ONLINE ONLINE rac1
ora.oc4j ora.oc4j.type ONLINE ONLINE rac2
ora.ons ora.ons.type ONLINE ONLINE rac1
ora.prod.db ora....se.type OFFLINE OFFLINE
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application OFFLINE OFFLINE
ora.rac1.gsd application OFFLINE OFFLINE
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip ora....t1.type ONLINE ONLINE rac2
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application OFFLINE OFFLINE
ora.rac2.gsd application OFFLINE OFFLINE
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip ora....t1.type ONLINE ONLINE rac2
ora....ry.acfs ora....fs.type ONLINE ONLINE rac2
ora.scan1.vip ora....ip.type ONLINE ONLINE rac2
二、 解決辦法
2.1 檢視資源名
# crs_stat -v
NAME=ora.DATA.dg
TYPE=ora.diskgroup.type
RESTART_ATTEMPTS=5
RESTART_COUNT=0
FAILURE_THRESHOLD=
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
NAME=ora.FRA.dg
TYPE=ora.diskgroup.type
RESTART_ATTEMPTS=5
RESTART_COUNT=0
FAILURE_THRESHOLD=
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
NAME=ora.LISTENER.lsnr
TYPE=ora.listener.type
RESTART_ATTEMPTS=5
RESTART_COUNT=0
FAILURE_THRESHOLD=
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
NAME=ora.LISTENER_SCAN1.lsnr
TYPE=ora.scan_listener.type
RESTART_ATTEMPTS=5
RESTART_COUNT=0
FAILURE_THRESHOLD=0
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
NAME=ora.OCR_VOTE.dg
TYPE=ora.diskgroup.type
RESTART_ATTEMPTS=5
RESTART_COUNT=0
FAILURE_THRESHOLD=
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
NAME=ora.asm
TYPE=ora.asm.type
GEN_USR_ORA_INST_NAME@SERVERNAME(rac1)=+ASM1
GEN_USR_ORA_INST_NAME@SERVERNAME(rac2)=+ASM2
RESTART_ATTEMPTS=5
RESTART_COUNT=0
FAILURE_THRESHOLD=
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
NAME=ora.cvu
TYPE=ora.cvu.type
RESTART_ATTEMPTS=5
RESTART_COUNT=0
FAILURE_THRESHOLD=0
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
NAME=ora.gsd
TYPE=ora.gsd.type
RESTART_ATTEMPTS=5
RESTART_COUNT=0
FAILURE_THRESHOLD=
FAILURE_COUNT=0
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.net1.network
TYPE=ora.network.type
RESTART_ATTEMPTS=5
RESTART_COUNT=0
FAILURE_THRESHOLD=
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
NAME=ora.oc4j
TYPE=ora.oc4j.type
RESTART_ATTEMPTS=1
RESTART_COUNT=0
FAILURE_THRESHOLD=2
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
NAME=ora.ons
TYPE=ora.ons.type
RESTART_ATTEMPTS=3
RESTART_COUNT=0
FAILURE_THRESHOLD=
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
NAME=ora.prod.db
TYPE=ora.database.type
GEN_START_OPTIONS@SERVERNAME(rac1)=open
GEN_START_OPTIONS@SERVERNAME(rac2)=open
GEN_USR_ORA_INST_NAME@SERVERNAME(rac1)=prod1
GEN_USR_ORA_INST_NAME@SERVERNAME(rac2)=prod2
RESTART_ATTEMPTS=2
RESTART_COUNT=0
USR_ORA_INST_NAME@SERVERNAME(rac1)=prod1
USR_ORA_INST_NAME@SERVERNAME(rac2)=prod2
FAILURE_THRESHOLD=1
FAILURE_COUNT=0
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.rac1.ASM1.asm
TYPE=application
GEN_USR_ORA_INST_NAME@SERVERNAME(rac1)=+ASM1
GEN_USR_ORA_INST_NAME@SERVERNAME(rac2)=+ASM2
RESTART_ATTEMPTS=5
RESTART_COUNT=0
FAILURE_THRESHOLD=0
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
NAME=ora.rac1.LISTENER_RAC1.lsnr
TYPE=application
RESTART_ATTEMPTS=5
RESTART_COUNT=0
FAILURE_THRESHOLD=0
FAILURE_COUNT=0
TARGET=OFFLINE
STATE=OFFLINE on rac1
NAME=ora.rac1.gsd
TYPE=application
RESTART_ATTEMPTS=5
RESTART_COUNT=0
FAILURE_THRESHOLD=0
FAILURE_COUNT=0
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.rac1.ons
TYPE=application
RESTART_ATTEMPTS=3
RESTART_COUNT=0
FAILURE_THRESHOLD=0
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
NAME=ora.rac1.vip
TYPE=ora.cluster_vip_net1.type
RESTART_ATTEMPTS=0
RESTART_COUNT=0
FAILURE_THRESHOLD=0
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
NAME=ora.rac2.vip
TYPE=ora.cluster_vip_net1.type
RESTART_ATTEMPTS=0
RESTART_COUNT=0
FAILURE_THRESHOLD=0
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
NAME=ora.registry.acfs
TYPE=ora.registry.acfs.type
RESTART_ATTEMPTS=5
RESTART_COUNT=0
FAILURE_THRESHOLD=
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
NAME=ora.scan1.vip
TYPE=ora.scan_vip.type
RESTART_ATTEMPTS=0
RESTART_COUNT=0
FAILURE_THRESHOLD=0
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on rac1
2.2 修改資源屬性
u # crsctl modify resource ora.rac1.LISTENER_RAC1.lsnr -attr "AUTO_START=always"
CRS-2720: 'ora.rac1.LISTENER_RAC1.lsnr' is a resource alias for 'ora.LISTENER.lsnr' and cannot be updated
CRS-4000: Command Modify failed, or completed with errors.
//修改不成功,按照提示修改ora.LISTENER.lsnr
u # crsctl modify resource "ora.LISTENER.lsnr" -attr "AUTO_START=always"
u 重啟crs
#crsctl stop crs
#crsctl start crs
u 檢查crs
# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.DATA.dg ora....up.type ONLINE ONLINE rac1
ora.FRA.dg ora....up.type ONLINE ONLINE rac1
ora....ER.lsnr ora....er.type ONLINE ONLINE rac1
ora....N1.lsnr ora....er.type ONLINE ONLINE rac1
ora....VOTE.dg ora....up.type ONLINE ONLINE rac1
ora.asm ora.asm.type ONLINE ONLINE rac1
ora.cvu ora.cvu.type ONLINE ONLINE rac1
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora....network ora....rk.type ONLINE ONLINE rac1
ora.oc4j ora.oc4j.type ONLINE ONLINE rac1
ora.ons ora.ons.type ONLINE ONLINE rac1
ora.prod.db ora....se.type OFFLINE OFFLINE
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application OFFLINE OFFLINE
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip ora....t1.type ONLINE ONLINE rac1
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application ONLINE ONLINE rac2
ora.rac2.gsd application OFFLINE OFFLINE
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip ora....t1.type ONLINE ONLINE rac2
ora....ry.acfs ora....fs.type ONLINE ONLINE rac1
ora.scan1.vip ora....ip.type ONLINE ONLINE rac1
監聽資源正常
u 同樣方法修改db資源
#crsctl modify resource "ora.prod.db" -attr "AUTO_START=always"
#crsctl stop crs
#crsctl start crs
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26217983/viewspace-1461408/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Win8.1關機後自動重啟的解決辦法
- 11g的ohasd無法隨機啟動隨機
- Oracle RAC自啟動Oracle
- Oracle自動斷開資料庫連線的解決辦法Oracle資料庫
- 解決一開機就自動開啟記事本的辦法(轉)
- [ORACLE轉載-故障處理]11g的ohasd無法隨機啟動Oracle隨機
- oracle 11g awr不自動生成的臨時解決辦法Oracle
- oracle rac asm 問題的官方解決辦法OracleASM
- oracle 隨系統開啟,自動啟動Oracle
- 電腦開機自動斷電怎麼辦 電腦自動斷電解決辦法
- 【Oracle】Oracle 11.2.0.4版本Grid無法隨機啟動Oracle隨機
- Oracle Rac crs無法啟動Oracle
- 記vscode無法啟動解決辦法VSCode
- 資源管理器老是重啟 win7資源管理器重啟的解決辦法Win7
- 11g rac 安裝過程中常見錯誤解決辦法
- oracle 啟動不了 ora-12514 error 解決辦法OracleError
- Linux下Oracle隨機自動啟動指令碼設定LinuxOracle隨機指令碼
- [RAC] Oracle11g RAC禁止DB自動啟動Oracle
- 行動硬碟不顯示怎麼辦? 行動硬碟不顯示磁碟機代號的解決辦法硬碟
- IBM小型機每次啟動自動進入SMS選單要求人工選擇啟動裝置解決辦法IBM
- oracle 10g rac資料庫不能自動啟動Oracle 10g資料庫
- Asp.net 無法啟動IIS Express 解決辦法ASP.NETExpress
- [php]wmap應用程式無法啟動解決辦法PHP
- 處理Oracle 11gR2 RAC資料庫資源不能自動啟動的問題Oracle資料庫
- 電腦無法啟動怎麼辦 電腦啟動不了的原因與解決辦法
- oracle資料庫開機自動啟動Oracle資料庫
- Linux Oracle 隨系統自動啟動LinuxOracle
- 時區錯誤導致oracle的EM不能啟動解決辦法Oracle
- 靜態資源跨域解決辦法--nginx跨域Nginx
- 處理Oracle 11gR2 RAC資料庫資源不能自動啟動的問題 (轉)Oracle資料庫
- 陣列櫃損壞修復後oracle資料庫不能正常啟動解決辦法陣列Oracle資料庫
- Genymotion無法啟動虛擬裝置的解決辦法
- 筆記本光碟機不讀盤的解決辦法筆記
- Windows 7燒錄光碟機不讀盤解決辦法Windows
- Oracle RAC的自定義service自啟動Oracle
- linux下dbstart,dbshut無法執行和自動啟動Oracle的辦法LinuxOracle
- VMware 啟動報錯 "Failed to lock the file"解決辦法AI
- oracle開機自啟動Oracle