2 Getting Started With Data Guard: 2.1 Standby Database Types
2 Getting Started With Data Guard: 2.1 Standby Database Types
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/stan...
Oracle Data Guard Concepts and Administration 10g Release 2 (10.2) Part Number B14239-05
Previous Next
1 of 9
13/09/2011 2:19 PM
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/stan...
database. While opened in read-only mode, the standby database can continue to receive redo data, but application of the redo data from the log files is deferred until the database resumes Redo Apply. Although the physical standby database cannot perform both Redo Apply and be opened in read-only mode at the same time, you can switch between them. For example, you can perform Redo Apply, then open it in read-only mode for applications to run reports, and then change it back to perform Redo Apply to apply any outstanding archived redo log files. You can repeat this cycle, alternating between Redo Apply and read-only, as necessary. The physical standby database is available to perform backups. Furthermore, the physical standby database will continue to receive redo data even if archived redo log files or standby redo log files are not being applied at that moment. Open read/write A physical standby database can also be opened for read/write access for purposes such as creating a clone database or for read/write reporting. While opened in read/write mode, the standby database does not receive redo data from the primary database and cannot provide disaster protection. The physical standby database can be opened temporarily in read/write mode for development, reporting, or testing purposes, and then flashed back to a point in the past to be reverted back to a physical standby database. When the database is flashed back, Data Guard automatically synchronizes the standby database with the primary database, without the need to re-create the physical standby database from a backup copy of the primary database.
2 of 9
13/09/2011 2:19 PM
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/stan...
opened in read-only mode for reporting and queries. Performance The Redo Apply technology used by the physical standby database applies changes using low-level recovery mechanisms, which bypass all SQL level code layers; therefore, it is the most efficient mechanism for applying high volumes of redo data.
3 of 9
13/09/2011 2:19 PM
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/stan...
tasks involved in creating, configuring, and monitoring a Data Guard environment. See Oracle Data Guard Broker and the Oracle Enterprise Manager online Help for information about the GUI and its wizards. SQL*Plus Command-line interface Several SQL*Plus statements use the STANDBY keyword to specify operations on a standby database. Other SQL statements do not include standby-specific syntax, but they are useful for performing operations on a standby database. See Chapter 15 for a list of the relevant statements. Initialization parameters Several initialization parameters are used to define the Data Guard environment. See Chapter 13 for a list of the relevant initialization parameters. Data Guard broker command-line interface (DGMGRL) The DGMGRL command-line interface is an alternative to using Oracle Enterprise Manager. The DGMGRL command-line interface is useful if you want to use the broker to manage a Data Guard configuration from batch programs or scripts. See Oracle Data Guard Broker for complete information.
4 of 9
13/09/2011 2:19 PM
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/stan...
The following list describes Oracle software requirements for using Data Guard: Oracle Data Guard is available only as a feature of Oracle Database Enterprise Edition. It is not available with Oracle Database Standard Edition. This means the same release of Oracle Database Enterprise Edition must be installed on the primary database and all standby databases in a Data Guard configuration.
Note: It is possible to simulate a standby database environment with databases running Oracle Database Standard Edition. You can do this by manually transferring archived redo log files using an operating system copy utility or using custom scripts that periodically send archived redo log files from one database to the other. The consequence is that this configuration does not provide the ease-of-use, manageability, performance, and disaster-recovery capabilities available with Data Guard.
Using Data Guard SQL Apply, you will be able to perform a rolling upgrade of the Oracle database software from patch set release n (minimally, this must be release 10.1.0.3) to the next database 10.1.0.(n+1) patch set release. During a rolling upgrade, you can run different releases of the Oracle database on the primary and logical standby databases while you upgrade them, one at a time. For complete information, see Chapter 11, "Using SQL Apply to Upgrade the Oracle Database" and the ReadMe file for the applicable Oracle Database 10g patch set release. The COMPATIBLE initialization parameter must be set to the same value on all databases in a Data Guard configuration. If you are currently running Oracle Data Guard on Oracle8i database software, see Oracle Database Upgrade Guide for complete information about upgrading to Oracle Data Guard. The primary database must run in ARCHIVELOG mode. See Oracle Database Administrator's Guide for more information. The primary database can be a single instance database or a multi-instance Real Application Clusters database. The standby databases can be single instance databases or multi-instance Real Application Clusters (RAC) databases, and these standby databases can be a mix of both physical and logical types. See Oracle Database High Availability Overview for more information about configuring and using Oracle Data Guard with RAC. Each primary database and standby database must have its own control file. If a standby database is located on the same system as the primary database, the archival directories for the standby database must use a different directory structure than the primary database. Otherwise, the standby database may overwrite the primary database files. To protect against unlogged direct writes in the primary database that cannot be propagated to the standby database, turn on FORCE LOGGING at the primary database before performing datafile backups for standby creation. Keep the database in FORCE LOGGING mode as long as the standby database is required. The user accounts you use to manage the primary and standby database instances must have SYSDBA system privileges. Oracle recommends that when you set up Oracle Automatic Storage Management (ASM) and Oracle
5 of 9
13/09/2011 2:19 PM
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/stan...
Managed Files (OMF) in a Data Guard configuration, set it up symmetrically on the primary and standby database. That is, if any database in the Data Guard configuration uses ASM, OMF, or both, then every database in the configuration should use ASM, OMF, or both, respectively. See the scenario in Section 12.12 for more information.
Note: Because some applications that perform updates involving time-based data cannot handle data entered from multiple time zones, consider setting the time zone for the primary and remote standby systems to be the same to ensure the chronological ordering of records is maintained after a role transition.
Note: if any database in the Data Guard configuration uses ASM, OMF, or both, then every database in the configuration should use ASM, OMF, or both, respectively. See Chapter 12 for a scenario describing how to set up OMF in a Data Guard configuration.
6 of 9
13/09/2011 2:19 PM
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/stan...
Description of "Figure 2-1 Possible Standby Configurations" Table 2-1 describes possible configurations of primary and standby databases and the consequences of each. In the table, note that the service name defaults to the concatenation of the DB_UNIQUE_NAME and DB_DOMAIN initialization parameters. You must specify a unique value for the DB_UNIQUE_NAME initialization parameter when more than one member of a Data Guard configuration resides on the same system. Oracle recommends that the value of the DB_UNIQUE_NAME initialization parameter always be unique, even if each database is located on a separate system. Table 2-1 Standby Database Location and Directory Options
Standby System Same as primary system Directory Structure Different than primary system (required)
Consequences You must set the DB_UNIQUE_NAME initialization parameter. You can either manually rename files or set up the DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT initialization parameters on the standby database to automatically update the path names for primary database datafiles and archived redo log files and standby redo log files in the standby database control file. (See Section 3.1.4.) The standby database does not protect against disasters that destroy the system on which the primary and standby databases reside, but it does provide switchover capabilities for planned maintenance.
Separate system
You do not need to rename primary database files, archived redo log files, and standby redo log files in the standby database control file, although you can still do so if you want a new naming scheme (for example, to spread the files among different disks). By locating the standby database on separate physical media, you safeguard the data on the primary database against disasters that destroy the primary system.
Separate system
You can either manually rename files or set up the DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT initialization parameters on the standby database to automatically rename the datafiles (see Section 3.1.4). By locating the standby database on separate physical media, you safeguard the data on the primary database against disasters that destroy the primary
7 of 9
13/09/2011 2:19 PM
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/stan...
Standby System
Directory Structure
Consequences system.
2.5 Online Redo Logs, Archived Redo Logs, and Standby Redo Logs
The most crucial structures for Data Guard recovery operations are online redo logs, archived redo logs, and standby redo logs. Redo data transmitted from the primary database is received by the remote file server (RFS) process on the standby system where the RFS process writes the redo data to archived log files or standby redo log files. Redo data can be applied either after the redo is written to the archived redo log file or standby redo log file, or, if real-time apply is enabled, directly from the standby redo log file as it is being filled. This documentation assumes that you already understand the concepts behind online redo logs and archived redo logs. Section 2.5.1 supplements the basic concepts by providing information that is specific to Data Guard configurations. Section 2.5.2 provides detailed information about using standby redo log files. See Oracle Database Administrator's Guide for more information about redo logs and archive logs, and Section 6.2.1 for information about real-time apply.
8 of 9
13/09/2011 2:19 PM
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/stan...
See Also: Oracle Database Administrator's Guide for more details about configuring redo logs, archive logs, and log groups
Previous Next
Copyright 1999, Home 2008, Oracle. All rights reserved. Legal Notices
9 of 9
13/09/2011 2:19 PM