Author – A.Kishore http:/www.appsdba.


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 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. 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

ora' from pfile. -.Author – A.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/ 4.Kishore http:/www.appsdba.copy the initRACDB. in this case the Single Instance Database was hosted on file system. Move the spfile to the shared location. in this process we will move the datafiles from file system storage to ASM.From New Home -. .

/grid.appsdba./ You can check if the file is created through “asmcmd” cat grid.env export ORACLE_HOME=/d01/oracle/app/11. .env .Author – A.0/grid export PATH=$PATH:$ORACLE_HOME/bin .Kishore http:/www. .2.env .

Take a backup of existing $ORACLE_HOME/dbs/init<ORACLE_SID>.ora' spfile=’ +DATA/spfile/spfileracdb.appsdba. navigate to $ORACLE_HOME/ assistants/rconfig/sampleXMLs and issue the following command . Now lets test if “rconfig” is ready for conversion.Kishore http:/www.ora with following parameter: spfile='<Path of spfile on shared disk>/spfile<ORACLE_SID>.Author – 5.ora and create a new $ORACLE_HOME/dbs/init<ORACLE_SID>.ora’ 6. Start up the instance from the NEW ORACLE_HOME 7.

Author – A.Kishore http:/www.xml The above command validates( as we’ve set convert=”ONLY”) if rconfig is ready for conversion. Solution . Refer to the following output for successful validation: Issues faced – Rconfig a> Default Listener is not configured in Grid Infrastructure Home.0/dbs/arch 8.0/dbs/arch LOG ARCHIVE DEST Solution . If the output throws any error.0/dbhome_1/assistants/rconfig/sampleXMLs rconfig ConvertToRAC_AdminManaged. Now are we are ready for conversion.2.xml” and change: .appsdba. edit the xml file “ConvertToRAC_AdminManaged.2.mkdir /d02/oracle/RACDB/db/tech_st/11.2. diagnose and troubleshoot to fix the issue.create a default listener b> /d02/oracle/RACDB/db/tech_st/ cd /d01/oracle/app/oracle/product/ netca .on the grid infrastruture .

Perform the conversion rconfig ConvertToRAC_AdminManaged. The progress can be monitored from the logs located at $ORACLE_BASE/cfgtoollogs/rconfig 9.Kishore http:/www.xml The conversion will take some time to complete.Author – A.

Author – A.Kishore http:/ .appsdba.

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

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

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

Sign up to vote on this title
UsefulNot useful