0% found this document useful (0 votes)
75 views

How To Clone The Oracle Database Software

The document describes how to clone an Oracle 11g Release 2 database home from a source machine to a target machine. It involves tar'ing the Oracle home directory on the source machine, transferring the tar file to the target machine, untarring it, and then using a cloning script to link the new Oracle home to the central inventory. The cloning process is completed by running root configuration scripts.

Uploaded by

Karmjit Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views

How To Clone The Oracle Database Software

The document describes how to clone an Oracle 11g Release 2 database home from a source machine to a target machine. It involves tar'ing the Oracle home directory on the source machine, transferring the tar file to the target machine, untarring it, and then using a cloning script to link the new Oracle home to the central inventory. The cloning process is completed by running root configuration scripts.

Uploaded by

Karmjit Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

How to clone the Oracle database software

This note describes the process of cloning an Oracle Home - in this case we are cloning a 11g Release 2 Oracle Home from source machine devastator to target machine vixen. On source (devastator) ORA !"#HO$" location is % &u'1&app&oracle&product&11.2.'&dbhome#1 (o to director) on source machine one level higher and tar the db#home1 director) and all sub-directories
devastator:$ pwd devastator:$ /u01/app/oracle/product/11.2.0 devastator:$ tar -cvf 11gr2.tar dbhome_1

On Target (vixen) reate the director) &u'1&app&oracle&product&11.2.' if it does not exist On Source scp or ftp the tar file to this location on the target machine
devastator:$ scp -rp 11gr2.tar oracle@vixen:/u01/app/oracle/product/11.2.0

On target *ncompress the tar file


vixen:$ cd /u01/app/oracle/product/11.2.0 vixen:$ tar -xvf 11gr2.tar

lone the Oracle Home using the perl script clone.pl which is located under the +ORA !"#HO$"&clone&bin
vixen:$ cd /u01/app/oracle/product/11.2.0/dbhome_1/clone/bin vixen:$ perl clone.pl !"#$%_&"'%(/u01/app/oracle !"#$%_) *%(/u01/app/oracle/product/11.2.0/dbhome_1 !"#$%_) *%_+"*%(11,!2_) *%
./runInstaller -clone -waitForCompletion "ORACL !"A# $/u%&/app/oracle" "ORACL !'O( $/u%&/app/oracle/product/&&.).%/d*+ome!&" "ORACL !'O( !,A( $&&-R)!'O( " -silent -noCon.i/ -nowait #tartin/ Oracle 0niversal Installer... C+ec1in/ swap space: must *e /reater t+an 2%% (". Actual &3%44 (" 5assed 5reparin/ to launc+ Oracle 0niversal Installer .rom /tmp/OraInstall)%&%-%6-)7!&)-&8-495(. 5lease wait ...Oracle 0niversal Installer: ;ersion &&.).%.&.% 5roduction Cop<ri/+t =C> &888: )%%8: Oracle. All ri/+ts reserved.

?ou can .ind t+e lo/ o. t+is install session at: /u%&/app/oracle/oraInventor</lo/s/cloneActions)%&%-%6-)7!&)-&8-495(.lo/ ............................................................................................. ....... &%%@ Aone.

Installation in pro/ress =(onda<: Bune )7: )%&% &):)%:)8 5( C#D> .............................................................................. 97@ Aone. Install success.ul Lin1in/ in pro/ress =(onda<: Bune )7: )%&% &):)&:%6 5( C#D> Lin1 success.ul #etup in pro/ress =(onda<: Bune )7: )%&% &):)3:34 5( C#D> #etup success.ul nd o. install p+ases.=(onda<: Bune )7: )%&% &):34:%2 5( C#D> #tartin/ to execute con.i/uration assistants D+e .ollowin/ con.i/uration assistants +ave not *een run. D+is can +appen *ecause Oracle 0niversal Installer was invo1ed wit+ t+e -noCon.i/ option. -------------------------------------D+e "/u%&/app/oracle/product/&&.).%/d*+ome!&/c./toollo/s/con.i/DoolFailedCommands" script contains all commands t+at .ailed: were s1ipped or were cancelled. D+is .ile ma< *e used to run t+ese con.i/uration assistants outside o. O0I. ,ote t+at <ou ma< +ave to update t+is script wit+ passwords =i. an<> *e.ore executin/ t+e same. D+e "/u%&/app/oracle/product/&&.).%/d*+ome!&/c./toollo/s/con.i/DoolAllCommands" script contains all commands to *e executed *< t+e con.i/uration assistants. D+is .ile ma< *e used to run t+e con.i/uration assistants outside o. O0I. ,ote t+at <ou ma< +ave to update t+is script wit+ passwords =i. an<> *e.ore executin/ t+e same. -------------------------------------CAR,I,-: D+e .ollowin/ con.i/uration scripts need to *e executed as t+e "root" user. /u%&/app/oracle/product/&&.).%/d*+ome!&/root.s+ Do execute t+e con.i/uration scripts: &. Open a terminal window ). Lo/ in as "root" 3. Run t+e scripts D+e clonin/ o. &&-R)!'O( was success.ul. 5lease c+ec1 E/u%&/app/oracle/oraInventor</lo/s/cloneActions)%&%-%6-)7!&)-&8-495(.lo/E .or more details.

Run the root.sh script as root


F pwd /u%&/app/oracle/product/&&.).%/d*+ome!& F ./root.sh C+ec1 /u%&/app/oracle/product/&&.).%/d*+ome!&/install/root!devastator!)%&%-%6)8!%9-4)-3&.lo/ .or t+e output o. root script vixen:$cat /u01/app/oracle/product/11.2.0/dbhome_1/install/root_vixen_2010-0--2._0/02-11.log
Runnin/ Oracle &&/ root.s+ script... D+e .ollowin/ environment varia*les are set as: ORACL !OC, R$ oracle ORACL !'O( $ /u%&/app/oracle/product/&&.).%/d*+ome!& ntries will *e added to t+e /var/opt/oracle/orata* .ile as needed *< Aata*ase Con.i/uration Assistant w+en a data*ase is created Finis+ed runnin/ /eneric part o. root.s+ script. ,ow product-speci.ic root actions will *e per.ormed. Finis+ed product-speci.ic root actions.

,e can now chec- that the Ora.nventor) has been updated with the 11g Release 2 Oracle Home details. On this machine/ earlier there was onl) a 1'g Oracle Home installed. ,hen we chec- the contents of the inventor).xml file/ we will see that it has information about the 11g Oracle Home 0 11(R2#HO$"
vixen:$ cat /var/opt/oracle/ora2nst.loc

inventor)#loc1&u'1&app&oracle&ora.nventor) inst#group1dba
vixen:$cd /u01/app/oracle/ora2nventor3 vixen:$ ls *ac1up oraInstaller.properties Contents orainstRoot.s+ vixen:$cd #ontents4*$ vixen:$ ls comps.xml inventor<.xml li*s.xml

ContentsG(L oui install.plat.orm sessionContext.se

lo/s oraInst.loc

vixen:$ vi inventor3.xml
HIxml version$"&.%" standalone$"<es" IJ HK-- Cop<ri/+t =c> &888: )%%8: Oracle. All ri/+ts reserved. --J HK-- Ao not modi.< t+e contents o. t+is .ile *< +and. --J HI,; ,DOR?J H; R#IO,!I,FOJ H#A; A!CID'J&&.).%.&.%H/#A; A!CID'J H(I,I(0(!; RJ).&.%.6.%H/(I,I(0(!; RJ H/; R#IO,!I,FOJ H'O( !LI#DJ H'O( ,A( $"ora&%)%" LOC$"/u%&/app/oracle/product/&%.).%" D?5 $"O" IAG$"&"/J H) *% +"*%(511,!2_) *%5 $ #(5/u01/app/oracle/product/11.2.0/dbhome_1" D?5 $"O" IAG$")"/J H/'O( !LI#DJ H/I,; ,DOR?J

You might also like