I take DB out of managed recovery mode and into read only mode and clear
log files and everything looks okay now.
SQL> RECOVER MANAGED STANDBY DATABASE CANCEL;
Media recovery complete.
SQL> alter database open read only;
complete.
SQL> alter database clear unarchived logfile group 1;
Database altered.
SQL> alter database clear unarchived logfile group 2;
Database altered.
SQL> alter database clear unarchived logfile group 3;
Database altered.
If you check the primary, you would find something like the following result:
Code:
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
---------- ---------- ---------- ---------- ------- --- -------
1 1 517 5242880 1 NO CURRENT
You are correct my primary DB does say current (see below) but your not answering my question. Why does my status switch back to clearing_current after I cleared it and go back into recovery mode. I would have expected it to say current or am I missing something.
SQL> alter database clear unarchived logfile group 1;
Database altered.
SQL> alter database clear unarchived logfile group 2;
Database altered.
SQL> alter database clear unarchived logfile group 3;
Database altered.
Thank you for the clarificaiton, I was so concerned about the status I failed to look at the rest of the data. When you stay transistion, what exactly do you mean? Are the changes being applied, is the DB waiting to get more informaiton from the prim? .... Will one of the logs always be in transition mode as long as I am in media recovery.
... Are the changes being applied, is the DB waiting to get more informaiton from the prim? .... Will one of the logs always be in transition mode as long as I am in media recovery.
Yes and yes.
"The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb
Bookmarks