orized_keys
cat > /root/tempexpect.sh <set timeout -1
spawn scp /root/.ssh/authorized_keys 192.108.56.104:/root/.ssh/authorized_keys
expect "password:"
send "selectshen\r"
interact
EOF
expect /root/tempexpect.sh
cat > /root/tempexpect.sh <set timeout -1
spawn ssh rac11g03 date
expect "(yes/no)?"
send "yes\r"
interact
spawn ssh rac11g03-priv date
expect "(yes/no)?"
send "yes\r"
interact
spawn ssh rac11g04 date
expect "(yes/no)?"
send "yes\r"
interact
spawn ssh rac11g04-priv date
expect "(yes/no)?"
send "yes\r"
interact
EOF
expect /root/tempexpect.sh
scp /root/tempexpect.sh 192.108.56.104:/root/tempexpect.sh
ssh 192.108.56.104 expect /root/tempexpect.sh
cp -R /root/.ssh /home/oracle/
cp -R /root/.ssh /home/grid/
chown -R oracle.oinstall /home/oracle/.ssh
chown -R grid.oinstall /home/grid/.ssh
ssh 192.108.56.104 cp -R /root/.ssh /home/oracle/
ssh 192.108.56.104 cp -R /root/.ssh /home/grid/
ssh 192.108.56.104 chown -R oracle.oinstall /home/oracle/.ssh
ssh 192.108.56.104 chown -R grid.oinstall /home/grid/.ssh
#解压安装文件
mv /root/p13390677_112040_Linux-x86-64_3* /home/grid/
mv /root/p13390677_112040_Linux-x86-64_* /home/oracle/
chown -R grid.oinstall /home/grid/p13390677_112040_Linux-x86-64_*
chown -R oracle.oinstall /home/oracle/p13390677_112040_Linux-x86-64_*
su - grid -c "unzip /home/grid/p13390677_112040_Linux-x86-64_3of7.zip"
su - oracle -c "unzip /home/oracle/p13390677_112040_Linux-x86-64_1of7.zip"
su - oracle -c "unzip /home/oracle/p13390677_112040_Linux-x86-64_2of7.zip"
#安装缺少的包
rpm -ivh /root/pdksh-5.2.14-30.x86_64.rpm
rpm -ivh /home/grid/grid/rpm/cvuqdisk-1.0.9-1.rpm
scp /root/pdksh-5.2.14-30.x86_64.rpm 192.108.56.104:~/
ssh 192.108.56.104 rpm -ivh /root/pdksh-5.2.14-30.x86_64.rpm
#配置gi安装响应文件
su - grid -c cat > /home/grid/gi_install.rsp <oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v11_2_0
ORACLE_HOSTNAME=rac11g03
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
oracle.install.option=CRS_CONFIG
ORACLE_BASE=/u01/app/grid
ORACLE_HOME=/u01/app/11.2.0/grid
oracle.install.asm.OSDBA=asmdba
oracle.install.asm.OSOPER=asmdba
oracle.install.asm.OSASM=asmadmin
oracle.install.crs.config.gpnp.scanName=rac11g-scan
oracle.install.crs.config.gpnp.scanPort=1521
oracle.install.crs.config.clusterName=rac11g-scan
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=rac11g03:rac11g03-vip,rac11g04:rac11g04-vip
oracle.install.crs.config.networkInterfaceList=eth0:192.108.56.0:1,eth1:192.108.96.0:2
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.S