解決因ocr資源狀態為unknown導致CRS-0223
OS: Linux 2.6.9-89
DB: 2節點RAC 10205
症狀:第一個instance無法啟動,
justin5077.$ srvctl start instance -d PRE030 -i PRE030N3
PRKP-1001 : Error starting instance PRE030N3 on node justin5077
CRS-1028: Dependency analysis failed because of:
CRS-0223: Resource 'ora.PRE030.PRE030N3.inst' has placement error.
DB: 2節點RAC 10205
症狀:第一個instance無法啟動,
justin5077.$ srvctl start instance -d PRE030 -i PRE030N3
PRKP-1001 : Error starting instance PRE030N3 on node justin5077
CRS-1028: Dependency analysis failed because of:
CRS-0223: Resource 'ora.PRE030.PRE030N3.inst' has placement error.
登陸該節點檢視
$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....N3.inst application ONLINE UNKNOWN seml...5077
ora....N4.inst application ONLINE ONLINE seml...5078
ora.PRE030.db application ONLINE ONLINE seml...5077
ora....SM3.asm application ONLINE ONLINE seml...5077
ora....77.lsnr application ONLINE UNKNOWN seml...5077
ora....077.gsd application ONLINE ONLINE seml...5077
ora....077.ons application ONLINE ONLINE seml...5077
ora....077.vip application ONLINE ONLINE seml...5077
ora....SM4.asm application ONLINE ONLINE seml...5078
ora....78.lsnr application ONLINE UNKNOWN seml...5078
ora....078.gsd application ONLINE ONLINE seml...5078
ora....078.ons application ONLINE ONLINE seml...5078
ora....078.vip application ONLINE ONLINE seml...5078
嘗試srvctl啟動報告上述錯誤,改用sqlplus
$ sqlplus / as sysdba
$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....N3.inst application ONLINE UNKNOWN seml...5077
ora....N4.inst application ONLINE ONLINE seml...5078
ora.PRE030.db application ONLINE ONLINE seml...5077
ora....SM3.asm application ONLINE ONLINE seml...5077
ora....77.lsnr application ONLINE UNKNOWN seml...5077
ora....077.gsd application ONLINE ONLINE seml...5077
ora....077.ons application ONLINE ONLINE seml...5077
ora....077.vip application ONLINE ONLINE seml...5077
ora....SM4.asm application ONLINE ONLINE seml...5078
ora....78.lsnr application ONLINE UNKNOWN seml...5078
ora....078.gsd application ONLINE ONLINE seml...5078
ora....078.ons application ONLINE ONLINE seml...5078
ora....078.vip application ONLINE ONLINE seml...5078
嘗試srvctl啟動報告上述錯誤,改用sqlplus
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.3.0 - Production on Fri May 4 08:11:05 2012
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL> startup nomount
;ORA-03113: end-of-file on communication channel
;ORA-03113: end-of-file on communication channel
alterlog顯示錯誤ora-29702
檢視MOS,有篇文章與現有情況類似
OCR由於不正確的使用crs_stop/crs_start出現紊亂,導致ora開頭的資源狀態變為unkown;
解決方法是以毒攻毒,即使有crs_stop停止unknown的資源,然後在嘗試srvctl啟動;
操作之前必須確保OCR有最新的備份
OCR由於不正確的使用crs_stop/crs_start出現紊亂,導致ora開頭的資源狀態變為unkown;
解決方法是以毒攻毒,即使有crs_stop停止unknown的資源,然後在嘗試srvctl啟動;
操作之前必須確保OCR有最新的備份
$ crs_stop ora.PRE030.PRE030N3.inst
Attempting to stop `ora.PRE030.PRE030N3.inst` on member `justin5077`
Stop of `ora.PRE030.PRE030N3.inst` on member `justin5077` succeeded.
Attempting to stop `ora.PRE030.PRE030N3.inst` on member `justin5077`
Stop of `ora.PRE030.PRE030N3.inst` on member `justin5077` succeeded.
$ srvctl start instance -d PRE030 -i PRE030N3
此時可以成功啟動instance
此時可以成功啟動instance
CRS: Resource in UNKNOWN state and srvctl Cannot Start/Stop the Resource [ID 845709.1]
The UNKNOWN state can often be resolved by bringing the resource offline using crs_stop.
Note: crs_stop and crs_start are NOT supported for use on ora.* resources, unless you are explicitly instructed to use them by an Oracle support analyst, or following this note's steps EXACTLY.
Improper use of crs_stop and crs_start can corrupt your OCR.
Any CRS resource can be in an UNKNOWN state, including vip, gsd, database, or instances. The following uses an instance resource as an example.
1. Find the proper name for your instance resource. To find it, do "crs_stat -u | grep inst", this will give the names of all instance resources in the OCR.
$ crs_stat -u | grep inst
NAME=ora.V102.V1021.inst
NAME=ora.V102.V1022.inst
NAME=ora.prod.prod1.inst
NAME=ora.prod.prod2.inst
Pick the instance associated with the node and database in question.
For example, for a database named prod and instance named prod1, the resource name will be "ora.prod.prod1.inst".
NAME=ora.V102.V1021.inst
NAME=ora.V102.V1022.inst
NAME=ora.prod.prod1.inst
NAME=ora.prod.prod2.inst
Pick the instance associated with the node and database in question.
For example, for a database named prod and instance named prod1, the resource name will be "ora.prod.prod1.inst".
2. Before you go any further, make sure that you have a recent backup of your OCR.
You can check on your OCR automatic backups with the command "ocrconfig -showbackup":
$ ocrconfig -showbackup
oradb1 2009/06/19 07:35:28 /u01/app/oracle/product/10gR2/crs/cdata/temp
oradb1 2009/06/19 03:35:26 /u01/app/oracle/product/10gR2/crs/cdata/temp
oradb1 2009/06/18 23:35:25 /u01/app/oracle/product/10gR2/crs/cdata/temp
oradb1 2009/06/18 03:35:20 /u01/app/oracle/product/10gR2/crs/cdata/temp
oradb1 2009/06/02 07:01:26 /u01/app/oracle/product/10gR2/crs/cdata/temp
If no backup exists, then create one using ocrconfig -export, following the instructions in the documentation:
If no backup exists, then create one using ocrconfig -export, following the instructions in the documentation:
Oracle� Database Oracle Clusterware and Oracle Real Application Clusters Administration and Deployment Guide - 10g Release 2 (10.2)
3. Restore the instance resource to OFFLINE with this command:
crs_stop [instance resource name]
eg:
$ crs_stop ora.prod.prod1.inst
$ crs_stop ora.prod.prod1.inst
Note: if the instance is online then this command will stop it.
4. Check that instance status is now OFFLINE instead of UNKNOWN
$ crs_stat -u ora.prod.prod1.inst
NAME=ora.prod.prod1.inst
TYPE=application
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.prod.prod1.inst
TYPE=application
TARGET=OFFLINE
STATE=OFFLINE
5. If the instance status is OFFLINE, then you can try again to start it with srvctl.
6. If the startup fails again, then open a SR and provide Oracle Support with the following information:
a) Gather a trace by using the following script.
script. /tmp/trace1.out
env
crs_stat -u ora.prod.prod1.inst
crs_stop ora.prod.prod1.inst
crs_stat -u ora.prod.prod1.inst
export SRVM_TRACE=TRUE
srvctl start instance -d prod -i prod1
export SRVM_TRACE=
crs_stat -u ora.prod.prod1.inst
exit
(Replace "ora.prod.prod1.inst" with the name of your actual instance resource; replace prod with the name of your database and prod1 with the name of your instance).
env
crs_stat -u ora.prod.prod1.inst
crs_stop ora.prod.prod1.inst
crs_stat -u ora.prod.prod1.inst
export SRVM_TRACE=TRUE
srvctl start instance -d prod -i prod1
export SRVM_TRACE=
crs_stat -u ora.prod.prod1.inst
exit
(Replace "ora.prod.prod1.inst" with the name of your actual instance resource; replace prod with the name of your database and prod1 with the name of your instance).
The trace log will be found in /tmp/trace1.out.
b) latest crsd.log from this node
c) the resource log for this instance from $CRS_HOME/log/<>/racg
d) ls -l of $ORACLE_HOME/log/<>/racg
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15480802/viewspace-722738/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 解決crs_stat狀態為UNKNOWN問題
- RAC10g下crs狀態為unknown的解決辦法
- CRS-0223 及crs 出現offline , unknown 狀態處理
- 因為arp 問題導致的vip 故障與解決方案
- RAC crs_stat unknown資源狀態處理(ZT)
- 10G rac 因為ocr原因導致crs不能啟動的排查二例
- canvas因為圖片資源不在同一域名下而導致的跨域汙染畫布的解決辦法Canvas跨域
- 因login-path導致MySQL 啟動[ERROR]unknown variable 'password=*****'MySqlError
- MySQL 5.6因為OOM導致資料庫重啟MySqlOOM資料庫
- 解決crs_stat -t看到資源為UNKNOWN的情況
- 替換OCR和表決磁碟後,重啟叢集,資料庫資源的叢集狀態為OFFLINE資料庫
- ORACLE CRS 狀態 UNKNOWN 變為offlineOracle
- 10g RAC 服務的狀態是UNKNOWN解決方法
- Oracle10g RAC 服務的狀態是UNKNOWN解決方法Oracle
- 解決 ViewPager 巢狀導致的 Fragment 選單錯亂Viewpager巢狀Fragment
- @Transactional開啟事務導致AbstractRoutingDataSource動態資料來源無法切換的解決方案
- 【ASK_ORACLE】因process用盡導致的rac重啟的解決方法Oracle
- oracle監聽器啟動lsnrctl status例程的狀態為unknownOracle
- 解決一次gitlab因異常關機導致啟動失敗Gitlab
- RAC中unknown 狀態的處理方式
- 資料庫恢復狀態可能導致JOB無法自動執行資料庫
- 解決 allure.dynamic.parameter 不生效問題 或者 allure 報告中因為引數導致排版的問題
- ORACLE VM建立SERVER POOLS後狀態為ERR的解決OracleServer
- RAC因為localhost磁碟空間不夠導致has程式掛起localhost
- 機械硬碟出現“操作無法完成,因為磁碟管理控制檯檢視不是最新狀態”的解決方法硬碟
- Android靜態工具類ToastUtil因為傳入content不當導致Activity記憶體洩露AndroidAST記憶體洩露
- 【OCR】Oracle CRS 10.2.0.1版本Bug導致映象OCR時報PROT-22錯誤Oracle
- 因為跨域問題導致的無法讀取 response header跨域Header
- 神奇的DEBUG:因為異常導致MongoDB容器無法啟動MongoDB
- Spring Boot+AngularJS中因為跨域導致Session丟失Spring BootAngularJS跨域Session
- 異常程式導致大量資源佔用
- 解決Ecshop因為動態ip問題登入後臺自動退出
- 靜態資源跨域解決辦法--nginx跨域Nginx
- 解決因為原生程式碼和遠端程式碼衝突,導致git pull無法拉取遠端程式碼的問題Git
- [轉帖]JFR 定位因為 SSL 導致 CPU Load 飈高的問題
- CAS導致的ABA問題及解決
- openstack上建立vm例項後,狀態為ERROR問題解決Error
- VCS叢集狀態為 STALE_ADMIN_WAIT的解決AI