Maximum Availability Architecture. Oracle Best Practices For High Availability



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

Maximum Availability Architecture

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

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

Maximum Availability Architecture. Oracle Best Practices For High Availability

Disaster Recovery for Oracle Database

Recreate Physical Standby Database after Recovery of Primary Database

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

One View Report Samples Warehouse Management

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

Maximum Availability Architecture. Oracle Best Practices For High Availability

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

An Oracle White Paper July Oracle ACFS

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

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

Automatic Service Migration in WebLogic Server An Oracle White Paper July 2008

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

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

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

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

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

Managed Storage Services

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

An Oracle White Paper November Backup and Recovery with Oracle s Sun ZFS Storage Appliances and Oracle Recovery Manager

Guide to Database as a Service (DBaaS) Part 2 Delivering Database as a Service to Your Organization

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

Database Disaster Recovery using only RMAN Backups

Oracle Hyperion Financial Management Virtualization Whitepaper

An Oracle White Paper March Oracle Transparent Data Encryption for SAP

Oracle VM Manager Template. An Oracle White Paper February 2009

Oracle On Demand Infrastructure: Virtualization with Oracle VM. An Oracle White Paper November 2007

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

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

Oracle Data Guard for High Availability and Disaster Recovery

Best Practices for Optimizing Storage for Oracle Automatic Storage Management with Oracle FS1 Series Storage ORACLE WHITE PAPER JANUARY 2015

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

Oracle Communications Network Discovery Overview. Updated June 2007

Oracle Database Backup Service. Secure Backup in the Oracle Cloud

Oracle SQL Developer Migration. An Oracle White Paper September 2008

BrightStor ARCserve Backup

Oracle Database Backup & Recovery, Flashback* Whatever, & Data Guard

One View Report Samples Financials

Top Ten Reasons for Deploying Oracle Virtual Networking in Your Data Center

Highmark Unifies Identity Data With Oracle Virtual Directory. An Oracle White Paper January 2009

An Oracle White Paper February Integration with Oracle Fusion Financials Cloud Service

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

Introduction. Automated Discovery of IT assets

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

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

Oracle Utilities Mobile Workforce Management Benchmark

Oracle Data Guard Fast Start Failover understood!

Long User ID and Password Support In JD Edwards EnterpriseOne

Technical Upgrade Considerations for JD Edwards World Customers. An Oracle White Paper February 2013

Virtual Compute Appliance Frequently Asked Questions

Oracle Database 10g: Backup and Recovery 1-2

Deploying Oracle Database 12c with the Oracle ZFS Storage Appliance

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

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

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

SUN ORACLE DATABASE MACHINE

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

An Oracle White Paper September Oracle Database Smart Flash Cache

Oracle Database Gateways. An Oracle White Paper July 2007

Oracle Data Guard OTN Case Study SWEDISH POST

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

Oracle Data Integrator and Oracle Warehouse Builder Statement of Direction

ORACLE CORE DBA ONLINE TRAINING

An Oracle White Paper May Exadata Smart Flash Cache and the Oracle Exadata Database Machine

Oracle Fusion Applications Splitting Topology from Single to Multiple Host Servers

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

Oracle Easy Connect Naming. An Oracle White Paper October 2007

Express Implementation for Electric Utilities

An Oracle White Paper July Oracle Desktop Virtualization Simplified Client Access for Oracle Applications

An Oracle White Paper March Best Practices for Real-Time Data Warehousing

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

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

Oracle Primavera Gateway

Oracle Enterprise Single Sign-on Technical Guide An Oracle White Paper June 2009

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

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

Configuring and Integrating Oracle

Highly Available NFS over Oracle ASM Cluster File System (ACFS)

ORACLE PROJECT PLANNING AND CONTROL

An Oracle White Paper February Real-time Data Warehousing with ODI-EE Changed Data Capture

An Oracle White Paper March Oracle s Single Server Solution for VDI

WEBLOGIC SERVER MANAGEMENT PACK ENTERPRISE EDITION

Rob Zoeteweij Zoeteweij Consulting

An Oracle White Paper February Oracle Data Pump Quick Start

Migration Best Practices for OpenSSO 8 and SAM 7.1 deployments O R A C L E W H I T E P A P E R M A R C H 2015

An Oracle White Paper July Accelerating Database Infrastructure Using Oracle Real Application Clusters 11g R2 and QLogic FabricCache Adapters

An Oracle White Paper November Oracle Business Intelligence Standard Edition One 11g

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

ORACLE ENTERPRISE MANAGER 10 g CONFIGURATION MANAGEMENT PACK FOR ORACLE DATABASE

Oracle SQL Developer Migration

Transcription:

Best Practices for Minimal Downtime Migration to ASM Oracle 10g Release 2 Oracle Maximum Availability Architecture White Paper May 2007 Maximum Availability Architecture Oracle Best Practices For High Availability

Minimal Downtime Migration to ASM Oracle 10g Release 2 Introduction... 3 Oracle Automatic Storage Management... 3 Oracle Data Guard... 4 ASM Migration Steps using Oracle Data Guard... 4 Prepare the Source Database... 5 Prepare the Data Guard Standby Database... 6 Instantiate the Standby Database in ASM... 7 Enable Oracle Data Guard 10g... 8 Use Data Guard Switchover to Move Production to ASM... 9 Perform Post ASM Migration Steps... 10 Appendix: Sample parameter files... 12 Database Parameter files for Different Server or Cluster Migration.. 12 Source Database Parameter File... 12 Standby Database Parameter File... 12 Source Database Parameter File Oracle RAC... 13 Standby Database Parameter File Oracle RAC... 13 Database Parameter Files for Same Server or Cluster Migration... 14 Source Database Parameter File... 14 Standby Database Parameter File... 14 Source Database Parameter File Oracle RAC... 15 Standby Database Parameter File Oracle RAC... 16 References... 16 MAA Best Practices - Minimal Downtime Migration to ASM Page 2

Minimal Downtime Migration to ASM Oracle 10g Release 2 Best Practices INTRODUCTION This paper describes procedures to dramatically reduce downtime during the process of migrating Oracle databases residing on raw partitions, volumes or conventional file systems to Automatic Storage Management (ASM) by using Oracle Recovery Manager (RMAN) and Oracle Data Guard. This paper is equally relevant to existing Data Guard users who want to migrate to ASM, and users who do not currently use Data Guard, but who seek to minimize downtime during migration to ASM. There are several alternative approaches to performing ASM migration. Oracle recommends using one of the following methods: ASM migration using Oracle Data Guard physical standby: Use this method if your requirement is to minimize downtime during the migration. It is possible to reduce total downtime to just seconds by using the best practices described in this white paper. ASM migration using Oracle RMAN: A simpler approach, but one that can result in downtime measured in minutes to hours, depending on the method used for migration. This RMAN procedures for migrating your database to ASM are documented in the Oracle Database Backup and Recovery Advance User s Guide 10g Release 2, Chapter 16 ORACLE AUTOMATIC STORAGE MANAGEMENT Oracle Database 10g Automatic Storage Management (ASM) is an integrated volume manager and file system for Oracle database files. ASM simplifies database storage administration by automating the layout of Oracle database files, such as datafiles, control files, redo log files, and backup files. ASM brings significant key values to Oracle Database platforms at no additional cost. ASM improves manageability by simplifying storage provisioning, storage array migration, and storage consolidation. ASM provides flexible easy-to-manage interfaces including the SQL*Plus, Oracle Enterprise Manager GUIs and a UNIX-like command line interface. ASM provides sustained best-in-class performance because of its MAA Best Practices - Minimal Downtime Migration to ASM Page 3

innovative rebalancing feature that distributes data evenly across all storage resources, providing for an even distribution of I/O and optimal performance. ASM is the preferred file system and volume manager for Oracle database files because ASM: Simplifies and automates storage management Increases storage utilization, uptime, and agility Delivers predictable performance and availability service level agreements ORACLE DATA GUARD Data Guard is a central component of an integrated Oracle Database High Availability (HA) solution set that helps organizations ensure business continuity by minimizing the various kinds of planned and unplanned downtime that can affect the business. Data Guard provides the management, monitoring, and automation software infrastructure to create, maintain, and monitor one or more standby databases, to protect enterprise data from failures, disasters, errors, and data corruptions. Going beyond traditional Disaster Recovery (DR) solutions, you can configure Data Guard to automatically fail over the production database to a standby system if the primary database fails, thus achieving a level of high availability required for mission critical applications. In addition to providing HA/DR, Data Guard standby databases also support production functions for reporting, queries, backups and testing, while in a standby database role. The procedures described in this paper provide an example of how Data Guard can also help reduce planned downtime. The following list summarizes the procedures described in this paper: 1. Create a Data Guard standby database. 2. Migrate the standby database to ASM and test until you are satisfied that the migration has been successful. 3. Execute a planned switchover, transforming the standby database into the new primary database. The switchover can be executed in seconds. This is the only downtime required for the migration. 4. If you are using Data Guard as an HA/DR solution, you can then migrate the new standby (old primary database) into ASM, resulting in all databases in your Data Guard configuration having been migrated to ASM. ASM MIGRATION STEPS USING ORACLE DATA GUARD The steps described in this section assume you create a physical standby database for the sole purpose of minimizing downtime during your migration to ASM. MAA Best Practices - Minimal Downtime Migration to ASM Page 4

Note: If you have an existing Data Guard configuration with a physical standby database that you can use to perform the migration to ASM, use the procedures described in Chapter 16 of the Oracle Database Backup and Recovery Advance User s Guide 10g Release 2 to perform the migration. Of course, when following this procedure it is always recommended that you convert standby databases first, then perform a switchover to minimize the downtime required to convert your primary database. For clarity (and because this paper assumes you will use Data Guard for a one-time migration), the instructions use SQL*Plus commands to create the standby database, enable the Data Guard configuration, and perform a Data Guard switchover. However, if you plan to use Data Guard on an ongoing basis, consider using the Data Guard Broker management interface (DGMGRL) or Enterprise Manager, to greatly simplify creation and management of your Data Guard configuration [2]. These steps have been verified on a configuration running Oracle Database 10g Release 2 (10.2). Migration to ASM can occur on either the same or a different server or cluster. The steps differ slightly depending on if the target is on a different server or cluster. The differences are highlighted, where necessary. The high-level steps include: Prepare the Source database Prepare the Data Guard standby database Instantiate the Standby database in ASM Enable Oracle Data Guard 10g Move production to ASM with Data Guard switchover Perform post ASM migration steps The Appendix contains a copy of the database parameter files used to migrate a database called sales for two scenarios where: The target database is on the same machine The target database is on a different machine Prepare the Source Database To prepare the source database for migration, run the following steps: 1. Using RMAN, create a backup of the database including a copy of the current controlfile that you will use for the standby database. RMAN> connect target / RMAN> backup database include current controlfile for standby; MAA Best Practices - Minimal Downtime Migration to ASM Page 5

2. Make the backups accessible to the target system. The path to the backup files on the source and standby system must be the same for these procedures to work. 3. Using SQL*Plus, create a copy of the source database parameter file, which you will use as a template for the standby database parameter file. SQL> create pfile= /tmp/pfile.ora from spfile; Copy the parameter file you created to the standby system 4. Using the Oracle Network Configuration Assistant (NETCA) utility create an Oracle Net Service name on the source system that connects back to the standby database. Prepare the Data Guard Standby Database The following steps assume that the ASM instance is running and the ASM disk group has already been created [4]. To prepare the standby database, perform the following steps: 1. Edit the parameter file you copied from the source database to make the following changes. a. Remove the current reference to the CONTROL_FILES parameter. b. Edit or Add the DB_CREATE_FILE_DEST parameter to point to the ASM disk group for the data files. c. Edit or Add the DB_RECOVERY_FILE_DEST and DB_RECOVERY_FILE_DEST_SIZE parameters to point to the ASM disk group and define the size for the flash recovery area. d. Optionally, if the online redo log files should be located in a specific ASM disk group other than what was specified by DB_CREATE_FILE_DEST and DB_RECOVERY_FILE_DEST, Edit or Add the DB_CREATE_ONLINE_LOG_DEST_n parameter to point to the ASM disk group for the redo log files. e. Add the FAL_SERVER parameter that refers to a net service name that points to the source database. f. Add the FAL_CLIENT parameter that refers to a net service name that points to the standby database. The FAL_SERVER and FAL_CLIENT parameters should be prefixed with the Oracle SID of the standby database. Note: If you create the standby database locally on the same resources, then you also need to set the following parameters. MAA Best Practices - Minimal Downtime Migration to ASM Page 6

g. Edit the DB_UNIQUE_NAME parameter to be unique. This parameter is referenced in the file names created in the ASM Disk Group. h. Edit or Add the LOG_ARCHIVE_CONFIG parameter to reference the two DB_UNIQUE_NAME that will be in the configuration. The LOG_ARCHIVE_CONFIG parameter will be: dg_config=(<source_db_unique_name>,<standby_db_unique_ name>) ; 2. Create the Oracle Password file using the orapwd utility. For example: $ orapwd file=${oracle_home}/dbs/orapw${oracle_sid} password=sys password 3. Create a net service name on the standby system that connects back to the source database and a net service name on the standby system that refers to the standby database. Instantiate the Standby Database in ASM RMAN provides a single command that instantiates the standby database using the information from the source database. In RMAN, you connect to the source database using the CONNECT TARGET command, and you connect to the standby database using the CONNECT AUXILIARY command. Before you can instantiate the database, you must create the server parameter file for the standby database. 1. Create the server parameter file using the parameter file you edited above: SQL> create spfile from pfile= /tmp/pfile.ora ; 2. Start the standby instance and instantiate the standby database: SQL> startup force nomount RMAN> connect target sys/<password>@<source database> RMAN> connect auxiliary / RMAN> duplicate target database for standby; At the end of the duplicate command, a physical standby database will be created on the standby system. Note: If the standby database will be an Oracle RAC database or if you want to store the SPFILE in ASM, then you must move the SPFILE into an ASM disk group, as follows: a. Create a pfile from the spfile: SQL> create pfile='/tmp/pfile.asm' from spfile; b. Shutdown the standby database: MAA Best Practices - Minimal Downtime Migration to ASM Page 7

SQL> shutdown c. Start the standby database using the pfile created in step a: SQL> startup mount pfile='/tmp/pfile.asm'; d. Create the spfile in the ASM Disk Group using the db_unique_name value that you specified earlier: SQL> create spfile='+data/salesasm/spfilesalesasm' from pfile='/tmp/pfile.asm'; e. Shut down the standby database to leverage the changes: SQL> shutdown f. Create an initialization parameter file that references the spfile created above on all nodes in the cluster: Oracle Data Guard has the ability to perform synchronous and asynchronous log shipping as well as real-time apply. To configure these options, see Chapters 5 and 6 in the Oracle Data Guard Concepts and Administration manual [1]. $ echo "spfile='+data/salesasm/spfilesalesasm'" > ${ORACLE_HOME}/dbs/init${ORACLE_SID}.ora g. Remove the spfile created in step 1: $ rm ${ORACLE_HOME}/dbs/spfile${ORACLE_SID}.ora h. Start all instances of the standby database: SQL> startup mount Enable Oracle Data Guard 10g To enable Oracle Data Guard 10g, perform the following steps: 1. Configure the LOG_ARCHIVE_DEST_n parameter on the source database to transmit redo data to the standby database: SQL> alter system set log_archive_dest_n= service=<standby database> ARCH valid_for=(online_logfiles,primary_role) db_unique_name=<db_unique_name> comment= for ASM instantiation scope=both; Note: If you create the standby database on the same server or cluster as the source database, then you must also set the following parameters on the source database. a. Edit or Add the LOG_ARCHIVE_CONFIG parameter to reference the two DB_UNIQUE_NAME parameters that will be in the configuration. The LOG_ARCHIVE_CONFIG parameter will be similar to the following: *.log_archive_config='dg_config=(sales,salesasm)' MAA Best Practices - Minimal Downtime Migration to ASM Page 8

2. Start Redo Apply on the standby database to apply the redo received from the source database: SQL> alter database recover managed standby database nodelay disconnect; You can find additional information about configuring and monitoring Oracle Data Guard in the Oracle Data Guard Concepts and Administration manual and on the Maximum Availability Architecture Oracle Technology Network (OTN) Web site [3]. Use Data Guard Switchover to Move Production to ASM Downtime occurs while you perform a Data Guard switchover to transition the standby database already using ASM to the primary production role. The switchover process requires a brief outage, typically requiring only seconds to complete. 1. If the primary database is an Oracle RAC database, then you must shut down all but one instance. SQL> shutdown Alternatively, you can shut down the instances of an Oracle RAC database using the Server Control (srvctl) utility. 2. On the source database, archive the current redo log: SQL> alter system archive log current; 3. Verify that the source database is ready to perform an Oracle Data Guard switchover operation: SQL> select switchover_status from v$database; SWITCHOVER_STATUS -------------------- TO STANDBY The output should show TO STANDBY or SESSIONS ACTIVE. If any other output displays, then it is not possible to perform a switchover at this time. Contact Oracle Support for diagnosing the problem that is preventing a switchover operation. 4. If the standby database is an Oracle RAC database, then all but one instance must be shut down: SQL> shutdown Alternatively, you can shut down the instances of an Oracle RAC database using the Server Control (srvctl) utility. 5. Stop all users accessing the source database. MAA Best Practices - Minimal Downtime Migration to ASM Page 9

6. Issue the following command to initiate the Oracle Data Guard switchover operation. Any connections to the source database will be terminated, and the database transitions to a quiesced state: SQL> alter database commit to switchover to standby with session shutdown; 7. By the time step 6 completes, the last of the redo data from the source database will have been sent to the standby database, and the changes will be applied. Query the V$DATABASE view as shown in the following example, and when the query returns TO PRIMARY on the standby database, you can safely proceed.. The time it takes for the status to return TO PRIMARY depends on a number of factors including, but not limited to, the amount of redo data that still needs to be applied to the standby database. For example: SQL> select switchover_status from v$database; SWITCHOVER_STATUS -------------------- TO PRIMARY 8. On the standby database, complete the Oracle Data Guard switchover operation: SQL> alter database commit to switchover to primary; 9. Open the standby database: SQL> alter database open; 10. If the standby database is an Oracle RAC database, then start the remaining instances: SQL> startup Alternatively, you can shutdown the instances of an Oracle RAC database using the Server Control (srvctl) utility. 11. Instruct clients to connect to the new primary database using ASM. Perform Post ASM Migration Steps This section assumes that Data Guard is used only one-time to perform the ASM migration. Once the standby database has become the primary database, perform the following steps to remove the original source database: 1. Invoke SQL*Plus and issue the following statements to reset the FAL_SERVER and FAL_CLIENT parameters on the standby system: SQL> alter system reset fal_server sid= <ORACLE_SID> ; SQL> alter system reset fal_client sid= <ORACLE_SID> ; MAA Best Practices - Minimal Downtime Migration to ASM Page 10

Note: If you create the standby database on the same server or cluster as the source database, then the following parameters also need to be reset on the standby database: SQL> alter system reset log_archive_config sid='<oracle_sid>' 2. Shutdown the original source database. 3. Delete the original source database using the Database Configuration Assistant (DBCA). MAA Best Practices - Minimal Downtime Migration to ASM Page 11

APPENDIX: SAMPLE PARAMETER FILES Database Parameter files for Different Server or Cluster Migration Example source database parameter file for different server configuration or cluster migration Example standby database parameter file for different server configuration or cluster migration Source Database Parameter File *.audit_file_dest='/u01/app/oracle/admin/sales/adump' *.background_dump_dest='/u01/app/oracle/admin/sales/bdump' *.compatible='10.2.0.3.0' *.control_files='/ocfs2/oradata/sales/controlfile/o1_mf_31tdysbf_.c tl','/ocfs2/flash_recovery_area/sales/controlfile/o1_mf_31tdysz7_.c tl' *.core_dump_dest='/u01/app/oracle/admin/sales/cdump' *.db_block_size=8192 *.db_create_file_dest='/ocfs2/oradata' *.db_domain='' *.db_file_multiblock_read_count=16 *.db_name='sales' *.db_recovery_file_dest='/ocfs2/flash_recovery_area' *.db_recovery_file_dest_size=2147483648 *.job_queue_processes=10 *.log_archive_dest_4='service=salesasm ARCH valid_for=(online_logfiles,primary_role)'#for ASM instantiation *.log_archive_format='%t_%s_%r.dbf' *.open_cursors=300 *.pga_aggregate_target=164626432 *.processes=150 *.remote_login_passwordfile='exclusive' *.sessions=170 *.sga_target=494927872 *.undo_management='auto' *.undo_tablespace='undotbs1' *.user_dump_dest='/u01/app/oracle/admin/sales/udump' Standby Database Parameter File *.audit_file_dest='/u01/app/oracle/admin/sales/adump' *.background_dump_dest='/u01/app/oracle/admin/sales/bdump' *.compatible='10.2.0.3.0' *.control_files='+data/sales/controlfile/current.262.619624429','+r ECO/sales/controlfile/current.256.619624431'#Restore Controlfile *.core_dump_dest='/u01/app/oracle/admin/sales/cdump' *.db_block_size=8192 *.db_create_file_dest='+data' *.db_domain='' *.db_file_multiblock_read_count=16 *.db_name='sales' *.db_recovery_file_dest='+reco' *.db_recovery_file_dest_size=2147483648 sales.fal_client='salesasm' sales.fal_server='sales' *.job_queue_processes=10 *.log_archive_format='%t_%s_%r.dbf' *.open_cursors=300 *.pga_aggregate_target=164626432 *.processes=150 *.remote_login_passwordfile='exclusive' *.sessions=170 *.sga_target=494927872 *.undo_management='auto' MAA Best Practices - Minimal Downtime Migration to ASM Page 12

*.undo_tablespace='undotbs1' *.user_dump_dest='/u01/app/oracle/admin/sales/udump' Example source RAC database parameter file for different server configuration or cluster migration Example standby RAC database parameter file for different server configuration or cluster migration Source Database Parameter File Oracle RAC *.audit_file_dest='/u01/app/oracle/admin/sales/adump' *.background_dump_dest='/u01/app/oracle/admin/sales/bdump' *.cluster_database_instances=2 *.cluster_database=true *.compatible='10.2.0.3.0' *.control_files='/ocfs2/oradata/sales/controlfile/o1_mf_31t6o4xt_.c tl','/ocfs2/flash_recovery_area/sales/controlfile/o1_mf_31t6o6bp_.c tl' *.core_dump_dest='/u01/app/oracle/admin/sales/cdump' *.db_block_size=8192 *.db_create_file_dest='/ocfs2/oradata' *.db_domain='' *.db_file_multiblock_read_count=16 *.db_name='sales' *.db_recovery_file_dest='/ocfs2/flash_recovery_area' *.db_recovery_file_dest_size=2147483648 sales1.instance_number=1 sales2.instance_number=2 *.job_queue_processes=10 *.log_archive_dest_3='service=salesasm ARCH valid_for=(online_logfiles,primary_role) db_unique_name=sales'#for ASM instantiation *.log_archive_format='%t_%s_%r.dbf' *.open_cursors=300 *.pga_aggregate_target=164626432 *.processes=150 *.remote_listener='listeners_sales' *.remote_login_passwordfile='exclusive' *.sessions=170 *.sga_target=494927872 sales2.thread=2 sales1.thread=1 *.undo_management='auto' sales2.undo_tablespace='undotbs2' sales1.undo_tablespace='undotbs1' *.user_dump_dest='/u01/app/oracle/admin/sales/udump' Standby Database Parameter File Oracle RAC *.audit_file_dest='/u01/app/oracle/admin/sales/adump' *.background_dump_dest='/u01/app/oracle/admin/sales/bdump' *.cluster_database_instances=2 *.cluster_database=true *.compatible='10.2.0.3.0' *.control_files='+data/sales/controlfile/current.256.619614529','+r ECO/sales/controlfile/current.256.619614531'#Restore Controlfile *.core_dump_dest='/u01/app/oracle/admin/sales/cdump' *.db_block_size=8192 *.db_create_file_dest='+data' *.db_domain='' *.db_file_multiblock_read_count=16 *.db_name='sales' *.db_recovery_file_dest='+reco' *.db_recovery_file_dest_size=2147483648 sales1.fal_client='salesasm' sales2.fal_client='salesasm' sales1.fal_server='sales' sales2.fal_server='sales' MAA Best Practices - Minimal Downtime Migration to ASM Page 13

sales1.instance_number=1 sales2.instance_number=2 *.job_queue_processes=10 *.log_archive_format='%t_%s_%r.dbf' *.open_cursors=300 *.pga_aggregate_target=164626432 *.processes=150 *.remote_listener='listeners_sales' *.remote_login_passwordfile='exclusive' *.sessions=170 *.sga_target=494927872 sales2.thread=2 sales1.thread=1 *.undo_management='auto' sales2.undo_tablespace='undotbs2' sales1.undo_tablespace='undotbs1' *.user_dump_dest='/u01/app/oracle/admin/sales/udump' Database Parameter Files for Same Server or Cluster Migration Example source database parameter file for same server configuration or cluster migration Example standby database parameter file for same server configuration or cluster migration Source Database Parameter File *.audit_file_dest='/u01/app/oracle/admin/sales/adump' *.background_dump_dest='/u01/app/oracle/admin/sales/bdump' *.compatible='10.2.0.3.0' *.control_files='/ocfs2/oradata/sales/controlfile/o1_mf_31sz6kbf_.c tl','/ocfs2/flash_recovery_area/sales/controlfile/o1_mf_31sz6kyr_.c tl' *.core_dump_dest='/u01/app/oracle/admin/sales/cdump' *.db_block_size=8192 *.db_create_file_dest='/ocfs2/oradata' *.db_domain='' *.db_file_multiblock_read_count=16 *.db_name='sales' *.db_recovery_file_dest='/ocfs2/flash_recovery_area' *.db_recovery_file_dest_size=2147483648 *.job_queue_processes=10 *.log_archive_config='dg_config=(sales,salesasm)' *.log_archive_dest_2='service=salesasm ARCH valid_for=(online_logfiles,primary_role) db_unique_name=salesasm'#for ASM instantiation *.log_archive_format='%t_%s_%r.dbf' *.open_cursors=300 *.pga_aggregate_target=164626432 *.processes=150 *.remote_login_passwordfile='exclusive' *.sessions=170 *.sga_target=494927872 *.undo_management='auto' *.undo_tablespace='undotbs1' *.user_dump_dest='/u01/app/oracle/admin/sales/udump' Standby Database Parameter File *.audit_file_dest='/u01/app/oracle/admin/sales/adump' *.background_dump_dest='/u01/app/oracle/admin/sales/bdump' *.compatible='10.2.0.3.0' *.control_files='+data/salesasm/controlfile/current.267.619609569', '+RECO/salesasm/controlfile/current.260.619609571'#Restore Controlfile *.core_dump_dest='/u01/app/oracle/admin/sales/cdump' MAA Best Practices - Minimal Downtime Migration to ASM Page 14

*.db_block_size=8192 *.db_create_file_dest='+data' *.db_domain='' *.db_file_multiblock_read_count=16 *.db_name='sales' *.db_recovery_file_dest='+reco' *.db_recovery_file_dest_size=2147483648 *.db_unique_name='salesasm' salesasm.fal_client='salesasm' salesasm.fal_server='sales' *.job_queue_processes=10 salesasm.log_archive_config='dg_config=(sales,salesasm)' *.log_archive_format='%t_%s_%r.dbf' *.open_cursors=300 *.pga_aggregate_target=164626432 *.processes=150 *.remote_login_passwordfile='exclusive' *.sessions=170 *.sga_target=494927872 *.undo_management='auto' *.undo_tablespace='undotbs1' *.user_dump_dest='/u01/app/oracle/admin/sales/udump' Example source Oracle RAC database parameter file for same server configuration or cluster migration Source Database Parameter File Oracle RAC *.audit_file_dest='/u01/app/oracle/admin/sales/adump' *.background_dump_dest='/u01/app/oracle/admin/sales/bdump' *.cluster_database_instances=2 *.cluster_database=true *.compatible='10.2.0.3.0' *.control_files='/ocfs2/oradata/sales/controlfile/o1_mf_31r3txv4_.c tl','/ocfs2/flash_recovery_area/sales/controlfile/o1_mf_31r3tzbr_.c tl' *.core_dump_dest='/u01/app/oracle/admin/sales/cdump' *.db_block_size=8192 *.db_create_file_dest='/ocfs2/oradata' *.db_domain='' *.db_file_multiblock_read_count=16 *.db_name='sales' *.db_recovery_file_dest='/ocfs2/flash_recovery_area' *.db_recovery_file_dest_size=2147483648 sales2.instance_number=2 sales1.instance_number=1 *.job_queue_processes=10 *.log_archive_config='dg_config=(sales,salesasm)' *.log_archive_dest_2='service=salesasm ARCH valid_for=(online_logfiles,primary_role) db_unique_name=salesasm'#or ASM instantiation *.log_archive_format='%t_%s_%r.dbf' *.open_cursors=300 *.pga_aggregate_target=148897792 *.processes=150 *.remote_listener='listeners_sales' *.remote_login_passwordfile='exclusive' *.sessions=170 *.sga_target=446693376 sales2.thread=2 sales1.thread=1 *.undo_management='auto' sales2.undo_tablespace='undotbs2' sales1.undo_tablespace='undotbs1' *.user_dump_dest='/u01/app/oracle/admin/sales/udump' MAA Best Practices - Minimal Downtime Migration to ASM Page 15

Example standby RAC database parameter file for different server configuration or cluster migration Standby Database Parameter File Oracle RAC *.audit_file_dest='/u01/app/oracle/admin/sales/adump' *.background_dump_dest='/u01/app/oracle/admin/sales/bdump' *.cluster_database_instances=2 *.cluster_database=true *.compatible='10.2.0.3.0' *.control_files='+data/salesasm/controlfile/current.256.619600145', '+RECO/salesasm/controlfile/current.256.619600147'#Restore Controlfile *.core_dump_dest='/u01/app/oracle/admin/sales/cdump' *.db_block_size=8192 *.db_create_file_dest='+data' *.db_domain='' *.db_file_multiblock_read_count=16 *.db_name='sales' *.db_recovery_file_dest='+reco' *.db_recovery_file_dest_size=2147483648 *.db_unique_name='salesasm' salesasm1.fal_client='salesasm' salesasm2.fal_client='salesasm' salesasm1.fal_server='sales' salesasm2.fal_server='sales' salesasm2.instance_number=2 salesasm1.instance_number=1 *.job_queue_processes=10 salesasm1.log_archive_config='dg_config=(sales,salesasm)' salesasm2.log_archive_config='dg_config=(sales,salesasm)' *.log_archive_format='%t_%s_%r.dbf' *.open_cursors=300 *.pga_aggregate_target=148897792 *.processes=150 *.remote_listener='listeners_sales' *.remote_login_passwordfile='exclusive' *.sessions=170 *.sga_target=446693376 salesasm2.thread=2 salesasm1.thread=1 *.undo_management='auto' salesasm2.undo_tablespace='undotbs2' salesasm1.undo_tablespace='undotbs1' *.user_dump_dest='/u01/app/oracle/admin/sales/udump' REFERENCES 1. Oracle Data Guard Concepts and Administration, 10g Release 2, http://download-west.oracle.com/docs/cd/b19306_01/server.102/b14239/title.htm 2. Oracle Data Guard Broker, 10g Release 2, Part Number B14230 http://download-west.oracle.com/docs/cd/b19306_01/server.102/b14230/title.htm 3. Maximum Availability Architecture on OTN http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm 4. Oracle Database Administrator's Guide, 10g Release 2 (10.2) http://download-west.oracle.com/docs/cd/b19306_01/server.102/b14231/toc.htm MAA Best Practices - Minimal Downtime Migration to ASM Page 16

Minimal Downtime Migration to ASM using Oracle Data Guard 10g May 2007 Author: Andrew Babb Contributing Authors: Lawrence To, Doug Utzig, Ashish Ray, Raymond Dutcher, Michael Smith, Joseph Meeks 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, PeopleSoft, and Retek are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.