SQL> select DATABASE_ROLE from v$database;
DATABASE_ROLE
----------------
PHYSICAL STANDBY
SQL> select current_scn from v$database;
CURRENT_SCN
-----------------------
10180880784901
QL> alter database recover managed standby database cancel;
Database altered.
rman target /
run
{
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/stage/prod/Backup_30May/%F';
allocate channel c1 type disk format '/stage/prod/Backup/%U';
allocate channel c2 type disk format '/stage/prod/Backup/%U';
allocate channel c3 type disk format '/stage/prod/Backup/%U';
allocate channel c4 type disk format '/stage/prod/Backup/%U';
allocate channel c5 type disk format '/stage/prod/Backup/%U';
allocate channel c6 type disk format '/stage/prod/Backup/%U';
allocate channel c7 type disk format '/stage/prod/Backup/%U';
backup incremental from scn 10180880784901 database;
}
alter database create standby controlfile as '/stage/prod/Backup/for_standby.ctl'
SQL> startup nomount
replace the previous controlfile with this new one created at primary , and Bring the database to MOUNT state
alter database mount standby database;
rman target /
RMAN> catalog start with '/stage/prod/Backup/';
recover database;
Again Check the SCN’s in primary and standby to make sure that both are in SYNc:
SQL> select current_scn from v$database;
================================================================================================================
Option B
rman target sys/passwd@PROD auxiliary /
run
{
ALLOCATE AUXILIARY CHANNEL CH01 TYPE disk format '/stage/prod/Backup/%U';
ALLOCATE AUXILIARY CHANNEL CH02 TYPE disk format '/stage/prod/Backup/%U';
DUPLICATE TARGET DATABASE FOR STANDBY NOFILENAMECHECK;
}
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;
DATABASE_ROLE
----------------
PHYSICAL STANDBY
SQL> select current_scn from v$database;
CURRENT_SCN
-----------------------
10180880784901
QL> alter database recover managed standby database cancel;
Database altered.
rman target /
run
{
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/stage/prod/Backup_30May/%F';
allocate channel c1 type disk format '/stage/prod/Backup/%U';
allocate channel c2 type disk format '/stage/prod/Backup/%U';
allocate channel c3 type disk format '/stage/prod/Backup/%U';
allocate channel c4 type disk format '/stage/prod/Backup/%U';
allocate channel c5 type disk format '/stage/prod/Backup/%U';
allocate channel c6 type disk format '/stage/prod/Backup/%U';
allocate channel c7 type disk format '/stage/prod/Backup/%U';
backup incremental from scn 10180880784901 database;
}
alter database create standby controlfile as '/stage/prod/Backup/for_standby.ctl'
SQL> startup nomount
replace the previous controlfile with this new one created at primary , and Bring the database to MOUNT state
alter database mount standby database;
rman target /
RMAN> catalog start with '/stage/prod/Backup/';
recover database;
Again Check the SCN’s in primary and standby to make sure that both are in SYNc:
SQL> select current_scn from v$database;
================================================================================================================
Option B
rman target sys/passwd@PROD auxiliary /
run
{
ALLOCATE AUXILIARY CHANNEL CH01 TYPE disk format '/stage/prod/Backup/%U';
ALLOCATE AUXILIARY CHANNEL CH02 TYPE disk format '/stage/prod/Backup/%U';
DUPLICATE TARGET DATABASE FOR STANDBY NOFILENAMECHECK;
}
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;
No comments:
Post a Comment