Ora_通过克隆方式安装11g R2 rac 软件

Posted 奋斗的小鸟_oracle

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ora_通过克隆方式安装11g R2 rac 软件相关的知识,希望对你有一定的参考价值。

-----------------克隆grid 软件-------------------
分类: Oracle
参数文档:How to Clone an 11.2.0.3 Grid Infrastructure Home and Clusterware (文档 ID 1413846.1)


1、克隆虚拟机:
输入cmd 进入VBox安装目录,执行如下命令:
VBoxManage clonehd  "G:\\rac_clone\\clone1\\clone1.vdi"   "G:\\rac_clone\\clone1\\clone2.vdi"


2、RAC两节点配置
--Node1/Node2
2.1 /etc/hosts
########## For Oracle 11g RAC Database Begin ##########
#public ip
192.168.56.110   xulq1
192.168.56.111   xulq2


#priv ip
10.10.10.11    xulq1-priv
10.10.10.12    xulq2-priv


#vip ip
192.168.56.112   xulq1-vip
192.168.56.113   xulq2-vip


#scan ip
192.168.56.114  xulq-scan


########## For Oracle 11g RAC Database End ##########


3、创建Oracle/Grid 用户
3.1 创建用户组
/usr/sbin/groupadd -g 501 oinstall
/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 503 oper
/usr/sbin/groupadd -g 504 asmadmin
/usr/sbin/groupadd -g 505 asmoper
/usr/sbin/groupadd -g 506 asmdba
3.2 创建oracle和grid用户
创建之前,需要先清空/home/oracle或者/home/grid
-->>Oracle用户创建
/usr/sbin/useradd -g oinstall -G dba,asmdba,oper -d /home/oracle oracle
passwd oracle
-->>Grid用户创建
/usr/sbin/useradd -g oinstall -G asmadmin,asmdba,asmoper,oper,dba -d /home/grid grid
passwd grid


3.3 检查
[root@ora1 ~]# id oracle
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),506(asmdba)
[root@ora1 ~]# id grid
uid=502(grid) gid=501(oinstall)
groups=501(oinstall),502(dba),503(oper),504(asmadmin),505(asmoper),506(asmdba)


4、创建Gird目录及Oracle目录
4.1 grid目录
mkdir -p /u01/product/grid
mkdir -p /u01/product/11.2/grid
4.2 目录属组关系
chown -R grid:oinstall /u01/product/grid
chown -R grid:oinstall /u01/product/11.2
4.3 oracle目录
mkdir -p /u01/product/oracle
4.4 目录属组关系
chown -R oracle:oinstall /u01/product/oracle


5、环境变量设置
5.1 grid environment
-->> .bash_profile


# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi


# User specific environment and startup programs


PATH=$PATH:$HOME/bin


export PATH
stty erase ^?
stty erase ^h
stty erase ^H
export ORACLE_SID=+ASM1
export ORACLE_BASE=/u01/product/grid
export ORACLE_HOME=/u01/product/11.2/grid
export ORACLE_TERM=xterm
export NLS_DATE_FORMAT="YYYY-MM-DD-HH24:MI:SS"
export TNS_ADMIN=$ORACLE_HOME/network/admin
export PATH=$HOME/bin:$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export CLASSPATH=$ORACLE_HOME/JRE
export TEMP=/tmp
export TMPDIR=/tmp
umask 022


5.2 Oracle environment
-->> .bash_profile


# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi


# User specific environment and startup programs


PATH=$PATH:$HOME/bin


export PATH


# Oracle Settings oracle


stty erase ^?
stty erase ^h
stty erase ^H
export ORACLE_UNQNAME=XULQ
export ORACLE_SID=xulq1
export ORACLE_BASE=/u01/product/oracle
export ORACLE_HOME=$ORACLE_BASE/11.2
export ORACLE_TERM=xterm
export NLS_DATE_FORMAT="YYYY-MM-DD-HH24:MI:SS"
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORA_NLS11=$ORACLE_HOME/nls/data
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export CLASSPATH=$ORACLE_HOME/JRE
export TEMP=/tmp
export TMPDIR=/tmp
umask 022


##For DBA 
alias ss='sqlplus / as sysdba'
alias bdump='cd $ORACLE_HOME/diag..'


6、配置互信
-->> su - oracle / su - grid


mkdir ~/.ssh
ssh-keygen -t rsa
ssh-keygen -t dsa


在主节点RAC1上grid,oracle用户执行以下操作
cat ~/.ssh/id_rsa.pub >> ./.ssh/authorized_keys
cat ~/.ssh/id_dsa.pub >> ./.ssh/authorized_keys
ssh xulq2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh xulq2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
scp ~/.ssh/authorized_keys xulq2:~/.ssh/authorized_keys


两个节点验证(必须):
ssh xulq1 date
ssh xulq2 date
ssh xulq1-priv date
ssh xulq2-priv date




7、源端tar数据库软件
tar -cvpf /soft_temp/ora_gi.tar /u01/product
-->>传输到目标端
scp /soft_temp/ora_gi.tar Node:/dir
-->>解压软件
tar -xvf /soft_temp/ora_gi.tar


8、移处不必要的文件
cd $GRID_HOME
注:把源hostname删掉
rm -rf xulq1
rm -rf log/xulq1
rm -rf gpnp/xulq1
find gpnp -type f -exec rm -f \\;
find cfgtoollogs -type f -exec rm -f \\;
rm -rf crs/init/*
rm -rf cdata/*
rm -rf crf/*
rm -rf network/admin/*.ora
find . -name '*.ouibak' -exec rm \\;
find . -name '*.ouibak.1' -exec rm \\;
rm -rf root.sh*


9、创建oraInventory路径
mkdir -p /grid/app/oraInventory
chown grid:oinstall /grid/app/oraInventory
chown -R grid:oinstall /grid


10、设置setuid and setgid for grid
在文件执行时把进程的属主或组ID置为该文件的文件属主。
方式“u+s”设置文件的用户ID位,“g+s”设置组ID位。
chmod u+s $ORACLE_HOME/bin/oracle
chmod g+s $ORACLE_HOME/bin/oracle
chmod u+s $ORACLE_HOME/bin/extjob
chmod u+s $ORACLE_HOME/bin/jssu
chmod u+s $ORACLE_HOME/bin/oradism


11、创建磁盘组


dd if=/dev/zero of=/dev/rolv_vote1 bs=1024k count=200
dd if=/dev/zero of=/dev/rolv_vote2 bs=1024k count=200
dd if=/dev/zero of=/dev/rolv_vote3 bs=1024k count=200


dd if=/dev/zero of=/dev/rolv_ocr1 bs=1024k count=200
dd if=/dev/zero of=/dev/rolv_ocr2 bs=1024k count=200


chown grid:oinstall /dev/rolv_ocr1
chown grid:oinstall /dev/rolv_ocr2


chown grid:oinstall /dev/rolv_vote1
chown grid:oinstall /dev/rolv_vote2
chown grid:oinstall /dev/rolv_vote3




12、执行clone命令(Node1/Node2)
-->> node1 grid用户
cd /grid/product/11.2.0/gridhome_1/clone/bin


perl clone.pl -silent -debug ORACLE_BASE=/u01/product/grid ORACLE_HOME=/u01/product/11.2/grid ORACLE_HOME_NAME=gridhome INVENTORY_LOCATION=/u01/product/oraInventory OSDBA_GROUP=oinstall OSOPER_GROUP=dba -O'"CLUSTER_NODES=xulq1,xulq2"' -O'"LOCAL_NODE=xulq1"' CRS=TRUE -ignoreSysPrereqs


----------出现的错误---
[grid@xulq1 bin]$ perl clone.pl -silent -debug ORACLE_BASE=/u01/product/grid ORACLE_HOME=/u01/product/11.2/grid ORACLE_HOME_NAME=xulq1 INVENTORY_LOCATION=/u01/product/oraInventory OSDBA_GROUP=oinstall OSOPER_GROUP=dba -O'"CLUSTER_NODES=xulq1,xulq2"' -O'"LOCAL_NODE=xulq1"' CRS=TRUE -ignoreSysPrereqs
./runInstaller -clone -waitForCompletion  "ORACLE_BASE=/u01/product/grid" "ORACLE_HOME=/u01/product/11.2/grid" "ORACLE_HOME_NAME=xulq1" "INVENTORY_LOCATION=/u01/product/oraInventory" "oracle_install_OSDBA=oinstall" "oracle_install_OSOPER=dba" "CLUSTER_NODES=xulq1,xulq2" "LOCAL_NODE=xulq1" "CRS=TRUE" -ignoreSysPrereqs  -debug -silent -noConfig -nowait 
Starting Oracle Universal Installer...


Checking swap space: must be greater than 500 MB.   Actual 2047 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-07-14_08-10-56PM. Please wait ...
LD_LIBRARY_PATH environment variable :
-------------------------------------------------------
Total args: 36
Command line argument array elements ...
Arg:0:/tmp/OraInstall2016-07-14_08-10-56PM/jre/bin/java:
Arg:1:-Doracle.installer.library_loc=/tmp/OraInstall2016-07-14_08-10-56PM/oui/lib/linux64:
Arg:2:-Doracle.installer.oui_loc=/tmp/OraInstall2016-07-14_08-10-56PM/oui:
Arg:3:-Doracle.installer.bootstrap=TRUE:
Arg:4:-Doracle.installer.startup_location=/u01/product/11.2/grid/oui/bin:
Arg:5:-Doracle.installer.jre_loc=../../jre:
Arg:6:-Doracle.installer.custom_inventory=/u01/product/oraInventory:
Arg:7:-Doracle.installer.nlsEnabled="TRUE":
Arg:8:-Doracle.installer.prereqConfigLoc= :
Arg:9:-Doracle.installer.unixVersion=2.6.18-308.el5:
Arg:10:-mx150m:
Arg:11:-cp:
Arg:12:/tmp/OraInstall2016-07-14_08-10-56PM::/tmp/OraInstall2016-07-14_08-10-56PM/ext/jlib/ssh.jar:/tmp/OraInstall2016-07-14_08-10-56PM/ext/jlib/installcommons_1.0.0b.jar:/tmp/OraInstall2016-07-14_08-10-56PM/ext/jlib/cvu.jar:/tmp/OraInstall2016-07-14_08-10-56PM/ext/jlib/OraPrereqChecks.jar:/tmp/OraInstall2016-07-14_08-10-56PM/ext/jlib/prov_fixup.jar:/tmp/OraInstall2016-07-14_08-10-56PM/ext/jlib/orai18n-mapping.jar:/tmp/OraInstall2016-07-14_08-10-56PM/ext/jlib/orai18n-utility.jar:/tmp/OraInstall2016-07-14_08-10-56PM/ext/jlib/instcommon.jar:/tmp/OraInstall2016-07-14_08-10-56PM/ext/jlib/remoteinterfaces.jar:/tmp/OraInstall2016-07-14_08-10-56PM/ext/jlib/jsch.jar:/tmp/OraInstall2016-07-14_08-10-56PM/ext/jlib/instcrs.jar:/tmp/OraInstall2016-07-14_08-10-56PM/ext/jlib/OraPrereq.jar:/tmp/OraInstall2016-07-14_08-10-56PM/ext/jlib/ojdbc5.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/OraInstaller.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/oneclick.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/xmlparserv2.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/share.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/OraInstallerNet.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/emCfg.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/emocmutl.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/OraPrereq.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/jsch.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/ssh.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/remoteinterfaces.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/http_client.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/OraSuiteInstaller.jar:/tmp/OraInstall2016-07-14_08-10-56PM/OPatch/jlib/opatch.jar:/tmp/OraInstall2016-07-14_08-10-56PM/OPatch/jlib/opatchactions.jar:/tmp/OraInstall2016-07-14_08-10-56PM/OPatch/jlib/opatchprereq.jar:/tmp/OraInstall2016-07-14_08-10-56PM/OPatch/jlib/opatchutil.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/OraCheckPoint.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/InstImages.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/InstHelp.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/InstHelp_de.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/InstHelp_es.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/InstHelp_fr.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/InstHelp_it.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/InstHelp_ja.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/InstHelp_ko.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/InstHelp_pt_BR.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/InstHelp_zh_CN.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/InstHelp_zh_TW.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/oracle_ice.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/help4.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/help4-nls.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/ewt3.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/ewt3-swingaccess.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/ewt3-nls.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/swingaccess.jar::/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/jewt4.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/jewt4-nls.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/orai18n-collation.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/orai18n-mapping.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/ojmisc.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/xml.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/srvm.jar:/tmp/OraInstall2016-07-14_08-10-56PM/oui/jlib/srvmasm.jar:
Arg:13:oracle.sysman.oii.oiic.OiicInstaller:
Arg:14:-scratchPath:
Arg:15:/tmp/OraInstall2016-07-14_08-10-56PM:
Arg:16:-sourceType:
Arg:17:network:
Arg:18:-timestamp:
Arg:19:2016-07-14_08-10-56PM:
Arg:20:-clone:
Arg:21:-waitForCompletion:
Arg:22:ORACLE_BASE=/u01/product/grid:
Arg:23:ORACLE_HOME=/u01/product/11.2/grid:
Arg:24:ORACLE_HOME_NAME=xulq1:
Arg:25:INVENTORY_LOCATION=/u01/product/oraInventory:
Arg:26:oracle_install_OSDBA=oinstall:
Arg:27:oracle_install_OSOPER=dba:
Arg:28:CLUSTER_NODES=xulq1,xulq2:
Arg:29:LOCAL_NODE=xulq1:
Arg:30:CRS=TRUE:
Arg:31:-ignoreSysPrereqs:
Arg:32:-debug:
Arg:33:-silent:
Arg:34:-noConfig:
Arg:35:-nowait:
-------------------------------------------------------
Initializing Java Virtual Machine from /tmp/OraInstall2016-07-14_08-10-56PM/jre/bin/java. 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/product/oraInventory/logs/cloneActions2016-07-14_08-10-56PM.log
OUI-10197:Unable to create a new Oracle Home at /u01/product/11.2/grid. Oracle Home already exists at this location. Select another location.
SEVERE:OUI-10197:Unable to create a new Oracle Home at /u01/product/11.2/grid. Oracle Home already exists at this location. Select another location.


----------解决方法---
通过清空:/u01/product/oraInventory 下的文件解决。


--->>重新执行正常
[grid@xulq1 bin]$ perl clone.pl -silent -debug ORACLE_BASE=/u01/product/grid ORACLE_HOME=/u01/product/11.2/grid ORACLE_HOME_NAME=gridhome INVENTORY_LOCATION=/u01/product/oraInventory OSDBA_GROUP=oinstall OSOPER_GROUP=dba -O'"CLUSTER_NODES=xulq1,xulq2"' -O'"LOCAL_NODE=xulq1"' CRS=TRUE -ignoreSysPrereqs
./runInstaller -clone -waitForCompletion  "ORACLE_BASE=/u01/product/grid" "ORACLE_HOME=/u01/product/11.2/grid" "ORACLE_HOME_NAME=xulq1" "INVENTORY_LOCATION=/u01/product/oraInventory" "oracle_install_OSDBA=oinstall" "oracle_install_OSOPER=dba" "CLUSTER_NODES=xulq1,xulq2" "LOCAL_NODE=xulq1" "CRS=TRUE" -ignoreSysPrereqs  -debug -silent -noConfig -nowait 
Starting Oracle Universal Installer...


Checking swap space: must be greater than 500 MB.   Actual 2047 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-07-14_08-15-30PM. Please wait ...
LD_LIBRARY_PATH environment variable :
-------------------------------------------------------
Total args: 36
Command line argument array elements ...
Arg:0:/tmp/OraInstall2016-07-14_08-15-30PM/jre/bin/java:
Arg:1:-Doracle.installer.library_loc=/tmp/OraInstall2016-07-14_08-15-30PM/oui/lib/linux64:
Arg:2:-Doracle.installer.oui_loc=/tmp/OraInstall2016-07-14_08-15-30PM/oui:
Arg:3:-Doracle.installer.bootstrap=TRUE:
Arg:4:-Doracle.installer.startup_location=/u01/product/11.2/grid/oui/bin:
Arg:5:-Doracle.installer.jre_loc=../../jre:
Arg:6:-Doracle.installer.custom_inventory=/u01/product/oraInventory:
Arg:7:-Doracle.installer.nlsEnabled="TRUE":
Arg:8:-Doracle.installer.prereqConfigLoc= :
Arg:9:-Doracle.installer.unixVersion=2.6.18-308.el5:
Arg:10:-mx150m:
Arg:11:-cp:
Arg:12:/tmp/OraInstall2016-07-14_08-15-30PM::/tmp/OraInstall2016-07-14_08-15-30PM/ext/jlib/ssh.jar:/tmp/OraInstall2016-07-14_08-15-30PM/ext/jlib/installcommons_1.0.0b.jar:/tmp/OraInstall2016-07-14_08-15-30PM/ext/jlib/cvu.jar:/tmp/OraInstall2016-07-14_08-15-30PM/ext/jlib/OraPrereqChecks.jar:/tmp/OraInstall2016-07-14_08-15-30PM/ext/jlib/prov_fixup.jar:/tmp/OraInstall2016-07-14_08-15-30PM/ext/jlib/orai18n-mapping.jar:/tmp/OraInstall2016-07-14_08-15-30PM/ext/jlib/orai18n-utility.jar:/tmp/OraInstall2016-07-14_08-15-30PM/ext/jlib/instcommon.jar:/tmp/OraInstall2016-07-14_08-15-30PM/ext/jlib/remoteinterfaces.jar:/tmp/OraInstall2016-07-14_08-15-30PM/ext/jlib/jsch.jar:/tmp/OraInstall2016-07-14_08-15-30PM/ext/jlib/instcrs.jar:/tmp/OraInstall2016-07-14_08-15-30PM/ext/jlib/OraPrereq.jar:/tmp/OraInstall2016-07-14_08-15-30PM/ext/jlib/ojdbc5.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/OraInstaller.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/oneclick.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/xmlparserv2.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/share.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/OraInstallerNet.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/emCfg.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/emocmutl.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/OraPrereq.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/jsch.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/ssh.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/remoteinterfaces.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/http_client.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/OraSuiteInstaller.jar:/tmp/OraInstall2016-07-14_08-15-30PM/OPatch/jlib/opatch.jar:/tmp/OraInstall2016-07-14_08-15-30PM/OPatch/jlib/opatchactions.jar:/tmp/OraInstall2016-07-14_08-15-30PM/OPatch/jlib/opatchprereq.jar:/tmp/OraInstall2016-07-14_08-15-30PM/OPatch/jlib/opatchutil.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/OraCheckPoint.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/InstImages.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/InstHelp.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/InstHelp_de.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/InstHelp_es.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/InstHelp_fr.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/InstHelp_it.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/InstHelp_ja.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/InstHelp_ko.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/InstHelp_pt_BR.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/InstHelp_zh_CN.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/InstHelp_zh_TW.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/oracle_ice.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/help4.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/help4-nls.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/ewt3.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/ewt3-swingaccess.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/ewt3-nls.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/swingaccess.jar::/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/jewt4.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/jewt4-nls.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/orai18n-collation.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/orai18n-mapping.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/ojmisc.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/xml.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/srvm.jar:/tmp/OraInstall2016-07-14_08-15-30PM/oui/jlib/srvmasm.jar:
Arg:13:oracle.sysman.oii.oiic.OiicInstaller:
Arg:14:-scratchPath:
Arg:15:/tmp/OraInstall2016-07-14_08-15-30PM:
Arg:16:-sourceType:
Arg:17:network:
Arg:18:-timestamp:
Arg:19:2016-07-14_08-15-30PM:
Arg:20:-clone:
Arg:21:-waitForCompletion:
Arg:22:ORACLE_BASE=/u01/product/grid:
Arg:23:ORACLE_HOME=/u01/product/11.2/grid:
Arg:24:ORACLE_HOME_NAME=xulq1:
Arg:25:INVENTORY_LOCATION=/u01/product/oraInventory:
Arg:26:oracle_install_OSDBA=oinstall:
Arg:27:oracle_install_OSOPER=dba:
Arg:28:CLUSTER_NODES=xulq1,xulq2:
Arg:29:LOCAL_NODE=xulq1:
Arg:30:CRS=TRUE:
Arg:31:-ignoreSysPrereqs:
Arg:32:-debug:
Arg:33:-silent:
Arg:34:-noConfig:
Arg:35:-nowait:
-------------------------------------------------------
Initializing Java Virtual Machine from /tmp/OraInstall2016-07-14_08-15-30PM/jre/bin/java. 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/product/oraInventory/logs/cloneActions2016-07-14_08-15-30PM.log
...........................................................................................[main] [ 2016-07-14 20:15:39.127 CST ] [QueryCluster.<init>:56]  No Cluster detected
[main] [ 2016-07-14 20:15:39.128 CST ] [QueryCluster.isCluster:65]  Cluster existence check = false
......... 100% Done.






Installation in progress (Thursday, July 14, 2016 8:15:41 PM CST)
.....................................................................                                                           69% Done.
Install successful


Linking in progress (Thursday, July 14, 2016 8:15:46 PM CST)
Link successful


Setup in progress (Thursday, July 14, 2016 8:16:41 PM CST)
................                                                100% Done.
Setup successful


End of install phases.(Thursday, July 14, 2016 8:17:06 PM CST)
[main] [ 2016-07-14 20:17:07.002 CST ] [ClusterCmd.transferFileToNodes:4356]  Single node execution will not using clientResources
[main] [ 2016-07-14 20:17:07.003 CST ] [TransferFileCommand.execute:77]  TransferFileCommand on node:xulq1
[main] [ 2016-07-14 20:17:07.003 CST ] [UnixSystem.transferFileToNode:3641]  transferFileToNode operation on node: xulq1
[main] [ 2016-07-14 20:17:07.037 CST ] [UnixSystem.checkRemoteExecutionSetup:2185]  checkRemoteExecutionSetup:: Checking user equivalence using Secured Shell '/usr/bin/ssh'
[main] [ 2016-07-14 20:17:07.038 CST ] [UnixSystem.checkRemoteExecutionSetup:2187]  checkRemoteExecutionSetup:: Running Unix command: /usr/bin/ssh -o FallBackToRsh=no  -o PasswordAuthentication=no  -o StrictHostKeyChecking=yes  -o NumberOfPasswordPrompts=0 xulq1 /bin/true
[main] [ 2016-07-14 20:17:07.040 CST ] [RuntimeExec.runCommand:75]  Calling Runtime.exec() with the command 
[main] [ 2016-07-14 20:17:07.040 CST ] [RuntimeExec.runCommand:77]  /usr/bin/ssh 
[main] [ 2016-07-14 20:17:07.041 CST ] [RuntimeExec.runCommand:77]  -o 
[main] [ 2016-07-14 20:17:07.042 CST ] [RuntimeExec.runCommand:77]  FallBackToRsh=no 
[main] [ 2016-07-14 20:17:07.043 CST ] [RuntimeExec.runCommand:77]  -o 
[main] [ 2016-07-14 20:17:07.044 CST ] [RuntimeExec.runCommand:77]  PasswordAuthentication=no 
[main] [ 2016-07-14 20:17:07.044 CST ] [RuntimeExec.runCommand:77]  -o 
[main] [ 2016-07-14 20:17:07.045 CST ] [RuntimeExec.runCommand:77]  StrictHostKeyChecking=yes 
[main] [ 2016-07-14 20:17:07.045 CST ] [RuntimeExec.runCommand:77]  -o 
[main] [ 2016-07-14 20:17:07.046 CST ] [RuntimeExec.runCommand:77]  NumberOfPasswordPrompts=0 
[main] [ 2016-07-14 20:17:07.046 CST ] [RuntimeExec.runCommand:77]  xulq1 
[main] [ 2016-07-14 20:17:07.067 CST ] [RuntimeExec.runCommand:77]  /bin/true 
[Thread-62] [ 2016-07-14 20:17:07.072 CST ] [StreamReader.run:61]  In StreamReader.run 
[main] [ 2016-07-14 20:17:07.072 CST ] [RuntimeExec.runCommand:142]  runCommand: Waiting for the process
[Thread-61] [ 2016-07-14 20:17:07.073 CST ] [StreamReader.run:61]  In StreamReader.run 
[main] [ 2016-07-14 20:17:07.663 CST ] [RuntimeExec.runCommand:144]  runCommand: process returns 0
[main] [ 2016-07-14 20:17:07.663 CST ] [RuntimeExec.runCommand:161]  RunTimeExec: output>
[main] [ 2016-07-14 20:17:07.665 CST ] [RuntimeExec.runCommand:170]  RunTimeExec: error>
[main] [ 2016-07-14 20:17:07.666 CST ] [RuntimeExec.runCommand:192]  Returning from RunTimeExec.runCommand
[main] [ 2016-07-14 20:17:07.666 CST ] [UnixSystem.checkRemoteExecutionSetup:2293]  Using Remote Shell Command: '/usr/bin/ssh -o FallBackToRsh=no  -o PasswordAuthentication=no  -o StrictHostKeyChecking=yes  -o NumberOfPasswordPrompts=0 '
[main] [ 2016-07-14 20:17:07.667 CST ] [UnixSystem.checkRemoteExecutionSetup:2294]  Using Remote Copy Command: '/usr/bin/scp'
[main] [ 2016-07-14 20:17:07.667 CST ] [UnixSystem.transferFileToNode:3660]  oracleHome = /
[main] [ 2016-07-14 20:17:07.667 CST ] [UnixSystem.transferFileToNode:3661]  file to transfer = /u01/product/oraInventory/orainstRoot.sh
[main] [ 2016-07-14 20:17:07.668 CST ] [UnixSystem.transferFileToNode:3668]  ohPathEndsWith file separator: true
[main] [ 2016-07-14 20:17:07.668 CST ] [UnixSystem.transferFileToNode:3673]  Relative path of file to transfer = ./u01/product/oraInventory/orainstRoot.sh
[main] [ 2016-07-14 20:17:07.669 CST ] [UnixSystem.transferFileToNode:3692]  transferCommand = (cd / && /bin/tar cf - ./u01/product/oraInventory/orainstRoot.sh ) | /usr/bin/ssh -o FallBackToRsh=no  -o PasswordAuthentication=no  -o StrictHostKeyChecking=yes  -o NumberOfPasswordPrompts=0  xulq1 "(cd / && /bin/tar xfp - )"
[main] [ 2016-07-14 20:17:07.669 CST ] [RuntimeExec.runCommand:75]  Calling Runtime.exec() with the command 
[main] [ 2016-07-14 20:17:07.669 CST ] [RuntimeExec.runCommand:77]  /bin/sh 
[main] [ 2016-07-14 20:17:07.670 CST ] [RuntimeExec.runCommand:77]  -c 
[main] [ 2016-07-14 20:17:07.670 CST ] [RuntimeExec.runCommand:77]  (cd / && /bin/tar cf - ./u01/product/oraInventory/orainstRoot.sh ) | /usr/bin/ssh -o FallBackToRsh=no  -o PasswordAuthentication=no  -o StrictHostKeyChecking=yes  -o NumberOfPasswordPrompts=0  xulq1 "(cd / && /bin/tar xfp - )" 
[Thread-64] [ 2016-07-14 20:17:07.687 CST ] [StreamReader.run:61]  In StreamReader.run 
[main] [ 2016-07-14 20:17:07.687 CST ] [RuntimeExec.runCommand:142]  runCommand: Waiting for the process
[Thread-63] [ 2016-07-14 20:17:07.688 CST ] [StreamReader.run:61]  In StreamReader.run 
[main] [ 2016-07-14 20:17:07.875 CST ] [RuntimeExec.runCommand:144]  runCommand: process returns 0
[main] [ 2016-07-14 20:17:07.875 CST ] [RuntimeExec.runCommand:161]  RunTimeExec: output>
[main] [ 2016-07-14 20:17:07.876 CST ] [RuntimeExec.runCommand:170]  RunTimeExec: error>
[main] [ 2016-07-14 20:17:07.876 CST ] [RuntimeExec.runCommand:192]  Returning from RunTimeExec.runCommand
[main] [ 2016-07-14 20:17:07.876 CST ] [UnixSystem.eliminateTARErrors:3493]  Entered eliminateTARErrors...
[main] [ 2016-07-14 20:17:07.877 CST ] [UnixSystem.eliminateTARErrors:3496]  Empty or NULL error list. No action to be taken.
WARNING:A new inventory has been created on one or more nodes 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 at '/u01/product/oraInventory/orainstRoot.sh' with root privileges on nodes 'xulq1'.
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 in each new cluster node. Each script in the list below is followed by a list of nodes.
/u01/product/oraInventory/orainstRoot.sh #On nodes xulq1
/u01/product/11.2/grid/root.sh #On nodes xulq1
To execute the configuration scripts:
    1. Open a terminal window
    2. Log in as "root"
    3. Run the scripts in each cluster node
    
Run the script on the local node first. After successful completion, you can run the script in parallel on all the other nodes.
The cloning of xulq1 was successful.
Please check '/u01/product/oraInventory/logs/cloneActions2016-07-14_08-15-30PM.log' for more details.
copying /u01/product/oraInventory/logs/silentInstall2016-07-14_08-15-30PM.log to /u01/product/11.2/grid/cfgtoollogs/oui/silentInstall2016-07-14_08-15-30PM.log
copying /u01/product/oraInventory/logs/cloneActions2016-07-14_08-15-30PM.log to /u01/product/11.2/grid/cfgtoollogs/oui/cloneActions2016-07-14_08-15-30PM.log
[grid@xulq1 bin]$


-->> Node2 Grid 用户安装
cd cd /grid/product/11.2.0/gridhome_1/clone/bin


perl clone.pl -silent -debug ORACLE_BASE=/u01/product/grid ORACLE_HOME=/u01/product/11.2/grid ORACLE_HOME_NAME=gridhome INVENTORY_LOCATION=/u01/product/oraInventory OSDBA_GROUP=oinstall OSOPER_GROUP=dba -O'"CLUSTER_NODES=xulq1,xulq2"' -O'"LOCAL_NODE=xulq2"' CRS=TRUE -ignoreSysPrereqs


[grid@xulq2 bin]$ perl clone.pl -silent -debug ORACLE_BASE=/u01/product/grid ORACLE_HOME=/u01/product/11.2/grid ORACLE_HOME_NAME=gridhome INVENTORY_LOCATION=/u01/product/oraInventory OSDBA_GROUP=oinstall OSOPER_GROUP=dba -O'"CLUSTER_NODES=xulq1,xulq2"' -O'"LOCAL_NODE=xulq2"' CRS=TRUE -ignoreSysPrereqs
./runInstaller -clone -waitForCompletion  "ORACLE_BASE=/u01/product/grid" "ORACLE_HOME=/u01/product/11.2/grid" "ORACLE_HOME_NAME=xulq2" "INVENTORY_LOCATION=/u01/product/oraInventory" "oracle_install_OSDBA=oinstall" "oracle_install_OSOPER=dba" "CLUSTER_NODES=xulq1,xulq2" "LOCAL_NODE=xulq2" "CRS=TRUE" -ignoreSysPrereqs  -debug -silent -noConfig -nowait 
Starting Oracle Universal Installer...


Checking swap space: must be greater than 500 MB.   Actual 2047 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-07-14_08-26-47PM. Please wait ...
LD_LIBRARY_PATH environment variable :
-------------------------------------------------------
Total args: 36
Command line argument array elements ...
Arg:0:/tmp/OraInstall2016-07-14_08-26-47PM/jre/bin/java:
Arg:1:-Doracle.installer.library_loc=/tmp/OraInstall2016-07-14_08-26-47PM/oui/lib/linux64:
Arg:2:-Doracle.installer.oui_loc=/tmp/OraInstall2016-07-14_08-26-47PM/oui:
Arg:3:-Doracle.installer.bootstrap=TRUE:
Arg:4:-Doracle.installer.startup_location=/u01/product/11.2/grid/oui/bin:
Arg:5:-Doracle.installer.jre_loc=../../jre:
Arg:6:-Doracle.installer.custom_inventory=/u01/product/oraInventory:
Arg:7:-Doracle.installer.nlsEnabled="TRUE":
Arg:8:-Doracle.installer.prereqConfigLoc= :
Arg:9:-Doracle.installer.unixVersion=2.6.18-308.el5:
Arg:10:-mx150m:
Arg:11:-cp:
Arg:12:/tmp/OraInstall2016-07-14_08-26-47PM::/tmp/OraInstall2016-07-14_08-26-47PM/ext/jlib/ssh.jar:/tmp/OraInstall2016-07-14_08-26-47PM/ext/jlib/installcommons_1.0.0b.jar:/tmp/OraInstall2016-07-14_08-26-47PM/ext/jlib/cvu.jar:/tmp/OraInstall2016-07-14_08-26-47PM/ext/jlib/OraPrereqChecks.jar:/tmp/OraInstall2016-07-14_08-26-47PM/ext/jlib/prov_fixup.jar:/tmp/OraInstall2016-07-14_08-26-47PM/ext/jlib/orai18n-mapping.jar:/tmp/OraInstall2016-07-14_08-26-47PM/ext/jlib/orai18n-utility.jar:/tmp/OraInstall2016-07-14_08-26-47PM/ext/jlib/instcommon.jar:/tmp/OraInstall2016-07-14_08-26-47PM/ext/jlib/remoteinterfaces.jar:/tmp/OraInstall2016-07-14_08-26-47PM/ext/jlib/jsch.jar:/tmp/OraInstall2016-07-14_08-26-47PM/ext/jlib/instcrs.jar:/tmp/OraInstall2016-07-14_08-26-47PM/ext/jlib/OraPrereq.jar:/tmp/OraInstall2016-07-14_08-26-47PM/ext/jlib/ojdbc5.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/OraInstaller.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/oneclick.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/xmlparserv2.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/share.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/OraInstallerNet.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/emCfg.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/emocmutl.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/OraPrereq.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/jsch.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/ssh.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/remoteinterfaces.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/http_client.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/OraSuiteInstaller.jar:/tmp/OraInstall2016-07-14_08-26-47PM/OPatch/jlib/opatch.jar:/tmp/OraInstall2016-07-14_08-26-47PM/OPatch/jlib/opatchactions.jar:/tmp/OraInstall2016-07-14_08-26-47PM/OPatch/jlib/opatchprereq.jar:/tmp/OraInstall2016-07-14_08-26-47PM/OPatch/jlib/opatchutil.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/OraCheckPoint.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/InstImages.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/InstHelp.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/InstHelp_de.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/InstHelp_es.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/InstHelp_fr.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/InstHelp_it.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/InstHelp_ja.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/InstHelp_ko.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/InstHelp_pt_BR.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/InstHelp_zh_CN.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/InstHelp_zh_TW.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/oracle_ice.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/help4.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/help4-nls.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/ewt3.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/ewt3-swingaccess.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/ewt3-nls.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/swingaccess.jar::/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/jewt4.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/jewt4-nls.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/orai18n-collation.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/orai18n-mapping.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/ojmisc.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/xml.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/srvm.jar:/tmp/OraInstall2016-07-14_08-26-47PM/oui/jlib/srvmasm.jar:
Arg:13:oracle.sysman.oii.oiic.OiicInstaller:
Arg:14:-scratchPath:
Arg:15:/tmp/OraInstall2016-07-14_08-26-47PM:
Arg:16:-sourceType:
Arg:17:network:
Arg:18:-timestamp:
Arg:19:2016-07-14_08-26-47PM:
Arg:20:-clone:
Arg:21:-waitForCompletion:
Arg:22:ORACLE_BASE=/u01/product/grid:
Arg:23:ORACLE_HOME=/u01/product/11.2/grid:
Arg:24:ORACLE_HOME_NAME=xulq2:
Arg:25:INVENTORY_LOCATION=/u01/product/oraInventory:
Arg:26:oracle_install_OSDBA=oinstall:
Arg:27:oracle_install_OSOPER=dba:
Arg:28:CLUSTER_NODES=xulq1,xulq2:
Arg:29:LOCAL_NODE=xulq2:
Arg:30:CRS=TRUE:
Arg:31:-ignoreSysPrereqs:
Arg:32:-debug:
Arg:33:-silent:
Arg:34:-noConfig:
Arg:35:-nowait:
-------------------------------------------------------
Initializing Java Virtual Machine from /tmp/OraInstall2016-07-14_08-26-47PM/jre/bin/java. 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/product/oraInventory/logs/cloneActions2016-07-14_08-26-47PM.log
...........................................................................................[main] [ 2016-07-14 20:26:56.014 CST ] [QueryCluster.<init>:56]  No Cluster detected
[main] [ 2016-07-14 20:26:56.015 CST ] [QueryCluster.isCluster:65]  Cluster existence check = false
......... 100% Done.






Installation in progress (Thursday, July 14, 2016 8:26:58 PM CST)
.....................................................................                                                           69% Done.
Install successful


Linking in progress (Thursday, July 14, 2016 8:27:03 PM CST)
Link successful


Setup in progress (Thursday, July 14, 2016 8:27:55 PM CST)
................                                                100% Done.
Setup successful


End of install phases.(Thursday, July 14, 2016 8:28:23 PM CST)
[main] [ 2016-07-14 20:28:23.976 CST ] [ClusterCmd.transferFileToNodes:4356]  Single node execution will not using clientResources
[main] [ 2016-07-14 20:28:23.977 CST ] [TransferFileCommand.execute:77]  TransferFileCommand on node:xulq2
[main] [ 2016-07-14 20:28:23.978 CST ] [UnixSystem.transferFileToNode:3641]  transferFileToNode operation on node: xulq2
[main] [ 2016-07-14 20:28:24.008 CST ] [UnixSystem.checkRemoteExecutionSetup:2185]  checkRemoteExecutionSetup:: Checking user equivalence using Secured Shell '/usr/bin/ssh'
[main] [ 2016-07-14 20:28:24.009 CST ] [UnixSystem.checkRemoteExecutionSetup:2187]  checkRemoteExecutionSetup:: Running Unix command: /usr/bin/ssh -o FallBackToRsh=no  -o PasswordAuthentication=no  -o StrictHostKeyChecking=yes  -o NumberOfPasswordPrompts=0 xulq2 /bin/true
[main] [ 2016-07-14 20:28:24.010 CST ] [RuntimeExec.runCommand:75]  Calling Runtime.exec() with the command 
[main] [ 2016-07-14 20:28:24.011 CST ] [RuntimeExec.runCommand:77]  /usr/bin/ssh 
[main] [ 2016-07-14 20:28:24.011 CST ] [RuntimeExec.runCommand:77]  -o 
[main] [ 2016-07-14 20:28:24.013 CST ] [RuntimeExec.runCommand:77]  FallBackToRsh=no 
[main] [ 2016-07-14 20:28:24.013 CST ] [RuntimeExec.runCommand:77]  -o 
[main] [ 2016-07-14 20:28:24.014 CST ] [RuntimeExec.runCommand:77]  PasswordAuthentication=no 
[main] [ 2016-07-14 20:28:24.015 CST ] [RuntimeExec.runCommand:77]  -o 
[main] [ 2016-07-14 20:28:24.015 CST ] [RuntimeExec.runCommand:77]  StrictHostKeyChecking=yes 
[main] [ 2016-07-14 20:28:24.016 CST ] [RuntimeExec.runCommand:77]  -o 
[main] [ 2016-07-14 20:28:24.016 CST ] [RuntimeExec.runCommand:77]  NumberOfPasswordPrompts=0 
[main] [ 2016-07-14 20:28:24.017 CST ] [RuntimeExec.runCommand:77]  xulq2 
[main] [ 2016-07-14 20:28:24.018 CST ] [RuntimeExec.runCommand:77]  /bin/true 
[Thread-62] [ 2016-07-14 20:28:24.023 CST ] [StreamReader.run:61]  In StreamReader.run 
[main] [ 2016-07-14 20:28:24.024 CST ] [RuntimeExec.runCommand:142]  runCommand: Waiting for the process
[Thread-61] [ 2016-07-14 20:28:24.025 CST ] [StreamReader.run:61]  In StreamReader.run 
[main] [ 2016-07-14 20:28:24.934 CST ] [RuntimeExec.runCommand:144]  runCommand: process returns 0
[main] [ 2016-07-14 20:28:24.934 CST ] [RuntimeExec.runCommand:161]  RunTimeExec: output>
[main] [ 2016-07-14 20:28:24.935 CST ] [RuntimeExec.runCommand:170]  RunTimeExec: error>
[main] [ 2016-07-14 20:28:24.935 CST ] [RuntimeExec.runCommand:192]  Returning from RunTimeExec.runCommand
[main] [ 2016-07-14 20:28:24.936 CST ] [UnixSystem.checkRemoteExecutionSetup:2293]  Using Remote Shell Command: '/usr/bin/ssh -o FallBackToRsh=no  -o PasswordAuthentication=no  -o StrictHostKeyChecking=yes  -o NumberOfPasswordPrompts=0 '
[main] [ 2016-07-14 20:28:24.937 CST ] [UnixSystem.checkRemoteExecutionSetup:2294]  Using Remote Copy Command: '/usr/bin/scp'
[main] [ 2016-07-14 20:28:24.937 CST ] [UnixSystem.transferFileToNode:3660]  oracleHome = /
[main] [ 2016-07-14 20:28:24.938 CST ] [UnixSystem.transferFileToNode:3661]  file to transfer = /u01/product/oraInventory/orainstRoot.sh
[main] [ 2016-07-14 20:28:24.938 CST ] [UnixSystem.transferFileToNode:3668]  ohPathEndsWith file separator: true
[main] [ 2016-07-14 20:28:24.939 CST ] [UnixSystem.transferFileToNode:3673]  Relative path of file to transfer = ./u01/product/oraInventory/orainstRoot.sh
[main] [ 2016-07-14 20:28:24.940 CST ] [UnixSystem.transferFileToNode:3692]  transferCommand = (cd / && /bin/tar cf - ./u01/product/oraInventory/orainstRoot.sh ) | /usr/bin/ssh -o FallBackToRsh=no  -o PasswordAuthentication=no  -o StrictHostKeyChecking=yes  -o NumberOfPasswordPrompts=0  xulq2 "(cd / && /bin/tar xfp - )"
[main] [ 2016-07-14 20:28:24.942 CST ] [RuntimeExec.runCommand:75]  Calling Runtime.exec() with the command 
[main] [ 2016-07-14 20:28:24.944 CST ] [RuntimeExec.runCommand:77]  /bin/sh 
[main] [ 2016-07-14 20:28:24.944 CST ] [RuntimeExec.runCommand:77]  -c 
[main] [ 2016-07-14 20:28:24.946 CST ] [RuntimeExec.runCommand:77]  (cd / && /bin/tar cf - ./u01/product/oraInventory/orainstRoot.sh ) | /usr/bin/ssh -o FallBackToRsh=no  -o PasswordAuthentication=no  -o StrictHostKeyChecking=yes  -o NumberOfPasswordPrompts=0  xulq2 "(cd / && /bin/tar xfp - )" 
[Thread-64] [ 2016-07-14 20:28:24.965 CST ] [StreamReader.run:61]  In StreamReader.run 
[main] [ 2016-07-14 20:28:24.965 CST ] [RuntimeExec.runCommand:142]  runCommand: Waiting for the process
[Thread-63] [ 2016-07-14 20:28:24.966 CST ] [StreamReader.run:61]  In StreamReader.run 
[main] [ 2016-07-14 20:28:25.150 CST ] [RuntimeExec.runCommand:144]  runCommand: process returns 0
[main] [ 2016-07-14 20:28:25.151 CST ] [RuntimeExec.runCommand:161]  RunTimeExec: output>
[main] [ 2016-07-14 20:28:25.152 CST ] [RuntimeExec.runCommand:170]  RunTimeExec: error>
[main] [ 2016-07-14 20:28:25.152 CST ] [RuntimeExec.runCommand:192]  Returning from RunTimeExec.runCommand
[main] [ 2016-07-14 20:28:25.153 CST ] [UnixSystem.eliminateTARErrors:3493]  Entered eliminateTARErrors...
[main] [ 2016-07-14 20:28:25.153 CST ] [UnixSystem.eliminateTARErrors:3496]  Empty or NULL error list. No action to be taken.
WARNING:A new inventory has been created on one or more nodes 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 at '/u01/product/oraInventory/orainstRoot.sh' with root privileges on nodes 'xulq2'.
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 in each new cluster node. Each script in the list below is followed by a list of nodes.
/u01/product/oraInventory/orainstRoot.sh #On nodes xulq2
/u01/product/11.2/grid/root.sh #On nodes xulq2
To execute the configuration scripts:
    1. Open a terminal window
    2. Log in as "root"
    3. Run the scripts in each cluster node
    
Run the script on the local node first. After successful completion, you can run the script in parallel on all the other nodes.
The cloning of xulq2 was successful.
Please check '/u01/product/oraInventory/logs/cloneActions2016-07-14_08-26-47PM.log' for more details.
copying /u01/product/oraInventory/logs/silentInstall2016-07-14_08-26-47PM.log to /u01/product/11.2/grid/cfgtoollogs/oui/silentInstall2016-07-14_08-26-47PM.log
copying /u01/product/oraInventory/logs/cloneActions2016-07-14_08-26-47PM.log to /u01/product/11.2/grid/cfgtoollogs/oui/cloneActions2016-07-14_08-26-47PM.log




13、克隆完后根据要求执行脚本
-->>root 用户
/grid/oraInventory/orainstRoot.sh
/grid/product/11.2.0/gridhome_1/root.sh


[root@xulq1 ~]# cat  /u01/product/11.2/grid/install/root_xulq1_2016-07-14_20-29-06.log 
Performing root user operation for Oracle 11g 


The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/product/11.2/grid
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...


Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.


To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:
/u01/product/11.2/grid/perl/bin/perl -I/u01/product/11.2/grid/perl/lib -I/u01/product/11.2/grid/crs/install /u01/product/11.2/grid/crs/install/roothas.pl




To configure Grid Infrastructure for a Cluster execute the following command:
/u01/product/11.2/grid/crs/config/config.sh   ---------此处脚本需要执行。
This command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, 
and the parameters can be passed through the response file that is available 
in the installation media.




14、由于暂时不能使用图形界面,尝试使用默认方式
To run config.sh silently:-
As oracle user:
cd /grid/product/11.2.0/gridhome_1/crs/config
 
./config.sh -silent -responseFile /home/grid/config.rsp -ignoreSysPrereqs -ignorePrereq -ignoreInternalDriverError
./config.sh -silent -responseFile /home/grid/config.rsp -ignoreSysPrereqs -ignorePrereq


-->>创建相应响应文件 /home/grid/config.rsp


####location: /grid/product/11.2.0/gridhome_1/crs/config/grid_configwizard.rsp 参照文件
oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v11_2_0
ORACLE_HOSTNAME=xulq1
INVENTORY_LOCATION=/u01/product/oraInventory
SELECTED_LANGUAGES=en
oracle.install.option=CRS_CONFIG
ORACLE_BASE=/u01/product/grid
ORACLE_HOME=/u01/product/11.2/grid
oracle.install.asm.OSDBA=asmdba
oracle.install.asm.OSOPER=asmadmin
oracle.install.asm.OSASM=oinstall
oracle.install.crs.config.gpnp.scanName=xulq-scan
oracle.install.crs.config.gpnp.scanPort=1521
oracle.install.crs.config.clusterName=xulq-cluster
oracle.install.crs.config.gpnp.configureGNS=false
oracle.install.crs.config.gpnp.gnsSubDomain=
oracle.install.crs.config.gpnp.gnsVIPAddress=
oracle.install.crs.config.autoConfigureClusterNodeVIP=false
oracle.install.crs.config.clusterNodes=xulq1:xulq1-vip,xulq2:xulq2-vip
oracle.install.crs.config.networkInterfaceList=eth0:192.168.56.0:1,eth1:10.10.10.0:2
#oifcfg iflist -p -n
oracle.install.crs.config.storageOption=ASM_STORAGE
oracle.install.crs.config.sharedFileSystemStorage.diskDriveMapping=
oracle.install.crs.config.sharedFileSystemStorage.votingDiskLocations=
oracle.install.crs.config.sharedFileSystemStorage.votingDiskRedundancy=
oracle.install.crs.config.sharedFileSystemStorage.ocrLocations=
oracle.install.crs.config.sharedFileSystemStorage.ocrRedundancy=
oracle.install.crs.config.useIPMI=false
oracle.install.crs.config.ipmi.bmcUsername=
oracle.install.crs.config.ipmi.bmcPassword=
oracle.install.asm.SYSASMPassword=Grid123
oracle.install.asm.diskGroup.name=CRS_DATA
oracle.install.asm.diskGroup.redundancy=EXTERNAL
oracle.install.asm.diskGroup.AUSize=2
oracle.install.asm.diskGroup.disks=/dev/oracleasm/disks/OCR_DG1,/dev/oracleasm/disks/OCR_DG2
oracle.install.asm.diskGroup.diskDiscoveryString=/dev/oracleasm/disks/*
oracle.install.asm.monitorPassword=Grid123
oracle.install.crs.upgrade.clusterNodes=
oracle.install.asm.upgradeASM=false
oracle.installer.autoupdates.option=
oracle.installer.autoupdates.downloadUpdatesLoc=
AUTOUPDATES_MYORACLESUPPORT_USERNAME=
AUTOUPDATES_MYORACLESUPPORT_PASSWORD=
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=
[ConfigWizard]
oracle.install.asm.useExistingDiskGroup=false


==================================================================


-->>修改文件
/grid/product/11.2.0/gridhome_1/crs/install/crsconfig_params, 在最后添加以下内容
########################################
## My Configuration for a cloned GI
## 必须为 2
CRS_STORAGE_OPTION=2
OCR_LOCATIONS=/dev/rolv_ocr1,/dev/rolv_ocr2
VOTING_DISKS=/dev/rolv_vote1,/dev/rolv_vote2
CLUSTER_NAME=xulq-cluster
HOST_NAME_LIST=xulq1,xulq2
NODE_NAME_LIST=xulq1,xulq2
NODELIST=xulq1,xulq2
PRIVATE_NAME_LIST=xulq1-priv,xulq2-priv


SCAN_NAME=xulq-scan
SCAN_PORT=1521


NETWORKS="eth0"/192.168.56.0:public,"eth1"/10.10.10.0:cluster_interconnect
CRS_NODEVIPS='xulq1-vip/255.255.255.0/eth0,xulq2-vip/255.255.255.0/eth0'
########################################


15、执行脚本
su - grid
./config.sh -silent -responseFile /home/grid/config.rsp -ignoreSysPrereqs -ignorePrereq


【问题1】
[grid@xulq1 config]$ ./config.sh -silent -responseFile /home/grid/config.rsp -ignoreSysPrereqs -ignorePrereq
[FATAL] [INS-42017] The Grid home is inconsistent on the following nodes: [xulq2]
   CAUSE: The wizard detects that the Grid home is inconsistent on some or all of the nodes specified. Review the log file for further details.
   ACTION: Ensure that the Grid home is consistent on all nodes.
   
【解决方法】
修改文件 /u01/product/oraInventory/ContentsXML/inventory.xml  将oracle_home改为一致。


[grid@xulq1 config]$ ./config.sh -silent -responseFile /home/grid/config.rsp -ignoreSysPrereqs -ignorePrereq
[FATAL] [INS-42017] The Grid home is inconsistent on the following nodes: [xulq2]
   CAUSE: The wizard detects that the Grid home is inconsistent on some or all of the nodes specified. Review the log file for further details.
   ACTION: Ensure that the Grid home is consistent on all nodes.
[grid@xulq1 config]$ ./config.sh -silent -responseFile /home/grid/config.rsp -ignoreSysPrereqs -ignorePrereq
[FATAL] [INS-30508] Invalid ASM disks.
   CAUSE: The disks [OCR_DG1, OCR_DG2] were not valid.
   ACTION: Please choose or enter valid ASM disks.
[grid@xulq1 config]$ ./config.sh -silent -responseFile /home/grid/config.rsp -ignoreSysPrereqs -ignorePrereq
[WARNING] [INS-30011] The SYS password entered does not conform to the Oracle recommended standards.
   CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
   ACTION: Provide a password that conforms to the Oracle recommended standards.
[WARNING] [INS-30011] The ASMSNMP password entered does not conform to the Oracle recommended standards.
   CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
   ACTION: Provide a password that conforms to the Oracle recommended standards.


As a root user, execute the following script(s):
        1. /u01/product/11.2/grid/root.sh


Execute /u01/product/11.2/grid/root.sh on the following nodes: 
[xulq1, xulq2]


Successfully Setup Software.
[WARNING] [INS-32091] Software installation was successful. But some configuration assistants failed, were cancelled or skipped.
   ACTION: Refer to the logs or contact Oracle Support Services.




---------------------克隆oracle 软件----------------------------
参考文档:
Cloning An Existing Oracle11g Release 2 (11.2.0.x) RDBMS Installation Using OUI (文档 ID 1221705.1)


两个节点都执行:Node1/Node2
su - oracle
cd $ORACLE_HOME/clone/bin
--Node1
perl clone.pl -silent -debug ORACLE_BASE=/u01/product/oracle ORACLE_HOME=/oracle/app/oracle/product/11.2.0/dbhome_1 ORACLE_HOME_NAME=DB1HOME INVENTORY_LOCATION=/oracle/app/oraInventory OSDBA_GROUP=oinstall OSOPER_GROUP=dba -O'"CLUSTER_NODES=xulq1,xulq2"' -O'"LOCAL_NODE=xulq1"' -ignoreSysPrereqs
--Node2
perl clone.pl -silent -debug ORACLE_BASE=/u01/product/oracle ORACLE_HOME=/oracle/app/oracle/product/11.2.0/dbhome_1 ORACLE_HOME_NAME=DB1HOME INVENTORY_LOCATION=/oracle/app/oraInventory OSDBA_GROUP=oinstall OSOPER_GROUP=dba -O'"CLUSTER_NODES=xulq1,xulq2"' -O'"LOCAL_NODE=xulq2"' -ignoreSysPrereqs


srvctl add database -d xulq -o /u01/product/oracle/11.2




删除ADR目录该目录在创建库时创建,但在克隆的时候不创建,因此需要单独去创建] Automatic Diagnostic Repository (ADR)
directory structure in $ORACLE_BASE/diag
$ORACLE_HOME/bin/diagsetup basedir=/oracle/app/oracle oraclehome=/oracle/app/oracle/product/11.2.0/dbhome_1


检查是否RAC选项(如果没有任何返回说明RAC option没有link 如果返回kcsm.o则表时已经enable了RAC option)
ar -X32_64 -t $ORACLE_HOME/rdbms/lib/libknlopt.a|grep kcsm.o
如果返回为空,需要执行如下
cd $ORACLE_HOME/rdbms/lib
make -f ins_rdbms.mk rac_on
make -f ins_rdbms.mk ioracle


把数据库注册到CRS集群里
对于dbca创建的数据库,srvctl中包含了数据库和实例的信息。但是对于备份恢复的RAC数据库来说,srvctl中不包含数据库和实例信息。
srvctl管理器中没有database信息,很多地方都无法使用srvctl命令管理。所以,需要手动将database信息添加到srvctl管理器中。
srvctl add database -d xulq -o /u01/product/oracle/11.2


srvctl add instance -d xulq -i xulq1 -n xulq1
srvctl add instance -d xulq -i xulq2 -n xulq2

以上是关于Ora_通过克隆方式安装11g R2 rac 软件的主要内容,如果未能解决你的问题,请参考以下文章

sentos 6.5 安装 oracle11g R2 RAC遇到的问题处理

使用PLSQL DEV 连接Oracle 11g R2 RAC 报 ORA-12545

Oracle 11G R2 RAC中的scan ip 的用途和基本原理

Oracle11g在windows 2008 R2 安装时提示 ORA-00336错误

配置Linux 11G R2 RAC NTP服务

Oracle 11g R2 RAC安装规划