资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

使用clone方式完成Oracle软件的安装

 

创新互联建站2013年至今,先为化隆等服务建站,化隆等地企业,进行企业商务咨询服务。为化隆企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。

 

一、    准备条件

相同操作系统,已安装Oracle软件的环境

 

RHEL 5.8 X64

Oracle 11.2.0.3.0

 

检查Oracle补丁状态

$ $ORACLE_HOME/OPatch/opatch lsinventory

Invoking OPatch 11.2.0.1.7

 

Oracle Interim Patch Installer version 11.2.0.1.7

Copyright (c) 2011, Oracle Corporation. All rights reserved.

 

 

Oracle Home      : /u01/oracle

Central Inventory : /u01/oracle/oraInventory

   from          : /etc/oraInst.loc

OPatch version   : 11.2.0.1.7

OUI version      : 11.2.0.3.0

Log file location : /u01/oracle/cfgtoollogs/opatch/opatch3014-09-12_08-17-49AM.log

 

Lsinventory Output file location : /u01/oracle/cfgtoollogs/opatch/lsinv/lsinventory2014-09-12_08-17-49AM.txt

 

--------------------------------------------------------------------------------

Installed Top-level Products (1):

 

Oracle Database 11g                                                 11.2.0.3.0

There are 1 products installed in this Oracle Home.

 

 

There are no Interim patches installed in this Oracle Home.

 

 

--------------------------------------------------------------------------------

 

OPatch succeeded.

二、    停止数据库进程

三、    打包ORACLE HOME

$ tar cvf Oracle.tar $ORACLE_HOME

 

四、    tar包拷贝到B

B机环境变量设置成和A机一样

 

五、    BOracle用户clone

执行以下命令

$cd /u01/oracle/clone/bin

$ /u01/oracle/perl/bin/perl clone.pl ORACLE_BASE="/u01" ORACLE_HOME="/u01/oracle" OSDBA_GROUP=dba –defaultHomeName

./runInstaller -clone -waitForCompletion "ORACLE_BASE=/u01" "ORACLE_HOME=/u01/oracle" "oracle_install_OSDBA=dba" -defaultHomeName -defaultHomeName -silent -noConfig -nowait

Starting Oracle Universal Installer...

 

Checking swap space: must be greater than 500 MB.  Actual 1975 MB   Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-09-12_10-04-18AM. 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:

 /u01/app/oraInventory/logs/cloneActions2014-09-12_10-04-18AM.log

.................................................................................................... 100% Done.

 

 

 

Installation in progress (Friday, September 12, 2014 10:05:29 AM CST)

...............................................................................                                               79% Done.

Install successful

 

Linking in progress (Friday, September 12, 2014 10:06:34 AM CST)

Link successful

 

Setup in progress (Friday, September 12, 2014 10:12:11 AM CST)

Setup successful

 

End of install phases.(Friday, September 12, 2014 10:13:08 AM CST)

WARNING:A new inventory has been created in this session. However, it has not yet been registered as the central inventory of this system.

To register the new inventory please run the script '/u01/app/oraInventory/orainstRoot.sh' with root privileges.

If you do not register the inventory, you may not be able to update or patch the products you installed.

The following configuration scripts need to be executed as the "root" user.

/u01/app/oraInventory/orainstRoot.sh

/u01/oracle/root.sh

To execute the configuration scripts:

    1. Open a terminal window

    2. Log in as "root"

    3. Run the scripts

   

The cloning of OraHome1 was successful.

Please check '/u01/app/oraInventory/logs/cloneActions2014-09-12_10-04-18AM.log' for more details.

 

按照提示执行脚本:

[root@oracle ~]# sh /u01/app/oraInventory/orainstRoot.sh

Changing permissions of /u01/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

 

Changing groupname of /u01/app/oraInventory to oinstall.

The execution of the script is complete.

[root@oracle ~]# sh /u01/oracle/root.sh

Check /u01/oracle/install/root_oracle_2014-09-12_10-18-13.log for the output of root script

 

B机的ORACLE软件已安装完毕


本文名称:使用clone方式完成Oracle软件的安装
文章路径:http://cdkjz.cn/article/iegchp.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220