• Home
  • DBA Scripts
    • Oracle Scripts
    • SQL Server Scripts
  • Knowledge Base
    • Oracle Database
    • MS SQL Server
    • MongoDB
    • MariaDB
  • Troubleshoot
    • Oracle Database Issues
    • SQL Server Issues
  • Interview Questions
    • AWS Interview Questions
    • Oracle DBA Interview Questions
    • SQL Server Interview Questions
  • Courses
    • Oracle Database
    • Oracle DBA L1
    • Oracle DBA L2
    • Oracle DBA L3
  • Home
  • DBA Scripts
    • Oracle Scripts
    • SQL Server Scripts
  • Knowledge Base
    • Oracle Database
    • MS SQL Server
    • MongoDB
    • MariaDB
  • Troubleshoot
    • Oracle Database Issues
    • SQL Server Issues
  • Interview Questions
    • AWS Interview Questions
    • Oracle DBA Interview Questions
    • SQL Server Interview Questions
  • Courses
    • Oracle Database
    • Oracle DBA L1
    • Oracle DBA L2
    • Oracle DBA L3
home/Knowledge Base/Oracle Database/Oracle Standby Database/Sync Oracle Standby Database using SCN Backup
Popular Search:Oracle, SQL Server, MongoDB

Sync Oracle Standby Database using SCN Backup

420 views 1 October 28, 2020 April 2, 2021 admin

##### Sync Oracle Standby DB using SCN Based Backup of Primary #####

Oracle Standby Database

NOTE: S = Standby Database and P = Primary Database

set line 180
set numf 999999999999999

1. S -> select min (checkpoint_change#) from v$datafile_header order by 1;
2. P -> SQL> alter system set log_archive_dest_state_2=defer scope=both;
3. P -> rman target /
RMAN> BACKUP INCREMENTAL FROM SCN 6041456613961 DATABASE FORMAT ‘/backup/PROD/SCN_BKP/PROD_bkp_%U.bak’ tag ‘4STNDBY’;
4. SCP the backup pieces to the standby server.
5. S -> SQL> alter database recover managed standby database cancel;
6. S -> Catalog backup pieces to standby site.
RMAN> catalog start with ‘/u04/stdby/BKP’;
7. S -> RMAN> recover database noredo;
8. P -> RMAN> BACKUP CURRENT CONTROLFILE FOR STANDBY TAG STANDBYCRTL FORMAT ‘/backup/PROD/SCN_BKP/PRIM_STANDBY.ctl’;
9. SCP the standby control file to the standby host and restore control file on standby database.
At Standby Server:
SQL> shutdown immediate;
SQL> startup nomount;
RMAN> RESTORE STANDBY CONTROLFILE FROM ‘/u04/stdby/BKP/PRIM_STANDBY.ctl’;
SQL> alter database mount;
10. P -> alter system set log_archive_dest_state_2=ENABLE scope=both;
11. S -> SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;

Was this helpful?

1 Yes  No
Related Articles
  • Delete Applied Archives from Standby Database
  • How to Build Oracle Standby Database
  • Step by Step Configuration Of Oracle 11gR2 Two Node RAC Dataguard Setup
  • Oracle 11gR2 RAC to RAC Standby Database Manual Failover Steps
Leave A Comment Cancel reply

Oracle Standby Database
  • Sync Oracle Standby Database using SCN Backup
  • Delete Applied Archives from Standby Database
  • How to Build Oracle Standby Database
  • Step by Step Configuration Of Oracle 11gR2 Two Node RAC Dataguard Setup
  • Oracle 11gR2 RAC to RAC Standby Database Manual Failover Steps
Popular Articles
  • Upgrade Oracle Database from 11.2.0.3 to 12.1.0.2
  • Upgrading MariaDB on Windows
  • Oracle DBA Basic Interview Questions Part A
  • Purging Oracle Sysaux Tablespace
  • Client – Server Architecture
KB Categories
  • Oracle Database
    • Oracle RAC
    • Oracle ASM
    • Oracle GoldenGate
    • Oracle Tuning
    • Oracle 11g Database
    • Oracle Database Upgrade
    • Oracle 12c Database
    • ALL KB Oracle
    • Oracle 18c Database
    • Oracle Standby Database
  • MongoDB
  • MS SQL Server
  • MySQL
  • Interview Questions
    • AWS Interview Questions
    • Oracle DBA Interview Questions
    • SQL Server Interview Questions
  • MariaDB
Database Organization

Database Organization (DB ORG) is knowledge base for DBA to learn and execute the fundamental of different databases under one website. DB ORG is a non-profit initiative. ORACLE, MS SQL Server, MongoDB, MariaDB, Couchbase

Join Our Community
  • KnowledgeBase
  • Documentation
  • Troubleshoot
  • FAQ
Information Links
  • About DBOrg
  • Licenses
  • Terms
  • Privacy Policy
Contact Us
    DB ORG - Database Administration,
    Knowledge Base for DBA
    Mail: support@databaseorg.com
    WhatsApp: (+91) 9306440957
    Monday to Friday: EST - 11:30 AM to 06:30 PM (IST - 9:00 PM to 4:00 AM)
  • © 2023 Database Organization - DB ORG. All Rights Reserved.

Popular Search:Oracle, SQL Server, MongoDB

WhatsApp DB Org