ORA-00205 error in identifying control file 問題解決一例

cnhtm發表於2010-02-12

在啟動資料庫的時候,報ORA-000205錯誤,詳細錯誤資訊如下:

idle> startup
ORACLE instance started.

Total System Global Area 209715200 bytes
Fixed Size 1218532 bytes
Variable Size 109053980 bytes
Database Buffers 92274688 bytes
Redo Buffers 7168000 bytes
ORA-00205: error in identifying control file, check alert log for more info

經過檢查alert.log,發現如下內容:

[@more@]
ALTER DATABASE MOUNT
Fri Feb 12 19:03:53 2010
Starting background process ASMB
ASMB started with pid=17, OS id=23258
Fri Feb 12 19:03:53 2010
ORA-00202: control file: '+DATA/cnhtm/controlfile/control01.dbf'
ORA-17503: ksfdopn:2 Failed to open file +DATA/cnhtm/controlfile/control01.dbf
ORA-15001: diskgroup "DATA" does not exist or is not mounted
ORA-15055: unable to connect to ASM instance
ORA-15055: unable to connect to ASM instance
Fri Feb 12 19:03:57 2010

確認是因為ASM例項錯誤導致資料庫例項無法啟動,下面著手解決ASM例項問題:

啟動ASM例項:

ora_test@oracle[/oracle/app/10.1/dbs]> export ORACLE_SID=+ASM

ora_test@oracle[/oracle/app/10.1/dbs]> sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 12 19:14:12 2010

Copyright (c) 1982, 2005, Oracle. All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
idle> startup
ASM instance started

Total System Global Area 79691776 bytes
Fixed Size 1217812 bytes
Variable Size 53308140 bytes
ASM Cache 25165824 bytes
ORA-15110: no diskgroups mounted

經過檢查,發現ASM的引數中沒有了asm_diskgroups引數,增加

asm_diskgroups=DATA

修改後的asm的引數檔案為:

ora_test@oracle[/oracle/app/10.1/dbs]> cat $ORACLE_HOME/dbs/init+ASM.ora
instance_type=asm
instance_name=+ASM
asm_diskgroups=DATA

然後再重啟asm例項,能夠正常啟動

ora_test@oracle[/oracle/app/10.1/dbs]> sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 12 19:16:38 2010

Copyright (c) 1982, 2005, Oracle. All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
idle> startup pfile='?/dbs/init+ASM.ora'
ASM instance started

Total System Global Area 79691776 bytes
Fixed Size 1217812 bytes
Variable Size 53308140 bytes
ASM Cache 25165824 bytes
ASM diskgroups mounted

用pfile生成spfile

idle> create spfile from pfile;

File created.

idle>

在asm例項正常啟動之後,資料庫例項也能夠正常啟動了

ora_test@oracle[/oracle/app/10.1/dbs]> export ORACLE_SID=cnhtm

ora_test@oracle[/oracle/app/10.1/dbs]> sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 12 19:17:20 2010

Copyright (c) 1982, 2005, Oracle. All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

idle> shutdown immediate
ORA-01507: database not mounted


ORACLE instance shut down.
idle> startup
ORACLE instance started.

Total System Global Area 209715200 bytes
Fixed Size 1218532 bytes
Variable Size 109053980 bytes
Database Buffers 92274688 bytes
Redo Buffers 7168000 bytes
Database mounted.
Database opened.

--end--

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22049049/viewspace-1031251/,如需轉載,請註明出處,否則將追究法律責任。

相關文章