用隐含参数强制打开了一个损坏的数据库!
2010-06-18 21:14
375 查看
SQL> recover database using backup controlfile;
ORA-00279: change 8432224659950 generated at 01/17/2010 19:27:30 needed for
thread 2
ORA-00289: suggestion : /oraarchive/RPTS/RPTS_T2_S50307_R627534239.dbf
ORA-00280: change 8432224659950 for thread 2 is in sequence #50307
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/oradata4/RPTS/redo2/redo2_13.log
ORA-00279: change 8432224659950 generated at 01/17/2010 19:11:28 needed for
thread 1
ORA-00289: suggestion : /oraarchive/RPTS/RPTS_T1_S42412_R627534239.dbf
ORA-00280: change 8432224659950 for thread 1 is in sequence #42412
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
"/oradata1/RPTS/redo1/redo1_11.log "
ORA-00279: change 8432224659950 generated at 01/17/2010 19:19:40 needed for
thread 3
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/oraredo3/RPTS/redo3_14.log
ORA-00328: archived log ends at change 8432223302787, need later change
8432224659950
ORA-00334: archived log: '/oraredo3/RPTS/redo3_14.log'
SQL> recover database using backup controlfile until scn 8432224659950;
ORA-00277: illegal option to the UNTIL recovery flag SCN
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 8432224659950 generated at 01/17/2010 19:27:30 needed for
thread 2
ORA-00289: suggestion : /oraarchive/RPTS/RPTS_T2_S50307_R627534239.dbf
ORA-00280: change 8432224659950 for thread 2 is in sequence #50307
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00308: cannot open archived log
'/oraarchive/RPTS/RPTS_T2_S50307_R627534239.dbf'
ORA-27037: unable to obtain file status
SVR4 Error: 2: No such file or directory
Additional information: 3
ORA-00308: cannot open archived log
'/oraarchive/RPTS/RPTS_T2_S50307_R627534239.dbf'
ORA-27037: unable to obtain file status
SVR4 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: '/oradata1/RPTS/system01.dbf'
SQL> alter system set "_allow_resetlogs_corruption"=false scope=spfile;
System altered.
SQL> alter system set "_allow_resetlogs_corruption"=true scope=spfile;
System altered.
SQL> shutdown imedaite
SP2-0717: illegal SHUTDOWN option
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
Total System Global Area 1.0737E+10 bytes
Fixed Size 2047928 bytes
Variable Size 1493172296 bytes
Database Buffers 9227468800 bytes
Redo Buffers 14729216 bytes
Database mounted.
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-03113: end-of-file on communication channel
SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL>
SQL>
SQL>
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
$ ps -ef|grep ora_
oracle 16140 8069 0 03:40:53 pts/6 0:00 grep ora_
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.3.0 - Production on Tue Jan 19 03:41:03 2010
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL> startup nomount
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
Total System Global Area 1.0737E+10 bytes
Fixed Size 2047928 bytes
Variable Size 1493172296 bytes
Database Buffers 9227468800 bytes
Redo Buffers 14729216 bytes
SQL> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string /opt/app/oracle/product/10.2.0
/db_1/dbs/spfileRPTS3.ora
SQL> alter system set "_allow_resetlogs_corruption"=false scope=spfile;
System altered.
SQL> shutdown immediate
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> startup
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
Total System Global Area 1.0737E+10 bytes
Fixed Size 2047928 bytes
Variable Size 1493172296 bytes
Database Buffers 9227468800 bytes
Redo Buffers 14729216 bytes
Database mounted.
Database opened.
SQL>
SQL>
SQL>
SQL> select status from v$instance;
STATUS
------------
OPEN
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
$
ORA-00279: change 8432224659950 generated at 01/17/2010 19:27:30 needed for
thread 2
ORA-00289: suggestion : /oraarchive/RPTS/RPTS_T2_S50307_R627534239.dbf
ORA-00280: change 8432224659950 for thread 2 is in sequence #50307
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/oradata4/RPTS/redo2/redo2_13.log
ORA-00279: change 8432224659950 generated at 01/17/2010 19:11:28 needed for
thread 1
ORA-00289: suggestion : /oraarchive/RPTS/RPTS_T1_S42412_R627534239.dbf
ORA-00280: change 8432224659950 for thread 1 is in sequence #42412
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
"/oradata1/RPTS/redo1/redo1_11.log "
ORA-00279: change 8432224659950 generated at 01/17/2010 19:19:40 needed for
thread 3
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/oraredo3/RPTS/redo3_14.log
ORA-00328: archived log ends at change 8432223302787, need later change
8432224659950
ORA-00334: archived log: '/oraredo3/RPTS/redo3_14.log'
SQL> recover database using backup controlfile until scn 8432224659950;
ORA-00277: illegal option to the UNTIL recovery flag SCN
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 8432224659950 generated at 01/17/2010 19:27:30 needed for
thread 2
ORA-00289: suggestion : /oraarchive/RPTS/RPTS_T2_S50307_R627534239.dbf
ORA-00280: change 8432224659950 for thread 2 is in sequence #50307
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00308: cannot open archived log
'/oraarchive/RPTS/RPTS_T2_S50307_R627534239.dbf'
ORA-27037: unable to obtain file status
SVR4 Error: 2: No such file or directory
Additional information: 3
ORA-00308: cannot open archived log
'/oraarchive/RPTS/RPTS_T2_S50307_R627534239.dbf'
ORA-27037: unable to obtain file status
SVR4 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: '/oradata1/RPTS/system01.dbf'
SQL> alter system set "_allow_resetlogs_corruption"=false scope=spfile;
System altered.
SQL> alter system set "_allow_resetlogs_corruption"=true scope=spfile;
System altered.
SQL> shutdown imedaite
SP2-0717: illegal SHUTDOWN option
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
Total System Global Area 1.0737E+10 bytes
Fixed Size 2047928 bytes
Variable Size 1493172296 bytes
Database Buffers 9227468800 bytes
Redo Buffers 14729216 bytes
Database mounted.
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-03113: end-of-file on communication channel
SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL>
SQL>
SQL>
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
$ ps -ef|grep ora_
oracle 16140 8069 0 03:40:53 pts/6 0:00 grep ora_
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.3.0 - Production on Tue Jan 19 03:41:03 2010
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL> startup nomount
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
Total System Global Area 1.0737E+10 bytes
Fixed Size 2047928 bytes
Variable Size 1493172296 bytes
Database Buffers 9227468800 bytes
Redo Buffers 14729216 bytes
SQL> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string /opt/app/oracle/product/10.2.0
/db_1/dbs/spfileRPTS3.ora
SQL> alter system set "_allow_resetlogs_corruption"=false scope=spfile;
System altered.
SQL> shutdown immediate
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> startup
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
Total System Global Area 1.0737E+10 bytes
Fixed Size 2047928 bytes
Variable Size 1493172296 bytes
Database Buffers 9227468800 bytes
Redo Buffers 14729216 bytes
Database mounted.
Database opened.
SQL>
SQL>
SQL>
SQL> select status from v$instance;
STATUS
------------
OPEN
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
$
相关文章推荐
- 使用隐含参数模拟ORACLE数据库服务器掉,重做日志丢失打开数据库
- 非归档redo损坏的加_allow_resetlogs_corruption参数打开数据库
- 使用隐含参数模拟ORACLE数据库服务器掉,重做日志丢失打开数据库
- 数据库打开阶段,新增的数据文件损坏
- [K/3Cloud] 动态表单打开时传递一个自定义参数并在插件中获取
- ORACLE归档模式下的热备以及数据库打开状态状态下普通数据文件损坏后的还原
- 一个棘手的问题,在access数据库 做的一个小站上,数据库链接打开出错
- 数据库 'xxx' 已打开,并且一次只能有一个用户访问
- 数据库xxx已打开,并且一次只能有一个用户访问。 (Microsoft SQL Server,错误: 924)
- oracle 对一个数据库打开多个实例
- 如何理解一个实例在其生存期中最多只能装载和打开一个数据库
- SQLite学习笔记二《打开或创建一个数据库》
- 一个项目的一个参数,如分页数,颜色等,不用Global 怎么可以只读一次数据库后所有的页面都可以用这次读出来的值呢
- JS 打开一个模式窗口,使用Cookie传递一个参数
- oracle 对一个数据库打开多个实例
- vc使用ADO连接数据库 ADODB中的RecordSet.Open打开记录的两个参数adOpenKeyset、adLockBatchOptimistic的说明:
- oracle 对一个数据库打开多个实例
- DataGuard - 备用数据库方案中举足轻重的一个操作系统参数
- 将数据库中的数据通过 client 控件显示 (一个asp和javascript传参数的列子)
- asp.net 自己封装数据库操作一个类中一个自定义方法Execute(),非常实用,省去了麻烦的中间过程,动态参数