0% found this document useful (0 votes)
163 views4 pages

Converting RAC To RACONENODE Using Rconfig

The document describes the steps to convert a non-RAC database to a single-instance RAC database, or RAC One Node configuration. It involves editing an XML configuration file called ConvertToRACOneNode.xml to specify the source and target database homes, database information, node name, and service name. The rconfig utility is then run in test mode first using the XML file to validate the configuration, and if successful, run again in live mode to perform the actual conversion.

Uploaded by

Sddr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
163 views4 pages

Converting RAC To RACONENODE Using Rconfig

The document describes the steps to convert a non-RAC database to a single-instance RAC database, or RAC One Node configuration. It involves editing an XML configuration file called ConvertToRACOneNode.xml to specify the source and target database homes, database information, node name, and service name. The rconfig utility is then run in test mode first using the XML file to validate the configuration, and if successful, run again in live mode to perform the actual conversion.

Uploaded by

Sddr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

Converting RAC to RACONENODE (refer link :

http://saumyapadhi.com/index.php/2017/05/18/single-instance-racone-node-
conversion/)
============================================================================

cd /u01/app/oracle/product/11.2.0/db_1/assistants/rconfig/sampleXMLs

cp ConvertToRAC_AdminManaged.xml ConvertToRACOneNode.xml

sample xml file for ConvertToRACOneNode.xml


(/u01/app/oracle/product/11.2.0/db_1/assistants/rconfig/sampleXMLs/ConvertToRACOneN
ode.xml)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~IMPORTANT
NOTE~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

So here I�ve changed only following values


i.e. SourceDBHome, TargetDBHome, SourceDBInfo, Password, Node name, RacOneNode
servicename, InstancePrefix
and following values are altered to blank (><) as we are not migrating storage area
i.e. TargetDatabaseArea & TargetFlashRecoveryArea.

�Convert verify�: Value of �ONLY� denotes to run rconfig in Test mode, �YES�
denotes Live mode conversion.

Now execute rconfig in Test mode only (<n:Convert verify=�ONLY�>). Post success, we
can execute with <n:Convert verify=�YES�>.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~

[oracle@oraracn1 ~]$ cat


/u01/app/oracle/product/11.2.0/db_1/assistants/rconfig/sampleXMLs/ConvertToRACOneNo
de.xml
<?xml version="1.0" encoding="UTF-8"?>
<n:RConfig xmlns:n="http://www.oracle.com/rconfig"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oracle.com/rconfig rconfig.xsd">
<n:ConvertToRAC>
<!-- Verify does a precheck to ensure all pre-requisites are met, before the
conversion is attempted. Allowable values are: YES|NO|ONLY -->
<n:Convert verify="ONLY">
<!--Specify current OracleHome of non-rac database for SourceDBHome -->
<n:SourceDBHome>/u01/app/oracle/product/11.2.0/db_1</n:SourceDBHome>
<!--Specify OracleHome where the rac database should be configured. It can be same
as SourceDBHome -->
<n:TargetDBHome>/u01/app/oracle/product/11.2.0/db_1</n:TargetDBHome>
<!--Specify SID of non-rac database and credential. User with sysdba role is
required to perform conversion -->
<n:SourceDBInfo SID="rone1">
<n:Credentials>
<n:User>sys</n:User>
<n:Password>oracle</n:Password>
<n:Role>sysdba</n:Role>
</n:Credentials>
</n:SourceDBInfo>
<!--Specify the list of nodes that should have rac instances running for the Admin
Managed Cluster Database. LocalNode should be the first node in this nodelist. -->
<n:NodeList>
<n:Node name="oraracn1"/>
<n:Node name="oraracn2"/>
</n:NodeList>
<!--Specify RacOneNode along with servicename to convert database to RACOne Node
-->
<!--n:RacOneNode servicename="salesrac1service"/-->
<n:RacOneNode servicename="rones"/>

<!--Instance Prefix tag is optional starting with 11.2. If left empty, it is


derived from db_unique_name.-->
<n:InstancePrefix></n:InstancePrefix>
<!-- Listener details are no longer needed starting 11.2. Database is registered
with default listener and SCAN listener running from Oracle Grid Infrastructure
home. -->
<!--Specify the type of storage to be used by rac database. Allowable values are
CFS|ASM. The non-rac database should have same storage type. ASM credentials are no
needed for conversion. -->
<n:SharedStorage type="ASM">
<!--Specify Database Area Location to be configured for rac database.If this field
is left empty, current storage will be used for rac database. For CFS, this field
will have directory path. -->
<n:TargetDatabaseArea></n:TargetDatabaseArea>
<!--Specify Fast Recovery Area to be configured for rac database. If this field is
left empty, current recovery area of non-rac database will be configured for rac
database. If current database is not using recovery Area, the resulting rac
database will not have a recovery area. -->
<n:TargetFlashRecoveryArea></n:TargetFlashRecoveryArea>
</n:SharedStorage>
</n:Convert>
</n:ConvertToRAC>
</n:RConfig>
[oracle@oraracn1 ~]$

[oracle@oraracn1 bin]$ ./rconfig


/u01/app/oracle/product/11.2.0/db_1/assistants/rconfig/sampleXMLs/ConvertToRACOneNo
de.xml

<?xml version="1.0" ?>


<RConfig version="1.1" >
<ConvertToRAC>
<Convert>
<Response>
<Result code="0" >
Operation Succeeded
</Result>
</Response>
<ReturnValue type="object">
There is no return value for this step </ReturnValue>
</Convert>
</ConvertToRAC></RConfig>
[oracle@oraracn1 bin]$
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
Here �Operation Succeded� mentions its success in test mode.
Now execute rconfig in Live mode only (change <n:Convert verify=�YES�>). And
execute below.
Before starting rconfig please stop 2nd, 3rd,4th,... RAC instances and keep only
one instance running else you will get ( Thread 2 is open. All threads beyond
thread 1 should be closed.) exception.

[oracle@oraracn1 bin]$ ./rconfig


/u01/app/oracle/product/11.2.0/db_1/assistants/rconfig/sampleXMLs/ConvertToRACOneNo
de.xml

<?xml version="1.0" ?>


<RConfig version="1.1" >
<ConvertToRAC>
<Convert>
<Response>
<Result code="1" >
Got Exception
</Result>
<ErrorDetails>
oracle.sysman.assistants.rconfig.engine.StorageCreationException:
oracle.sysman.assistants.rconfig.engine.StorageCreationException: Thread 2 is open.
All threads beyond thread 1 should be closed.
Operation Failed. Refer logs at
/u01/app/oracle/cfgtoollogs/rconfig/rconfig_06_03_19_01_50_30.log for more details.

</ErrorDetails>
</Response>
</Convert>
</ConvertToRAC></RConfig>
[oracle@oraracn1 bin]$
[oracle@oraracn1 bin]$ ./rconfig
/u01/app/oracle/product/11.2.0/db_1/assistants/rconfig/sampleXMLs/ConvertToRACOneNo
de.xml
Converting Database "rone" to Cluster Database. Target Oracle Home:
/u01/app/oracle/product/11.2.0/db_1. Database Role: PRIMARY.
Setting Data Files and Control Files
Adding Database Instances
Adding Redo Logs
Enabling threads for all Database Instances
Setting TEMP tablespace
Adding UNDO tablespaces
Adding Trace files
Setting Fast Recovery Area
Updating Oratab
Creating Password file(s)
Configuring Listeners
Configuring related CRS resources
<?xml version="1.0" ?>
<RConfig version="1.1" >
<ConvertToRAC>
<Convert>
<Response>
<Result code="1" >
Got Exception
</Result>
<ErrorDetails>
oracle.sysman.assistants.rconfig.engine.CRSConfigurationException:
PRCS-1007 : Server pool rone already exists
PRCR-1086 : server pool ora.rone is already registered
Operation Failed. Refer logs at
/u01/app/oracle/cfgtoollogs/rconfig/rconfig_06_03_19_01_55_33.log for more details.
</ErrorDetails>
</Response>
</Convert>
</ConvertToRAC></RConfig>
[oracle@oraracn1 bin]$

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~

You might also like