- 最后登录
- 2017-5-4
- 在线时间
- 81 小时
- 威望
- 999
- 金钱
- 2391
- 注册时间
- 2013-9-11
- 阅读权限
- 150
- 帖子
- 1124
- 精华
- 5
- 积分
- 999
- UID
- 1220
|
1#
发表于 2017-4-12 17:56:48
|
查看: 1598 |
回复: 1
oracle无法正常启动 ora-01013 ora03113
偶然发现数据库崩溃,无法打开,报ora-01013错误
#
# su - oracle
$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Sun Oct 30 05:25:41 2016
Copyright (c) 1982, 2009, Oracle.All rights reserved.
Connected to an idle instance.
SQL> startup
^CORA-01013: user requested cancel of current operation
SQL> startup
ORA-03113: end-of-file on communication channel
SQL> ^C^C
SQL>
SQL>
SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.
Total System Global Area780824576 bytes
Fixed Size 2217424 bytes
Variable Size 557845040 bytes
Database Buffers 218103808 bytes
Redo Buffers 2658304 bytes
Database mounted.
SQL> select status from v$instance;
STATUS
------------
MOUNTED
SQL>
SQL> set linesize 200;
SQL> select * from v$log;
GROUP# THREAD#SEQUENCE# BYTESBLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- ------------ ---------
1 1 67 52428800 512 1 NOINACTIVE 1145614 21-OCT-16 1171499 27-OCT-16
3 1 69 52428800 512 1 NOCURRENT 1177272 27-OCT-16 2.8147E+14
2 1 68 52428800 512 1 NOINACTIVE 1171499 27-OCT-16 1177272 27-OCT-16
SQL>
SQL>
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/home/oracle/app/oradata/orcl1/system01.dbf'
SQL> ^C
SQL>
SQL>
SQL> recover database until cancel using backup controlfile; =================重建了resetlog报错,恢复库到控制文件记录的时刻
ORA-00279: change 1177272 generated at 10/27/2016 22:47:07 needed for thread 1
ORA-00289: suggestion : /home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/arch1_69_922348413.dbf
ORA-00280: change 1177272 for thread 1 is in sequence #69
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00308: cannot open archived log '/home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/arch1_69_922348413.dbf'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
ORA-00308: cannot open archived log '/home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/arch1_69_922348413.dbf'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
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: '/home/oracle/app/oradata/orcl1/system01.dbf'
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/home/oracle/app/oradata/orcl1/system01.dbf'
SQL> recover datafile '/home/oracle/app/oradata/orcl1/system01.dbf';
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
SQL>
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 1177272 generated at 10/27/2016 22:47:07 needed for thread 1
ORA-00289: suggestion : /home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/arch1_69_922348413.dbf
ORA-00280: change 1177272 for thread 1 is in sequence #69
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
ORA-00308: cannot open archived log '/home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/arch1_69_922348413.dbf'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
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: '/home/oracle/app/oradata/orcl1/system01.dbf'
SQL> select v1.group#, member, sequence#, first_change#from v$log v1, v$logfile v2 where v1.group# = v2.group#;
GROUP#
----------
MEMBER
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SEQUENCE# FIRST_CHANGE#
---------- -------------
1
/home/oracle/app/oradata/orcl1/redo01.log
67 1145614
3
/home/oracle/app/oradata/orcl1/redo03.log
69 1177272
GROUP#
----------
MEMBER
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SEQUENCE# FIRST_CHANGE#
---------- -------------
2
/home/oracle/app/oradata/orcl1/redo02.log
68 1171499
SQL> ^C
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 1177272 generated at 10/27/2016 22:47:07 needed for thread 1
ORA-00289: suggestion : /home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/arch1_69_922348413.dbf
ORA-00280: change 1177272 for thread 1 is in sequence #69
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
ORA-00308: cannot open archived log '/home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/arch1_69_922348413.dbf'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
|
|