db_1.zip 100% 2366MB 30.0MB/s 01:19
4. 解压zip文件
[root@localhost oracle]# unzip -d / db_1.zip
[root@localhost oracle]# chown -R oracle.oinstall /u01/
5.执行Clone命令
[oracle@localhost ~]$ cd /u01/app/oracle/product/11.2.0/db_1/clone/bin/
[oracle@localhost bin]$ $ORACLE_HOME/perl/bin/perl clone.pl ORACLE_BASE="/u01/app/oracle/" ORACLE_HOME="/u01/app/oracle/product/11.2.0/db_1" OSDBA_GROUP=dba OSOPER_GROUP=oper -defaultHomeName
执行结果如下
./runInstaller -clone -waitForCompletion "ORACLE_BASE=/u01/app/oracle/" "ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1" "oracle_install_OSDBA=dba" "oracle_install_OSOPER=oper" -defaultHomeName -defaultHomeName -silent -noConfig -nowait
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 1999 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-08-22_05-13-13AM. 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/app/oraInventory/logs/cloneActions2015-08-22_05-13-13AM.log
.................................................................................................... 100% Done.
Installation in progress (Saturday, August 22, 2015 5:13:31 AM CST)
.............................................................................. 78% Done.
Install successful
Linking in progress (Saturday, August 22, 2015 5:13:38 AM CST)
Link successful
Setup in progress (Saturday, August 22, 2015 5:13:41 AM CST)
Setup successful
End of install phases.(Saturday, August 22, 2015 5:14:06 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/app/oracle/product/11.2.0/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 OraHome1 was successful.
Please check '/u01/app/oraInventory/logs/cloneActions2015-08-22_05-13-13AM.log' for more details.
6. 使用root用户运行上面的两个脚本
[root@localhost ~]# /u01/app/oraInventory/orainstRoot.sh
[root@localhost ~]# /u01/app/oracle/product/11.2.0/db_1/root.sh