Flashback
Primary Database Flashback:
============================
create restore point gold;
flashback database to restore point gold;
alter database open resetlogs;
Standby Database Flashback:
============================
Convert this standby database to snapshot standby using this simple command:
SQL> alter database convert to snapshot standby;
SQL> shutdown immediate
ORA-01507: database not mounted
...
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
database opned in R/W mode and we can make changes in this database.
After your testing is completed, you would want to convert the snapshot standby database back to a regular physical standby database. Just follow the steps shown below:
SQL> connect / as sysdba
Connected.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
...
Database mounted.
SQL> alter database convert to physical standby;
Database altered.
Now shutdown, mount the database and start managed recovery.
SQL> shutdown
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
...
Database mounted.
Start the managed recovery process:
SQL> alter database recover managed standby database disconnect;
0 Comments:
Post a Comment
<< Home