Vous êtes sur la page 1sur 10

16/06/2016

AppsDBAWorkshop:RACtoNONRACDatabaseclone11gR2
0

More NextBlog

CreateBlog SignIn

Apps DBA Workshop


My Experiences with Oracle Technologies .....
Syed Zaheer
More than 5+ Years of IT Experience in administering Enterprise wide Multi Vendor UNIX Servers, Oracle Databases (8i to 11gR2), Middle
tiers, Applications and Clusters. I am a Sun Certified System Administrator (SCSA) for Solaris 10, oracle 10g database certified
associate(OCA), Oracle 10g Database certified professional (OCP) and Oracle EBusiness suite R12 certified professionl(OCP)
View my complete profile

OracleDatabaseandApplications

M o n d a y, 1 5 O c t o b e r 2 0 1 2

RAC to NON RAC Database clone 11gR2


This posts illustrates steps for cloning a 11gR2 RAC database to a single Instance database. There are many ways to perform a RAC
database to NONRAC database clone, but the below illustrated seems to be the easiest approach for me compare to all other methods.
In this demonstration oelrac1 & oelrac2 are OEL 5.6 Linux hosts running 11.2.0.1 GI and 11.2.0.1 database.

erpnode3 running OEL 5.6 configured with all database OS prerequisites, but does not contain any oracle product installed on it.

Steps:
1) perform full database backup from any of the RAC Instance

RMAN>connecttarget
connectedtotargetdatabase:PROD(DBID=208065887)

RMAN>RUN
2>{
3>allocatechannelch1type
4>diskformat'/u01/11g_db/rman_db_backups/%d_DB_%u_%s_%p'
5>backupdatabaseplusarchivelog
6>releasechannelch1
7>}

releasedchannel:ORA_DISK_1
allocatedchannel:ch1
channelch1:SID=67instance=prod1devicetype=DISK

Startingbackupat14OCT12
currentlogarchived
channelch1:startingarchivedlogbackupset

http://appsdbaworkshop.blogspot.in/2012/10/ractononracdatabaseclone11gr2.html

1/10

16/06/2016

AppsDBAWorkshop:RACtoNONRACDatabaseclone11gR2
channelch1:startingarchivedlogbackupset
channelch1:specifyingarchivedlog(s)inbackupset
inputarchivedlogthread=1sequence=2RECID=1STAMP=796227711
inputarchivedlogthread=2sequence=1RECID=2STAMP=796227756
inputarchivedlogthread=1sequence=3RECID=5STAMP=796229217
inputarchivedlogthread=2sequence=2RECID=3STAMP=796227764
inputarchivedlogthread=2sequence=3RECID=4STAMP=796229213
inputarchivedlogthread=2sequence=4RECID=6STAMP=796232466
inputarchivedlogthread=1sequence=4RECID=7STAMP=796648119
inputarchivedlogthread=2sequence=5RECID=9STAMP=796649431
inputarchivedlogthread=1sequence=5RECID=8STAMP=796649430
inputarchivedlogthread=1sequence=6RECID=10STAMP=796649607
inputarchivedlogthread=2sequence=6RECID=11STAMP=796649608
inputarchivedlogthread=2sequence=7RECID=13STAMP=796649932
inputarchivedlogthread=1sequence=7RECID=12STAMP=796649929
channelch1:startingpiece1at14OCT12
channelch1:finishedpiece1at14OCT12
piecehandle=/u01/11g_db/rman_db_backups/PROD_DB_05nnnqef_5_1tag=TAG20121014T113855comment=NONE
channelch1:backupsetcomplete,elapsedtime:00:00:25
Finishedbackupat14OCT12
Startingbackupat14OCT12
channelch1:startingfulldatafilebackupset
channelch1:specifyingdatafile(s)inbackupset
inputdatafilefilenumber=00001name=+RACDATA/prod/system01.dbf
inputdatafilefilenumber=00002name=+RACDATA/prod/sysaux01.dbf
inputdatafilefilenumber=00003name=+RACDATA/prod/undotbs01.dbf
inputdatafilefilenumber=00005name=+RACDATA/prod/undotbs02.dbf
inputdatafilefilenumber=00004name=+RACDATA/prod/users01.dbf
channelch1:startingpiece1at14OCT12
channelch1:finishedpiece1at14OCT12
piecehandle=/u01/11g_db/rman_db_backups/PROD_DB_06nnnqf9_6_1tag=TAG20121014T113921comment=NONE
channelch1:backupsetcomplete,elapsedtime:00:01:16
Finishedbackupat14OCT12
Startingbackupat14OCT12
currentlogarchived
channelch1:startingarchivedlogbackupset
channelch1:specifyingarchivedlog(s)inbackupset
inputarchivedlogthread=1sequence=8RECID=15STAMP=796650041
inputarchivedlogthread=2sequence=8RECID=14STAMP=796650041
channelch1:startingpiece1at14OCT12
channelch1:finishedpiece1at14OCT12
piecehandle=/u01/11g_db/rman_db_backups/PROD_DB_07nnnqhr_7_1tag=TAG20121014T114042comment=NONE
channelch1:backupsetcomplete,elapsedtime:00:00:01
Finishedbackupat14OCT12
StartingControlFileandSPFILEAutobackupat14OCT12
piecehandle=/u01/11g_db/rman_db_backups/prod_c2080658872012101401comment=NONE
FinishedControlFileandSPFILEAutobackupat14OCT12
releasedchannel:ch1
RMAN>

2) create pfile and edit it as per the requirement


remove all cluster related parameters

ora11g@oelrac1db_scripts]$sqlplus/assysdba
SQL*Plus:Release11.2.0.1.0ProductiononSunOct1412:46:172012
Copyright(c)1982,2009,Oracle.Allrightsreserved.

Connectedto:
OracleDatabase11gEnterpriseEditionRelease11.2.0.1.0Production
WiththePartitioning,RealApplicationClusters,AutomaticStorageManagement,OLAP,
DataMiningandRealApplicationTestingoptions

SQL>createpfile='/home/ora11g/db_scripts/initTEST.ora'fromspfile
Filecreated.

sampleinitTEST.ora

[ora11g@erpnode3dbs]$moreinitTEST.ora
[ora11g@erpnode3dbs]$moreinitTEST.ora
TEST.__db_cache_size=230686720
TEST.__java_pool_size=4194304
TEST.__large_pool_size=4194304
TEST.__pga_aggregate_target=348127232
TEST.__sga_target=515899392

http://appsdbaworkshop.blogspot.in/2012/10/ractononracdatabaseclone11gr2.html

2/10

16/06/2016

AppsDBAWorkshop:RACtoNONRACDatabaseclone11gR2
TEST.__sga_target=515899392
TEST.__shared_io_pool_size=0
TEST.__shared_pool_size=268435456
TEST.__streams_pool_size=0
*.audit_file_dest='/u01/11g_db/ora11g/admin/TEST/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/u01/11g_db/oradata/TEST/control01.ctl','/u01/11g_db/oradata/TEST/control02.ctl'
*.db_create_file_dest='/u01/11g_db/oradata/TEST'
*.db_block_size=8192
*.db_domain='orasol.com'
*.db_name='prod'
*.diagnostic_dest='/u01/11g_db/ora11g'
*.dispatchers='(PROTOCOL=TCP)(SERVICE=TESTXDB)'
*.memory_target=862978048
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='exclusive'
[ora11g@erpnode3dbs]$

Hereiamusingdb_name=prod,asthisnameisstoredincontrolfile.Wecanchangeitaftercompletionof
clone
3) Clone RDBMS $ORACLE_HOME

create tar file for ORACLE_HOME from any of the RAC node
copy to remote server and untar it
Disable RAC configuration from oracle home & relink binaries
create password file
copy backup pieces to the remote host. I have copied it on the same directory location (/u01/11g_db/rman_db_backups)

[ora11g@oelrac1dbhome_1]$pwd
/u01/11g_db/ora11g/product/11.2.0/dbhome_1
[ora11g@oelrac1dbhome_1]$cd..
[ora11g@oelrac111.2.0]$ls
dbhome_1
[ora11g@oelrac111.2.0]$tarcvf11gr2.tardbhome_1

[ora11g@oelrac111.2.0]$ls
11gr2.tardbhome_1
[ora11g@oelrac111.2.0]$scp11gr2.tarroot@erpnode3:/u01/11g_db/ora11g/product/11.2.0

[ora11g@erpnode3lib]$makefins_rdbms.mkrac_off
rmf/u01/11g_db/ora11g/product/11.2.0/dbhome_1/lib/libskgxp11.so
cp/u01/11g_db/ora11g/product/11.2.0/dbhome_1/lib//libskgxpg.so/u01/11g_db/ora11g/product/11.2.0/dbhome_1/lib/libskgxp11.
rmf/u01/11g_db/ora11g/product/11.2.0/dbhome_1/lib/libskgxn2.so
cp/u01/11g_db/ora11g/product/11.2.0/dbhome_1/lib//libskgxns.so\
/u01/11g_db/ora11g/product/11.2.0/dbhome_1/lib/libskgxn2.so
/usr/bin/arcr/u01/11g_db/ora11g/product/11.2.0/dbhome_1/rdbms/lib/libknlopt.a/u01/11g_db/ora11g/product/11.2.0/dbhome_1
[ora11g@erpnode3lib]$

[ora11g@erpnode3lib]$makefins_rdbms.mkioracle
chmod755/u01/11g_db/ora11g/product/11.2.0/dbhome_1/bin

LinkingOracle
rmf/u01/11g_db/ora11g/product/11.2.0/dbhome_1/rdbms/lib/oracle
gcco/u01/11g_db/ora11g/product/11.2.0/dbhome_1/rdbms/lib/oraclem32L/u01/11g_db/ora11g/product/11.2.0/dbhome_1/rdbm

[ora11g@erpnode3dbs]$orapwdfile=orapwTESTentries=6password=oracle
[ora11g@erpnode3dbs]$lslrtorapwTEST
rwr1ora11gdba2048Oct1414:33orapwTEST
[ora11g@erpnode3dbs]$

http://appsdbaworkshop.blogspot.in/2012/10/ractononracdatabaseclone11gr2.html

3/10

16/06/2016

AppsDBAWorkshop:RACtoNONRACDatabaseclone11gR2

rmanbackupsonerpnode3:

[ora11g@erpnode311g_db]$cdrman_db_backups/
[ora11g@erpnode3rman_db_backups]$ls
prod_c2080658872012101400prod_c2080658872012101402prod_c2080658872012101500PROD_DB_06nnnqf9_6_1
prod_c2080658872012101401prod_c2080658872012101403PROD_DB_05nnnqef_5_1PROD_DB_07nnnqhr_7_1
[ora11g@erpnode3rman_db_backups]$pwd
/u01/11g_db/rman_db_backups
[ora11g@erpnode3rman_db_backups]$

4) startup Database in nomount stage

[ora11g@erpnode3dbs]$sqlplus/assysdba
SQL*Plus:Release11.2.0.1.0ProductiononSunOct1414:33:472012
Copyright(c)1982,2009,Oracle.Allrightsreserved.
Connectedtoanidleinstance.
SQL>startupnomount;
ORACLEinstancestarted.
TotalSystemGlobalArea862089216bytes
FixedSize1339908bytes
VariableSize624954876bytes
DatabaseBuffers230686720bytes
RedoBuffers5107712bytes
SQL>

5) Restore controlfile and startup database in nomount state

[ora11g@erpnode3dbs]$rmantarget/nocatalog
RecoveryManager:Release11.2.0.1.0ProductiononSunOct1414:56:032012
Copyright(c)1982,2009,Oracleand/oritsaffiliates.Allrightsreserved.
connectedtotargetdatabase:PROD(notmounted)
usingtargetdatabasecontrolfileinsteadofrecoverycatalog
RMAN>restorecontrolfilefrom'/u01/11g_db/rman_db_backups/prod_c2080658872012101401';
Startingrestoreat14OCT12
allocatedchannel:ORA_DISK_1
channelORA_DISK_1:SID=18devicetype=DISK
channelORA_DISK_1:restoringcontrolfile
channelORA_DISK_1:restorecomplete,elapsedtime:00:00:07
outputfilename=/u01/11g_db/oradata/TEST/control01.ctl
outputfilename=/u01/11g_db/oradata/TEST/control02.ctl
Finishedrestoreat14OCT12
RMAN>alterdatabasemount;

6) check backup of archive logs and execute restore database script accordingly

RMAN>listbackupofarchivelogall;
ListofBackupSets
===================
BSKeySizeDeviceTypeElapsedTimeCompletionTime

1188.37MDISK00:00:1514OCT12
BPKey:1Status:AVAILABLECompressed:NOTag:TAG20121014T113032
PieceName:+RACDATA/prod/backupset/2012_10_14/annnf0_tag20121014t113032_0.291.796649433
ListofArchivedLogsinbackupset1

http://appsdbaworkshop.blogspot.in/2012/10/ractononracdatabaseclone11gr2.html

4/10

16/06/2016

AppsDBAWorkshop:RACtoNONRACDatabaseclone11gR2
ListofArchivedLogsinbackupset1
ThrdSeqLowSCNLowTimeNextSCNNextTime

1275860309OCT1276551109OCT12
1376551409OCT1279879009OCT12
1479879009OCT1283221414OCT12
1583221414OCT1283864214OCT12
2176530809OCT1276551609OCT12
2276551609OCT1276551809OCT12
2376551809OCT1279878309OCT12
2479878309OCT1281585909OCT12
2581615514OCT1283864614OCT12
BSKeySizeDeviceTypeElapsedTimeCompletionTime

3369.50KDISK00:00:0114OCT12
BPKey:3Status:AVAILABLECompressed:NOTag:TAG20121014T113329
PieceName:+RACDATA/prod/backupset/2012_10_14/annnf0_tag20121014t113329_0.295.796649609
ListofArchivedLogsinbackupset3
ThrdSeqLowSCNLowTimeNextSCNNextTime

1683864214OCT1283971814OCT12
2683864614OCT1283971514OCT12
BSKeySizeDeviceTypeElapsedTimeCompletionTime

5188.84MDISK00:00:1814OCT12
BPKey:5Status:AVAILABLECompressed:NOTag:TAG20121014T113855
PieceName:/u01/11g_db/rman_db_backups/PROD_DB_05nnnqef_5_1
ListofArchivedLogsinbackupset5
ThrdSeqLowSCNLowTimeNextSCNNextTime

1275860309OCT1276551109OCT12
1376551409OCT1279879009OCT12
1479879009OCT1283221414OCT12
1583221414OCT1283864214OCT12
1683864214OCT1283971814OCT12
1783971814OCT1284028414OCT12
2176530809OCT1276551609OCT12
2276551609OCT1276551809OCT12
2376551809OCT1279878309OCT12
2479878309OCT1281585909OCT12
2581615514OCT1283864614OCT12
2683864614OCT1283971514OCT12
2783971514OCT1284028914OCT12
BSKeySizeDeviceTypeElapsedTimeCompletionTime

737.50KDISK00:00:0014OCT12
BPKey:7Status:AVAILABLECompressed:NOTag:TAG20121014T114042
PieceName:/u01/11g_db/rman_db_backups/PROD_DB_07nnnqhr_7_1
ListofArchivedLogsinbackupset7
ThrdSeqLowSCNLowTimeNextSCNNextTime

1884028414OCT1284045614OCT12
2884028914OCT1284045314OCT12
RMAN>

RMAN>run{
2>setuntilsequence9thread2;
3>setnewnamefordatafile1to'/u01/11g_db/oradata/TEST/system01.dbf';
4>setnewnamefordatafile2to'/u01/11g_db/oradata/TEST/sysaux01.dbf';
5>setnewnamefordatafile3to'/u01/11g_db/oradata/TEST/undotbs01.dbf';
6>setnewnamefordatafile4to'/u01/11g_db/oradata/TEST/users01.dbf';
7>setnewnamefordatafile5to'/u01/11g_db/oradata/TEST/undotbs02.dbf';
8>restoredatabase;
9>switchdatafileall;
10>recoverdatabase;
11>}

executingcommand:SETuntilclause
executingcommand:SETNEWNAME
executingcommand:SETNEWNAME
executingcommand:SETNEWNAME
executingcommand:SETNEWNAME
executingcommand:SETNEWNAME
Startingrestoreat14OCT12
allocatedchannel:ORA_DISK_1

http://appsdbaworkshop.blogspot.in/2012/10/ractononracdatabaseclone11gr2.html

5/10

16/06/2016

AppsDBAWorkshop:RACtoNONRACDatabaseclone11gR2
allocatedchannel:ORA_DISK_1
channelORA_DISK_1:SID=18devicetype=DISK
channelORA_DISK_1:startingdatafilebackupsetrestore
channelORA_DISK_1:specifyingdatafile(s)torestorefrombackupset
channelORA_DISK_1:restoringdatafile00001to/u01/11g_db/oradata/TEST/system01.dbf
channelORA_DISK_1:restoringdatafile00002to/u01/11g_db/oradata/TEST/sysaux01.dbf
channelORA_DISK_1:restoringdatafile00003to/u01/11g_db/oradata/TEST/undotbs01.dbf
channelORA_DISK_1:restoringdatafile00004to/u01/11g_db/oradata/TEST/users01.dbf
channelORA_DISK_1:restoringdatafile00005to/u01/11g_db/oradata/TEST/undotbs02.dbf
channelORA_DISK_1:readingfrombackuppiece/u01/11g_db/rman_db_backups/PROD_DB_06nnnqf9_6_1
channelORA_DISK_1:piecehandle=/u01/11g_db/rman_db_backups/PROD_DB_06nnnqf9_6_1tag=TAG20121014T113921
channelORA_DISK_1:restoredbackuppiece1
channelORA_DISK_1:restorecomplete,elapsedtime:00:01:55
Finishedrestoreat14OCT12
datafile1switchedtodatafilecopy
inputdatafilecopyRECID=6STAMP=796662728filename=/u01/11g_db/oradata/TEST/system01.dbf
datafile2switchedtodatafilecopy
inputdatafilecopyRECID=7STAMP=796662728filename=/u01/11g_db/oradata/TEST/sysaux01.dbf
datafile3switchedtodatafilecopy
inputdatafilecopyRECID=8STAMP=796662729filename=/u01/11g_db/oradata/TEST/undotbs01.dbf
datafile4switchedtodatafilecopy
inputdatafilecopyRECID=9STAMP=796662729filename=/u01/11g_db/oradata/TEST/users01.dbf
datafile5switchedtodatafilecopy
inputdatafilecopyRECID=10STAMP=796662729filename=/u01/11g_db/oradata/TEST/undotbs02.dbf
Startingrecoverat14OCT12
usingchannelORA_DISK_1
startingmediarecovery
channelORA_DISK_1:startingarchivedlogrestoretodefaultdestination
channelORA_DISK_1:restoringarchivedlog
archivedlogthread=1sequence=8
channelORA_DISK_1:restoringarchivedlog
archivedlogthread=2sequence=8
channelORA_DISK_1:readingfrombackuppiece/u01/11g_db/rman_db_backups/PROD_DB_07nnnqhr_7_1
channelORA_DISK_1:piecehandle=/u01/11g_db/rman_db_backups/PROD_DB_07nnnqhr_7_1tag=TAG20121014T114042
channelORA_DISK_1:restoredbackuppiece1
channelORA_DISK_1:restorecomplete,elapsedtime:00:00:01
archivedlogfilename=/u01/11g_db/ora11g/product/11.2.0/dbhome_1/dbs/arch1_8_796227555.dbfthread=1sequence=8
archivedlogfilename=/u01/11g_db/ora11g/product/11.2.0/dbhome_1/dbs/arch2_8_796227555.dbfthread=2sequence=8
mediarecoverycomplete,elapsedtime:00:00:01
Finishedrecoverat14OCT12
RMAN>

7) Rename online redologfiles and open database with resetlogs

SQL>selectmemberfromv$logfile;
MEMBER

+RACDATA/prod/redo02.log
+RACDATA/prod/redo01.log
+RACDATA/prod/redo03.log
+RACDATA/prod/redo04.log

SQL>alterdatabaserenamefile'+RACDATA/prod/redo02.log'to'/u01/11g_db/oradata/TEST/redo02.log';
Databasealtered.
SQL>alterdatabaserenamefile'+RACDATA/prod/redo01.log'to'/u01/11g_db/oradata/TEST/redo01.log';
Databasealtered.
SQL>alterdatabaserenamefile'+RACDATA/prod/redo03.log'to'/u01/11g_db/oradata/TEST/redo03.log';
Databasealtered.
SQL>alterdatabaserenamefile'+RACDATA/prod/redo04.log'to'/u01/11g_db/oradata/TEST/redo04.log';
Databasealtered.
SQL>alterdatabaseopenresetlogs;
Databasealtered.
SQL>selectopen_mode,namefromv$database;
OPEN_MODENAME

READWRITEPROD
SQL>

http://appsdbaworkshop.blogspot.in/2012/10/ractononracdatabaseclone11gr2.html

6/10

16/06/2016

AppsDBAWorkshop:RACtoNONRACDatabaseclone11gR2

8) Disable and drop closed online redolog group

SQL>selectTHREAD#,STATUS,ENABLEDfromv$thread;
THREAD#STATUSENABLED

1OPENPUBLIC
2CLOSEDPUBLIC
SQL>selectgroup#fromV$logwhereTHREAD#=2;
GROUP#

3
4
SQL>alterdatabasedisablethread2;
Databasealtered.
SQL>alterdatabasedroplogfilegroup3;
Databasealtered.
SQL>alterdatabasedroplogfilegroup4;
Databasealtered.
SQL>selectTHREAD#,STATUS,ENABLEDfromv$thread;
THREAD#STATUSENABLED

1OPENPUBLIC

8) Create new temp tablespace and drop old temp TS

SQL>createtemporarytablespaceTEMP1
2tempfile'/u01/11g_db/oradata/TEST/temp001.dbf'
3size50M;
Tablespacecreated.
SQL>alterdatabasedefaulttemporarytablespaceTEMP1;
Databasealtered.
SQL>droptablespaceTEMPincludingcontentsanddatafiles;
Tablespacedropped.

9) change the database name


Here SID is TEST and database name is PROD, just change the database name using dbnewid utility
verify the database name
shutdown database
startup nomount
use nid command to change
edit initilization parameter file and change db_name parameter from "prod" to "TEST"
startup mount and open database with resetlogs option

[ora11g@erpnode3~]$echo$ORACLE_SID
TEST

[ora11g@erpnode3~]$nidTARGET=SYS/passwordDBNAME=TEST
DBNEWID:Release11.2.0.1.0ProductiononMonOct1513:52:582012
Copyright(c)1982,2009,Oracleand/oritsaffiliates.Allrightsreserved.
ConnectedtodatabasePROD(DBID=208065887)
Connectedtoserverversion11.2.0
ControlFilesindatabase:

http://appsdbaworkshop.blogspot.in/2012/10/ractononracdatabaseclone11gr2.html

7/10

16/06/2016

AppsDBAWorkshop:RACtoNONRACDatabaseclone11gR2
ControlFilesindatabase:
/u01/11g_db/oradata/TEST/control01.ctl
/u01/11g_db/oradata/TEST/control02.ctl
ChangedatabaseIDanddatabasenamePRODtoTEST?(Y/[N])=>Y
Proceedingwithoperation
ChangingdatabaseIDfrom208065887to2580097082
ChangingdatabasenamefromPRODtoTEST
ControlFile/u01/11g_db/oradata/TEST/control01.ctlmodified
ControlFile/u01/11g_db/oradata/TEST/control02.ctlmodified
Datafile/u01/11g_db/oradata/TEST/system01.dbdbidchanged,wrotenewname
Datafile/u01/11g_db/oradata/TEST/sysaux01.dbdbidchanged,wrotenewname
Datafile/u01/11g_db/oradata/TEST/undotbs01.dbdbidchanged,wrotenewname
Datafile/u01/11g_db/oradata/TEST/users01.dbdbidchanged,wrotenewname
Datafile/u01/11g_db/oradata/TEST/undotbs02.dbdbidchanged,wrotenewname
Datafile/u01/11g_db/oradata/TEST/temp001.dbdbidchanged,wrotenewname
ControlFile/u01/11g_db/oradata/TEST/control01.ctldbidchanged,wrotenewname
ControlFile/u01/11g_db/oradata/TEST/control02.ctldbidchanged,wrotenewname
Instanceshutdown
DatabasenamechangedtoTEST.
Modifyparameterfileandgenerateanewpasswordfilebeforerestarting.
DatabaseIDfordatabaseTESTchangedto2580097082.
Allpreviousbackupsandarchivedredologsforthisdatabaseareunusable.
Databasehasbeenshutdown,opendatabasewithRESETLOGSoption.
SuccesfullychangeddatabasenameandID.
DBNEWIDCompletedsuccesfully.

[ora11g@erpnode3dbs]$grepdb_nameinitTEST.ora
*.db_name='TEST'
[ora11g@erpnode3dbs]$

[ora11g@erpnode3dbs]$sqlplus/assysdba
SQL*Plus:Release11.2.0.1.0ProductiononMonOct1514:04:342012
Copyright(c)1982,2009,Oracle.Allrightsreserved.
Connectedtoanidleinstance.
SQL>startupmount
ORACLEinstancestarted.
TotalSystemGlobalArea862089216bytes
FixedSize1339908bytes
VariableSize624954876bytes
DatabaseBuffers230686720bytes
RedoBuffers5107712bytes
Databasemounted.
SQL>alterdatabaseopenresetlogs;
Databasealtered.
SQL>selectname,open_modefromv$database;
NAMEOPEN_MODE

TESTREADWRITE
SQL>

Done with RAC to NonRAc clone :)


If you have any comment's/suggestion/queries in regards with this article then update me.
Thanks for reading.
regards,
XAHEER

Posted by Syed Zaheer at 05:06

Recommend this on Google

Labels: 11.2.0.1, 11.2.0.2, 11.2.0.3. RAC to single Instance databse clone, rac cloning, RAC to nonRAC

8 comments:
http://appsdbaworkshop.blogspot.in/2012/10/ractononracdatabaseclone11gr2.html

8/10

16/06/2016

AppsDBAWorkshop:RACtoNONRACDatabaseclone11gR2
TAI said...
Great work Zaheer
15 October 2012 at 06:01

Anonymous said...
Terrific work...
Request you to kindly specify the path from where we have to remove the cluster related entries.
7 December 2012 at 06:23

Syed Zaheer said...


Thanks for appreciation.
Please refer sample initialization parameter file listed above for all required parameters on a nonrac host.
thanks,
XAHEER
7 December 2012 at 22:00

mohd qadar said...


Assalamualaikum zaheer, the total steps in RAC to non RAC is 10, the 8 number is come in two times, just look at the steps which
you are given in this blogs, 8 number comes two times
22 June 2013 at 13:51

mirek kiryk said...


great job
i had the same work but on rac 10.2.0.5 and i have done with rman duplicate to .... works :)
28 August 2013 at 06:08

ravi kishor said...


Really nice work..Zaheer..
I have a small doubt...
You issued "list backup of archivelog all" in step 6 by connecting to clone node as a target database....my question is ..we have
restored & mounted backup copy of control file in cloning node..how come backup control file holds updated metadata about the
recent backup sets before restoring and recovering it on the same node ?
Plz clarify my doubt...
Thnz in advance..
7 May 2014 at 01:35

Unknown said...
Salam bhai,
Very good explanation. how to read AWR report and take action according to that.
zainul from oracle expert group.
22 February 2016 at 02:33

Yousuf said...
Great work, appreciated..!!
Well drafted and executed.
Xaheer's post are handy tools for all Major DB related tasks.
Few are below things that would add up more value to this post cloning from rac to nonrac:
Firstly :
to convert binaries from rac to non rac it should be noted that
"make f ins_rdbms.mk rac_off" &"make f ins_rdbms.mk ioracle" command should be run from $ORACLE_HOME/rdbms/lib not from
$ORACLE_HOME/lib or any other.
Someone above asked in the comment.
Secondly got a new issue with my latest cloning from rac to nonrac for the first time.
v$logfile dispalyed members as "+DATA" instead of providing "+DATA\prod\onlinelog1a.dbf" for all the logfile and when we try to
rename it got below error:
GROUP# STATUS TYPE MEMBER IS_

1 INVALID ONLINE +DATA NO
1 INVALID ONLINE +DATA NO
2 INVALID ONLINE +DATA NO
2 INVALID ONLINE +DATA NO
3 INVALID ONLINE +DATA NO
4 INVALID ONLINE +DATA NO
11 ONLINE +CCB_DATA/ccbprod/onlinelog/group_11_2_1.dbf NO

WHEN I TRY TO DROP THEM ITS SAYS FILE DOESN'T EXIST.

http://appsdbaworkshop.blogspot.in/2012/10/ractononracdatabaseclone11gr2.html

9/10

16/06/2016

AppsDBAWorkshop:RACtoNONRACDatabaseclone11gR2
NOW LET'S STRAIGHT AWAY GO TO SOLUTION:
SOLUTION A:
ALTER DATABASE OPEN RESETLOGS fails with ORA00392 (NOTE 1352133.1)
SOLUTION B:
Hi Yousuf,
This issue may have happened as you have not set log_file_name_convert or db_create_online_log_dest_n parameters before
restore and you are cloning from ASM to nonASM.
To avoid it set any 1 of the parameters and retry the restore/recovery.
To resolve the issue we did below actions:
>> drop the logfile group:
alter database drop logfile group ;
If it doesn't drop, check the status of the logfile and clear it:
alter database clear unarchived logfile group ;
after this runs drop the logfile group and drop it.
ORA Error Encountered:
ORA00360, ORA00392, ORA00312, ORA00349
Hopefully this might assist you.
Regards,
Usuf.
22 February 2016 at 03:24
Post a Comment
Newer Post

Home

Older Post

Subscribe to: Post Comments (Atom)

Free Counter

Apps DBA Workshop

Search

Enter your email address:

Subscribe
Delivered by FeedBurner

Simple template. Powered by Blogger.

http://appsdbaworkshop.blogspot.in/2012/10/ractononracdatabaseclone11gr2.html

10/10

Vous aimerez peut-être aussi