Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • replace alphabets using sed Linux/Unix
  • Drop tempfiles from database Oracle
  • good linux notes Linux/Unix
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • How to set Processes Parameter Oracle
  • Wait.sql Oracle
  • handling filenname with space Linux/Unix
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress
  • Oracle Data Direct to TAPE Oracle
  • scripts to take listener.log backup Linux/Unix
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • Consolidated Reference List Of Notes For Migration / Upgrade Service Requests -ID 762540.1 Oracle
  • 10g oem configuration Oracle

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

  • Virtual Indexes in Oracle Oracle
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • Jai Shree Ram Oracle
  • Oracle 11g Training on 29JAN1010 Oracle
  • Giving Grant on v$DATABASE Oracle
  • Find_planinfo.sql Oracle

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • Space padding in korn shell Linux/Unix
  • Zip and unzip with tar Linux/Unix
  • Read CSV file using PySpark Python/PySpark
  • Single character replacement in Unix Linux/Unix
  • This is from Temi Oracle
  • Nice notes on wait events Oracle
  • Changing the Global Database Name Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme