您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

Oracle 10g,11g中的数据库克隆安装

2025/1/19 18:35:50发布25次查看
有时候在很多工作环境中,如果彼此几个机器的配置相似,我们就可以不用一遍又一遍的安装数据库软件了,我们可以为了更快的完成安
有时候在很多工作环境中,如果彼此几个机器的配置相似,我们就可以不用一遍又一遍的安装数据库软件了,我们可以为了更快的完成安装工作,在静默安装,图形安装的选择之外,还有克隆安装。不过在oracle 10g,11g的版本中还是存在一定的差别。虽然方法有差别,但是思路都是一致的。
我们可以从源环境中直接把oracle_home给打个包,在目标环境解压即可。这个时候尽管你去尝试sqlplus,exp这些工具也能用,但是还是存在很大的风险,毕竟别把它当成绿色版的。出了问题谁都兜不住。
11g的环境中,,可以使用下面的方式来安装。
到达$oracle_home/clone目录下,运行下面的脚本即可。输入的参数为oracle_home,还有oracle_home的名字,这个可以自己定义。
$ perl clone.pl oracle_base=/u01/app/oracle oracle_home=/u01/app/oracle/product/11.2.0.2/db_1  oracle_home_name=oradb10g_home1
 ./runinstaller -clone -waitforcompletion  oracle_base=/u01/app/oracle oracle_home=/u01/app/oracle/product/11.2.0.2/db_1 oracle_home_name=oradb10g_home1 -silent -noconfig -nowait
 starting oracle universal installer...
 checking swap space: must be greater than 500 mb.  actual 16383 mb    passed
 preparing to launch oracle universal installer from /tmp/orainstall2015-07-24_11-19-08am. please wait ...oracle universal installer, version 11.2.0.3.0 production
 copyright (c) 1999, 2011, oracle. all rights reserved.
 you can find the log of this install session at:
  /home/oracle/orainventory/logs/cloneactions2015-07-24_11-19-08am.log
 .................................................................................................... 100% done.
 installation in progress (friday, july 24, 2015 11:19:16 am cst)
 ...............................................................................                                                79% done.
 install successful
 linking in progress (friday, july 24, 2015 11:19:23 am cst)
 link successful
 setup in progress (friday, july 24, 2015 11:20:00 am cst)
 setup successful
 end of install phases.(friday, july 24, 2015 11:20:23 am cst)
然后根据提示使用root运行两个脚本即可。
10g的数据库软件就得换个方式,
 $oracle_home/oui/bin/runinstaller -clone -silent -ignoreprereq oracle_home=$oracle_home oracle_home_name=oradb10g_home1
 starting oracle universal installer...
 .................................................................................................... 100% done.
 installation in progress (friday, july 24, 2015 2:33:50 pm cst)
 ..........................................................................                                                      74% done.
 install successful
 linking in progress (friday, july 24, 2015 2:34:03 pm cst)
 link successful
 setup in progress (friday, july 24, 2015 2:34:03 pm cst)
 setup successful
 end of install phases.(friday, july 24, 2015 2:34:06 pm cst)
然后根据提示运行一个脚本。
如果拿11g的oracle_home采用10g的思路,报出的错误都让人摸不着头脑,因为oracle_base早就指定了。
 $oracle_home/oui/bin/runinstaller -clone -silent -ignoreprereq oracle_home=$oracle_home oracle_home_name=oradb10g_home1
 checking swap space: must be greater than 500 mb.  actual 16383 mb    passed
 preparing to launch oracle universal installer from /tmp/orainstall2015-07-24_10-34-10am. please wait ...[oracle@smbionline ~]$ oracle universal installer, version 11.2.0.3.0 production
 copyright (c) 1999, 2011, oracle. all rights reserved.
 you can find the log of this install session at:
 /u01/app/orainventory/logs/cloneactions2015-07-24_10-34-10am.log
values for the following variables could not be obtained from the command line or response file(s):
  oracle_base
 cloning cannot continue.
不过对于这种克隆方式还是需要简单验证一下,如果出现了意料之外的问题就是弄巧成拙了。
本文永久更新链接地址:
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product