In this Document
Applies to:Oracle Database - Enterprise Edition - Version 8.1.7.0 to 11.2.0.3 [Release 8.1.7 to 11.2]Information in this document applies to any platform. PurposeThis article basically talks about how RMAN can be used in a dataguard environment effectively. Scope
Data Guard enables and automates the management of a disaster recovery solution for Oracle databases located on the same campus or across the continent. Data Guard consists of a production database (also known as the primary database) and one or more standby database(s), which are transactionally consistent copies of the production database. DetailsCreating a standby database using RMAN.
Apart from manually creating the standby database, RMAN can also be used to create the standby database. There are several advantages to using RMAN to create a standby database:
Note 374069.1 Creating a Standby Database on a new host
There are a few other documents related to creation of a standby, but are describing a specific situation ASM related : Note 838828.1 Step-By-Step Guide To Create Physical Standby On Normal File System For ASM Primary using RMAN Note 837102.1 Step By Step Guide On Creating Physical Standby Using RMAN Duplicate In ASM Filesystem For ASM Primary Miscellaneous : Note 469493.1 Step By Step Guide To Create Physical Standby Database Using RMAN Backup and Restore Note 1075908.1 Step by Step Guide on Creating Physical Standby Using RMAN DUPLICATE...FROM ACTIVE DATABASE
Automatic maintenance of the archivelogs on the standby database using RMAN.By default, archived redo log files in a flash recovery area that were backed up to a tertiary device or made obsolete (as defined by the RMAN retention policy) are eligible for deletion. The archived redo log files that are backed up or obsolete can eventually be deleted automatically to make space if the disk space in the flash recovery area becomes full. However, you can change this default deletion policy using the following RMAN command:
RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO [CLEAR | NONE | APPLIED ON STANDBY];
Note 728053.1 Configure RMAN to purge archivelogs after applied on standby
Note 394261.1 How to Ensure that RMAN Does NOT Delete Archived Logs That Have Not Yet Shipped to Standby
Rolling forward a Standby database using rman incremental backups.
In some situations, RMAN incremental backups can be used to synchronize a physical standby database with the primary database. Using the RMAN BACKUP INCREMENTAL FROM SCN command, you can create a backup on the primary database that starts at the standby database's current SCN, which can then be used to roll the standby database forward in time.
Note.290814.1 Rolling a Standby Forward using an RMAN Incremental Backup in 10g
Note.290817.1 Rolling a Standby Forward using an RMAN Incremental Backup in 9i Note 958181.1 Rolling a Standby Forward using an RMAN Incremental Backup To Fix The Nologging Changes Note 836986.1 Steps to perform for Rolling forward a standby database using RMAN incremental backup when primary and standby are in ASM filesystem Miscellaneous : Note 605234.1 How to Copy ASM datafile From Primary Database to Standby Database on ASM using RMAN Note 1531031.1 Steps to perform for Rolling forward a standby database using RMAN incremental backup when datafile is added to primary
Using Rman backups to backup standby database
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
Note 602299.1 Benefits and Usage of RMAN with Standby Databases
Note 203980.1 How To Use RMAN For Backup And Restore In A Standby Database Environment Note 1419923.1 Howto make a consistent RMAN backup in an Standby database in Active DataGuard mode
Reinstating a Physical Standby Using Backups Instead of Flashback.
After a Data Guard failover to a physical standby database, using flashback database is still the MAA recommendation to reinstate the original primary database since it is the simplest and fastest approach. However, if for some reason the flashback data is not available or flashback database was not enabled before the failure, you can use the steps provided in this document to reinstate the original primary database using existing backups instead of flashback database.
Note 416310.1 Reinstating a Physical Standby Using Backups Instead of Flashback
Known issuesNote 357759.1 Known RMAN - Dataguard Problems
Note 1385911.1 RMAN-06131 error occurred during rman backup on standby database in dataguard environment
ReferencesNOTE:290814.1 - Rolling a Standby Forward using an RMAN Incremental Backup in 10gNOTE:203980.1 - How To Use RMAN For Backup And Restore In A Standby Database Environment NOTE:728053.1 - Configure RMAN to purge archivelogs after applied on standby NOTE:290817.1 - Rolling a Standby Forward using an RMAN Incremental Backup in 9i NOTE:374069.1 - Creating a Standby Database on a new host NOTE:416310.1 - Reinstating a Physical Standby Using Backups Instead of Flashback NOTE:602299.1 - Benefits and Usage of RMAN with Standby Databases NOTE:836986.1 - Steps to perform for Rolling forward a standby database using RMAN Incremental Backup. NOTE:958181.1 - Rolling a Standby Forward using an RMAN Incremental Backup To Fix The Nologging Changes NOTE:1531031.1 - Steps to perform for Rolling forward a standby database using RMAN incremental backup when datafile is added to primary |
|
来自: 浸心阁 > 《dataguard》