asm磁碟組依賴導致資料庫自啟動報錯
重啟os發現資料庫沒有自動起來,其別都正常啟動了,手工啟動也報錯
[oracle@hca1 ~]$ srvctl start database -d orcl
PRCR-1079 : Failed to start resource ora.orcl.db
CRS-5017: The resource action "ora.HCA1_CACHE.dg start" encountered the following error:
ORA-15032: not all alterations performed
ORA-15017: diskgroup "HCA1_CACHE" cannot be mounted
在此之前已經遷移了這個磁碟組上的所有檔案,包括redo,spfile,datafile,tempfile,controlfile,且透過srvctl 重啟過例項沒問題,但是沒有重啟叢集,而是直接重啟了OS,結果發現例項沒有自動啟動,但是透過sqlplus能手工啟動資料庫
[grid@hca1 ~]$ crs_stat -t
Name Type Target State Host
————————————————————
ora…._10G.dg ora….up.type ONLINE ONLINE hca1
ora….ACHE.dg ora….up.type ONLINE OFFLINE
ora….500G.dg ora….up.type ONLINE ONLINE hca1
ora….ACHE.dg ora….up.type ONLINE OFFLINE
ora….500G.dg ora….up.type ONLINE ONLINE hca1
ora….ACHE.dg ora….up.type ONLINE ONLINE hca1
ora….ER.lsnr ora….er.type ONLINE ONLINE hca1
ora….N1.lsnr ora….er.type ONLINE ONLINE hca1
ora.OCR.dg ora….up.type ONLINE ONLINE hca1
ora.asm ora.asm.type ONLINE ONLINE hca1
ora.cvu ora.cvu.type ONLINE ONLINE hca1
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora….SM1.asm application ONLINE ONLINE hca1
ora….A1.lsnr application ONLINE ONLINE hca1
ora.hca1.gsd application OFFLINE OFFLINE
ora.hca1.ons application ONLINE ONLINE hca1
ora.hca1.vip ora….t1.type ONLINE ONLINE hca1
ora….SM2.asm application ONLINE ONLINE hca2
ora….A2.lsnr application ONLINE ONLINE hca2
ora.hca2.gsd application OFFLINE OFFLINE
ora.hca2.ons application ONLINE ONLINE hca2
ora.hca2.vip ora….t1.type ONLINE ONLINE hca2
ora….network ora….rk.type ONLINE ONLINE hca1
ora.oc4j ora.oc4j.type ONLINE ONLINE hca1
ora.ons ora.ons.type ONLINE ONLINE hca1
ora.orcl.db ora….se.type ONLINE OFFLINE
ora….est.svc ora….ce.type ONLINE OFFLINE
ora….ry.acfs ora….fs.type ONLINE ONLINE hca1
ora.scan1.vip ora….ip.type ONLINE ONLINE hca1
這兩個顯示offline的磁碟組已經在之前透過drop diskgroup 成功刪除了,看來沒有刪乾淨,手工刪除
[grid@hca1 ~]$ srvctl remove diskgroup -g hca1_cache
PRCA-1002 : Failed to remove CRS resource ora.HCA1_CACHE.dg for ASM Disk Group hca1_cache
PRCR-1028 : Failed to remove resource ora.HCA1_CACHE.dg
PRCR-1072 : Failed to unregister resource ora.HCA1_CACHE.dg
CRS-0222: Resource 'ora.HCA1_CACHE.dg' has dependency error.
[oracle@hca1 ~]$ srvctl remove diskgroup -g hca2_cache
PRCA-1002 : Failed to remove CRS resource ora.HCA2_CACHE.dg for ASM Disk Group hca2_cache
PRCR-1028 : Failed to remove resource ora.HCA2_CACHE.dg
PRCR-1072 : Failed to unregister resource ora.HCA2_CACHE.dg
CRS-0222: Resource 'ora.HCA2_CACHE.dg' has dependency error.
提示有依賴,強制刪除
[oracle@hca1 ~]$ srvctl remove diskgroup -g hca1_cache -f
[oracle@hca1 ~]$ srvctl remove diskgroup -g hca2_cache -f
[grid@hca1 ~]$ crs_stat -t
Name Type Target State Host
————————————————————
ora…._10G.dg ora….up.type ONLINE ONLINE hca1
ora….500G.dg ora….up.type ONLINE ONLINE hca1
ora….500G.dg ora….up.type ONLINE ONLINE hca1
ora….ACHE.dg ora….up.type ONLINE ONLINE hca1
ora….ER.lsnr ora….er.type ONLINE ONLINE hca1
ora….N1.lsnr ora….er.type ONLINE ONLINE hca1
ora.OCR.dg ora….up.type ONLINE ONLINE hca1
ora.asm ora.asm.type ONLINE ONLINE hca1
ora.cvu ora.cvu.type ONLINE ONLINE hca1
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora….SM1.asm application ONLINE ONLINE hca1
ora….A1.lsnr application ONLINE ONLINE hca1
ora.hca1.gsd application OFFLINE OFFLINE
ora.hca1.ons application ONLINE ONLINE hca1
ora.hca1.vip ora….t1.type ONLINE ONLINE hca1
ora….SM2.asm application ONLINE ONLINE hca2
ora….A2.lsnr application ONLINE ONLINE hca2
ora.hca2.gsd application OFFLINE OFFLINE
ora.hca2.ons application ONLINE ONLINE hca2
ora.hca2.vip ora….t1.type ONLINE ONLINE hca2
ora….network ora….rk.type ONLINE ONLINE hca1
ora.oc4j ora.oc4j.type ONLINE ONLINE hca1
ora.ons ora.ons.type ONLINE ONLINE hca1
ora.orcl.db ora….se.type ONLINE ONLINE hca1
ora….est.svc ora….ce.type ONLINE ONLINE hca2
ora….ry.acfs ora….fs.type ONLINE ONLINE hca1
ora.scan1.vip ora….ip.type ONLINE ONLINE hca1
offline的磁碟組已經消失,但是啟動還是提示老磁碟組不能mount
[grid@hca1 ~]$ srvctl start database -d orcl
檢查資料庫屬性
[grid@hca1 ~]$ srvctl config database -d orcl -a
Database unique name: orcl
Database name:
Oracle home: /oracle/app/oracle/product/11.2.0/db_1
Oracle user: oracle
Spfile: +HCA1_SDD1_500G/orcl/spfileorcl.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: orcl
Database instances: orcl1,orcl2
PRCD-1012 : Failed to retrieve disk group list for database orcl.
PRCR-1035 : Failed to look up CRS resource ora.HCA1_CACHE.dg for orcl
PRCA-1000 : ASM Disk Group HCA1_CACHE does not exist
PRCR-1001 : Resource ora.HCA1_CACHE.dg does not exist
檢查一個正常的11grac,透過srvctl config db -d orcl -a 看到有一行Disk Groups: DATA ,看來就是這個依賴選項沒有改導致的
[grid@hca1 ~]$ srvctl modify db -d orcl -a hca1_sdd1_500g
PRCD-1163 : Failed to modify database orcl
PRCR-1071 : Failed to register or update resource ora.orcl.db
CRS-0245: User doesn't have enough privilege to perform the operation
[root@hca1 ~]# /oracle/app/11.2.0/grid/bin/srvctl modify db -d orcl -a hca1_sdd1_500g
[root@hca1 ~]# /oracle/app/11.2.0/grid/bin/srvctl config db -d orcl -a
Database unique name: orcl
Database name:
Oracle home: /oracle/app/oracle/product/11.2.0/db_1
Oracle user: oracle
Spfile: +HCA1_SDD1_500G/orcl/spfileorcl.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: orcl
Database instances: orcl1,orcl2
Disk Groups: HCA1_SDD1_500G
Mount point paths:
Services: test
Type: RAC
Database is enabled
Database is administrator managed
再次啟動成功
[grid@hca1 ~]$ srvctl start database -d orcl
如果刪除遷移資料庫到新的磁碟組之後刪除了了最初建立例項的磁碟組,則不光要srvctl 修改spfile還要修改這個依賴磁碟組屬性
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23732248/viewspace-2285230/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ASM磁碟組故障導致資料庫不能起來ASM資料庫
- RAC資料庫新增ASM磁碟組(1)資料庫ASM
- ASM磁碟組不能自動掛載ASM
- 【問題處理】因ASM磁碟組空間不足導致資料庫例項無法啟動的故障處理ASM資料庫
- 【資料遷移】RMAN遷移資料庫到ASM(一)建立ASM磁碟組資料庫ASM
- 建立ASM磁碟組報錯ORA-15063ASM
- ASM 啟動時預設mount 的磁碟組ASM
- ORACLE 資料庫 ASM磁碟組上新增控制檔案Oracle資料庫ASM
- 誤刪重做日誌檔案組導致啟動資料庫報錯ORA-03113資料庫
- 如何移動asm磁碟組內的資料檔案到另外一個磁碟組ASM
- ASM無法自動載入磁碟組問題ASM
- 啟動ASM 例項報錯ASM
- 【資料庫資料恢復】Oracle資料庫ASM磁碟組掉線如何恢復資料?資料庫資料恢復OracleASM
- ORACLE windows驅動磁碟機代號自動變更導致oracle資料庫崩潰無法啟動OracleWindows資料庫
- 【資料庫資料恢復】ASM磁碟組掉線的Oracle資料庫資料恢復案例資料庫資料恢復ASMOracle
- 惡意程式造成資料庫啟動報錯資料庫
- asm 磁碟組 增刪磁碟組ASM
- asm磁碟組建立錯誤,用中轉儲存,重建磁碟組ASM
- Oracle sysman.mgmt_jobs導致資料庫自動重啟Oracle資料庫
- 11gR2 基於ASM磁碟組的資料庫恢復ASM資料庫
- MySQL 5.7啟動資料庫報錯'does not exist or is not executable'MySql資料庫
- ASM磁碟組限制ASM
- 使用rman在oracle ASM磁碟組之間移動資料檔案OracleASM
- Oracle資料庫 ASM磁碟線上擴容Oracle資料庫ASM
- 實現資料庫由檔案系統遷移到 ASM 磁碟組中資料庫ASM
- 資料庫自動啟動關閉資料庫
- 資料庫啟動在mount狀態,無任何報錯資料庫
- 使用自動儲存管理 (ASM)建立資料庫ASM資料庫
- 移動資料檔案從檔案系統到ASM磁碟組中ASM
- oracle 資料庫磁碟組屬性Oracle資料庫
- oracle 資料庫磁碟組屬性Oracle資料庫
- 用oracle amdu 抽取asm磁碟組的資料檔案OracleASM
- (grid重灌後圖形介面報錯)ASM磁碟組字元介面配置ASM字元
- 遷移ASM磁碟組ASM
- 3.1.5.8 隨系統啟動自動啟動資料庫資料庫
- 4 配置Oracle資料庫自動啟動Oracle資料庫
- oracle資料庫開機自動啟動Oracle資料庫
- AIX系統中,啟動資料庫報錯ORA-27504AI資料庫