Author A.Kishore Convert 11gR2 non-rac database to RAC database using rconfig

Similar documents
Author A.Kishore

Oracle 11g: RAC and Grid Infrastructure Administration Accelerated Release 2

Oracle 11g: RAC and Grid Infrastructure Administration Accelerated Release 2

Oracle 11g: RAC and Grid Infrastructure Administration Accelerated Release 2 NEW

Oracle 11g Release 2 RAC & Grid Infrastructure Administration Course Overview

Oracle RAC Course Content

ORACLE RAC DBA COURSE CONTENT

Author A.Kishore Single instance to RAC conversion Introduction... 2

ORACLE 11gR2 DBA. by Mr. Akal Singh ( Oracle Certified Master ) COURSE CONTENT. INTRODUCTION to ORACLE

Oracle 11g: RAC and Grid Infrastructure Administration Accelerated Release 2

Oracle 11g: RAC and Grid Infrastructure Administration Accelerated Release 2

Reduce Infrastructure costs with Oracle Clusterware

1Z Oracle Real Application Clusters 12c Essentials Exam Summary Syllabus Questions

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

What you will learn. interface clients. Learn To:

Page 1 نشانی: تهران خیابان شهید بهشتی نرسیده به قائم مقام فراهانی پالک طبقه تلفن: فکس:

Oracle Clustering: Oracle 11g Real Application Clusters for Administrators

ASM migration process

Convert a Single Instance Database to Oracle RAC 10g on RHEL4 Using Grid Control

Database Instance Setup and Configuration. Oracle Database 10g

1Z0-593 Exam Questions Demo Oracle. Exam Questions 1Z0-593

Oracle 12c Grid Infrastructure Management Repository Everything You Wanted To Know

Maximum Availability Architecture. Oracle Best Practices for High Availability

Accelerate Oracle Database 10g Creation and Deployment Using VMware Infrastructure and EMC Celerra Writeable Checkpoints

Oracle EXAM - 1Z Oracle Real Application Clusters 11g Release 2 and Grid Infrastructure Administration. Buy Full Product

Oracle Database 12c R2: RAC Administration Ed 2

Configuration of SAP NetWeaver for Oracle Grid Infrastructure and Oracle Real Application Clusters 11g Release 2: A Best Practices Guide

Migrate Databases to Exadata Using RMAN Duplicate

11i on RAC: Sweating the Details. Practical overview of Technical Details of Implementing RAC for 11i E-Business Suite

1Z Oracle. Oracle Real Application Clusters 11g Release 2 and Grid Infrastructure Administration

Steps how to duplicate a database to a new machine. Version 10gR2

Cross-Platform Database Migration with Oracle Data Guard

Databases Clone using ACFS. Infrastructure at your Service.

by guotao zhong August 2006

Marco Mischke, DOAG Regio Nürnberg. Experts for database solutions.

RAC Installation and Configuration. Oracle Database 10g

Oracle 12c Flex ASM & Flex Cluster

Oracle Database 12c: Clusterware & RAC Admin Accelerated Ed 1

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

Oracle Database 12c: Clusterware & ASM Admin Accelerated Ed 1

Oracle Database Appliance: Implementing Disaster Recovery Solutions Using Oracle Data Guard

Oracle DBA workshop I

Oracle Database 11g: RAC Administration Release 2 NEW

for RAC migrations WLCG Service Reliability Workshop CERN, November 30 th, 2007 Jacek Wojcieszuk, CERN IT LCG

Oracle Database 12c: RAC Administration Ed 1

Configuration and Administration Guide

Grid Control Patch Set Step by Step Install On Linux

Oracle Database 11g: SQL Fundamentals I

ORACLE Application Server Installation Guide for HPUX 11

Oracle Database 11g Rac Administration Student Guide READ ONLINE

Using Oracle Clusterware to Protect Oracle Database 10g with Oracle Enterprise Manager Grid Control Integration

Oracle EXAM - 1Z Oracle Real Application Clusters 11g Essentials. Buy Full Product.

Upgrade Oracle Applications from to R12.1.1

Oracle Database 11g: Administration Workshop I Release 2

Oracle Real Application Clusters Handbook

Setting Up Oracle for Prime Fulfillment

1 Installation Issues and Recommendations

Cloning Oracle Applications Environments. Introduction. AutoConfig Components.

Oracle Database 12c: RAC Administration Ed 1 LVC

ALTER DATABASE RECOVER TO LOGICAL STANDBY KEEP IDENTITY;

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

Setting Up Oracle for ISC

METALIB VERSION 4 How to Remove MetaLib Version 3

MBS Microsoft Oracle Plug-In 6.82 User Guide

CHAPTER. Upgrading to Oracle Database 11g

PDF # ORACLE NET OPERATION MANUAL DOCUMENT

Disaster Recovery: Restore Database from One Server to another Server when Different Location

Oracle RAC Database 11g Documentation

Purpose. Configuring ARCHIVELOG mode

Question No : 1 Which three types of patches and upgrades are supported for Oracle Grid Infrastructure 12c? A. in-place upgrades using the Oracle Univ

Oracle Database Upgrade, Migration & Transformation Tips & Techniques Chapter 5

Oracle Database 11g: Administration Workshop I Release 2

Arup Nanda Longtime Oracle DBA (and now DMA)

Exadata for Oracle DBAs. Arup Nanda Longtime Oracle DBA (and now DMA)

EVault InfoStage 5.6 Oracle Plug-In for Solaris and Windows. Installation & Configuration Guide

"Charting the Course... Oracle 18c DBA I (3 Day) Course Summary

"Charting the Course... Oracle 18c DBA I (5 Day) Course Summary

HA Monitor Kit for Oracle

9i RAC: Manual Backup and Recovery Shankar Govindan

1 Installation Issues and Recommendations

2 Unsupported Products

ORACLE REFERENCE 11GR2 MANUAL DOCUMENT

Explore the Oracle 10g database architecture. Install software with the Oracle Universal Installer (OUI)

IBM. Updating the Oracle database for V5.2.2

Agent for Oracle. Arcserve Backup for Windows r17.5

Product Support Notice

FLASHBACK RAC DATABASE TO RESTORE POINT Y. MORAN

Oracle Database. 2 Day + Real Application Clusters Guide 11g Release 2 (11.2) E

RAC for Beginners. Arup Nanda Longtime Oracle DBA (and a beginner, always)

Installation Issues and Recommendations

Accenture Enkitec Group PATCHING ORACLE MARTIN BACH #DOAGDB17

Managing an Oracle Instance

Tips and Tricks on Successful Upgrade to 11gR2

es T tpassport 㗴㓸 ఝ Ȉ ʼ ȋ ȿ Ⱥ ɺ ɖ ȳ ఝ Ȉ ʼ ȋ Ʌ ɣ ɉ ᐕ䬶ήᢱㅴ 䬨䭚䬢䬷䬺ឭଏ䬨䭚 *VVR YYY VGUVRCUURQTV LR

Redefining Data Protection. Title Page. User s Guide. for the NetVault:Backup APM for Oracle. APM Version 5.1 OAG

Vendor: Oracle. Exam Code: 1Z Exam Name: Oracle Database 10g R2: Administering RAC. Version: Demo

Recovering Oracle Databases

Configuring the Oracle Network Environment. Copyright 2009, Oracle. All rights reserved.

Oracle Application Express: Administration 1-2

SAP BusinessObjects. Erick Carlson SAP Solution Architect N.A. SAP on Oracle Team

Transcription:

Convert 11gR2 non-rac database to RAC database using rconfig I ve installed the new 11gR2 clustered ORACLE_HOME at /d01/oracle/app/oracle/product/11.2.0/dbhome_1 on both the nodes linux1 and linux2 New Oracle 11gR2 RAC Home - /d01/oracle/app/oracle/product/11.2.0/dbhome_1 SourceDBHome - /d01/oracle/racdb/db/tech_st/11.2.0 ORACLE_SID RACDB 1. As the oracle user, navigate to the directory $ORACLE_HOME/assistants/rconfig/sampleXMLs, and open the sample file ConvertToRAC.xml using a text editor such as vi. This XML sample file contains comment lines that provide instructions on how to edit the file to suit your site's specific needs. Connect to new home../oracle.env [oracle@linux1 ~]$ cat oracle.env export ORACLE_HOME=/d01/oracle/app/oracle/product/11.2.0/dbhome_1 export LD_LIBRARY_PATH=$ORACLE_HOME/lib,$ORACLE_HOME/ctx/lib export ORACLE_SID=RACDB export PATH=$PATH:$ORACLE_HOME/bin export TNS_ADMIN=/d01/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/RACDB 1_linux1 cd /d01/oracle/app/oracle/product/11.2.0/dbhome_1/assistants/rconfig/samplexmls cp ConvertToRAC_AdminManaged.xml ConvertToRAC_AdminManaged.xml_org 2. Copy the sample ConvertToRAC_AdminManaged.xml, and modify the parameters as required for your system. Make a note of the name of your copy of the XML file. 3. To test the settings specified, it is advisable to execute rconfig using convert verify="only" before carrying out the actual conversion. This will perform a test run to validate parameters and flag any incorrect settings or issues that need to be resolved before the final conversion takes place. Note: Specify 'SourceDBHome' variable in ConvertToRAC_AdminManaged.xml as Non- RAC oracle home (e.g. $OLD_ORACLE_HOME path). If you wish to specify as NEW_ORACLE_HOME then start the database from new oracle home using: I have started from NEW_ORACLE_HOME

4. Move the spfile to the shared location, in this case the Single Instance Database was hosted on file system, in this process we will move the datafiles from file system storage to ASM. -- From New Home -- copy the initracdb.ora from Source DB Home Create the spfile from pfile using the command: sqlplus /as sysdba So create spfile in the shared disk location create spfile='+data/spfile/spfileracdb.ora' from pfile;

You can check if the file is created through asmcmd cat grid.env export ORACLE_HOME=/d01/oracle/app/11.2.0/grid export PATH=$PATH:$ORACLE_HOME/bin../grid.env../oracle.env

5.Take a backup of existing $ORACLE_HOME/dbs/init<ORACLE_SID>.ora and create a new $ORACLE_HOME/dbs/init<ORACLE_SID>.ora with following parameter: spfile='<path of spfile on shared disk>/spfile<oracle_sid>.ora' spfile= +DATA/spfile/spfileracdb.ora 6. Start up the instance from the NEW ORACLE_HOME 7. Now lets test if rconfig is ready for conversion, navigate to $ORACLE_HOME/ assistants/rconfig/samplexmls and issue the following command

cd /d01/oracle/app/oracle/product/11.2.0/dbhome_1/assistants/rconfig/samplexmls rconfig ConvertToRAC_AdminManaged.xml The above command validates( as we ve set convert= ONLY ) if rconfig is ready for conversion. If the output throws any error, diagnose and troubleshoot to fix the issue. Refer to the following output for successful validation: Issues faced Rconfig a> Default Listener is not configured in Grid Infrastructure Home. Solution - on the grid infrastruture - run netca - create a default listener b> /d02/oracle/racdb/db/tech_st/11.2.0/dbs/arch LOG ARCHIVE DEST Solution - mkdir /d02/oracle/racdb/db/tech_st/11.2.0/dbs/arch 8. Now are we are ready for conversion, edit the xml file ConvertToRAC_AdminManaged.xml and change:

9. Perform the conversion rconfig ConvertToRAC_AdminManaged.xml The conversion will take some time to complete. The progress can be monitored from the logs located at $ORACLE_BASE/cfgtoollogs/rconfig

Post-RAC Migration Steps Author A.Kishore Back out archivelog mode changes implemented by Rconfig (conditional). Rconfig will put the database into archive log mode. If you do not want the database to be in archive log mode, you can disable it using the following steps: Shut down the instances all on database nodes. Set cluster_database=false in the $ORACLE_HOME/dbs/init<SID>.ora file from any one node. Start up the instance using "Startup mount" option. Disable the archive logging using Alter database noarchivelog; Shut down the database. Set cluster_database=true in the $ORACLE_HOME/dbs/ini<SID>.ora file. Start up all the instances. Check the archive log setting using the command "archive log list". Remove the Listener configuration generated by Rconfig using NetCA (Conditional) If the existing single instance Net Listener was not reused during the Rconfig conversion, or is named something other than LISTENER_<hostname>, remove the Listener configuration generated by Rconfig using NetCA, then verify that the listener was removed from CRS by issuing the crs_stat command from a session set to the CRS_ORACLE_HOME location. Shut down the Listeners Using the command "srvctl stop listener -n <nodename>", shut down the listeners with the name LISTENER_<nodename>. These were created in Step 3.3 using srvctl login as the owner of the CRS_ORACLE_HOME. This post talks about the Conversion of 11gR2 non-rac database to RAC database using rconfig. Oracle provides 3 methods to convert non-rac single instance database to RAC databases: 1. DBCA 2. rconfig 3. Enterprise Manager All the 3 have their own benefits and can be used to suit one s needs. My recent work involved the conversion of non-rac single instance database to RAC database using rconfig, although I ve tested all the 3 methods but concluded on rconfig.

Listener Configuration in 11gR2 Listener configuration can often be confusing when converting an Oracle E-Business Suite database to use Oracle RAC. There are two types of listener in 11gR2 Clusterware: the Scan listener and general database listeners. The Scan listener provides a single named access point for clients, and replaces the use of Virtual IP addresses (VIP) in client connection requests (tnsnames.ora aliases). However, connection requests can still be routed via the VIP name, as both access methods are fully supported. Note: At present, AutoConfig does not support Scan listeners. This will be addressed in a future version of AutoConfig. To start or stop a listener from srvctl, three configuration components are required: An Oracle Home from which to run lsncrtl The listener.ora file under the TNS_ADMIN network directory The listener name (defined in listener.ora) to start and stop The Oracle Home can either be the Infrastructure home or a database home. The TNS_ADMIN directory can be any accessible directory. The listener name must be unique within the listener.ora file. See Oracle Real Application Clusters Administration and Deployment Guide 11g Release 2 (11.2) There are three issues to be considered: Listener configuration in 11gR2 Clusterware. Listener requirements for converting to Oracle RAC Listener requirements for AutoConfig 3.3.1 Listener Configuration in 11gR2 Clusterware In 11gR2, listeners are configured at the cluster level, and all nodes inherit the port and environment settings. This means that the TNS_ADMIN directory path will be the same on all nodes. So to create a new listener, listener_ebs, on port 1522, running from the database ORACLE_HOME and with a user defined TNS_ADMIN directory, you would execute commands based on the following: srvctl add listener -l listener_ebs -o <11gR2 ORACLE_HOME> -p 1522 srvctl setenv listener -l listener_ebs -T TNS_ADMIN= $TNS_ADMIN When the listener starts, it will run from the database ORACLE_HOME. srvctl manages the listener.ora file across all nodes. 3.3.2 Listener requirements for converting to Oracle RAC Tools such as rconfig impose additional restrictions on the choice of listener. The listener must be the default listener, and it must run from the Grid Infrastructure home. So the example in 3.3.1 above would need to be changed to:

srvctl add listener -p 1531 After conversion, you can reconfigure the listener as required. -- I did not create any of the above 3.1.1.3 Listener requirements for AutoConfig The current version of AutoConfig creates listener names of the form listener_<node_name>, i.e. different listener names on each node in the cluster. This issue is being tracked via bug 8312164, and a future version of AutoConfig the listener name will be a user-defined context variable. Using Oracle 11g Release 2 Real Application Clusters with Oracle E-Business Suite Release 12 (Doc ID 823587.1)