Maximum Availability Architecture. Oracle Best Practices For High Availability



Similar documents
Maximum Availability Architecture. Oracle Best Practices For High Availability

Recreate Physical Standby Database after Recovery of Primary Database

Oracle Easy Connect Naming. An Oracle White Paper October 2007

Maximum Availability Architecture. Oracle Best Practices For High Availability

Oracle Data Guard for High Availability and Disaster Recovery

Use RMAN to relocate a 10TB RAC database with minimum downtime. Tao Zuo tao_zuo@npd.com NPD Inc. 9/2011

Clonación de una Base de Datos Oracle 11gR2 Activa usando RMAN. CLONACIÓN DE UNA BASE DE DATOS ORACLE 11gR2 ACTIVA USANDO RMAN

DOCUMENTATION ORACLE BACKUP & RESTORE OPERATIONS

SAP with Oracle Real Application Clusters 11g Release 2 and Oracle Automatic Storage Management 11g Release 2

Backup/Restore Oracle 8i/9i/10g

HOW TO. RMAN Restore for Standby 10gR2

An Oracle White Paper October Oracle Database and IPv6 Statement of Direction

Oracle Recovery Manager 10g. An Oracle White Paper November 2003

One View Report Samples Warehouse Management

Using RMAN to restore a database to another server in an ASM environment

An Oracle White Paper March Oracle Transparent Data Encryption for SAP

Oracle 12c Recovering a lost /corrupted table from RMAN Backup after user error or application issue

Backing Up Oracle Databases with Handy Backup

An Oracle White Paper July Introducing the Oracle Home User in Oracle Database 12c for Microsoft Windows

If you have not multiplexed your online redo logs, then you are only left with incomplete recovery. Your steps are as follows:

An Oracle White Paper December Advanced Network Compression

Oracle Data Guard. Caleb Small Puget Sound Oracle Users Group Education Is Our Passion

Oracle Net Services for Oracle10g. An Oracle White Paper May 2005

An Oracle White Paper September Oracle WebLogic Server 12c on Microsoft Windows Azure

Database Disaster Recovery using only RMAN Backups

An Oracle White Paper March Oracle Data Guard Broker. Best Practices for Configuring Redo Transport for Data Guard and Active Data Guard 12c

Next Generation Siebel Monitoring: A Real World Customer Experience. An Oracle White Paper June 2010

Monitoring and Diagnosing Production Applications Using Oracle Application Diagnostics for Java. An Oracle White Paper December 2007

An Oracle White Paper October Frequently Asked Questions for Oracle Forms 11g

Strategies for Oracle Database Backup and Recovery: Case Studies. Mingguang Xu

An Oracle White Paper October BI Publisher 11g Scheduling & Apache ActiveMQ as JMS Provider

Manage Oracle Database Users and Roles Centrally in Active Directory or Sun Directory. Overview August 2008

Database Recovery For Newbies

ORACLE CORE DBA ONLINE TRAINING

Maximum Availability Architecture. Oracle Best Practices For High Availability. Backup and Recovery Scenarios for Oracle WebLogic Server: 10.

TECHNICAL REPORT. Nimble Storage Oracle Backup and Recovery Guide

Deploying Oracle Database 12c with the Oracle ZFS Storage Appliance

Disaster Recovery for Oracle Database

BrightStor ARCserve Backup

Maximum Availability Architecture. Oracle Best Practices For High Availability

Oracle SQL Developer Migration. An Oracle White Paper September 2008

This appendix describes the following procedures: Cisco ANA Registry Backup and Restore Oracle Database Backup and Restore

Implementing a Custom Search Interface with SES - a case study with search.oracle.com. An Oracle White Paper June 2006

Load Balancing Oracle Web Applications. An Oracle White Paper November 2004

Setup Flashback Database on Data Guard Physical Standby Database for SAP Customers

Instant Client: An Overview. An Oracle White Paper May 2004

An Oracle White Paper June, Provisioning & Patching Oracle Database using Enterprise Manager 12c.

ASM and for 3rd Party Snapshot Solutions - for Offhost. Duane Smith Nitin Vengurlekar RACPACK

Deloitte Solutions Network (SNET) Disaster Recovery POC on Amazon EC2

One View Report Samples Financials

Managed Storage Services

Configuring and Integrating Oracle

Long User ID and Password Support In JD Edwards EnterpriseOne

Oracle BI Publisher Enterprise Cluster Deployment. An Oracle White Paper August 2007

An Oracle White Paper June Creating an Oracle BI Presentation Layer from Imported Oracle OLAP Cubes

Recover Oracle Database upon losing all Control Files

Using Recovery Manager with Oracle Data Guard in Oracle Database 10g. An Oracle White Paper April 2009

Restoring To A Different Location With EBU And RMAN An AppsDBA Consulting White Paper

Oracle FLEXCUBE Direct Banking Release Corporate Foreign Exchange User Manual. Part No. E

Best Practices White Paper Using Oracle Database 10g Automatic Storage Management with FUJITSU Storage

An Oracle White Paper January Oracle Database Backup Service A Technical White Paper

Using Recovery Manager with Oracle Data Guard in Oracle9i. An Oracle White Paper January 2007

Oracle 11gR2 : Recover dropped tablespace using RMAN tablespace point in time recovery

PRM For Oracle Database 3.1 GUI:

Oracle VM Manager Template. An Oracle White Paper February 2009

An Oracle White Paper June Oracle Single Client Access Name (SCAN)

Oracle 10g Feature: RMAN Incrementally Updated Backups

ORACLE ENTERPRISE MANAGER 10 g CONFIGURATION MANAGEMENT PACK FOR ORACLE DATABASE

Oracle SQL Developer Migration

An Oracle White Paper March Backup and Recovery Strategies for the Oracle Database Appliance

An Oracle White Paper January A Technical Overview of New Features for Automatic Storage Management in Oracle Database 12c

An Oracle White Paper November Oracle Real Application Clusters One Node: The Always On Single-Instance Database

An Oracle White Paper February Oracle Data Pump Quick Start

Achieving Sarbanes-Oxley Compliance with Oracle Identity Management. An Oracle White Paper September 2005

Integrating Tutor and UPK Content: A Complete User Documentation Solution. An Oracle White Paper April 2008

Installation Companion Oracle Data Guard on Amazon EC2 Configuration Guide

Oracle 11g DBA Online Course - Smart Mind Online Training, Hyderabad. Oracle 11g DBA Online Training Course Content

Reference Architecture for HP Data Protector and Oracle 11gR2 RAC on Linux

An Oracle White Paper June How to Install and Configure a Two-Node Cluster

Maximum Availability Architecture

Oracle Application Server

RMAN What is Rman Why use Rman Understanding The Rman Architecture Taking Backup in Non archive Backup Mode Taking Backup in archive Mode

EMC Replication Manager Integration with Oracle Database Server

Oracle Active Data Guard Far Sync Zero Data Loss at Any Distance

Oracle Fusion Middleware

Oracle Fusion Applications Splitting Topology from Single to Multiple Host Servers

An Oracle White Paper July Oracle ACFS

An Oracle White Paper June Oracle Database Firewall 5.0 Sizing Best Practices

Configuring Microsoft Active Directory 2003 for Net Naming. An Oracle White Paper September 2008

Configuring Microsoft Active Directory for Oracle Net Naming. An Oracle White Paper April 2014

How to Best Configure, Size, and Monitor the Oracle Database Fast Recovery Area

An Oracle White Paper September Oracle Database Smart Flash Cache

Oracle Primavera P6 Enterprise Project Portfolio Management Performance and Sizing Guide. An Oracle White Paper October 2010

Getting all the pieces: Reliable Backup/Recovery

Transcription:

MAA / Data Guard 10g Setup Guide Creating a RAC Physical Standby for a RAC Primary Oracle Maximum Availability Architecture White Paper April 2007 Maximum Availability Architecture Oracle Best Practices For High Availability

MAA / Data Guard 10g Setup Guide Creating a RAC Physical Standby for a RAC Primary Overview... 2 Task 1: Gather Files and Perform Back Up... 3 Task 2: Configure Oracle Net SERVICES on the Standby... 3 Task 3: Create the Standby Instances and Database... 4 Task 4: Configure The Primary Database For Data Guard... 9 Task 5: Verify Data Guard Configuration... 10 References... 11 Creating a RAC Physical Standby for a RAC Primary Page 1

MAA / Data Guard 10g Setup Guide Creating a RAC Physical Standby for a RAC Primary OVERVIEW Oracle Maximum Availability Architecture (MAA) [1] is Oracle's best practices blueprint based on proven Oracle high-availability technologies and recommendations. The goal of MAA is to remove the complexity in designing the optimal high-availability architecture. Published as part of the MAA series of white papers, this paper focuses on creating a RAC physical standby database for a RAC primary database. This document assumes that there is an existing RAC database and you want to implement Data Guard by adding a standby database to the configuration. The end configuration for this document is a RAC primary database with a RAC standby database. The steps outlined in this document use SQL*Plus, apply to both Oracle Database 10g Release 1 and Oracle Database 10g Release 2, and they assume using ASM/OMF, and that the software and ASM instance on the standby host have already been installed/created. The example used in this document has the database unique name of the RAC database as CHICAGO. The instance names of the two RAC instances are CHICAGO1 (on node chicago_host1) and CHICAGO2 (on node chicago_host2). The database unique name of the RAC standby database is BOSTON, and the two standby instance names are BOSTON1 (on node boston_host1) and BOSTON2 (on node boston_host2). This document includes the following tasks: Task 1: Gather Files and Perform Back Up Task 2: Configure Oracle Net on the Standby Task 3: Create the Standby Instances and Database Task 4: Configure the Primary Database for Data Guard Task 5: Verify Data Guard Configuration This document assumes that the following conditions are met: The primary RAC database is in archivelog mode The primary RAC database is using ASM. Creating a RAC Physical Standby for a RAC Primary Page 2

The standby RAC cluster already has ASM instances created The primary and standby databases are using a flash recovery area. The standby RAC hosts have existing Oracle software installation. Oracle Managed Files (OMF) is used for all storage. TASK 1: GATHER FILES AND PERFORM BACK UP 1. On the primary node, create a staging directory. For example: [oracle@chicago_host1 oracle]$ mkdir -p /opt/oracle/stage 2. Create the same exact path on one of the standby hosts: [oracle@boston_host1 oracle]$ mkdir -p /opt/oracle/stage 3. On the primary node, connect to the primary database and create a PFILE from the SPFILE in the staging directory. For example: SQL> CREATE PFILE='/opt/oracle/stage/initCHICAGO.ora' FROM SPFILE; 4. On the primary node, perform an RMAN backup of the primary database that places the backup pieces into the staging directory. For example: [oracle@chicago_host1 stage]$ rman target / RMAN> BACKUP DEVICE TYPE DISK FORMAT '/opt/oracle/stage/%u' DATABASE PLUS ARCHIVELOG; RMAN> BACKUP DEVICE TYPE DISK FORMAT '/opt/oracle/stage/%u' CURRENT CONTROLFILE FOR STANDBY; 5. Place a copy of the listener.ora, tnsnames.ora, and sqlnet.ora files into the staging directory. For example: [oracle@chicago_host1 oracle]$ cp $ORACLE_HOME/network/admin/*.ora /opt/oracle/stage 6. Copy the contents of the staging directory on the RAC primary node to the standby node on which the staging directory was created on in step 2. For example: [oracle@chicago_host1 oracle]$ scp /opt/oracle/stage/* \ oracle@boston_host1:/opt/oracle/stage TASK 2: CONFIGURE ORACLE NET SERVICES ON THE STANDBY 1. Copy the listener.ora, tnsnames.ora, and sqlnet.ora files from the staging directory on the standby host to the $ORACLE_HOME/network/admin directory on all standby hosts. 2. Modify the listener.ora file each standby host to contain the VIP address of that host. Creating a RAC Physical Standby for a RAC Primary Page 3

3. Modify the tnsnames.ora file on each node, including the primary RAC nodes and standby RAC nodes, to contain all primary and standby net service names. You should also modify the Oracle Net aliases that are used for the local_listener and remote_listener parameters to point to the listener on each standby host. In this example, each tnsnames.ora file should contain all of the net service names in the following table: Example Entries in the tnsnames.ora Files Primary Net Service Names Standby Net Service Name CHICAGO = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = chicago_host1vip) (HOST = chicago_host2vip) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = CHICAGO) ) ) BOSTON = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = boston_host1vip) (HOST = boston_host2vip) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = BOSTON) ) ) 4. Start the standby listeners on all standby hosts. TASK 3: CREATE THE STANDBY INSTANCES AND DATABASE 1. To enable secure transmission of redo data, make sure the primary and standby databases use a password file, and make sure the password for the SYS user is identical on every system. For example: $ cd $ORACLE_HOME/dbs $ orapwd file=orapwboston password=oracle The naming and location of the password file varies on different platforms. See Creating and Maintaining a Password File in the Oracle Database Administrator s Guide for more information. 2. Copy and rename the primary database PFILE from the staging area on all standby hosts to the $ORACLE_HOME/dbs directory on all standby hosts. For example: [oracle@boston_host1 stage]$ cp initchicago1.ora $ORACLE_HOME/dbs/initBOSTON1.ora 3. Modify the standby initialization parameter file copied from the primary node to include Data Guard parameters as illustrated in the following table: Creating a RAC Physical Standby for a RAC Primary Page 4

Initialization Parameter Modifications Parameter Category RAC Parameters Before *.cluster_database=true *.db_unique_name=chicago CHICAGO1.instance_name=CHICAGO1 CHICAGO2.instance_name=CHICAGO2 CHICAGO1.instance_number=1 CHICAGO2.instance_number=2 CHICAGO1.thread=1 CHICAGO2.thread=2 CHICAGO1.undo_tablespace=UNDOTBS1 CHICAGO2.undo_tablespace=UNDOTBS2 *.remote_listener=listeners_chicago CHICAGO1.LOCAL_LISTENER=LISTENER_CHICAGO_HOST1 CHICAGO2.LOCAL_LISTENER=LISTENER_CHICAGO_HOST2 After *.cluster_database=true *.db_unique_name=boston BOSTON1.instance_name=BOSTON1 BOSTON2.instance_name=BOSTON2 BOSTON1.instance_number=1 BOSTON2.instance_number=2 BOSTON1.thread=1 BOSTON2.thread=2 BOSTON1.undo_tablespace=UNDOTBS1 BOSTON2.undo_tablespace=UNDOTBS2 *.remote_listener=listeners_boston BOSTON1.LOCAL_LISTENER=LISTENER_BOSTON_HOST1 BOSTON2.LOCAL_LISTENER=LISTENER_BOSTON_HOST2 Data Guard Parameters *.log_archive_config='dg_config= (BOSTON,CHICAGO)' *.log_archive_dest_2='service=chicago valid_for=(online_logfiles,primary_role) db_unique_name=chicago' *.db_file_name_convert='+data/chicago/', '+DATA/BOSTON/','+RECOVERY/CHICAGO', '+RECOVERY/BOSTON' *.log_file_name_convert='+data/chicago/', '+DATA/BOSTON/','+RECOVERY/CHICAGO', '+RECOVERY/BOSTON' *.standby_file_management=auto *.fal_server='chicago' *.fal_client='boston' *.service_names='boston' Other parameters *.background_dump_dest= /opt/oracle/admin/chicago/bdump *.core_dump_dest= /opt/oracle/admin/chicago/cdump *.user_dump_dest= /opt/oracle/admin/chicago/udump *.audit_file_dest= /opt/oracle/admin/chicago/adump *.db_recovery_dest= +RECOVERY *.log_archive_dest_1 = 'LOCATION=+DATA/CHICAGO/' *.dispatchers=chicagoxdb *.background_dump_dest= /opt/oracle/admin/boston/bdump *.core_dump_dest= /opt/oracle/admin/boston/cdump *.user_dump_dest= /opt/oracle/admin/boston/udump *.audit_file_dest= /opt/oracle/admin/boston/adump *.db_recovery_dest= +RECOVERY *.log_archive_dest_1= 'LOCATION=USE_DB_RECOVERY_FILE_DEST' *.dispatchers=bostonxdb In the above example the primary and standby datafiles are in a single ASM diskgroup. If the primary and standby datafiles are distributed across multiple ASM diskgroups then the unset the DB_CREATE_FILE_DEST parameter prior to starting the standby instance. For further information refer to MetaLink note 340848.1. Creating a RAC Physical Standby for a RAC Primary Page 5

For more information about these initialization parameters, see Chapter 13, Initialization Parameters in Oracle Data Guard Concepts and Administration manual. If you are using an SPFILE instead of an initialization parameter file, then see the Managing Initialization Parameters Using a Server Parameter File section in the Oracle Database Administrator s Guide for instructions on managing an SPFILE. 4. Connect to the ASM instance on one standby host, and create a directory within the DATA disk group that has the same name as the DB_UNIQUE_NAME of the standby database. For example: SQL> ALTER DISKGROUP data ADD DIRECTORY '+DATA/BOSTON'; 5. Connect to the standby database on one standby host, with the standby in the IDLE state, and create an SPFILE in the standby DATA disk group: SQL> CREATE SPFILE='+DATA/BOSTON/spfileBOSTON.ora' FROM PFILE='?/dbs/initBOSTON.ora'; 6. In the $ORACLE_HOME/dbs directory on each standby host, create a PFILE that is named initoracle_sid.ora that contains a pointer to the SPFILE. For example: [oracle@boston_host1 oracle]$ cd $ORACLE_HOME/dbs [oracle@boston_host1 dbs]$ echo "SPFILE='+DATA/BOSTON/spfileBOSTON.ora'" > initboston1.ora 7. Create the dump directories on all standby hosts as referenced in the standby initialization parameter file. For example: [oracle@boston_host1 oracle]$ mkdir -p $ORACLE_BASE/admin/BOSTON/bdump [oracle@boston_host1 oracle]$ mkdir -p $ORACLE_BASE/admin/BOSTON/cdump [oracle@boston_host1 oracle]$ mkdir -p $ORACLE_BASE/admin/BOSTON/udump [oracle@boston_host1 oracle]$ mkdir -p $ORACLE_BASE/admin/BOSTON/adump 8. After setting up the appropriate environment variables on each standby host, such as ORACLE_SID, ORACLE_HOME, and PATH, start the standby database instance on the standby host that has the staging directory, without mounting the control file. SQL> STARTUP NOMOUNT 9. From the standby host where the standby instance was just started, duplicate the primary database as a standby into the ASM disk group. For example: $ rman target sys/oracle@chicago auxiliary / RMAN> DUPLICATE TARGET DATABASE FOR STANDBY; 10. Connect to the standby database, and create the standby redo logs to support the standby role. The standby redo logs must be the same size as Creating a RAC Physical Standby for a RAC Primary Page 6

the primary database online logs. The recommended number of standby redo logs is: (maximum # of logfiles +1) * maximum # of threads This example uses two online log files for each thread. Thus, the number of standby redo logs should be (2 + 1) * 2 = 6. That is, one more standby redo log file for each thread. SQL> ALTER DATABASE ADD STANDBY LOGFILE THREAD 1 GROUP 5 SIZE 10M, GROUP 6 SIZE 10M, GROUP 7 SIZE 10M; SQL> ALTER DATABASE ADD STANDBY LOGFILE THREAD 2 GROUP 8 SIZE 10M, GROUP 9 SIZE 10M, GROUP 10 SIZE 10M; These statements create two standby log members for each group, and each member is 10MB in size. One member is created in the directory specified by the DB_CREATE_FILE_DEST initialization parameter, and the other member is created in the directory specified by DB_RECOVERY_FILE_DEST initialization parameter. Because this example assumes that there are two redo log groups in two threads, the next group is group five. You can check the number and group numbers of the redo logs by querying the V$LOG view: SQL> SELECT * FROM V$LOG; You can check the results of the previous statements by querying the V$STANDBY_LOG view: SQL> SELECT * FROM V$STANDBY_LOG; You can also see the members created by querying the V$LOGFILE view: SQL> SELECT * FROM V$LOGFILE; See the Configure a Standby Redo Log section in Oracle Data Guard Concepts and Administration manual for more information. 11. On only one standby host (and this is your designated Redo Apply instance), start managed recovery and real-time apply on the standby database: SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT; 12. On either node of the standby cluster, register the standby database and the database instances with the Oracle Cluster Registry (OCR) using the Server Control (SRVCTL) utility. For example: $ srvctl add database -d BOSTON o /opt/oracle/product/10g_db_rac $ srvctl add instance -d BOSTON -i BOSTON1 -n boston_host1 $ srvctl add instance -d BOSTON -i BOSTON2 -n boston_host2 Creating a RAC Physical Standby for a RAC Primary Page 7

The following are descriptions of the options in these commands: The -d option specifies the database unique name (DB_UNIQUE_NAME) of the database. The -i option specifies the database insance name. The -n option specifies the node on which the instance is running. The -o option specifies the Oracle home of the database. Register the ASM instance with the OCR: $ srvctl add asm -n boston_host1 -i +ASM1 o /opt/oracle/product/10g_db_rac p /opt/oracle/product/10g_db_rac/dbs/spfile+asm1.ora $ srvctl add asm -n boston_host2 -i +ASM2 -o /opt/oracle/product/10g_db_rac p /opt/oracle/product/10g_db_rac/dbs/spfile+asm2.ora The following are descriptions of the options in these commands: The -i option specifies the ASM instance name. If your ASM instance is named +ASM1, then specify it with the + included. In crs_stat output, the resource name will not have the + in the resource name. However, the + must be specified when an ASM instance name is specified in SRVCTL commands. The n option specifies the node name on which the ASM instance is running. The -o option specifies the Oracle home for the ASM instance. The -p option specifies the fully-qualified filename of the SPFILE, if the ASM instance is using an SPFILE. This option is not needed if you are using a PFILE located in $ORACLE_HOME/dbs directory. The following commands establish the dependency between the database instance and the ASM instance. Again, the ASM instance name must be specified with a + if that is the ASM instance name. $ srvctl modify instance d BOSTON i BOSTON1 s +ASM1 $ srvctl modify instance d BOSTON i BOSTON2 s +ASM2 $ srvctl enable asm -n boston_host1 -i +ASM1 $ srvctl enable asm -n boston_host2 -i +ASM2 The following are descriptions of the options in these commands: The -d option specifies the database unique name (DB_UNIQUE_NAME) of the database. The -i option specifies the database instance name. The -s option specifies the ASM instance name. Creating a RAC Physical Standby for a RAC Primary Page 8

The following commands start, from the OCR standpoint, all ASM instances defined for the node specified by the n option. If the ASM instance is already running, it will change the status in crs_stat output from OFFLINE to ONLINE. $ srvctl start asm n boston_host1 $ srvctl start asm n boston_host2 If you have multiple ASM instances running on the same node, and only want to start a specific ASM instance, then specify the ASM instance name using the i option, as in the following example: $ srvctl start asm n boston_host1 i +ASM1 TASK 4: CONFIGURE THE PRIMARY DATABASE FOR DATA GUARD 1. Configure the primary database initialization parameters to support both the primary and standby roles. *.log_archive_config='dg_config=(boston,chicago)' *.log_archive_dest_2='service=boston valid_for=(online_logfiles,primary_role) db_unique_name=boston' *.db_file_name_convert='+data/boston/', +DATA/CHICAGO/', +RECOVERY/BOSTON, +RECOVERY/CHICAGO *.log_file_name_convert='+data/boston/', +DATA/CHICAGO/', +RECOVERY/BOSTON, +RECOVERY/CHICAGO *.standby_file_management=auto *.fal_server='boston' *.fal_client='chicago' *.service_names=chicago For more information about these initialization parameters, see Chapter 13, Initialization Parameters in the Oracle Data Guard Concepts and Administration manual. If you are using an SPFILE instead of an initialization parameter file, then see the Managing Initialization Parameters Using a Server Parameter File section in the Oracle Database Administrator s Guide for instructions on managing an SPFILE. Note that all the parameters listed above can be dynamically modified with the exception of the standby role parameters log_file_name_convert and db_file_name_convert. It is recommended to set the parameters with scope=spfile so that they can be put into effect upon the next role change. 2. Create standby redo logs on the primary database to support the standby role. The standby redo logs are the same size as the primary database online logs. The recommended number of standby redo logs is one more than the number of online redo logs for each thread. Because this example has two online redo logs for each thread, three standby redo logs are required for each thread. Creating a RAC Physical Standby for a RAC Primary Page 9

SQL> ALTER DATABASE ADD STANDBY LOGFILE THREAD 1 GROUP 5 SIZE 10M, GROUP 6 SIZE 10M, GROUP 7 SIZE 10M; SQL> ALTER DATABASE ADD STANDBY LOGFILE THREAD 2 GROUP 8 SIZE 10M, GROUP 9 SIZE 10M, GROUP 10 SIZE 10M; These statements create two standby log members for each group, and each member is 10MB in size. One member is created in the directory specified by the DB_CREATE_FILE_DEST initialization parameter, and the other member is created in the directory specified by DB_RECOVERY_FILE_DEST initialization parameter. Because this example assumes that there are two redo log groups in two threads, the next group is group five. You can check the number and group numbers of the redo logs by querying the V$LOG view: SQL> SELECT * FROM V$LOG; You can check the results of the previous statements by querying the V$STANDBY_LOG view: SQL> SELECT * FROM V$STANDBY_LOG; You can also see the members created by querying V$LOGFILE view: SQL> SELECT * FROM V$LOGFILE; See the Configure a Standby Redo Log section in Oracle Data Guard Concepts and Administration manual for more information. TASK 5: VERIFY DATA GUARD CONFIGURATION 1. On the standby database, query the V$ARCHIVED_LOG view to identify existing files in the archived redo log. For example: SQL> SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#; 2. On the primary database, issue the following SQL statement to force a log switch and archive the current online redo log file group: SQL> ALTER SYSTEM ARCHIVE LOG CURRENT; 3. On the standby database, query the V$ARCHIVED_LOG view to verify that the redo data was received and archived on the standby database: SQL> SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#; Creating a RAC Physical Standby for a RAC Primary Page 10

REFERENCES 1. Oracle Maximum Availability Architecture website on OTN http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm Creating a RAC Physical Standby for a RAC Primary Page 11

MAA / Data Guard 10g Setup Guide Creating a RAC Physical Standby For a RAC Primary April, 2007 Author: Mike Smith Oracle Corporation World Headquarters 500 Oracle Parkway Redwood Shores, CA 94065 U.S.A. Worldwide Inquiries: Phone: +1.650.506.7000 Fax: +1.650.506.7200 oracle.com Copyright 2007, Oracle. All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or fitness for a particular purpose. We specifically disclaim any liability with respect to this document and no contractual obligations are formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without our prior written permission. Oracle, JD Edwards, and PeopleSoft are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.