Oracle Binary Cloning

Clone the oracle software between two server, need to confirm the OS compatibility are same between source & destination server.
[@more@]

Source Server:
****************
steps 1:
ORACLE_HOME: /JASUATDB01//oracle/product/10.2.0.1
Tar the oracle home 10.2.0.1
$cd /JASUATDB01//oracle/product
$tar -cvf 10.2.0.1.tar 10.2.0.1

Destination server:
******************
Steps 2:
Copy the oracle binary tar file from source server to Destination server.
$mkdir -p /JASUATDB01//oracle/product
$cd /JASUATDB01//oracle/product
$sftp oracle@source
$cd /JASUATDB01//oracle/product
$get 10.2.0.1.tar
$bye
$tar -cvf 10.2.0.1.tar

Steps 3:
Create the oratab file in appropriate path.
Enter the detail first in oratab: Eg..
Cat Oratab
cd /var/opt/oracle/oratab
testdb:/JASUATDB01//oracle/product/10.2.0.1:N

Steps 4:
Invoke the oraenv ( Optional method)
I need to create the testdb instance in dest server.
cd $ORACLE_HOME/bin
export ORACLE_HOME=/JASUATDB01//oracle/product/10.2.0.1
Source the SID ----- Here it is testdb
. oraenv
testdb

Steps 5:
Create the oraInst.loc in appropriate path.
Edit the oraInst.loc
/var/opt/oracle/oraInst.loc
inventory_loc=/JASUATDB01//oracle/product/10.2.0.1/oraInventory

Steps 6:
cd $ORACLE_HOME/oui/bin
edit *.sh(modify ORACLE_HOME if needed, i.e.: replace ECDSUAT to ECDSPRD)
# ORACLE_HOME_NAME should be diff in source/target in the same machine
./runInstaller -clone -silent -invPtrLoc /home/oracle/oraInst.loc -ignoreSysPrereqs ORACLE_HOME="/ECDSPRDDB01/oracle/product/10.2.0" ORACLE_HOME_NAME="OHOME10"

Steps 7:
Execute the relink all
$cd $ORACLE_HOME/bin
$ls -lart relink*
$relink all

Note:
changePerm.sh is a script that allows users that do not belong to the "dba" group to access and execute files in the ORACLE_HOME directory; run the changeperm.sh file in $ORACLE_HOME/install

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/60325/viewspace-1038116/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/60325/viewspace-1038116/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值