星期二, 2月 05, 2013

[Oracle 11g DataGuard ] Steps to convert Physical Standby Database to the Snapshot Standby Database

Steps to convert Physical Standby Database to the Snapshot Standby Database

The conversion from physical standby to snapshot standby database  can be done through the command

ALTER DATABASE CONVERT TO SNAPSHOT STANDBY; 

1) If not already configured , configure flash recovery area as given below

a) Set the size for recovery area.

Alter system set db_recovery_file_dest_size=<size>

b) Set Flash recovery area.

Alter system set db_recovery_file_dest=<path>

2) Bring the physical standby database to mount stage. 

3) Stop managed recovery if it is active. 

4) Convert physical standby database to snapshot standby database. 

ALTER DATABASE CONVERT TO SNAPSHOT STANDBY; 

The database is dismounted during conversion and must be restarted.

Once the database is restarted  any transaction can be executed .

SQL> select open_mode,database_role from v$database;

OPEN_MODE  DATABASE_ROLE
---------- ----------------
READ WRITE SNAPSHOT STANDBY
 
 
Steps to convert the Snapshot Standby Database to the Physical Standby Database
1. Shutdown the snapshot standby database.

2. Bring the database to the mount stage.

3. Issue the command

ALTER DATABASE CONVERT TO PHYSICAL STANDBY;


4. Shutdown the database and mount it .

SQL> select open_mode,database_role from v$database;

OPEN_MODE  DATABASE_ROLE
---------- ----------------
MOUNTED    PHYSICAL STANDBY


5. Start the media recovery process.
 

沒有留言:

LinkWithin-相關文件

Related Posts Plugin for WordPress, Blogger...