---Check before resetlogs
alter session set nls_date_format='DD-MON-YYYY HH24:MI:SS' ;
SYS@FAKE> select fuzzy, status, error, recover, checkpoint_change#, checkpoint_time, count(*) from v$datafile_header group by fuzzy, status, error, recover, checkpoint_change#, checkpoint_time ;
FUZ STATUS ERROR REC CHECKPOINT_CHANGE# CHECKPOINT_TIME COUNT(*)
--- ------- ----------------------------------------------------------------- --- ------------------ -------------------- -----------------
YES ONLINE 267865 15-MAY-2015 14:45:25 4
YES ONLINE 269515 15-MAY-2015 15:19:13 1
2 rows selected.
5 rows selected.
SYS@FAKE> select file#,status, error, recover,fuzzy from v$datafile_header where fuzzy='YES';
FILE# STATUS ERROR REC FUZ
----------------- ------- ----------------------------------------------------------------- --- ---
1 ONLINE YES
2 ONLINE YES
3 ONLINE YES
4 ONLINE YES
5 ONLINE YES
5 rows selected.
SYS@FAKE> recover database using backup controlfile;
ORA-00279: change 267865 generated at 05/15/2015 14:45:25 needed for thread 1
ORA-00289: suggestion : C:\APP\DILIP\PRODUCT\11.1.0\DB_1\RDBMS\ARC00004_0741132407.001
ORA-00280: change 267865 for thread 1 is in sequence #4
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
C:\APP\DILIP\ORADATA\clone_test\O1_MF_2_6MP1X3CM_.log
Log applied.
Media recovery complete.
SYS@FAKE> select file#,status, error, recover,fuzzy from v$datafile_header where fuzzy='YES'; ---NO fuzzy
no rows selected
SYS@FAKE>
SYS@FAKE> select fuzzy, status, error, recover, checkpoint_change#, checkpoint_time, count(*) from v$datafile_header group by fuzzy, status, error, recover, checkpoint_change#, checkpoint_time ;
FUZ STATUS ERROR REC CHECKPOINT_CHANGE# CHECKPOINT_TIME COUNT(*)
--- ------- ----------------------------------------------------------------- --- ------------------ -------------------- -----------------
NO ONLINE 272859 15-MAY-2015 16:51:48 5
1 row selected.
SYS@FAKE>
---Good to go for resetlogs
SYS@FAKE> alter database open resetlogs;
Database altered.
SYS@FAKE>
alter session set nls_date_format='DD-MON-YYYY HH24:MI:SS' ;
SYS@FAKE> select fuzzy, status, error, recover, checkpoint_change#, checkpoint_time, count(*) from v$datafile_header group by fuzzy, status, error, recover, checkpoint_change#, checkpoint_time ;
FUZ STATUS ERROR REC CHECKPOINT_CHANGE# CHECKPOINT_TIME COUNT(*)
--- ------- ----------------------------------------------------------------- --- ------------------ -------------------- -----------------
YES ONLINE 267865 15-MAY-2015 14:45:25 4
YES ONLINE 269515 15-MAY-2015 15:19:13 1
2 rows selected.
5 rows selected.
SYS@FAKE> select file#,status, error, recover,fuzzy from v$datafile_header where fuzzy='YES';
FILE# STATUS ERROR REC FUZ
----------------- ------- ----------------------------------------------------------------- --- ---
1 ONLINE YES
2 ONLINE YES
3 ONLINE YES
4 ONLINE YES
5 ONLINE YES
5 rows selected.
SYS@FAKE> recover database using backup controlfile;
ORA-00279: change 267865 generated at 05/15/2015 14:45:25 needed for thread 1
ORA-00289: suggestion : C:\APP\DILIP\PRODUCT\11.1.0\DB_1\RDBMS\ARC00004_0741132407.001
ORA-00280: change 267865 for thread 1 is in sequence #4
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
C:\APP\DILIP\ORADATA\clone_test\O1_MF_2_6MP1X3CM_.log
Log applied.
Media recovery complete.
SYS@FAKE> select file#,status, error, recover,fuzzy from v$datafile_header where fuzzy='YES'; ---NO fuzzy
no rows selected
SYS@FAKE>
SYS@FAKE> select fuzzy, status, error, recover, checkpoint_change#, checkpoint_time, count(*) from v$datafile_header group by fuzzy, status, error, recover, checkpoint_change#, checkpoint_time ;
FUZ STATUS ERROR REC CHECKPOINT_CHANGE# CHECKPOINT_TIME COUNT(*)
--- ------- ----------------------------------------------------------------- --- ------------------ -------------------- -----------------
NO ONLINE 272859 15-MAY-2015 16:51:48 5
1 row selected.
SYS@FAKE>
---Good to go for resetlogs
SYS@FAKE> alter database open resetlogs;
Database altered.
SYS@FAKE>
No comments:
Post a Comment