Amazon books

Sunday, July 14, 2013

Clone RAC 11g Binaries to Single Instance


1.      Copy OH from source to target:

cd /dbotm/oracle/products
find 11.2 -print | cpio -ov > /media/binario_OTM/OH_otm.cpio           
scp /media/binario_OTM/OH_otm.cpio orabpel7@10.3.0.31:/midias/binario_OTM            

2.     Create OH on new target:


mkdir -p /dbbpel7/oracle/products/11.2

3.     Uncompress:

cd /dbbpel7/oracle/products/              
cpio -idmv < /midias/binario_OTM/OH_otm.cpio

4.     Run clone.pl to clone binaries:

export ORACLE_HOME=/dbbpel7/oracle/products/11.2         
cd $ORACLE_HOME/clone/bin
perl clone.pl ORACLE_HOME="/dbbpel7/oracle/products/11.2" ORACLE_HOME_NAME="OH_BPEL7" ORACLE_BASE="/dbbpel7" OSDBA_GROUP=oinstall OSOPER_GROUP=dba


5.     Don't forget to run as root:

cd $ORACLE_HOME
./root.sh    

6.     Fix inventory(if necessary):
cd $ORACLE_HOME/oui/bin
./runInstaller -clone -silent -ignorePreReq ORACLE_HOME="/dbbpel7/oracle/products/11.2" ORACLE_HOME_NAME="OH_BPEL7" ORACLE_BASE="/dbbpel7" oracle_install_OSDBA=oinstall oracle_install_OSOPER=dba

7.     Finally, change RAC to OFF:

cd $ORACLE_HOME/rdbms/lib
/usr/ccs/bin/make -f ins_rdbms.mk rac_off
make -f ins_rdbms.mk ioracle


Best Regards,

Paulo Portugal 

No comments:

Post a Comment