Cloning Oracle Inventory
perl <ORACLE_HOME>/clone/bin/clone.pl ORACLE_BASE=/sid/oracle/product ORACLE_HOME=/sid/oracle/product/112 ORACLE_HOME_NAME=<home name>
If you get error like 'Oracle home already exist' first detach the home with the below syntax and try clone.pl script.
cd $ORACLE_HOME/oui/bin
./runInstaller -silent -detachHome -invPtrLoc /sid/oracle/product/112/oraInst.loc ORACLE_HOME="/sid/oracle/product/112" ORACLE_HOME_NAME="home name"
You can get the existing home name in inventory.xml (under /sid/oracle/oraInventory/ContentsXML)
Example
-bash-3.2$ ./runInstaller -silent -detachHome -invPtrLoc /sid/oracle/product/112/oraInst.loc ORACLE_HOME="/sid/oracle/product/112" ORACLE_HOME_NAME="home name"
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 283059 MB Passed
The inventory pointer is located at /sid/oracle/product/112/oraInst.loc
The inventory is located at /sid/oracle/oraInventory
'DetachHome' was successful.
-bash-3.2$
-bash-3.2$ perl /sid/oracle/product/112/clone/bin/clone.pl ORACLE_BASE=/sid/oracle/product ORACLE_HOME=/sid/oracle/product/112 ORACLE_HOME_NAME=<home name>
./runInstaller -clone -waitForCompletion "ORACLE_BASE=/sid/oracle/product"
"ORACLE_HOME=/sid/oracle/product/112" "ORACLE_HOME_NAME=home name"
-silent -noConfig -nowait
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 283058 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-12-07_01-40-37AM. Please
wait ...Oracle Universal Installer, Version 11.2.0.3.0 Production
Copyright (C) 1999, 2011, Oracle. All rights reserved.
You can find the log of this install session at:
/sid/oracle/oraInventory/logs/cloneActions2013-12-07_01-40-37AM.log
....................................................................................................
100% Done.
Installation in progress (Saturday, December 7, 2013 1:40:57 AM CST)
...............................................................................
79% Done.
Install successful
Linking in progress (Saturday, December 7, 2013 1:41:27 AM CST)
Link successful
Setup in progress (Saturday, December 7, 2013 1:44:02 AM CST)
Setup successful
End of install phases.(Saturday, December 7, 2013 1:44:32 AM CST)
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 '/sid/oracle/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.
/sid/oracle/oraInventory/orainstRoot.sh
/sid/oracle/product/112/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
The cloning of OraDb11203_ was successful.
Please check '/sid/oracle/oraInventory/logs/cloneActions2013-12-07_01-40-37AM.log' for more details.
perl <ORACLE_HOME>/clone/bin/clone.pl ORACLE_BASE=/sid/oracle/product ORACLE_HOME=/sid/oracle/product/112 ORACLE_HOME_NAME=<home name>
If you get error like 'Oracle home already exist' first detach the home with the below syntax and try clone.pl script.
cd $ORACLE_HOME/oui/bin
./runInstaller -silent -detachHome -invPtrLoc /sid/oracle/product/112/oraInst.loc ORACLE_HOME="/sid/oracle/product/112" ORACLE_HOME_NAME="home name"
You can get the existing home name in inventory.xml (under /sid/oracle/oraInventory/ContentsXML)
Example
-bash-3.2$ ./runInstaller -silent -detachHome -invPtrLoc /sid/oracle/product/112/oraInst.loc ORACLE_HOME="/sid/oracle/product/112" ORACLE_HOME_NAME="home name"
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 283059 MB Passed
The inventory pointer is located at /sid/oracle/product/112/oraInst.loc
The inventory is located at /sid/oracle/oraInventory
'DetachHome' was successful.
-bash-3.2$
-bash-3.2$ perl /sid/oracle/product/112/clone/bin/clone.pl ORACLE_BASE=/sid/oracle/product ORACLE_HOME=/sid/oracle/product/112 ORACLE_HOME_NAME=<home name>
./runInstaller -clone -waitForCompletion "ORACLE_BASE=/sid/oracle/product"
"ORACLE_HOME=/sid/oracle/product/112" "ORACLE_HOME_NAME=home name"
-silent -noConfig -nowait
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 283058 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-12-07_01-40-37AM. Please
wait ...Oracle Universal Installer, Version 11.2.0.3.0 Production
Copyright (C) 1999, 2011, Oracle. All rights reserved.
You can find the log of this install session at:
/sid/oracle/oraInventory/logs/cloneActions2013-12-07_01-40-37AM.log
....................................................................................................
100% Done.
Installation in progress (Saturday, December 7, 2013 1:40:57 AM CST)
...............................................................................
79% Done.
Install successful
Linking in progress (Saturday, December 7, 2013 1:41:27 AM CST)
Link successful
Setup in progress (Saturday, December 7, 2013 1:44:02 AM CST)
Setup successful
End of install phases.(Saturday, December 7, 2013 1:44:32 AM CST)
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 '/sid/oracle/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.
/sid/oracle/oraInventory/orainstRoot.sh
/sid/oracle/product/112/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
The cloning of OraDb11203_ was successful.
Please check '/sid/oracle/oraInventory/logs/cloneActions2013-12-07_01-40-37AM.log' for more details.