Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Finding Oracle Patches with opatch Oracle
  • sid_wise_sql.sql Further explaination Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • fkwoindex.sql /* Find FK without Index */ Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • How to choose Driver table in SQL statement Oracle
  • My Minimum Tuning Programs Oracle
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • Proc Compilation Oracle
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • normal maintenance for exp-imp and renaming table Oracle
  • find_pk.sql /* Find Primary Key */ Oracle
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress

Benefits and Usage of RMAN with Standby Databases

Posted on 09-Sep-2009 By Admin No Comments on Benefits and Usage of RMAN with Standby Databases

Subject: Benefits and Usage of RMAN with Standby Databases

Doc ID: 602299.1

Applies to:

Oracle Server – Enterprise Edition – Version: 9.0.1.4 to 11.1.0.6

Information in this document applies to any platform.

Goal

Benefits and Usage of RMAN with Standby Databases

.

Solution

RMAN can back up the standby database and its associated archived redo logs. Standby backups of datafiles and archived redo logs are fully interchangeable with primary database backups. In other words, you can run the RESTORE command to restore a backup of a standby datafile to the primary database, and you can restore a backup of a primary datafile to the standby database. The standby control file and primary control file, however, are not interchangeable. Although some files such as the control file and SPFILE must be backed up on the primary database.

Benefits of backing up database at standby site :

+ Because the standby database is not the production database, a standby backup does not interfere with transactions or batch jobs in the production database. Hence, you can use the standby database as a backup host without interfering with the production system.

+ If the standby and primary databases are on separate hosts, then standby backup operations do not consume CPU cycles, allocate memory, or consume other resources on the production host.

Note : Both the primary database and standby database should use the same recovery catalog. Even though these databases share the same DBID, RMAN is able to differentiate the standby database from the primary. Note that you do not need to register the standby database in the catalog if the primary is already registered: simply connect to the standby database and run the BACKUP command.

Backing Up a Standby Database with RMAN :

Use the RMAN BACKUP command to back up the standby database. A backup of the standby database is exactly the same as a backup of the primary database, except that the backup takes place on the standby site. The primary database has no influence on the backup of the standby database. Note that when you connect to the standby database to perform the backup, you connect using the TARGET keyword and not the AUXILIARY keyword.

As the following table shows, whether the standby database backup is consistent or inconsistent depends on the state of the standby database when the backup is made. Only a consistent backup can be restored without performing media recovery.

Standby Database Status Backup Status

Shutdown cleanly and then mounted (but not placed in recovery mode) Consistent

Mounted after instance failure or SHUTDOWN ABORT Inconsistent

Manual recovery mode Inconsistent

Managed recovery mode Inconsistent

Read-only mode Inconsistent

Example 1 : Performing a consistent/cold backup on the standby database :

sql> connect SYS/oracle@sbdb1

sql> SHUTDOWN IMMEDIATE

sql> STARTUP NOMMOUNT PFILE=initSTANDBY.ora

sql> ALTER DATABASE MOUNT STANDBY DATABASE;

$ rman target sys/oracle@sbdb1 catalog rmanUser/passwd@conn_catalog

RMAN> backup database;

RMAN> backup archivelog all;

Example 2 : Performing a inconsistent/hot backup on the standby database :

$ rman target sys/oracle@sbdb1 catalog rmanUser/passwd@conn_catalog

RMAN> backup database;

RMAN> backup archivelog all;

In Example 2 we are assuming that the database is in Managed recovery mode.

Note : The control file and SPFILE must be backed up on the primary database.

Oracle, rman-dataguard

Post navigation

Previous Post: backspace in SQL Plus not working then..?
Next Post: Backup and Recovery Scenarios

Related Posts

  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • Drop all SPM baselines for SQL handle Oracle
  • Implementing Listener Security Oracle
  • Temporary Tablespace Information and restriction. Oracle
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • Multiple listeners Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Goldengate Tutorial Oracle
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • catting.sh Linux/Unix
  • Search and replace editor command in vi Linux/Unix
  • Oracle 10g Wait Model Oracle
  • OEM-Commnds Oracle
  • eplan.sql Oracle
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme