Maximum Availability Architecture. Oracle Best Practices For High Availability

Similar documents
Deploying the Zero Data Loss Recovery Appliance in a Data Guard Configuration ORACLE WHITE PAPER MARCH 2018

An Oracle White Paper October The New Oracle Enterprise Manager Database Control 11g Release 2 Now Managing Oracle Clusterware

Maximum Availability Architecture. Oracle Best Practices For High Availability

An Oracle White Paper November Oracle RAC One Node 11g Release 2 User Guide

Veritas NetBackup and Oracle Cloud Infrastructure Object Storage ORACLE HOW TO GUIDE FEBRUARY 2018

An Oracle White Paper September Methods for Upgrading to Oracle Database 11g Release 2

Oracle Database 10g Release 2 Database Vault - Restricting the DBA From Accessing Business Data

Installation Instructions: Oracle XML DB XFILES Demonstration. An Oracle White Paper: November 2011

Technical White Paper August Recovering from Catastrophic Failures Using Data Replicator Software for Data Replication

An Oracle White Paper September Upgrade Methods for Upgrading to Oracle Database 11g Release 2

Technical Upgrade Guidance SEA->SIA migration

Configuring Oracle Business Intelligence Enterprise Edition to Support Teradata Database Query Banding

Advanced Global Intercompany Systems : Transaction Account Definition (TAD) In Release 12

Oracle Database 10g: Data Guard Administration

An Oracle White Paper November Primavera Unifier Integration Overview: A Web Services Integration Approach

RAC Database on Oracle Ravello Cloud Service O R A C L E W H I T E P A P E R A U G U S T 2017

Oracle Fusion Middleware 11g Oracle Access Manager Frequently Asked Questions June 2009

An Oracle White Paper July Methods for Downgrading from Oracle Database 11g Release 2

Partitioning in Oracle Database 10g Release 2. An Oracle White Paper May 2005

Maximum Availability Architecture. Oracle Best Practices for High Availability. Reducing Siebel Downtime with a Local Standby Database

Data Capture Recommended Operating Environments

Maximum Availability Architecture. Oracle Best Practices For High Availability

Oracle WebCenter Portal 11g Developer Workshop

Oracle FLEXCUBE Direct Banking Release Dashboard Widgets Transfer Payments User Manual. Part No. E

Using the Oracle Business Intelligence Publisher Memory Guard Features. August 2013

Managing Metadata with Oracle Data Integrator. An Oracle Data Integrator Technical Brief Updated December 2006

Improve Data Integration with Changed Data Capture. An Oracle Data Integrator Technical Brief Updated December 2006

Creating Custom Project Administrator Role to Review Project Performance and Analyze KPI Categories

Oracle Database Lite. Automatic Synchronization White Paper. An Oracle White Paper August 2008

Converting to Transparent Data Encryption with Oracle Data Guard using Fast Offline Conversion Oracle Database 12.1 and Oracle Database 11.

Oracle WebCenter Portal 11g Developer Workshop

JD Edwards EnterpriseOne Licensing

Generate Invoice and Revenue for Labor Transactions Based on Rates Defined for Project and Task

Loading User Update Requests Using HCM Data Loader

An Oracle White Paper May Oracle VM 3: Overview of Disaster Recovery Solutions

Oracle Clusterware 18c Technical Overview O R A C L E W H I T E P A P E R F E B R U A R Y

An Oracle White Paper April Deploying Oracle Data Guard with Oracle Database Appliance

Oracle FLEXCUBE Direct Banking Release Corporate Cash Management User Manual. Part No. E

An Oracle White Paper September Security and the Oracle Database Cloud Service

Oracle DIVArchive Storage Plan Manager

Correction Documents for Poland

Oracle Cloud Applications. Oracle Transactional Business Intelligence BI Catalog Folder Management. Release 11+

Oracle Data Provider for.net Microsoft.NET Core and Entity Framework Core O R A C L E S T A T E M E N T O F D I R E C T I O N F E B R U A R Y

Best Practice Guide for Implementing VMware vcenter Site Recovery Manager 4.x with Oracle ZFS Storage Appliance

Integrating Oracle SuperCluster Engineered Systems with a Data Center s 1 GbE and 10 GbE Networks Using Oracle Switch ES1-24

Automatic Receipts Reversal Processing

An Oracle White Paper December, 3 rd Oracle Metadata Management v New Features Overview

StorageTek ACSLS Manager Software Overview and Frequently Asked Questions

Maximum Availability Architecture

Oracle WebCenter Suite Integrating Secure Enterprise Search

Tutorial on How to Publish an OCI Image Listing

Technical White Paper August Migrating to Oracle 11g Using Data Replicator Software with Transportable Tablespaces

Frequently Asked Questions Oracle Content Management Integration. An Oracle White Paper June 2007

Handling Memory Ordering in Multithreaded Applications with Oracle Solaris Studio 12 Update 2: Part 2, Memory Barriers and Memory Fences

An Oracle Technical White Paper September Oracle VM Templates for PeopleSoft

Oracle Web Service Manager 11g Component Level Role Authorization (in SOA Suite) March, 2012

Oracle Database 10g Migration to Automatic Storage Management. An Oracle White Paper August 2005

Adding Mobile Capability to an Enterprise Application With Oracle Database Lite. An Oracle White Paper June 2007

Oracle Enterprise Performance Management Cloud

Oracle CIoud Infrastructure Load Balancing Connectivity with Ravello O R A C L E W H I T E P A P E R M A R C H

Oracle Enterprise Manager

Oracle Fusion General Ledger Hierarchies: Recommendations and Best Practices. An Oracle White Paper April, 2012

Oracle Best Practices for Managing Fusion Application: Discovery of Fusion Instance in Enterprise Manager Cloud Control 12c

Bulk Processing with Oracle Application Integration Architecture. An Oracle White Paper January 2009

Oracle Secure Backup. Getting Started. with Cloud Storage Devices O R A C L E W H I T E P A P E R F E B R U A R Y

Working with Time Zones in Oracle Business Intelligence Publisher ORACLE WHITE PAPER JULY 2014

Oracle VM 3: IMPLEMENTING ORACLE VM DR USING SITE GUARD O R A C L E W H I T E P A P E R S E P T E M B E R S N

Oracle Database 10g Workspace Manager Support for Oracle Spatial Topology Data Model. An Oracle White Paper May 2005

Using Oracle In-Memory Advisor with JD Edwards EnterpriseOne

Oracle Database Vault

Oracle Database Vault

SOA Cloud Service Automatic Service Migration

Receiving PeopleSoft Message (PeopleTools 8.17) through the Oracle AS PeopleSoft Adapter. An Oracle White Paper September 2008

April Understanding Federated Single Sign-On (SSO) Process

Oracle Financial Services Regulatory Reporting for US Federal Reserve Lombard Risk Integration Pack

Benefits of an Exclusive Multimaster Deployment of Oracle Directory Server Enterprise Edition

October Oracle Application Express Statement of Direction

An Oracle White Paper June Exadata Hybrid Columnar Compression (EHCC)

Oracle Fusion Configurator

WHAT S NEW IN ORACLE USER PRODUCTIVITY KIT PROFESSIONAL

An Oracle White Paper September Oracle Utilities Meter Data Management Demonstrates Extreme Performance on Oracle Exadata/Exalogic

Oracle FLEXCUBE Direct Banking Release Dashboard Widgets Customer Services User Manual. Part No. E

Achieving High Availability with Oracle Cloud Infrastructure Ravello Service O R A C L E W H I T E P A P E R J U N E

Sun Fire X4170 M2 Server Frequently Asked Questions

Oracle Grid Infrastructure 12c Release 2 Cluster Domains O R A C L E W H I T E P A P E R N O V E M B E R

ORACLE DATABASE LIFECYCLE MANAGEMENT PACK

Overview. Implementing Fibre Channel SAN Boot with the Oracle ZFS Storage Appliance. January 2014 By Tom Hanvey; update by Peter Brouwer Version: 2.

PPL Automatic Failover Data Guard 10g Release 2 High Availability & Disaster Recovery

Oracle Database 12c: JMS Sharded Queues

Oracle Service Registry - Oracle Enterprise Gateway Integration Guide

An Oracle White Paper July Oracle WebCenter Portal: Copying a Runtime-Created Skin to a Portlet Producer

Oracle 11g Data Guard Manual Failover Steps

Siebel CRM Applications on Oracle Ravello Cloud Service ORACLE WHITE PAPER AUGUST 2017

Establishing secure connections between Oracle Ravello and Oracle Database Cloud O R A C L E W H I T E P A P E R N O V E M E B E R

Oracle Enterprise Data Quality New Features Overview

WHAT S NEW IN ORACLE USER PRODUCTIVITY KIT

An Oracle White Paper February Optimizing Storage for Oracle PeopleSoft Applications

Highly Available Forms and Reports Applications with Oracle Fail Safe 3.0

Load Project Organizations Using HCM Data Loader O R A C L E P P M C L O U D S E R V I C E S S O L U T I O N O V E R V I E W A U G U S T 2018

August Oracle - GoldenGate Statement of Direction

Transcription:

MAA / Data Guard 10g Release 2 Setup Guide Creating a RAC Logical Standby for a RAC Primary Oracle Maximum Availability Architecture White Paper May 2006 Maximum Availability Architecture Oracle Best Practices For High Availability

MAA / Data Guard 10g Release 2 Setup Guide Creating a RAC Logical Standby for a RAC Primary Overview... 2 Task 1: Prepare the Physical Standby Environment... 3 Task 2: Convert the Physical Standby to a Logical Standby... 5 Task 3: Verify the Data Guard Configuration... 6 References... 6 Creating a RAC Logical Standby for a RAC Primary Page 1

MAA / Data Guard 10g Release 2 Setup Guide Creating a RAC Logical 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 logical standby database for a RAC primary database. This document assumes that there is an existing Oracle Data Guard configuration consisting of a RAC primary database that has been configured with a RAC physical standby database and that you want to convert this configuration to a RAC primary database with a RAC logical standby database. The steps to create the initial RAC primary database with a RAC physical standby database are described separately in the white paper MAA 10g Setup Guide: Creating a RAC Physical Standby Database for a RAC Primary Database [2]. The steps outlined in this document use SQL*Plus and srvctl and apply to Oracle Database 10g Release 2 databases already configured with Oracle Data Guard and do not require any primary database downtime. The example used in this document has the database unique name of the RAC primary database as CHICAGO. The instance names of the two RAC primary 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: Prepare the Physical Standby Environment Task 2: Convert the Physical Standby to a Logical Standby Task 3: Verify the Data Guard Configuration This document assumes that the following conditions are met: The primary and standby databases are using ASM. Creating a RAC Logical Standby for a RAC Primary Page 2

The primary and standby databases are using a flash recovery area. Oracle Managed Files (OMF) is used for all storage except as specifically noted. TASK 1: PREPARE THE PHYSICAL STANDBY ENVIRONMENT 1. If the Data Guard configuration is operating in an elevated protection mode, change the protection mode to Maximum Performance so that stopping the standby database will not impact operations on the primary database. For example, on the primary database: SQL> ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE; 2. Stop redo apply on the physical standby database. For example, on the standby database: SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL; 3. On the primary database, build a logical standby dictionary, then archive the current logs on the primary database several times to ensure that the log files with the dictionary are shipped to the standby: SQL> EXECUTE DBMS_LOGSTDBY.BUILD; SQL> ALTER SYSTEM ARCHIVE LOG CURRENT; SQL> ALTER SYSTEM ARCHIVE LOG CURRENT; 4. If you are using Enterprise Manager Grid Control and the Data Guard broker, turn off the broker by issuing the following command on both the primary and standby databases: SQL> ALTER SYSTEM SET DG_BROKER_START=FALSE SCOPE=BOTH; With the broker turned off, delete the Data Guard configuration files for each database (the locations of these files are specified by the database initialization parameters DG_BROKER_CONFIG_FILE1 and DG_BROKER_CONFIG_FILE2). Then remove the primary and standby databases from the list of database targets monitored by Grid Control. 5. Note that for Oracle 10g, the flash recovery area is not supported as a standby archive log destination for logical standby databases. However, you can create a directory within the flash recovery area diskgroup for the standby archive log destination. Connect to the ASM instance on one standby host and create a directory in the data or flash recovery area disk group to hold standby archive log files. For example: SQL> ALTER DISKGROUP data ADD DIRECTORY +RECO/BOSTON/ARC ; Creating a RAC Logical Standby for a RAC Primary Page 3

Then connect to the ASM instance on one primary host and create a similar directory so that the current primary database can operate as a logical standby in the event of a future role transition: SQL> ALTER DISKGROUP data ADD DIRECTORY +RECO/CHICAGO/ARC ; 6. Configure the parameters on each database as appropriate for the logical standby configuration. If Data Guard broker was previously enabled, LOG_ARCHIVE_DEST_10 may have been defined automatically by the broker to be the flash recovery area. The SQL commands that follow unset this destination and define appropriate destinations for a logical standby configuration. On the standby database: SQL> ALTER SYSTEM SET STANDBY_ARCHIVE_DEST='+RECO/BOSTON/ARC/ 2 SCOPE=BOTH SID='*'; SQL> ALTER SYSTEM SET 2 LOG_ARCHIVE_DEST_1='LOCATION=USE_DB_RECOVERY_FILE_DEST 3 VALID_FOR=(ONLINE_LOGFILES,ALL_ROLES) 4 DB_UNIQUE_NAME=BOSTON' SCOPE=BOTH; SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_1=ENABLE SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=CHICAGO 2 VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) LGWR SYNC AFFIRM 3 DB_UNIQUE_NAME=CHICAGO' SCOPE=BOTH; SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=ENABLE SQL> ALTER SYSTEM SET 2 LOG_ARCHIVE_DEST_3='LOCATION=+RECO/BOSTON/ARC/ 3 VALID_FOR=(STANDBY_LOGFILES, STANDBY_ROLE) 4 DB_UNIQUE_NAME=BOSTON' SCOPE=BOTH; SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_3=ENABLE SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_10='' SCOPE=BOTH; SQL> ALTER SYSTEM SET PARALLEL_MAX_SERVERS=9 SCOPE=BOTH; On the primary database: SQL> ALTER SYSTEM SET STANDBY_ARCHIVE_DEST= +RECO/CHICAGO/ARC/ 2 SCOPE=BOTH SID='*'; SQL> ALTER SYSTEM SET 2 LOG_ARCHIVE_DEST_1='LOCATION=USE_DB_RECOVERY_FILE_DEST 3 VALID_FOR=(ONLINE_LOGFILES,ALL_ROLES) 4 DB_UNIQUE_NAME=CHICAGO' SCOPE=BOTH; SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_1=ENABLE SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=BOSTON 2 VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) LGWR SYNC AFFIRM 3 DB_UNIQUE_NAME=BOSTON' SCOPE=BOTH; SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=ENABLE SQL> ALTER SYSTEM SET 2 LOG_ARCHIVE_DEST_3='LOCATION=+RECO/CHICAGO/ARC/ 3 VALID_FOR=(STANDBY_LOGFILES, STANDBY_ROLE) 4 DB_UNIQUE_NAME=CHICAGO' SCOPE=BOTH; SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_3=ENABLE SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_10='' SCOPE=BOTH; SQL> ALTER SYSTEM SET PARALLEL_MAX_SERVERS=9 SCOPE=BOTH; Creating a RAC Logical Standby for a RAC Primary Page 4

TASK 2: CONVERT THE PHYSICAL STANDBY TO A LOGICAL STANDBY 1. After shutting down all standby instance except for one set cluster_database to false and start the standby database as a single instance in mount exclusive mode: SQL> ALTER SYSTEM SET CLUSTER_DATABASE=FALSE SCOPE=SPFILE; SQL> SHUTDOWN ABORT; SQL> STARTUP MOUNT EXCLUSIVE; 2. From SQL*Plus, issue the ALTER DATABASE RECOVER TO LOGICAL STANDBY command. For example: SQL> ALTER DATABASE RECOVER TO LOGICAL STANDBY boston; 3. Set cluster database to true and bring the database to the mount state. From the mount state perform an open resetlogs. SQL> ALTER SYSTEM SET CLUSTER_DATABASE=TRUE SCOPE=SPFILE SQL> STARTUP MOUNT FORCE; SQL> ALTER DATABASE OPEN RESETLOGS; 4. 5. 6. Startup all other standby instances. Start logical standby apply on only one standby instance: SQL> ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE; On the primary database archive the current log to begin sending redo to the new logical standby: SQL> ALTER SYSTEM ARCHIVE LOG CURRENT; 7. If you plan to use Enterprise Manager Grid Control and the Data Guard broker to manage the configuration, perform the following steps using Enterprise Manager Grid Control: a. b. c. d. From the Targets Databases page, manually discover, configure, and re-add the primary and standby database targets. From the Setup page, enable Management Pack Access for the new targets From the Preferred Credentials page, set preferred credentials for the new targets From the primary database page, navigate to the Data Guard Setup and Manage page and invoke the Add Standby Database wizard. Use the option to add an existing standby database (note that you may get ORA-16825, ORA-16824, ORA-16821, or ORA-16810 warnings when the logical standby is initially added to the configuration). Wait (several minutes) while the logical standby database dictionary finishes loading and until any initial errors clear. Use EM GC to monitor the log apply services and, if necessary, restart the apply services to clear any errors. Creating a RAC Logical Standby for a RAC Primary Page 5

e. Use the DGMGRL command-line interface to confirm that the locallisteneraddress parameter has been correctly discovered for each database instance. For example: DGMGRL> show instance boston1 locallisteneraddress LocalListenerAddress = '(ADDRESS=(PROTOCOL=TCP)(HOST=boston2_hostvip)(PORT=1521))' DGMGRL> edit instance boston1 set property locallisteneraddress= '(ADDRESS=(PROTOCOL=TCP)(HOST=boston1_hostvip)(PORT=1521))' TASK 3: VERIFY THE DATA GUARD CONFIGURATION 1. If you are managing the Data Guard configuration using SQL*Plus, refer to Section 4.2.6 of the Data Guard Concepts and Administration manual for information on how to verify that the logical standby database is configured correctly. In general, you should confirm that changes made to the primary database are received and applied on the standby database. 2. If you are using Enterprise Manager Grid Control with the Oracle Data Guard Broker, navigate to the Data Guard primary database page and click Verify. Correct any problems that are discovered. If adding any recommended standby redo log files to the databases results in an ORA- 16826 error, use EM GC to reset the log apply services to clear the error and enable real-time apply. Note that status information displayed by the GUI may lag the actual configuration status by several minutes. 3. Once the logical standby is healthy, with logs being correctly received and applied, add standby redo logs, change the protection mode, enable faststart failover, etc. to prepare the new logical standby configuration for production use. REFERENCES 1. Oracle Maximum Availability Architecture website on OTN http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm 2. http://www.oracle.com/technology/deploy/availability/pdf/maa_wp_10g_racprimary RACPhysicalStandby.pdf Creating a RAC Logical Standby for a RAC Primary Page 6

MAA / Data Guard 10g Setup Guide Creating a RAC Logical Standby For a RAC Primary May 2006 Authors: Laurence Clarke, Michael T. 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 2006, 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.