WCDMA測試庫故障處理過程
WCDMA測試庫故障處理過程
1.問題定位
初步觀察,資料庫程式全部關閉,ipc資源也被釋放,但alert裡面沒有關閉和報錯資訊。
2.嘗試啟動資料庫
SQL>sqlplus / as sysdba
SQL>startup
Errors in file /opt/oracle/admin/GDWDB1/udump/gdwdb1_ora_13740.trc:
ORA-00320: cannot read file header from log 1 of thread 1
ORA-00312: online log 1 thread 1: '/data/GDWDB1/GDWDB1/redo01.log'
ORA-27091: unable to queue I/O
ORA-27069: attempt to do I/O beyond the range of the file
Additional information: 1
Additional information: 1
Thu Oct 8 16:53:48 2009
Aborting crash recovery due to error 320
Thu Oct 8 16:53:48 2009
Errors in file /opt/oracle/admin/GDWDB1/udump/gdwdb1_ora_13740.trc:
ORA-00320: cannot read file header from log 1 of thread 1
ORA-00312: online log 1 thread 1: '/data/GDWDB1/GDWDB1/redo01.log'
ORA-27091: unable to queue I/O
ORA-27069: attempt to do I/O beyond the range of the file
Additional information: 1
Additional information: 1
ORA-320 signalled during: ALTER DATABASE OPEN...
報的是redo檔案錯誤,無法讀取檔案頭。
檢視了一下redo檔案,發現三個redo檔案的大小都是0。
再檢視跟蹤檔案/opt/oracle/admin/GDWDB1/udump/gdwdb1_ora_13740.trc,也沒有看到什麼線索。
Ioctl ASYNC_CONFIG error, errno = 1
/opt/oracle/admin/GDWDB1/udump/gdwdb1_ora_17405.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /opt/oracle/OraHome_1
System name: HP-UX
Node name: GDWDB
Release: B.11.31
Version: U
Machine: ia64
Instance name: GDWDB1
Redo thread mounted by this instance: 1
Oracle process number: 0
Unix process pid: 17405, image: oracle@GDWDB
資料庫沒有歸檔也沒有備份。沒辦法,XX的東西,見怪不怪了。
3.既然redo檔案都沒有了,就無法保證資料的一致性了,先清理一下redo,故障依然,但具體錯誤也忘記了。
SQL>alter database clear unarchived logfile group 1;
SQL>alter database clear unarchived logfile group 2;
SQL>alter database clear unarchived logfile group 3;
4.使用resetlogs開啟資料庫
SQL> shutdown immediate
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 2.1475E+10 bytes
Fixed Size 2241992 bytes
Variable Size 5192837688 bytes
Database Buffers 1.6274E+10 bytes
Redo Buffers 5857280 bytes
Database mounted.
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 62463922 generated at 10/08/2009 18:52:37 needed for thread 1
ORA-00289: suggestion : /opt/oracle/OraHome_1/dbs/arch1_1_699734980.dbf
ORA-00280: change 62463922 for thread 1 is in sequence #1
Specify log: {
cancel
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/data/GDWDB1/GDWDB1/system01.dbf'
ORA-01112: media recovery not started
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-03113: end-of-file on communication channel
5.使用隱含引數_allow_resetlogs_corruption 以resetlogs方式開啟資料庫
SQL> shutdown immediate
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 2.1475E+10 bytes
Fixed Size 2241992 bytes
Variable Size 5192837688 bytes
Database Buffers 1.6274E+10 bytes
Redo Buffers 5857280 bytes
Database mounted.
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 62463922 generated at 10/08/2009 18:52:37 needed for thread 1
ORA-00289: suggestion : /opt/oracle/OraHome_1/dbs/arch1_1_699734980.dbf
ORA-00280: change 62463922 for thread 1 is in sequence #1
Specify log: {
cancel
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/data/GDWDB1/GDWDB1/system01.dbf'
ORA-01112: media recovery not started
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-03113: end-of-file on communication channel
檢視alert日誌,發現如下錯誤
Errors in file /opt/oracle/admin/GDWDB1/udump/gdwdb1_ora_1370.trc:
ORA-00600: internal error code, arguments: [2662], [0], [62464000], [0], [62512366], [8388617], [], []
Thu Oct 8 20:12:00 2009
Errors in file /opt/oracle/admin/GDWDB1/udump/gdwdb1_ora_1370.trc:
ORA-00600: internal error code, arguments: [2662], [0], [62464000], [0], [62512366], [8388617], [], []
Thu Oct 8 20:12:00 2009
Error 600 happened during db open, shutting down database
USER: terminating instance due to error 600
Instance terminated by USER, pid = 1370
ORA-1092 signalled during: ALTER DATABASE OPEN...
看看關於這個錯誤的資料,原因是scn不一致引起的
ORA-00600: internal error code, arguments: [2662], [0], [62464000], [0], [62512366], [8388617], [], []
就是說當前scn:62464000 < 檔案scn:62512366
6.強行推進scn
SQL>alter system set "_ALLOW_RESETLOGS_CORRUPTION"=false scope=spfile;
SQL>shutdown immediate
SQL>startup mount
SQL>alter session set events 'IMMEDIATE trace name ADJUST_SCN level 2';--將scn推進2百萬。
SQL>alter database open;
新的錯誤又出來了,
ksedmp: internal or fatal errorORA-00600: internal error code, arguments: [4193], [1171], [1187], [], [], [], [], []
Current SQL statement for this session:
UPDATE SMON_SCN_TIME SET SCN_WRP=:1, SCN_BAS=:2, TIME_MP=:3, TIME_DP=:4
WHERE TIME_MP = :5 AND THREAD = :6 AND ROWNUM <= 1
還有部分錯誤報undo的錯誤。
再看看資料,說這錯誤是上一錯誤ORA-00600: internal error code, arguments: [2662]引起的副作用,需要重建一下undo表空間。
7.重建undo表空間
SQL>create undo tablespace undotbs02 as datafile '/data/GDWDB1/undotbs02.dbf' size 500M;
SQL>alter system set undo_tablespace = undotbs02 scope=both;
SQL>shutdown immediate
SQL>startup
資料庫成功開啟。
8.使用expdp將資料備份。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13605188/viewspace-616196/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【故障處理】一次RAC故障處理過程
- HSG80故障處理過程
- [zt]Logical standby同步故障的處理過程
- oracle 案例-控制檔案丟失故障處理過程Oracle
- domino的java開發,找不到方法故障處理過程Java
- 百款防毒軟體測試:病毒樣本的處理過程(轉)防毒
- 資料庫變慢的處理過程資料庫
- 測試環境控制檔案被誤刪的故障處理
- 詳述一條SQL引發的高CPU故障處理過程SQL
- 【故障處理】ORA-30012的解決過程
- 異常處理過程
- ORACLE資料庫壞塊的處理 (一次壞快處理過程)Oracle資料庫
- DML 語句處理過程
- Nucleus中斷處理過程!!!!
- oracle處理SQL的過程OracleSQL
- 儲存過程在主從庫上的測試儲存過程
- 神通資料庫測試環境調優過程資料庫
- 一次資料庫異常的處理過程資料庫
- MongoDB故障處理MongoDB
- 軟體效能測試有哪些測試過程?
- 【WebLogic故障處理】一次嚴重的WebLogic記憶體洩漏問題處理過程Web記憶體
- 故障分析 | Greenplum Segment 故障處理
- Sqlyog過期處理試用SQL
- informix資料庫頁故障的處理方法ORM資料庫
- 【原始碼】Redis命令處理過程原始碼Redis
- 某次BW 異常處理過程
- ora-14452處理過程
- ora-04031處理過程
- SQL語句的處理過程SQL
- 分散裝運處理的過程
- 系統測試-從研發到測試過程
- 不停機處理oracle超過最大processes數故障Oracle
- 【故障處理】DBCA建庫詭異問題處理--rac環境不能建立rac庫
- GPON網路故障如何處理?GPON網路故障處理流程
- 【故障處理】ORA-600:[13013],[5001]故障處理
- 【故障處理】ORA- 2730*,status 12故障分析與處理
- ORACLE儲存過程中建立子過程的測試!Oracle儲存過程
- linux故障處理Linux