Clone RDBMS RAC binaries in 12c in silent mode - one node
Clone RDBMS RAC binaries in 12c in silent mode
Copy binaries from /h01/app/oracle/db/12.1.0.2_03 to /h01/app/oracle/db/12.1.0.2_02
/h01/app/oracle/db/12.1.0.2_03 > cp -Rp /h01/app/oracle/db/12.1.0.2_02
export ORACLE_HOME=/h01/app/oracle/db/12.1.0.2_02
export PATH=$ORACLE_HOME/bin:$PATH
2. Run the clone command in silent mode on both the DB hosts one after the other as “oracle” user
perl /h01/app/oracle/db/12.1.0.2_02/clone/bin/clone.pl -silent ORACLE_HOME="/h01/app/oracle/db/12.1.0.2_02" ORACLE_HOME_NAME="OraDB12Home2" ORACLE_BASE="/h01/app" '-O"CLUSTER_NODES={raj}"' '-O"LOCAL_NODE=raj"'
oracle@raj (SID:DEMO) /h01/app/oracle/db/12.1.0.2_02 $ export ORACLE_HOME=/h01/app/oracle/db/12.1.0.2_02
oracle@raj (SID:DEMO) /h01/app/oracle/db/12.1.0.2_02 $ export PATH=$ORACLE_HOME/bin:$PATH
oracle@raj (SID:DEMO) /h01/app/oracle/db/12.1.0.2_02 $ DES={raj}"' '-O"LOCAL_NODE=raj"' <
./runInstaller -clone -waitForCompletion "ORACLE_HOME=/h01/app/oracle/db/12.1.0.2_02" "ORACLE_HOME_NAME=OraDB12Home2" "ORACLE_BASE=/h01/app" "CLUSTER_NODES={raj}" "LOCAL_NODE=raj" -silent -paramFile /h01/app/oracle/db/12.1.0.2_02/clone/clone_oraparam.ini
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 4023 MB Passed
Checking swap space: must be greater than 500 MB. Actual 32767 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2019-06-04_02-18-54PM. Please wait ...You can find the log of this install session at:
/c01/app/oraInventory/logs/cloneActions2019-06-04_02-18-54PM.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 OraDB12Home2 was successful.
Please check '/c01/app/oraInventory/logs/cloneActions2019-06-04_02-18-54PM.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. /h01/app/oracle/db/12.1.0.2_02/root.sh
Execute /h01/app/oracle/db/12.1.0.2_02/root.sh on the following nodes:
[raj]
.................................................. 100% Done.
oracle@raj (SID:DEMO) /h01/app/oracle/db/12.1.0.2_02 $ grep $ORACLE_HOME /c01/app/oraInventory/ContentsXML/inventory.xml
<HOME NAME="OraDB12Home2" LOC="/h01/app/oracle/db/12.1.0.2_02" TYPE="O" IDX="27">
3. Run the root.sh on both the nodes
[root@raj ~]# /h01/app/oracle/db/12.1.0.2_02/root.sh
4. You can confirm this by checking the inventory file
grep $ORACLE_HOME /c01/app/oraInventory/ContentsXML/inventory.xml
Copy binaries from /h01/app/oracle/db/12.1.0.2_03 to /h01/app/oracle/db/12.1.0.2_02
/h01/app/oracle/db/12.1.0.2_03 > cp -Rp /h01/app/oracle/db/12.1.0.2_02
export ORACLE_HOME=/h01/app/oracle/db/12.1.0.2_02
export PATH=$ORACLE_HOME/bin:$PATH
2. Run the clone command in silent mode on both the DB hosts one after the other as “oracle” user
perl /h01/app/oracle/db/12.1.0.2_02/clone/bin/clone.pl -silent ORACLE_HOME="/h01/app/oracle/db/12.1.0.2_02" ORACLE_HOME_NAME="OraDB12Home2" ORACLE_BASE="/h01/app" '-O"CLUSTER_NODES={raj}"' '-O"LOCAL_NODE=raj"'
oracle@raj (SID:DEMO) /h01/app/oracle/db/12.1.0.2_02 $ export ORACLE_HOME=/h01/app/oracle/db/12.1.0.2_02
oracle@raj (SID:DEMO) /h01/app/oracle/db/12.1.0.2_02 $ export PATH=$ORACLE_HOME/bin:$PATH
oracle@raj (SID:DEMO) /h01/app/oracle/db/12.1.0.2_02 $ DES={raj}"' '-O"LOCAL_NODE=raj"' <
./runInstaller -clone -waitForCompletion "ORACLE_HOME=/h01/app/oracle/db/12.1.0.2_02" "ORACLE_HOME_NAME=OraDB12Home2" "ORACLE_BASE=/h01/app" "CLUSTER_NODES={raj}" "LOCAL_NODE=raj" -silent -paramFile /h01/app/oracle/db/12.1.0.2_02/clone/clone_oraparam.ini
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 4023 MB Passed
Checking swap space: must be greater than 500 MB. Actual 32767 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2019-06-04_02-18-54PM. Please wait ...You can find the log of this install session at:
/c01/app/oraInventory/logs/cloneActions2019-06-04_02-18-54PM.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 OraDB12Home2 was successful.
Please check '/c01/app/oraInventory/logs/cloneActions2019-06-04_02-18-54PM.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. /h01/app/oracle/db/12.1.0.2_02/root.sh
Execute /h01/app/oracle/db/12.1.0.2_02/root.sh on the following nodes:
[raj]
.................................................. 100% Done.
oracle@raj (SID:DEMO) /h01/app/oracle/db/12.1.0.2_02 $ grep $ORACLE_HOME /c01/app/oraInventory/ContentsXML/inventory.xml
<HOME NAME="OraDB12Home2" LOC="/h01/app/oracle/db/12.1.0.2_02" TYPE="O" IDX="27">
3. Run the root.sh on both the nodes
[root@raj ~]# /h01/app/oracle/db/12.1.0.2_02/root.sh
4. You can confirm this by checking the inventory file
grep $ORACLE_HOME /c01/app/oraInventory/ContentsXML/inventory.xml
Comments
Post a Comment