K čemu je dobré klonování ORACLE_HOME?

Jedná se hlavně o přenesení kompletní instalace daného ORACLE_HOME se všemi PATCHES (patch sets, one ooff patches), které byli instalováný.

Můžete použít třeba oficiální dokumentaci DOC.

Přeneste na cílový server zabalený původní ORACLE_HOME (dbhome_2.zip)
unzip -d / dbhome_2.zip
[oracle@artdr01 u01]$ ls /u01/app/oracle/product/11.2.0.4/dbhome_2
apex has oda1.artesa.local_obsp1 root.sh
assistants hs oda1_obsp root.sh.old
bin ide oda2_obsp root.sh.old.1
ccr install odbc root.sh.ouibak
cdata instantclient olap scheduler
cfgtoollogs inventory OPatch slax
clone j2ee opmn sqldeveloper
config javavm oracore sqlj
crs jdbc oraInst.loc sqlplus
csmig jdev ord srvm
css jdk oui suptools
ctx jlib owb sysman
cv ldap owm timingframework
dbs lib patch ucp
dc_ocm log perl uix
deinstall md plsql usm
demo mesg precomp utl
diagnostics mgw psu wwg
dv network racg xdk
emcli nls rdbms
EMStage oc4j relnotes

[oracle@artdr01 dbhome_2]$ cd /u01/app/oracle/product/11.2.0.4/dbhome_2/clone/bin/
[oracle@artdr01 bin]$ ls
clone.pl prepare_clone.pl
[oracle@artdr01 bin]$ perl clone.pl ORACLE_BASE=/u01/app/oracle ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_2 ORACLE_HOME_NAME="OraDb11204_home2"
./runInstaller -clone -waitForCompletion "ORACLE_BASE=/u01/app/oracle" "ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_2" "ORACLE_HOME_NAME=OraDb11204_hom e2" -silent -noConfig -nowait
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 5977 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-05-18_09-55-55AM. Please wait ...Oracle Universal Installer, Version 11.2.0.4.0 Producti on
Copyright (C) 1999, 2013, Oracle. All rights reserved.
You can find the log of this install session at:
 /u01/app/oraInventory/logs/cloneActions2014-05-18_09-55-55AM.log
.................................................................................................... 100% Done.
Installation in progress (Sunday, May 18, 2014 9:56:07 AM CEST)
.............................................................................. 78% Done.
Install successful
Linking in progress (Sunday, May 18, 2014 9:56:13 AM CEST)
Link successful
Setup in progress (Sunday, May 18, 2014 9:56:15 AM CEST)
Setup successful
End of install phases.(Sunday, May 18, 2014 9:56:39 AM CEST)
WARNING:A new inventory has been created in this session. However, it has not yet been registered as the central inventory of this system.
To register the new inventory please run the script '/u01/app/oraInventory/orainstRoot.sh' with root privileges.
If you do not register the inventory, you may not be able to update or patch the products you installed.
The following configuration scripts need to be executed as the "root" user.
/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/11.2.0.4/dbhome_2/root.sh
To execute the configuration scripts:
 1. Open a terminal window
 2. Log in as "root"
 3. Run the scripts
The cloning of OraDb11204_home2 was successful.
Please check '/u01/app/oraInventory/logs/cloneActions2014-05-18_09-55-55AM.log' for more details.
ROOT
[root@artdr01 u01]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@artdr01 u01]# /u01/app/oracle/product/11.2.0.4/dbhome_2/root.sh
Check /u01/app/oracle/product/11.2.0.4/dbhome_2/install/root_artdr01_2014-05-18_09-58-14.log for the output of root script
[root@artdr01 u01]# vi /u01/app/oracle/product/11.2.0.4/dbhome_2/install/root_artdr01_2014-05-18_09-58-14.log
[oracle@artdr01 bin]$ /u01/app/oracle/product/11.2.0.4/dbhome_2/OPatch/opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.6
Copyright (c) 2013, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0.4/dbhome_2
Central Inventory : /u01/app/oraInventory
 from : /u01/app/oracle/product/11.2.0.4/dbhome_2/oraInst.loc
OPatch version : 11.2.0.3.6
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0.4/dbhome_2/cfgtoollogs/opatch/opatch2014-05-18_10-06-14AM_1.log
Lsinventory Output file location : /u01/app/oracle/product/11.2.0.4/dbhome_2/cfgtoollogs/opatch/lsinv/lsinventory2014-05-18_10-06-14AM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (1):
Oracle Database 11g 11.2.0.4.0
There are 1 product(s) installed in this Oracle Home.
Interim patches (2) :
Patch 18031740 : applied on Fri Mar 28 05:14:55 CET 2014
Unique Patch ID: 17253722
Patch description: "OCW Patch Set Update : 11.2.0.4.2 (18031740)"
 Created on 19 Mar 2014, 09:06:31 hrs PST8PDT
 Bugs fixed:
 18328800, 16613232, 14525998, 14693336, 17273020, 17238586, 12928658
 17391726, 17750548, 17387214, 18229842, 17172091, 17001914, 16346413
 17155238, 17551223, 15832129, 17305100, 17483479, 17039197, 16317771
 17292250, 17500165, 16206997, 17481314, 16876500, 17405302, 17065496
 18343490, 13991403
Patch 18031668 : applied on Fri Mar 28 05:14:00 CET 2014
Unique Patch ID: 17255543
Patch description: "Database Patch Set Update : 11.2.0.4.2 (18031668)"
 Created on 20 Feb 2014, 05:15:58 hrs PST8PDT
Sub-patch 17478514; "Database Patch Set Update : 11.2.0.4.1 (17478514)"
 Bugs fixed:
 17288409, 16399083, 17205719, 17811429, 10136473, 16472716, 17614227
 17050888, 17040764, 17865671, 17325413, 14010183, 17726838, 13364795
 17389192, 17612828, 17080436, 16613964, 17284817, 17441661, 17761775
 17721717, 16721594, 17390431, 18203837, 17551709, 17344412, 16043574
 17446237, 16863422, 18139690, 17071721, 17501491, 17610798, 17239687
 17752121, 17468141, 17602269, 18203835, 17375354, 17313525, 17811456
 16731148, 14133975, 18203838, 16956380, 17385178, 17235750, 13866822
 17394950, 17478514, 17027426, 12905058, 14338435, 16450169, 13944971
 18094246, 16929165, 16785708, 17265217, 17465741, 16220077, 16180763
 16069901, 17546973, 16285691, 17323222, 18180390, 17088068, 16875449
 17016369, 17443671, 16228604, 17811438, 17811447, 16837842, 18031668
 16912439, 17332800, 17393683, 17622427, 17545847, 17186905, 16943711
 16850630, 17082359, 17346671, 14852021, 17783588, 17437634, 16618694
 17341326, 17296856, 17546761, 17716305
Rac system comprising of multiple nodes
 Local node = oda1
 Remote node = oda2
--------------------------------------------------------------------------------
OPatch succeeded.


Komentáře