Binary Cloning
mkdir -p /ora_app/product/12c/prod1
oracle@hostserver1:/ora_stage/ [$] cp ora_12102_new.tar
/ora_app/product/12c/prod1/
oracle@hostserver1:/ora_stage/ [$] cd /ora_app/product/12c/prod1/
tar -xvf ora_12102_new.tar
oracle@hostserver1:/ora_app/product/12c/prod1/ [$] export
ORACLE_HOME=/ora_app/product/12c/prod1
oracle@hostserver1:/ora_app/product/12c/prod1/ [$] echo $ORACLE_HOME
/ora_app/product/12c/prod1
From the $ORACLE_HOME/clone/bin directory, run the clone.pl file for the unzipped
Oracle home. Use the following syntax:
$ORACLE_HOME/perl/bin/perl $ORACLE_HOME/clone/bin/clone.pl ORACLE_BASE="/ora_app"
ORACLE_HOME="/ora_app/product/12c/prod1"
OSDBA_GROUP=dba OSOPER_GROUP=dba -defaultHomeName
oracle@hostserver1:/ora_app/product/12c/prod1/ [$] $ORACLE_HOME/perl/bin/perl
$ORACLE_HOME/clone/bin/clone.pl ORACLE_BASE="/ora_app"
ORACLE_HOME="/ora_app/product/12c/prod1" OSDBA_GROUP=dba OSOPER_GROUP=dba
-defaultHomeName
./runInstaller -clone -waitForCompletion "ORACLE_BASE=/ora_app"
"ORACLE_HOME=/ora_app/product/12c/prod1" "oracle_install_OSDBA=dba"
"oracle_install_OSOPER=dba" -defaultHomeName -silent -paramFile
/ora_app/product/12c/prod1/clone/clone_oraparam.ini
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 25789 MB Passed
Checking swap space: must be greater than 500 MB. Actual 2053 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2020-06-12_12-
33-59PM. Please wait ...You can find the log of this install session at:
/ora_app/oraInventory/logs/cloneActions2020-06-12_12-33-59PM.log
.................................................. 5% Done.
.................................................. 10% Done.
.................................................. 15% Done.
.................................................. 20% Done.
.................................................. 25% Done.
.................................................. 30% Done.
.................................................. 35% Done.
.................................................. 40% Done.
.................................................. 45% Done.
.................................................. 50% Done.
.................................................. 55% Done.
.................................................. 60% Done.
.................................................. 65% Done.
.................................................. 70% Done.
.................................................. 75% Done.
.................................................. 80% Done.
.................................................. 85% Done.
..........
Copy files in progress.
Copy files successful.
Link binaries in progress.
Link binaries successful.
Setup files in progress.
Setup files successful.
Setup Inventory in progress.
Setup Inventory successful.
Finish Setup successful.
The cloning of OraHome7 was successful.
Please check '/ora_app/oraInventory/logs/cloneActions2020-06-12_12-33-59PM.log' for
more details.
Setup Oracle Base in progress.
Setup Oracle Base successful.
.................................................. 95% Done.
As a root user, execute the following script(s):
1. /ora_app/product/12c/prod1/root.sh
.................................................. 100% Done.
oracle@hostserver1:/ora_app/product/12c/prod1/ [$]
Step:
m279069@hostserver1:~> sudo su -
m279069 password :
hostserver1:~ # id
uid=0(root) gid=0(root) groups=0(root)
hostserver1:~ # /ora_app/product/12c/prod1/root.sh
Check /ora_app/product/12c/prod1/install/root_hostserver1_2020-06-12_12-41-28.log
for the output of root script
hostserver1:~ #
hostserver1:/ora_app/product/12c/prod1/install # cat root_hostserver1_2020-06-
12_12-41-28.log
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /ora_app/product/12c/prod1
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
hostserver1:/ora_app/product/12c/prod1/install #