您好,欢迎访问一九零五行业门户网

克隆安装Oracle 11G HOME

测试oracle 11.2.0.4 + goldengate 11.2,需要两台linux测试环境都将安装oracle,目前rac1已经安装好oracle 11.2.0.4 softawre,节
测试oracle 11.2.0.4 + goldengate 11.2,需要两台linux测试环境都将安装oracle,
测试环境节点1机器名:rac1  源端
测试环境节点1机器名:rac2 目标端两台机器目录结构一致目前rac1已经安装好oracle 11.2.0.4 softawre,节点2 rac2已经没有空间存放oracle安装介质,,所以采取克隆方式安装,将rac1安装好的克隆过来。[oracle@rac1 ~]$ echo $oracle_home/u01/oracle/product/11.2/db_1[oracle@rac1 ~]$ cd /u01/oracle/product/11.2[oracle@rac1 11.2]$ lsdb_1将oracle_home下面的文件scp到目标端:[oracle@rac1 ~]$ scp -rp db_1 oracle@192.168.3.201:/u01/oracle/product/11.2
使用clone.pl脚本克隆:
[oracle@rac2 ~]$ cd /u01/oracle/product/11.2/db_1/clone/bin
[oracle@rac2 bin]$ ls
clone.pl prepare_clone.pl
[oracle@rac2 bin]$ perl clone.pl oracle_base=/u01/oracle oracle_home=/u01/oracle/product/11.2/db_1 oracle_home_name=oradb11g_home1
./runinstaller -clone -waitforcompletion oracle_base=/u01/oracle oracle_home=/u01/oracle/product/11.2/db_1 oracle_home_name=oradb11g_home1 -silent -noconfig -nowait
starting oracle universal installer...
checking swap space: must be greater than 500 mb. actual 1023 mb passed
preparing to launch oracle universal installer from /tmp/orainstall2013-10-28_02-45-44pm. please wait ...oracle universal installer, version 11.2.0.4.0 production
copyright (c) 1999, 2013, oracle. all rights reserved.
you can find the log of this install session at:
/u01/oracle/orainventory/logs/cloneactions2013-10-28_02-45-44pm.log
................................................................................... 100% done.
installation in progress (monday, october 28, 2013 2:46:23 pm cst)
.............................................................................. 78% done.
install successful
linking in progress (monday, october 28, 2013 2:46:42 pm cst)
link successful
setup in progress (monday, october 28, 2013 2:49:39 pm cst)
setup successful
end of install phases.(monday, october 28, 2013 2:50:08 pm cst)
warning:
the following configuration scripts need to be executed as the root user.
/u01/oracle/product/11.2/db_1/root.sh
to execute the configuration scripts:
1. open a terminal window
2. log in as root
3. run the scripts
the cloning of oradb11g_home1 was successful.
please check '/u01/oracle/orainventory/logs/cloneactions2013-10-28_02-45-44pm.log' for more details.
使用root用户执行root.sh
[root@rac2 tmp]# sh /u01/oracle/product/11.2/db_1/root.sh
check /u01/oracle/product/11.2/db_1/install/root_rac2_2013-10-28_14-50-29.log for the output of root script
到此位置克隆完成。
以前这台机器安装过oracle 10gr2 rac,现在检查oracle 11g oracle_home_name是否添加到inventory.xml[root@rac2 ~]# cd /u01/oracle/orainventory/contentsxml[root@rac2 contentsxml]# lscomps.xml inventory.xml libs.xml[root@rac2 contentsxml]# more inventory.xml11.2.0.4.02.1.0.6.0可以看到已经添加下面内容home loc=/u01/oracle/product/11.2/db_1推荐阅读:
linux操作系统中oracle 11g数据库安装过程图文详解
centos 5.6 上安装 oracle 11g r2 单实例数据库详解
oracle vm虚拟机中安装oracle clusterware 11g步骤
vm虚拟机下在linux上安装oracle 11g单实例数据库
其它类似信息

推荐信息