克隆安装oracle软件的步骤(2)

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

?克隆安装步骤
step1:找一台安装过oracle的机器,然后将$ORACLE_HOME的文件拷贝到新机器的$ORACLE_HOME下面
[root@Database-backup ~]# su - oracle
[oracle@Database-backup ~]$ echo $ORACLE_HOME
/data/app/oracle/product/11.2.0.4/db_1
[oracle@Database-backup ~]$ cd $ORACLE_HOME
[oracle@Database-backup db_1]$ cd ..
[oracle@Database-backup 11.2.0.4]$ scp -rp db_1 10.240.9.200:/u01/app/oracle/product/11.2.0.4/

step2:
授予权限,进入克隆目录执行克隆命令:注意ORACLE_SID ORACLE_BASE ORACLE_HOME设置成自己所需的
chown -R oracle:oinstall /data/app/
chmod -R 755 /data/app/
su - oracle
cd /u01/app/oracle/product/11.2.0.4/db_1/clone/bin/ (cd $ORACLE_HOME/clone/bin)
perl clone.pl ORACLE_SID=dev_bi_edw_shoes ORACLE_BASE=/u01/app/oracle/ ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db_1 ORACLE_HOME_NAME=OraDb11g_home1


step3:运行命令,该命令是step2执行后显示的如下命令,根据提示执行即可

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/OraInstall2016-09-14_08-54-23PM. 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:
/home/oracle/oraInventory/logs/cloneActions2016-09-14_08-54-23PM.log
.................................................................................................... 100% Done.



Installation in progress (Wednesday, September 14, 2016 8:54:29 PM CST)
.............................................................................. 78% Done.
Install successful

Linking in progress (Wednesday, September 14, 2016 8:54:33 PM CST)
Link successful

Setup in progress (Wednesday, September 14, 2016 8:54:53 PM CST)
Setup successful

End of install phases.(Wednesday, September 14, 2016 8:55:14 PM 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 '/home/oracle/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.
/home/oracle/oraInventory/orainstRoot.sh
/data/app/oracle/product/11.2.0.4/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 '/home/oracle/oraInventory/logs/cloneActions2016-09-14_08-54-23PM.log' for more details.

step4:验证安装成功
以下命令执行成功即可
sqlplus / as sysdba




相关文档
最新文档