ORA-01589: must use RESETLOGS or NORESETLOGS option for database open

SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open


SQL> alter database open noresetlogs;
alter database open noresetlogs
*
ERROR at line 1:
ORA-01588: must use RESETLOGS option for database open


SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '/u01/oradata/orac10g21/system01.dbf'


SQL> shutdown immediate
ORA-01109: database not open


Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area  167772160 bytes
Fixed Size                  1218316 bytes
Variable Size              71305460 bytes
Database Buffers           92274688 bytes
Redo Buffers                2973696 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-01113: file 1 needs media recovery
ORA-01110: data file 1: '/u01/oradata/orac10g21/system01.dbf'


SQL> recover database using backup controlfile until cancel;
ORA-00279: change 602446 generated at 10/12/2011 09:38:56 needed for thread 1
ORA-00289: suggestion :
/u01/flash_recovery_area/ORAC10G21/archivelog/2011_10_12/o1_mf_1_5_%u_.arc
ORA-00280: change 602446 for thread 1 is in sequence #5


Specify log: {=suggested | filename | AUTO | CANCEL}
AUTO
ORA-00308: cannot open archived log
'/u01/flash_recovery_area/ORAC10G21/archivelog/2011_10_12/o1_mf_1_5_%u_.arc'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3


ORA-00308: cannot open archived log
'/u01/flash_recovery_area/ORAC10G21/archivelog/2011_10_12/o1_mf_1_5_%u_.arc'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3


SQL> shutdown;
ORA-01109: database not open


Database dismounted.
ORACLE instance shut down.
SQL> startup pfile=/u01/admin/orac10g21/pfile/init.ora;
LRM-00109: could not open parameter file '/u01/admin/orac10g21/pfile/init.ora'
ORA-01078: failure in processing system parameters
SQL> startup pfile=/u01/admin/orac10g21/pfile/init.ora.82120119495;
ORACLE instance started.

Total System Global Area  167772160 bytes
Fixed Size                  1218316 bytes
Variable Size              62916852 bytes
Database Buffers          100663296 bytes
Redo Buffers                2973696 bytes
Database mounted.
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open


SQL> alter database open resetlogs;

Database altered.

SQL>


你可能感兴趣的:(Oracle实验,Oracle剖析)