3.8 Convert 10g Database to RAC using Rconfig
- As the oracle user, navigate to the directory $ORACLE_HOME/assistants/ rconfig/sampleXMLs, and open the ConvertToRAC.xm lfile using a text editor such as vi.
- Review the ConvertToRAC.xml file, and modify the parameters as required for your system. The XML sample file in Appendix B contains comment lines that explain how to configure the file for your own, site-specific requirements.NOTE
Before carrying out the conversion to RAC, it is advisable to test the proposed settings by running Rconfig with the option Convert verify="ONLY". This will validate the parameters, and flag any incorrect settings or other issues that need to be resolved before conversion takes place. - When you have finished making changes, save the file as
- Shut down the database instance.
- Create the spfile from pfile using:
SQL>create spfile from pfile; - Move the $ORACLE_HOME/dbs/spfile
.ora for this instance to shared location - Take a backup of existing $ORACLE_HOME/dbs/init
.ora and create a new $ORACLE_HOME/dbs/init .ora with following parameter : spfile='
/spfile .ora' - Start up the instance
- Using NetCA, create local and remote listener tns aliases for database instances. Use listener_
as the alias name for the local listener, and listeners_ for the remote listener alias: - Execute netca from $ORACLE_HOME/bin.
- Choose "Cluster Configuration " option in the NetCA wizard.
- Choose the current nodename from the nodes list.
- Choose "Local Net Service Name Configuration " option, and click Next.
- Select "Add" and in next screen enter the service name, and click Next.
- Enter the current node as the Server Name, and specify the port defined in Step 3.3.
- Select "Do not perform Test", and click Next.
- Enter the listener TNS alias name (such as LISTENER_
) for the local listener. - Repeat the above steps for the remote listener, this time with the server name in step 6 as the secondary node, and the listener name LISTENERS_
.
NOTEEnsure that local and remote aliases are created on all nodes in the cluster. - Navigate to $ORACLE_HOME/bin, and use the following command to run the Rconfig command:
./rconfig < path to rconfig xml file created in step2 >. - This Rconfig execution will:
- If ASM is specified as storage option in the XML configuration file above, migrate the database to ASM storage.
- Create database instances on all nodes in the cluster.
- Configure Listener and NetService entries.
- Configure and register CRS resources.
- Start the instances on all nodes in the cluster.
NOTE
| Specify the 'SourceDBHome' variable in ConvertToRAC.xml as the non-RAC Oracle home (e.g. $OLD_ORACLE_HOME path). If you wish to specify a new ORACLE_HOME, start the database from the new Oracle home using the command:SQL>startup pfile= |
- 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
.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
.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_
, 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 ListenersUsing the command "srvctl stop listener -n
", shut down the listeners with the name LISTENER_ . These were created in Step 3.3 using srvctl login as the owner of the CRS_ORACLE_HOME.
NOTE
| Review the Initialization Parameter Document 216205.1 , and update your spfile to include any RAC specific settings . |
This comment has been removed by a blog administrator.
ReplyDelete