0% found this document useful (0 votes)
337 views3 pages

Migrating Non-RAC to RAC Database Steps

The document provides steps to convert a non-RAC Oracle database to a RAC database using the rconfig tool. It details: 1. Using rconfig and providing an XML file to specify the source non-RAC database, target RAC configuration, and nodes. 2. Creating an SPFILE for the database at the shared storage location. 3. Running rconfig to perform the conversion, which will add database instances, configure listeners, start the cluster database, and more. 4. Verifying the conversion was successful.

Uploaded by

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

Migrating Non-RAC to RAC Database Steps

The document provides steps to convert a non-RAC Oracle database to a RAC database using the rconfig tool. It details: 1. Using rconfig and providing an XML file to specify the source non-RAC database, target RAC configuration, and nodes. 2. Creating an SPFILE for the database at the shared storage location. 3. Running rconfig to perform the conversion, which will add database instances, configure listeners, start the cluster database, and more. 4. Verifying the conversion was successful.

Uploaded by

mahipalocp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

Migration of NON RAC database to RAC :These steps are done once grid

(clsuterware) is installed.

Oracle provides 3 methods to convert non-RAC single instance database to RAC databases:

1. DBCA
2. Rconfig ( Using this method and also preferable)
3. Enterprise Manager

Step -1

/oracle/product/11.2.0/db_1/assistants/rconfig/sampleXMLs

cp -p ConvertToRAC_AdminManaged.xml ConvertToRAC_AdminManaged_bk.xml

Step -2

<?xml version="1.0" encoding="UTF-8"?>


<n:RConfig xmlns:n="[Link]
xmlns:xsi="[Link]
xsi:schemaLocation="[Link]
<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>/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>/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="testdb">
<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="rac1"/>
<n:Node name="rac2"/>
</n:NodeList>
<!--Instance Prefix tag is optional starting with 11.2. If left empty, it is
derived from db_unique_name.-->
<n:InstancePrefix>testdb</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 [Link] this
field is left empty, current storage will be used for rac database. For CFS,
this field will have directory path. -->
<n:TargetDatabaseArea>+DATA</n:TargetDatabaseArea>
<!--Specify Flash 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>+DATA</n:TargetFlashRecoveryArea>
</n:SharedStorage>
</n:Convert>
</n:ConvertToRAC>
</n:RConfig>

Step-3
Create spfile at shared storage.

SQL>create spfile='+DATA/TESTDB/[Link]' from


pfile='/oracle/backup/[Link]';

rac1-> cd $ORACLE_HOME/dbs
rac1-> cp -p [Link] [Link]

now add below entry in [Link] file.

spfile='+DATA/TESTDB/[Link]'

Step -4

rac1-> cd $ORACLE_HOME/bin

rac1-> ./rconfig
/oracle/product/11.2.0/db_1/assistants/rconfig/sampleXMLs/ConvertToRAC_AdminManaged_
[Link]
if we get below message –

++++++++++++++++++
3 Operation Succeeded

5 There is no return value for this step


++++++++++++++++++
Step – 5

Once step-4 is succeded the edit again ConvertToRAC_AdminManaged_bk.xml


And update the parameter from <n:Convert verify="ONLY"> to <n:Convert verify="YES">

Step -6

./rconfig
/oracle/product/11.2.0/db_1/assistants/rconfig/sampleXMLs/ConvertToRAC_AdminManaged_
[Link]

Converting Database "testdb" to Cluster Database. Target Oracle Home: /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 Flash Recovery Area
Updating Oratab
Creating Password file(s)
Configuring Listeners
Configuring related CRS resources
Starting Cluster Database
<?xml version="1.0" ?>
<RConfig version="1.1" >
<ConvertToRAC>
<Convert>
<Response>
<Result code="0" >
Operation Succeeded
</Result>
</Response>
<ReturnValue type="object">
<Oracle_Home>
/oracle/product/11.2.0/db_1
</Oracle_Home>
<Database type="ADMIN_MANAGED" >
<InstanceList>
<Instance SID="testdb1" Node="rac1" >
</Instance>
<Instance SID="testdb2" Node="rac2" >
</Instance>
</InstanceList>
</Database> </ReturnValue>
</Convert>
</ConvertToRAC></RConfig>

You might also like