当前位置: 首页 > INSTALL, RAC > 正文

10G RAC静默安装

1,修改主机名

[root@localhost ~]# cat /etc/sysconfig/network

NETWORKING=yes

NETWORKING_IPV6=no

HOSTNAME=rac1

[root@localhost ~]# cat /etc/sysconfig/network

NETWORKING=yes

NETWORKING_IPV6=no

HOSTNAME=rac2

 

2,修改ip地址与默认网关,hosts文件

1主机

[root@rac1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0

# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)

DEVICE=eth0

BOOTPROTO=none

ONBOOT=yes

HWADDR=00:0c:29:05:91:32

NETMASK=255.255.255.0

IPADDR=192.168.111.46

GATEWAY=192.168.111.1

TYPE=Ethernet

[root@rac1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1

# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)

DEVICE=eth1

BOOTPROTO=none

ONBOOT=yes

HWADDR=00:0c:29:05:91:3c

TYPE=Ethernet

NETMASK=255.255.255.0

IPADDR=192.168.112.46

 

[root@rac1 ~]# echo "192.168.111.46 rac1

> 192.168.111.47 rac2

>

> 192.168.111.48 rac1-vip

> 192.168.111.49 rac2-vip

>

> 192.168.112.46 rac1-priv

> 192.168.112.47 rac2-priv">> /etc/hosts

2主机

[root@rac2 ~]#cat /etc/sysconfig/network-scripts/ifcfg-eth0

cat: cat: No such file or directory

# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)

DEVICE=eth0

BOOTPROTO=none

ONBOOT=yes

HWADDR=00:0c:29:a1:60:0a

NETMASK=255.255.255.0

IPADDR=192.168.111.47

GATEWAY=192.168.111.1

TYPE=Ethernet

[root@rac2 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1

# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)

DEVICE=eth1

BOOTPROTO=none

ONBOOT=yes

HWADDR=00:0c:29:a1:60:14

TYPE=Ethernet

NETMASK=255.255.255.0

IPADDR=192.168.112.47

 

3,查看相当的软件是否已经安装

见Oracle Database on Unix AIX,HP-UX,Linux,Mac OS X,Solaris,Tru64 Unix Operating Systems Installation and Configuration Requirements Quick Reference (8.0.5 to 11.2) [ID 169706.1]

[root@rac1 ~]# rpm -q –qf ‘%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n’ \

> make \

> binutils \

> gcc \

> libstdc++- \

> binutils \

> compat-libstdc++-33 \

> elfutils-libelf \

> elfutils-libelf-devel \

> expat \

> gcc \

> gcc-c++ \

> glibc \

> glibc-common \

> glibc-devel \

> glibc-headers \

> libaio \

> libaio-devel \

> libgcc \

> libstdc++ \

> libstdc++-devel \

> sysstat \

> unixODBC \

> unixODBC-devel

make-3.81-3.el5 (x86_64)

binutils-2.17.50.0.6-20.el5 (x86_64)

gcc-4.1.2-52.el5 (x86_64)

libstdc++-4.1.2-52.el5 (x86_64)

libstdc++-4.1.2-52.el5 (i386)

binutils-2.17.50.0.6-20.el5 (x86_64)

compat-libstdc++-33-3.2.3-61 (x86_64)

compat-libstdc++-33-3.2.3-61 (i386)

elfutils-libelf-0.137-3.el5 (x86_64)

elfutils-libelf-0.137-3.el5 (i386)

elfutils-libelf-devel-0.137-3.el5 (x86_64)

expat-1.95.8-8.3.el5_5.3 (x86_64)

expat-1.95.8-8.3.el5_5.3 (i386)

gcc-4.1.2-52.el5 (x86_64)

gcc-c++-4.1.2-52.el5 (x86_64)

glibc-2.5-81 (x86_64)

glibc-2.5-81 (i686)

glibc-common-2.5-81 (x86_64)

glibc-devel-2.5-81 (x86_64)

glibc-devel-2.5-81 (i386)

glibc-headers-2.5-81 (x86_64)

libaio-0.3.106-5 (x86_64)

libaio-0.3.106-5 (i386)

package libaio-devel is not installed

libgcc-4.1.2-52.el5 (x86_64)

libgcc-4.1.2-52.el5 (i386)

libstdc++-4.1.2-52.el5 (x86_64)

libstdc++-4.1.2-52.el5 (i386)

libstdc++-devel-4.1.2-52.el5 (x86_64)

sysstat-7.0.2-11.el5 (x86_64)

package unixODBC is not installed

package unixODBC-devel is not installed

 

配置yum

[root@rac1 ~]# mount /dev/cdrom /media

[root@rac1 ~]# tail -5 /etc/yum.repos.d/public-yum-el5.repo

[RHEL5.6]

name = Enterprise Linux 5.5 DVD

baseurl=file:///media/Server/

gpgcheck=0

enabled=1

 

[root@rac2 ~]# mount /dev/cdrom /media

[root@rac2 ~]# tail -5 /etc/yum.repos.d/public-yum-el5.repo

[RHEL5.6]

name = Enterprise Linux 5.5 DVD

baseurl=file:///media/Server/

gpgcheck=0

enabled=1

 

yum安装相关的软件

需要在两台主机上面安装

[root@rac1 ~]# yum install  unixODBC unixODBC-devel libaio-devel

Loaded plugins: katello, product-id, security, subscription-manager

Updating certificate-based repositories.

Unable to read consumer identity

RHEL5.6                                                                                                      | 1.5 kB     00:00    

RHEL5.6/primary                                                                                              | 920 kB     00:00    

RHEL5.6                                                                                                                   3285/3285

Setting up Install Process

Resolving Dependencies

–> Running transaction check

—> Package libaio-devel.i386 0:0.3.106-5 set to be updated

—> Package libaio-devel.x86_64 0:0.3.106-5 set to be updated

—> Package unixODBC.i386 0:2.2.11-10.el5 set to be updated

–> Processing Dependency: unixODBC-libs = 2.2.11-10.el5 for package: unixODBC

–> Processing Dependency: libodbcinst.so.1 for package: unixODBC

–> Processing Dependency: libodbc.so.1 for package: unixODBC

—> Package unixODBC.x86_64 0:2.2.11-10.el5 set to be updated

—> Package unixODBC-devel.i386 0:2.2.11-10.el5 set to be updated

—> Package unixODBC-devel.x86_64 0:2.2.11-10.el5 set to be updated

–> Running transaction check

—> Package unixODBC-libs.i386 0:2.2.11-10.el5 set to be updated

—> Package unixODBC-libs.x86_64 0:2.2.11-10.el5 set to be updated

–> Finished Dependency Resolution

 

Dependencies Resolved

 

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

 Package                            Arch                       Version                            Repository                   Size

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

Installing:

 libaio-devel                       i386                       0.3.106-5                          RHEL5.6                      12 k

 libaio-devel                       x86_64                     0.3.106-5                          RHEL5.6                      11 k

 unixODBC                           i386                       2.2.11-10.el5                      RHEL5.6                     290 k

 unixODBC                           x86_64                     2.2.11-10.el5                      RHEL5.6                     291 k

 unixODBC-devel                     i386                       2.2.11-10.el5                      RHEL5.6                     739 k

 unixODBC-devel                     x86_64                     2.2.11-10.el5                      RHEL5.6                     793 k

Installing for dependencies:

 unixODBC-libs                      i386                       2.2.11-10.el5                      RHEL5.6                     551 k

 unixODBC-libs                      x86_64                     2.2.11-10.el5                      RHEL5.6                     554 k

 

Transaction Summary

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

Install       8 Package(s)

Upgrade       0 Package(s)

 

Total download size: 3.2 M

Is this ok [y/N]: y

Downloading Packages:

————————————————————————————————————————————

Total                                                                                               894 MB/s | 3.2 MB     00:00    

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : unixODBC-libs                                                                                                1/8

  Installing     : unixODBC                                                                                                     2/8

  Installing     : unixODBC-devel                                                                                               3/8

  Installing     : libaio-devel                                                                                                 4/8

  Installing     : libaio-devel                                                                                                 5/8

  Installing     : unixODBC-libs                                                                                                6/8

  Installing     : unixODBC-devel                                                                                               7/8

  Installing     : unixODBC                                                                                                     8/8

RHEL5.6/productid                                                                                            | 1.7 kB     00:00    

Installed products updated.

 

Installed:

  libaio-devel.i386 0:0.3.106-5           libaio-devel.x86_64 0:0.3.106-5             unixODBC.i386 0:2.2.11-10.el5               

  unixODBC.x86_64 0:2.2.11-10.el5         unixODBC-devel.i386 0:2.2.11-10.el5         unixODBC-devel.x86_64 0:2.2.11-10.el5       

 

Dependency Installed:

  unixODBC-libs.i386 0:2.2.11-10.el5                              unixODBC-libs.x86_64 0:2.2.11-10.el5                            

 

Complete!

 

 

4,创建用户名与组名

需要在两台主机上面操作

[root@rac1 ~]# groupadd -g 500 dba

[root@rac1 ~]# groupadd -g 501 oinstall

[root@rac1 ~]# useradd -u 500 -g dba -G oinstall oracle

[root@rac1 ~]# echo "oracle"|passwd oracle –stdin

Changing password for user oracle.

passwd: all authentication tokens updated successfully.

5,配置oracle用户的ssh

下面操作需要在两台主机

[root@rac1 ~]# su – oracle

[oracle@rac1 ~]$ mkdir ~/.ssh

[oracle@rac1 ~]$ chmod 700 ~/.ssh

[oracle@rac1 ~]$ ssh-keygen  -t rsa

Generating public/private rsa key pair.

Enter file in which to save the key (/home/oracle/.ssh/id_rsa):

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /home/oracle/.ssh/id_rsa.

Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.

The key fingerprint is:

12:29:4a:54:0c:31:17:11:dc:cd:15:00:ec:dd:33:45 oracle@rac1

下面只在1主机操作

[oracle@rac1 ~]$ ssh rac1 cat /home/oracle/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

The authenticity of host ‘rac1 (192.168.111.46)’ can’t be established.

RSA key fingerprint is 7d:d1:54:b9:c7:1d:c2:e8:44:a8:58:aa:da:52:71:2d.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added ‘rac1,192.168.111.46’ (RSA) to the list of known hosts.

oracle@rac1’s password:

[oracle@rac1 ~]$ ssh rac2 cat /home/oracle/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

The authenticity of host ‘rac2 (192.168.111.47)’ can’t be established.

RSA key fingerprint is 7d:d1:54:b9:c7:1d:c2:e8:44:a8:58:aa:da:52:71:2d.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added ‘rac2,192.168.111.47’ (RSA) to the list of known hosts.

oracle@rac2’s password:

[oracle@rac1 ~]$ scp ~/.ssh/authorized_keys rac2:/home/oracle/.ssh

oracle@rac2’s password:

authorized_keys                                                                                   100%  786     0.8KB/s   00:00

 

测试是否成功

 

5,配置.bash_profile文件

需要在两个主机同时配置

[oracle@rac1 ~]$ cat .bash_profile

# .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

export PATH

export ORACLE_BASE=/oracle

export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db

export ORA_CRS_HOME=$ORACLE_BASE/product/10.2.0/crs

export ORACLE_SID=rac1

export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:$PATH

export TNS_ADMIN=$ORACLE_HOME/network/admin

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32:$CRS_HOME/lib32:$ORA_CRS_HOME/lib32

export DISPLAY=192.168.111.1:0.0

set -o vi

 

stty erase ^h

 

6,下面配置sysctl.conf文件

 

Requirements For Installing Oracle 10gR2 On RHEL/OEL 5 (x86) [ID 419646.1]

[root@rac1 ~]# echo "kernel.shmall = 2097152

> kernel.shmmax = 2147483648

> kernel.shmmni = 4096

> kernel.sem = 250 32000 100 128

> fs.file-max = 65536

> net.ipv4.ip_local_port_range = 9000 65500

> net.core.rmem_default = 262144

> net.core.rmem_max = 2097152

> net.core.wmem_default = 262144

> net.core.wmem_max = 1048576

> net.ipv4.tcp_wmem = 262144 262144 262144

> net.ipv4.tcp_rmem = 262144 262144 262144">>/etc/sysctl.conf

 

7,配置资源限制与安全

[root@rac1 ~]# echo "#如果配置了大页的时候需要配置memlock

> #oracle soft memlock 5242880

> #oracle hard memlock 524280

> oracle soft nproc 2047

> oracle hard nproc 16384

> oracle soft nofile 65536

> oracle hard nofile 65536">> /etc/security/limits.conf

[root@rac1 ~]# echo "session     required      pam_limits.so">>/etc/pam.d/login

8,配置hangcheck

[root@rac1 ~]# echo "options hangcheck-timer hangcheck_tick=30 hangcheck_margin=180">>/etc/modprobe.conf

[root@rac1 ~]# echo "/sbin/modprobe hangcheck-timer">>/etc/rc.d/rc.local

9,配置ntp

1节点

[root@rac1 ~]# echo "server  127.127.1.0

> #broadcastclient

> driftfile /etc/ntp.drift

> tracefile /etc/ntp.trace">/etc/ntp.conf

[root@rac1 ~]# chkconfig ntpd on

[root@rac1 ~]# service ntpd start

Starting ntpd: [  OK  ]

2节点

[root@rac2 ~]# echo "server  rac1

> #broadcastclient

> driftfile /etc/ntp.drift

> tracefile /etc/ntp.trace"> /etc/ntp.conf

[root@rac2 ~]#

[root@rac2 ~]#  chkconfig ntpd on

[root@rac2 ~]# service ntpd start

Starting ntpd: [  OK  ]

 

10,配置RAW与ASMLIB

[root@rac1 ~]# fdisk -l

 

Disk /dev/sda: 42.9 GB, 42949672960 bytes

255 heads, 63 sectors/track, 5221 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          13      104391   83  Linux

/dev/sda2              14        5221    41833260   8e  Linux LVM

 

Disk /dev/sdb: 2147 MB, 2147483648 bytes

255 heads, 63 sectors/track, 261 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

   Device Boot      Start         End      Blocks   Id  System

/dev/sdb1               1          31      248976   83  Linux

/dev/sdb2              32          62      249007+  83  Linux

/dev/sdb3              63          93      249007+  83  Linux

/dev/sdb4              94         261     1349460    5  Extended

/dev/sdb5              94         124      248976   83  Linux

/dev/sdb6             125         155      248976   83  Linux

 

Disk /dev/sdc: 10.7 GB, 10737418240 bytes

255 heads, 63 sectors/track, 1305 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

   Device Boot      Start         End      Blocks   Id  System

/dev/sdc1               1        1305    10482381   83  Linux

 

Disk /dev/sdd: 10.7 GB, 10737418240 bytes

255 heads, 63 sectors/track, 1305 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

   Device Boot      Start         End      Blocks   Id  System

/dev/sdd1               1        1305    10482381   83  Linux

 

配置在两个主机上面操作

[root@rac1 ~]# echo "

> ACTION==\"add\", KERNEL==\"sdb1\", RUN+=\"/bin/raw /dev/raw/raw1 %N\"

> ACTION==\"add\", KERNEL==\"sdb2\", RUN+=\"/bin/raw /dev/raw/raw2 %N\"

> ACTION==\"add\", KERNEL==\"sdb3\", RUN+=\"/bin/raw /dev/raw/raw3 %N\"

> ACTION==\"add\", KERNEL==\"sdb5\", RUN+=\"/bin/raw /dev/raw/raw4 %N\"

> ACTION==\"add\", KERNEL==\"sdb6\", RUN+=\"/bin/raw /dev/raw/raw5 %N\"">>/etc/udev/rules.d/60-raw.rules

[root@rac1 ~]# cat /etc/udev/rules.d/60-raw.rules

# Enter raw device bindings here.

#

# An example would be:

#   ACTION=="add", KERNEL=="sda", RUN+="/bin/raw /dev/raw/raw1 %N"

# to bind /dev/raw/raw1 to /dev/sda, or

#   ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="1", RUN+="/bin/raw /dev/raw/raw2 %M %m"

# to bind /dev/raw/raw2 to the device with major 8, minor 1.

 

ACTION=="add", KERNEL=="sdb1", RUN+="/bin/raw /dev/raw/raw1 %N"

ACTION=="add", KERNEL=="sdb2", RUN+="/bin/raw /dev/raw/raw2 %N"

ACTION=="add", KERNEL=="sdb3", RUN+="/bin/raw /dev/raw/raw3 %N"

ACTION=="add", KERNEL=="sdb5", RUN+="/bin/raw /dev/raw/raw4 %N"

ACTION=="add", KERNEL=="sdb6", RUN+="/bin/raw /dev/raw/raw5 %N"         

 

安装ASMLIB

ASMLIB下载连接

http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html

需要在两个主机同时操作

[root@rac1 asmlib]# rpm -ihv oracleasm-support-2.1.8-1.el5.x86_64.rpm                                   

warning: oracleasm-support-2.1.8-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159      

Preparing…                ########################################### [100%]                          

   1:oracleasm-support      ########################################### [100%]                                                                                 

[root@rac1 asmlib]# rpm -ihv oracleasm-2.6.18-308.el5-2.0.5-1.el5.x86_64.rpm                            

warning: oracleasm-2.6.18-308.el5-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159

Preparing…                ########################################### [100%]                          

   1:oracleasm-2.6.18-308.el########################################### [100%]                          

[root@rac1 asmlib]# rpm -ihv oracleasmlib-2.0.4-1.el5.x86_64.rpm                                        

warning: oracleasmlib-2.0.4-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159           

Preparing…                ########################################### [100%]                          

   1:oracleasmlib           ########################################### [100%]  

  

下面在一节点操作                       

[root@rac1 asmlib]# /etc/init.d/oracleasm configure                                                     

Configuring the Oracle ASM library driver.                                                              

                                                                                                        

This will configure the on-boot properties of the Oracle ASM library                                    

driver.  The following questions will determine whether the driver is                                   

loaded on boot and what permissions it will have.  The current values                                   

will be shown in brackets (‘[]’).  Hitting <ENTER> without typing an                                    

answer will keep that current value.  Ctrl-C will abort.                                                

                                                                                                        

Default user to own the driver interface []: oracle                                                     

Default group to own the driver interface []: dba                                                       

Start Oracle ASM library driver on boot (y/n) [n]: y                                                    

Scan for Oracle ASM disks on boot (y/n) [y]:                                                            

Writing Oracle ASM library driver configuration: done                                                   

Initializing the Oracle ASMLib driver: [  OK  ]                                                         

Scanning the system for Oracle ASMLib disks:                                                            

[  OK  ]                   

[root@rac1 asmlib]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdc1

Marking disk "VOL1" as an ASM disk: [  OK  ]

[root@rac1 asmlib]# /etc/init.d/oracleasm listdisks

VOL1

 

下面在2节点                                                                            

[root@rac2 asmlib]# /etc/init.d/oracleasm configure

Configuring the Oracle ASM library driver.

 

This will configure the on-boot properties of the Oracle ASM library

driver.  The following questions will determine whether the driver is

loaded on boot and what permissions it will have.  The current values

will be shown in brackets (‘[]’).  Hitting <ENTER> without typing an

answer will keep that current value.  Ctrl-C will abort.

 

Default user to own the driver interface []: oracle

Default group to own the driver interface []: dba

Start Oracle ASM library driver on boot (y/n) [n]: y

Scan for Oracle ASM disks on boot (y/n) [y]: y

Writing Oracle ASM library driver configuration: done

Initializing the Oracle ASMLib driver: [  OK  ]

Scanning the system for Oracle ASMLib disks: [  OK  ]

[root@rac2 asmlib]# /etc/init.d/oracleasm listdisks

VOL1

 

重启两个主机

 

11,验证集群

 

[oracle@rac1 cluvfy]$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2  -r 10gR2 -verbose

 

Performing pre-checks for cluster services setup

 

Checking node reachability…

 

Check: Node reachability from node "rac1"

  Destination Node                      Reachable?             

  ————————————  ————————

  rac2                                  yes                    

  rac1                                  yes                    

Result: Node reachability check passed from node "rac1".

 

 

Checking user equivalence…

 

Check: User equivalence for user "oracle"

  Node Name                             Comment                

  ————————————  ————————

  rac2                                  passed                 

  rac1                                  passed                 

Result: User equivalence check passed for user "oracle".

 

Checking administrative privileges…

 

Check: Existence of user "oracle"

  Node Name     User Exists               Comment                

  ————  ————————  ————————

  rac2          yes                       passed                 

  rac1          yes                       passed                 

Result: User existence check passed for "oracle".

 

Check: Existence of group "oinstall"

  Node Name     Status                    Group ID               

  ————  ————————  ————————

  rac2          exists                    501                    

  rac1          exists                    501                    

Result: Group existence check passed for "oinstall".

 

Check: Membership of user "oracle" in group "oinstall" [as Primary]

  Node Name         User Exists   Group Exists  User in Group  Primary       Comment    

  —————-  ————  ————  ————  ————  ————

  rac2              yes           yes           yes           no            failed     

  rac1              yes           yes           yes           no            failed     

Result: Membership check for user "oracle" in group "oinstall" [as Primary] failed.

 

Administrative privileges check failed.

 

Checking node connectivity…

 

 

Interface information for node "rac2"

  Interface Name                  IP Address                      Subnet         

  ——————————  ——————————  —————-

  eth0                            192.168.111.47                  192.168.111.0  

  eth1                            192.168.112.47                  192.168.112.0  

 

 

Interface information for node "rac1"

  Interface Name                  IP Address                      Subnet         

  ——————————  ——————————  —————-

  eth0                            192.168.111.46                  192.168.111.0  

  eth1                            192.168.112.46                  192.168.112.0  

 

 

Check: Node connectivity of subnet "192.168.111.0"

  Source                          Destination                     Connected?     

  ——————————  ——————————  —————-

  rac2:eth0                       rac1:eth0                       yes            

Result: Node connectivity check passed for subnet "192.168.111.0" with node(s) rac2,rac1.

 

Check: Node connectivity of subnet "192.168.112.0"

  Source                          Destination                     Connected?     

  ——————————  ——————————  —————-

  rac2:eth1                       rac1:eth1                       yes            

Result: Node connectivity check passed for subnet "192.168.112.0" with node(s) rac2,rac1.

 

Suitable interfaces for the private interconnect on subnet "192.168.111.0":

rac2 eth0:192.168.111.47

rac1 eth0:192.168.111.46

 

Suitable interfaces for the private interconnect on subnet "192.168.112.0":

rac2 eth1:192.168.112.47

rac1 eth1:192.168.112.46

 

ERROR:

Could not find a suitable set of interfaces for VIPs.

 

Result: Node connectivity check failed.

 

 

Checking system requirements for ‘crs’…

No checks registered for this product.

 

Pre-check for cluster services setup was unsuccessful on all the nodes.

 

vip这里报错,见

CLUVFY Fails With Error: Could not find a suitable set of interfaces for VIPs or Private Interconnect [ID 338924.1]

 

12,安装CRS

配置responefile

[root@rac1 ~]# mkdir /oracle

[root@rac1 ~]# chown oracle:dba /oracle

下面是crs/rsp

[oracle@rac1 clusterware]$ grep = /tmp/crs.rsp

RESPONSEFILE_VERSION=2.2.1.0.0

#Example    : UNIX_GROUP_NAME = "install"

UNIX_GROUP_NAME=dba

#Example    : FROM_LOCATION = "../stage/products.xml"

FROM_LOCATION="/soft/linuxsoft/clusterware/stage/products.xml"

#Example: NEXT_SESSION_RESPONSE = "nextinstall.rsp"

NEXT_SESSION_RESPONSE=<Value Unspecified>

#Example    : ORACLE_HOME = "/product/clusterware"

ORACLE_HOME=/oracle/product/10.2.0/crs

#Example    : ORACLE_HOME_NAME = "OraClusterware10ghome1"

ORACLE_HOME_NAME=OraCrs10ghome1

#Example    : TOPLEVEL_COMPONENT = {"oracle.crs","10.2.0.1.0"}

TOPLEVEL_COMPONENT={"oracle.crs","10.2.0.1.0"}

#Example    : DEINSTALL_LIST = {"oracle.crs","10.2.0.1.0"}

DEINSTALL_LIST={"oracle.crs","10.2.0.1.0"}

#Example    : SHOW_SPLASH_SCREEN = true

SHOW_SPLASH_SCREEN=false

#Example    : SHOW_WELCOME_PAGE = false

SHOW_WELCOME_PAGE=false

#Example    : SHOW_NODE_SELECTION_PAGE = false

SHOW_NODE_SELECTION_PAGE=false

#Example    : SHOW_SUMMARY_PAGE = true

SHOW_SUMMARY_PAGE=false

#Example    : SHOW_INSTALL_PROGRESS_PAGE = true

SHOW_INSTALL_PROGRESS_PAGE=false

#Example    : SHOW_CONFIG_TOOL_PAGE = true

SHOW_CONFIG_TOOL_PAGE=false

#Example    : SHOW_XML_PREREQ_PAGE = true

SHOW_XML_PREREQ_PAGE=false

#Example: SHOW_ROOTSH_CONFIRMATION = false

SHOW_ROOTSH_CONFIRMATION=true

#Example    : SHOW_END_SESSION_PAGE = true

SHOW_END_SESSION_PAGE=false

#Example    : SHOW_EXIT_CONFIRMATION = true

SHOW_EXIT_CONFIRMATION=false

#Example    : NEXT_SESSION = true

NEXT_SESSION=false

#Example    : NEXT_SESSION_ON_FAIL = true

NEXT_SESSION_ON_FAIL=false

#Example    : SHOW_DEINSTALL_CONFIRMATION = true

SHOW_DEINSTALL_CONFIRMATION=false

#Example    : SHOW_DEINSTALL_PROGRESS = true

SHOW_DEINSTALL_PROGRESS=false

#Example    : RESTART_SYSTEM = false

RESTART_SYSTEM=false

#Example    : RESTART_REMOTE_SYSTEM = false

RESTART_REMOTE_SYSTEM=false

#Example    : REMOVE_HOMES = {<full_path_of_home1>,<full_path_of_home2>, …}

REMOVE_HOMES=<Value Unspecified>

#Example    : ORACLE_HOSTNAME =

ORACLE_HOSTNAME=<Value Unspecified>

#Example    : SHOW_END_OF_INSTALL_MSGS = true

SHOW_END_OF_INSTALL_MSGS=true

#Example    : COMPONENT_LANGUAGES = {"en"}

COMPONENT_LANGUAGES={"en"}

s_clustername=crs

sl_tableList={"rac1:rac1-priv:rac1-vip:N:Y","rac2:rac2-priv:rac2-vip:N:Y"}

#Example    : CLUSTER_CONFIGURATION_FILE = "/tmp/mycluster.conf"

CLUSTER_CONFIGURATION_FILE=""

#                a. 1 = Public

#                b. 2 = Private

#                c. 3 = Do Not Use

ret_PrivIntrList={"eth0:192.168.111.0:1","eth1:192.168.112.0:2"}

#             a. 1 = Not Redundant.  In this case, you should specify two disks

#             b. 2 = Externally Redundant.  This disk you are placing the OCR

#Example    : n_storageTypeOCR = 1

n_storageTypeOCR=1

#Example    : s_ocrpartitionlocation = "/oradbshare/oradata/ocr"

s_ocrpartitionlocation="/dev/raw/raw1"

#Example    : s_ocrMirrorLocation = "/oradbshare/oradata/ocrmirror"

s_ocrMirrorLocation="/dev/raw/raw2"

#             a. 1 = Not Redundant.  In this case, you should specify three

#             b. 2 = Externally Redundant.  This disk you are placing the

#Example    : n_storageTypeVDSK = 1

n_storageTypeVDSK=1

#Example    : s_votingdisklocation = "/oradbshare/oradata/vdisk"

s_votingdisklocation="/dev/raw/raw3"

#Example    : s_OcrVdskMirror1RetVal = "/oradbshare/oradata/vdisk2"

s_OcrVdskMirror1RetVal="/dev/raw/raw4"

#Example    : s_VdskMirror2RetVal = "/oradbshare/oradata/vdisk3"

s_VdskMirror2RetVal="/dev/raw/raw5"

 

两个主机都要做

[root@rac1 rootpre]# ./rootpre.sh

No OraCM running

 

 

[oracle@rac1 clusterware]$ ./runInstaller  -silent –ignoreSysPrereqs -responseFile /tmp/crs.rsp

SKIP_ROOTPRE environment variable is set, which means

rootpre.sh was already run as root.

Starting Oracle Universal Installer…

 

Checking installer requirements…

 

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2

                                      Passed

 

 

All installer requirements met.

 

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-07-09_08-16-54PM. Please wait …[oracle@rac1 clusterware]$ Oracle Universal Installer, Version 10.2.0.1.0 Production

Copyright (C) 1999, 2005, Oracle. All rights reserved.

 

The command line arguments ‘–ignoreSysPrereqs’ are not valid options. Type ‘runInstaller  -help’ at the command line for instructions on appropriate command line usage.

SEVERE:The command line arguments ‘–ignoreSysPrereqs’ are not valid options. Type ‘runInstaller  -help’ at the command line for instructions on appropriate command line usage.

 

[oracle@rac1 clusterware]$ ./runInstaller  -silent -ignoreSysPrereqs -responseFile /tmp/crs.rsp

SKIP_ROOTPRE environment variable is set, which means

rootpre.sh was already run as root.

Starting Oracle Universal Installer…

 

Checking installer requirements…

 

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2

                                      Passed

 

 

All installer requirements met.

 

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-07-09_08-17-05PM. Please wait …[oracle@rac1 clusterware]$ Oracle Universal Installer, Version 10.2.0.1.0 Production

Copyright (C) 1999, 2005, Oracle. All rights reserved.

 

You can find a log of this install session at:

 /oracle/oraInventory/logs/installActions2013-07-09_08-17-05PM.log

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

 

 

Loading Product Information

………………………………………………………  34% Done.

………………………………………………………  68% Done.

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

 

 

Analyzing dependencies

………………………………………………………………

Starting execution of Prerequisites…

Total No of checks: 7

 

Performing check for CertifiedVersions

Checking operating system requirements …

Expected result: One of redhat-3,redhat-4,SuSE-9

Actual Result: redhat-4

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for Packages

Checking operating system package requirements …

Checking for make-3.79; found make-1:3.81-3.el5.        Passed

Checking for binutils-2.15; found binutils-2.17.50.0.6-20.el5.  Passed

Checking for gcc-3.2; found gcc-4.1.2-52.el5.   Passed

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for TotalMemory

Checking physical memory requirements …

Expected result: 922MB

Actual Result: 4224MB

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for CompatibilityChecks

Checking for Oracle Home incompatibilities ….

Actual Result: NEW_HOME

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for OracleHomeSpace

Checking Oracle Home path for spaces…

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for Detectnverfiy10iSI

Checking local Cluster Synchronization Services (CSS) status …

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for Detectnverify92RAC

Checking whether Oracle 9.2 RAC is available on all selected nodes

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

PrereqChecks complete

 

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

 

 

—————————————————————————–

Summary

Global Settings

    Source: /soft/linuxsoft/clusterware/stage/products.xml

    Oracle Home: /oracle/product/10.2.0/crs (OraCrs10ghome1)

    Node Name: rac1

    Node Name: rac2

    Installation Type: Complete

Product Languages

   English

Space Requirements

   / Required 890MB (includes 61MB temporary) : Available 26.70GB

Remote Nodes

            rac2

                /: Required 828MB : Available 26.87GB

New Installations (36 products)

   Oracle Clusterware 10.2.0.1.0

   Required Support Files 10.2.0.1.0

   Cluster Ready Services Files 10.2.0.1.0

   HAS Common Files 10.2.0.1.0

   Oracle Globalization Support 10.2.0.1.0

   Oracle Locale Builder 10.2.0.1.0

   Enterprise Manager Minimal Integration 10.2.0.1.0

   RDBMS Required Support Files 10.2.0.1.0

   RDBMS Required Support Files for Instant Client 10.2.0.1.0

   LDAP Required Support Files 10.2.0.1.0

   Oracle Net Required Support Files 10.2.0.1.0

   Oracle Help For Java 4.2.6.1.0

   SSL Required Support Files for InstantClient 10.2.0.1.0

   Oracle JFC Extended Windowing Toolkit 4.2.33.0.0

   Oracle Ice Browser 5.2.3.6.0

   Perl Interpreter 5.8.3.0.2

   Oracle Core Required Support Files 10.2.0.1.0

   Platform Required Support Files 10.2.0.1.0

   Precompiler Required Support Files 10.2.0.1.0

   Parser Generator Required Support Files 10.2.0.1.0

   Agent Required Support Files 10.2.0.1.0

   XDK Required Support Files 10.2.0.1.0

   DBJAVA Required Support Files 10.2.0.1.0

   SQL*Plus Required Support Files 10.2.0.1.0

   Oracle RAC Required Support Files-HAS 10.2.0.1.0

   Oracle Notification Service 10.1.0.3.0

   Buildtools Common Files 10.2.0.1.0

   Oracle Extended Windowing Toolkit 3.4.38.0.0

   Bali Share 1.1.18.0.0

   Oracle Clusterware RDBMS Files 10.2.0.1.0

   Oracle Required Support Files 32 bit 10.2.0.0.0

   Oracle Universal Installer 10.2.0.1.0

   Oracle One-Off Patch Installer 10.2.0.1.0

   Installer SDK Component 10.2.0.1.0

   Java Runtime Environment 1.4.2.0.8

   Java 2 SDK 1.4.2.0.8

—————————————————————————–

 

 

Installation in progress (Tue Jul 09 20:17:17 CST 2013)

………………………………………………………  14% Done.

………………………………………………………  28% Done.

………………………………………………………  42% Done.

                                                              43% Done.

Install successful

 

Linking in progress (Tue Jul 09 20:18:00 CST 2013)

.                                                                43% Done.

Link successful

 

Setup in progress (Tue Jul 09 20:18:18 CST 2013)

……………………..                                       49% Done.

Setup successful

 

Remote operations in progress (Tue Jul 09 20:18:20 CST 2013)

………………………………………………………  63% Done.

………………………………………………………  77% Done.

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

Remote operations complete

 

End of install phases.(Tue Jul 09 20:21:31 CST 2013)

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 ‘/oracle/oraInventory/orainstRoot.sh’ with root privileges on nodes ‘rac1,rac2’.

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

 

The following configuration scripts

/oracle/product/10.2.0/crs/root.sh

need to be executed as root in the nodes: rac1,rac2, for configuring the system(s). If you skip the execution of the configuration tools, the configuration will not be complete and the product wont function properly. In order to get the product to function properly, you will be required to execute the scripts and the configuration tools after exiting the OUI.

Starting to execute configuration assistants

The following configuration assistants have not been run. This can happen for following reasons – either root.sh is to be run before config or Oracle Universal Installer was invoked with the -noConfig option.

————————————–

The "/oracle/product/10.2.0/crs/cfgtoollogs/configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.

The "/oracle/product/10.2.0/crs/cfgtoollogs/configToolAllCommands" script contains all commands to be executed by the configuration assistants. This file may be used to run the configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.

 

————————————–

The installation of Oracle Clusterware was successful.

Please check ‘/oracle/oraInventory/logs/silentInstall2013-07-09_08-17-05PM.log’ for more details.

 

1节点运行root.sh

[root@rac1 rootpre]# /oracle/product/10.2.0/crs/root.sh

WARNING: directory ‘/oracle/product/10.2.0’ is not owned by root

WARNING: directory ‘/oracle/product’ is not owned by root

WARNING: directory ‘/oracle’ is not owned by root

Checking to see if Oracle CRS stack is already configured

/etc/oracle does not exist. Creating it now.

 

Setting the permissions on OCR backup directory

Setting up NS directories

Oracle Cluster Registry configuration upgraded successfully

WARNING: directory ‘/oracle/product/10.2.0’ is not owned by root

WARNING: directory ‘/oracle/product’ is not owned by root

WARNING: directory ‘/oracle’ is not owned by root

Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node <nodenumber>: <nodename> <private interconnect name> <hostname>

node 1: rac1 rac1-priv rac1

node 2: rac2 rac2-priv rac2

Creating OCR keys for user ‘root’, privgrp ‘root’..

Operation successful.

Now formatting voting device: /dev/raw/raw3

Now formatting voting device: /dev/raw/raw4

Now formatting voting device: /dev/raw/raw5

Format of 3 voting devices complete.

Startup will be queued to init within 90 seconds.

Adding daemons to inittab

Expecting the CRS daemons to be up within 600 seconds.

CSS is active on these nodes.

        rac1

CSS is inactive on these nodes.

        rac2

Local node checking complete.

Run root.sh on remaining nodes to start CRS daemons.

 

2,执行

 

[oracle@rac2 ~]$ vi `which srvctl`

#Remove this workaround when the bug 3937317 is fixed

LD_ASSUME_KERNEL=2.4.19

export LD_ASSUME_KERNEL

unset  LD_ASSUME_KERNEL

 

[oracle@rac2 ~]$ vi `which vipca`

       then

            LD_ASSUME_KERNEL=2.4.19

            export LD_ASSUME_KERNEL

       fi

            unset LD_ASSUME_KERNEL

           

[root@rac2 rootpre]# /oracle/product/10.2.0/crs/root.sh

WARNING: directory ‘/oracle/product/10.2.0’ is not owned by root

WARNING: directory ‘/oracle/product’ is not owned by root

WARNING: directory ‘/oracle’ is not owned by root

Checking to see if Oracle CRS stack is already configured

/etc/oracle does not exist. Creating it now.

 

Setting the permissions on OCR backup directory

Setting up NS directories

Oracle Cluster Registry configuration upgraded successfully

WARNING: directory ‘/oracle/product/10.2.0’ is not owned by root

WARNING: directory ‘/oracle/product’ is not owned by root

WARNING: directory ‘/oracle’ is not owned by root

clscfg: EXISTING configuration version 3 detected.

clscfg: version 3 is 10G Release 2.

Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node <nodenumber>: <nodename> <private interconnect name> <hostname>

node 1: rac1 rac1-priv rac1

node 2: rac2 rac2-priv rac2

clscfg: Arguments check out successfully.

 

NO KEYS WERE WRITTEN. Supply -force parameter to override.

-force is destructive and will destroy any previous cluster

configuration.

Oracle Cluster Registry for cluster has already been initialized

Startup will be queued to init within 90 seconds.

Adding daemons to inittab

Expecting the CRS daemons to be up within 600 seconds.

CSS is active on these nodes.

        rac1

        rac2

CSS is active on all nodes.

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

Oracle CRS stack installed and running under init(1M)

Running vipca(silent) for configuring nodeapps

Error 0(Native: listNetInterfaces:[3])

  [Error 0(Native: listNetInterfaces:[3])]

 

[root@rac2 rootpre]# cd /oracle/product/10.2.0/crs/bin

[root@rac2 bin]# ./oifcfg -help

 

Name:

        oifcfg – Oracle Interface Configuration Tool.

 

Usage:  oifcfg iflist [-p [-n]]

        oifcfg setif {-node <nodename> | -global} {<if_name>/<subnet>:<if_type>}…

        oifcfg getif [-node <nodename> | -global] [ -if <if_name>[/<subnet>] [-type <if_type>] ]

        oifcfg delif [-node <nodename> | -global] [<if_name>[/<subnet>]]

        oifcfg [-help]

 

        <nodename> – name of the host, as known to a communications network

        <if_name>  – name by which the interface is configured in the system

        <subnet>   – subnet address of the interface

        <if_type>  – type of the interface { cluster_interconnect | public | storage }

 

[root@rac2 bin]# ./oifcfg setif -global eth0/192.168.111.0:public

[root@rac2 bin]# ./oifcfg setif -global eth1/192.168.112.0:cluster_interconnect

 

[root@rac2 bin]# ./vipca -silent -nodelist rac1,rac2 -nodevips rac1/192.168.111.48/255.255.255.0/eth0,rac2/192.168.111.49/255.255.255.0/eth0 -orahome /oracle/product/10.2.0/crs

The given interface(s), "eth0" is not public. Public interfaces should be used to configure virtual IPs.

 

这里我们还是报错了,要用图形界面

这里遇到了问题

./vipca

Bug 5854172 – VIPCA fails with exception thread main error [ID 5854172.8]

Exception in thread "main" [root@rac1 bin]#

[oracle@rac1 clusterware]$ /oracle/product/10.2.0/crs/cfgtoollogs/configToolAllCommands

PRIF-50: duplicate interface is given in the input

PRIF-50: duplicate interface is given in the input

 

Performing post-checks for cluster services setup

 

Checking node reachability…

Node reachability check passed from node "rac1".

 

 

Checking user equivalence…

User equivalence check passed for user "oracle".

 

Checking Cluster manager integrity…

 

 

Checking CSS daemon…

Daemon status check passed for "CSS daemon".

 

Cluster manager integrity check passed.

 

Checking cluster integrity…

 

 

Cluster integrity check passed

 

 

Checking OCR integrity…

 

Checking the absence of a non-clustered configuration…

All nodes free of non-clustered, local-only configurations.

 

Uniqueness check for OCR device passed.

 

Checking the version of OCR…

OCR of correct Version "2" exists.

 

Checking data integrity of OCR…

Data integrity check for OCR passed.

 

OCR integrity check passed.

 

Checking CRS integrity…

 

Checking daemon liveness…

Liveness check passed for "CRS daemon".

 

Checking daemon liveness…

Liveness check passed for "CSS daemon".

 

Checking daemon liveness…

Liveness check passed for "EVM daemon".

 

Checking CRS health…

CRS health check passed.

 

CRS integrity check passed.

 

Checking node application existence…

 

 

Checking existence of VIP node application (required)

Check failed.

Check failed on nodes:

        rac2,rac1

 

Checking existence of ONS node application (optional)

Check ignored.

 

Checking existence of GSD node application (optional)

Check ignored.

 

 

Post-check for cluster services setup was unsuccessful on all the nodes.

 

 

 

下面是直接升级CRS 10.2.0.1 到10.2.0.4

[oracle@rac1 ContentsXML]$ grep = /tmp/patchset.rsp

RESPONSEFILE_VERSION=2.2.1.0.0

UNIX_GROUP_NAME="dba"

FROM_LOCATION="/soft/linuxsoft/6810189_10204/stage/products.xml"

NEXT_SESSION_RESPONSE=<Value Unspecified>

ORACLE_HOME="/oracle/product/10.2.0/crs"

# Example value : ORACLE_HOME_NAME = "OHOME1"

ORACLE_HOME_NAME="OraCrs10ghome1"

TOPLEVEL_COMPONENT={"oracle.patchset.db","10.2.0.4.0"}

SHOW_SPLASH_SCREEN=false

SHOW_WELCOME_PAGE=false

SHOW_COMPONENT_LOCATIONS_PAGE=false

SHOW_CUSTOM_TREE_PAGE=false

SHOW_SUMMARY_PAGE=false

SHOW_INSTALL_PROGRESS_PAGE=true

SHOW_REQUIRED_CONFIG_TOOL_PAGE=false

SHOW_OPTIONAL_CONFIG_TOOL_PAGE=false

# Example value : SHOW_CONFIG_TOOL_PAGE = true

SHOW_CONFIG_TOOL_PAGE=false

# Example value : SHOW_XML_PREREQ_PAGE = true

SHOW_XML_PREREQ_PAGE=false

SHOW_RELEASE_NOTES=false

# Example value : SHOW_END_OF_INSTALL_MSGS = true

SHOW_END_OF_INSTALL_MSGS=true

SHOW_ROOTSH_CONFIRMATION=true

SHOW_END_SESSION_PAGE=false

SHOW_EXIT_CONFIRMATION=false

NEXT_SESSION=false

NEXT_SESSION_ON_FAIL=false

# Example value : SHOW_DEINSTALL_CONFIRMATION = true

SHOW_DEINSTALL_CONFIRMATION=false

# Example value : SHOW_DEINSTALL_PROGRESS = true

SHOW_DEINSTALL_PROGRESS=false

# Example       : ACCEPT_LICENSE_AGREEMENT = true

ACCEPT_LICENSE_AGREEMENT=true

# Example value : RESTART_SYSTEM = false

RESTART_SYSTEM=<Value Unspecified>

# Example value : CLUSTER_NODES = {"node1"}

CLUSTER_NODES={"rac1","rac2"}

# Example       : OUI_HOSTNAME = host1

OUI_HOSTNAME=<Value Unspecified>

# Example value : REMOVE_HOMES = {<path_of_home1>,<path_of_home2>, …}

REMOVE_HOMES=<Value Unspecified>

COMPONENT_LANGUAGES={"en"}

sl_userNodeList={"rac1","rac2"}

#  n_configurationOption=1, 2

#  n_performUpgrade=0

#  n_dbType = 1 or 2

b_acceptLicense=<Value Unspecified>

#  n_configurationOption=1, 2

#  n_performUpgrade=0

#  n_dbType = 1 or 2

#  b_acceptLicense=true

b_useRegistration=<Value Unspecified>

#  n_configurationOption=1, 2

#  n_performUpgrade=0

#  n_dbType = 1 or 2

#  b_acceptLicense=true

#  b_useRegistration = true

#  Example   : s_csiNumber="12365487"

s_csiNumber=<Value Unspecified>

#  n_configurationOption=1, 2

#  n_performUpgrade=0

#  n_dbType = 1 or 2

#  b_acceptLicense=true

#  b_useRegistration = true

#  Example   : s_metaLink="metalink"

s_metaLink=<Value Unspecified>

#  n_configurationOption=1, 2

#  n_performUpgrade=0

#  n_dbType = 1 or 2

#  b_acceptLicense=true

#  b_useRegistration = true

#  Example   : s_countryName="UNITED STATES"

s_countryName=<Value Unspecified>

#  n_configurationOption=1, 2

#  n_performUpgrade=0

#  n_dbType = 1 or 2

# Example    : b_proxyused = true

b_proxyused=<Value Unspecified>

#  n_configurationOption=1, 2

#  n_performUpgrade=0

#  n_dbType = 1 or 2

#  b_proxyused = true

# Example    : s_serverName="stacb16.us.oracle.com"

s_serverName=<Value Unspecified>

#  n_configurationOption=1, 2

#  n_performUpgrade=0

#  n_dbType = 1 or 2

#  b_proxyused = true

# Example    : s_portNumber="25"

s_portNumber=<Value Unspecified>

#  n_configurationOption=1, 2

#  n_performUpgrade=0

#  n_dbType = 1 or 2

#  b_proxyused = true

# Example    : s_userName="username"

s_userName=<Value Unspecified>

#  n_configurationOption=1, 2

#  n_performUpgrade=0

#  n_dbType = 1 or 2

#  b_proxyused = true

# Example    : s_proxyPassword="password"

s_proxyPassword=<Value Unspecified>

b_authenticationused=<Value Unspecified>

 

 

 

[oracle@rac1 6810189_10204]$ ./runInstaller -silent -responseFile /tmp/patchset.rsp

Starting Oracle Universal Installer…

 

Checking installer requirements…

 

Checking operating system version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5, UnitedLinux-1.0, asianux-1, asianux-2 or asianux-3

                                      Passed

 

 

All installer requirements met.

 

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-07-09_09-23-53PM. Please wait …[oracle@rac1 6810189_10204]$ Oracle Universal Installer, Version 10.2.0.4.0 Production

Copyright (C) 1999, 2008, Oracle. All rights reserved.

 

You can find a log of this install session at:

 /oracle/oraInventory/logs/installActions2013-07-09_09-23-53PM.log

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

 

 

Loading Product Information

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

 

 

Performing tests to see whether nodes rac2 are available

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

 

 

Starting execution of Prerequisites…

Total No of checks: 3

 

Performing check for Detect10.2CRS

Checking Oracle Clusterware version …

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for checkToInstallCCR

Checking the Components installed in Oracle Home

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for CompatibilityChecks

Checking for Oracle Home incompatibilities …

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

PrereqChecks complete

 

 

Analyzing dependencies

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

 

 

—————————————————————————–

Summary

Global Settings

    Source: /soft/linuxsoft/6810189_10204/stage/products.xml

    Oracle Home: /oracle/product/10.2.0/crs (OraCrs10ghome1)

    Node Name: rac1

    Node Name: rac2

Product Languages

   English

Space Requirements

   / Required 611MB (includes 55MB temporary) : Available 25.90GB

Remote Nodes

            rac2

                /: Required 556MB : Available 25.99GB

New Installations (20 products)

   Oracle Notification Service Patch 10.2.0.4.0

   Oracle Clusterware Patch 10.2.0.4.0

   HAS Common Files Patch 10.2.0.4.0

   Cluster Ready Services Files Patch 10.2.0.4.0

   Oracle Clusterware RDBMS Files Patch 10.2.0.4.0

   XDK Required Support Files Patch 10.2.0.4.0

   Agent Required Support Files Patch 10.2.0.4.0

   DBJAVA Required Support Files Patch 10.2.0.4.0

   LDAP Required Support Files Patch 10.2.0.4.0

   Precompiler Required Support Files Patch 10.2.0.4.0

   Oracle RAC Required Support Files-HAS Patch 10.2.0.4.0

   RDBMS Required Support Files for Instant Client Patch 10.2.0.4.0

   RDBMS Required Support Files Patch 10.2.0.4.0

   SQL*Plus Required Support Files Patch 10.2.0.4.0

   SSL Required Support Files for InstantClient Patch 10.2.0.4.0

   Oracle Net Required Support Files Patch 10.2.0.4.0

   Oracle Globalization Support Patch 10.2.0.4.0

   Oracle Core Required Support Files Patch 10.2.0.4.0

   Platform Required Support Files 10.2.0.4.0

   Oracle Required Support Files 32 bit Patch 10.2.0.4.0

Upgrades (5 products)

   Oracle Universal Installer 10.2.0.4.0

   Oracle One-Off Patch Installer 10.2.0.4.0

   Installer SDK Component 10.2.0.4.0

   Java Runtime Environment 1.4.2.14.0

   Sun JDK 1.4.2.14.0

Already Installed (20 products)

   Oracle Notification Service 10.1.0.3.0

   Oracle Clusterware 10.2.0.1.0

   HAS Common Files 10.2.0.1.0

   Cluster Ready Services Files 10.2.0.1.0

   Oracle Clusterware RDBMS Files 10.2.0.1.0

   XDK Required Support Files 10.2.0.1.0

   Agent Required Support Files 10.2.0.1.0

   DBJAVA Required Support Files 10.2.0.1.0

   LDAP Required Support Files 10.2.0.1.0

   Precompiler Required Support Files 10.2.0.1.0

   Oracle RAC Required Support Files-HAS 10.2.0.1.0

   RDBMS Required Support Files for Instant Client 10.2.0.1.0

   RDBMS Required Support Files 10.2.0.1.0

   SQL*Plus Required Support Files 10.2.0.1.0

   SSL Required Support Files for InstantClient 10.2.0.1.0

   Oracle Net Required Support Files 10.2.0.1.0

   Oracle Globalization Support 10.2.0.1.0

   Oracle Core Required Support Files 10.2.0.1.0

   Platform Required Support Files 10.2.0.1.0

   Oracle Required Support Files 32 bit 10.2.0.0.0

—————————————————————————–

 

 

Deinstall in progress (Tuesday, July 9, 2013 9:24:02 PM CST)

………………………………………………………   0% Done.

………………………………………………………  16% Done.

………………………………………………………  32% Done.

………………………………………………………  48% Done.

………………………………………………………  64% Done.

………………………………………………………  80% Done.

……………                                                 100% Done.

 

Deinstall successful

 

Installation in progress (Tuesday, July 9, 2013 9:24:02 PM CST)

………………………………………………………  16% Done.

………………………………………………………  32% Done.

………………………………………………………  48% Done.

…………….                                                 52% Done.

Install successful

 

Linking in progress (Tuesday, July 9, 2013 9:24:30 PM CST)

.                                                                52% Done.

Link successful

 

Setup in progress (Tuesday, July 9, 2013 9:24:30 PM CST)

..                                                               52% Done.

Setup successful

 

Remote operations in progress (Tuesday, July 9, 2013 9:24:31 PM CST)

………………………………………………………  68% Done.

………………………………………………………  84% Done.

..                                                              100% Done.

Remote operations complete

 

End of install phases.(Tuesday, July 9, 2013 9:25:55 PM CST)

The installation of Oracle Database 10g Release 2 Patch Set 3 was successful.

Please check ‘/oracle/oraInventory/logs/silentInstall2013-07-09_09-23-53PM.log’ for more details.

 

[oracle@rac1 6810189_10204]$ cat /oracle/product/10.2.0/crs/install/readme.txt

The installer has detected that your Cluster Ready Services (CRS) installation is distributed across the following nodes:

 

        rac1

        rac2

 

Because the software consists of local identical copies distributed across each of the nodes in the cluster, it is possible to patch your CRS installation in a rolling manner, one node at a time.

 

To complete the installation of this patchset, you must perform the following tasks on each node:

 

        1.      Log in as the root user.

        2.      As the root user, perform the following tasks:

 

                a.      Shutdown the CRS daemons by issuing the following command:

                                /oracle/product/10.2.0/crs/bin/crsctl stop crs

                b.      Run the shell script located at:

                                /oracle/product/10.2.0/crs/install/root102.sh

                        This script will automatically start the CRS daemons on the

                        patched node upon completion.

 

        3.      After completing this procedure, proceed to the next node and repeat.

       

       

 [root@rac1 rootpre]#  /oracle/product/10.2.0/crs/bin/crsctl stop crs

Stopping resources.

Successfully stopped CRS resources

Stopping CSSD.

Shutting down CSS daemon.

Shutdown request successfully issued.

[root@rac1 rootpre]# /oracle/product/10.2.0/crs/install/root102.sh

Creating pre-patch directory for saving pre-patch clusterware files

Completed patching clusterware files to /oracle/product/10.2.0/crs

Relinking some shared libraries.

Relinking of patched files is complete.

WARNING: directory ‘/oracle/product/10.2.0’ is not owned by root

WARNING: directory ‘/oracle/product’ is not owned by root

WARNING: directory ‘/oracle’ is not owned by root

Preparing to recopy patched init and RC scripts.

Recopying init and RC scripts.

Startup will be queued to init within 30 seconds.

Starting up the CRS daemons.

Waiting for the patched CRS daemons to start.

  This may take a while on some systems.

.

10204 patch successfully applied.

clscfg: EXISTING configuration version 3 detected.

clscfg: version 3 is 10G Release 2.

Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node <nodenumber>: <nodename> <private interconnect name> <hostname>

node 1: rac1 rac1-priv rac1

Creating OCR keys for user ‘root’, privgrp ‘root’..

Operation successful.

clscfg -upgrade completed successfully

 

2节点      

[root@rac2 bin]# /oracle/product/10.2.0/crs/bin/crsctl stop crs

Stopping resources.

Successfully stopped CRS resources

Stopping CSSD.

Shutting down CSS daemon.

Shutdown request successfully issued.

[root@rac2 bin]# set -o vi

[root@rac2 bin]# /oracle/product/10.2.0/crs/install/root102.sh

Creating pre-patch directory for saving pre-patch clusterware files

Completed patching clusterware files to /oracle/product/10.2.0/crs

Relinking some shared libraries.

Relinking of patched files is complete.

WARNING: directory ‘/oracle/product/10.2.0’ is not owned by root

WARNING: directory ‘/oracle/product’ is not owned by root

WARNING: directory ‘/oracle’ is not owned by root

Preparing to recopy patched init and RC scripts.

Recopying init and RC scripts.

Startup will be queued to init within 30 seconds.

Starting up the CRS daemons.

Waiting for the patched CRS daemons to start.

  This may take a while on some systems.

.

10204 patch successfully applied.

clscfg: EXISTING configuration version 3 detected.

clscfg: version 3 is 10G Release 2.

Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node <nodenumber>: <nodename> <private interconnect name> <hostname>

node 2: rac2 rac2-priv rac2

Creating OCR keys for user ‘root’, privgrp ‘root’..

Operation successful.

clscfg -upgrade completed successfully

[root@rac2 bin]# ./vipca -silent -nodelist rac1,rac2 -nodevips rac1/192.168.111.48/255.255.255.0/eth0,rac2/192.168.111.49/255.255.255.0/eth0 -orahome /oracle/product/10.2.0/crs

 

Creating VIP application resource on (2) nodes…

Creating GSD application resource on (2) nodes…

Creating ONS application resource on (2) nodes…

Starting VIP application resource on (2) nodes…

Starting GSD application resource on (2) nodes…

Starting ONS application resource on (2) nodes…

 

 

Done.

 

 

 

[oracle@rac1 linuxsoft]$ /oracle/product/10.2.0/crs/cfgtoollogs/configToolFailedCommands

WARNING: rac1:6200 already configured.

WARNING: rac2:6200 already configured.

PRIF-50: duplicate interface is given in the input

PRIF-50: duplicate interface is given in the input

 

Performing post-checks for cluster services setup

 

Checking node reachability…

Node reachability check passed from node "rac1".

 

 

Checking user equivalence…

User equivalence check passed for user "oracle".

 

Checking Cluster manager integrity…

 

 

Checking CSS daemon…

Daemon status check passed for "CSS daemon".

 

Cluster manager integrity check passed.

 

Checking cluster integrity…

 

 

Cluster integrity check passed

 

 

Checking OCR integrity…

 

Checking the absence of a non-clustered configuration…

All nodes free of non-clustered, local-only configurations.

 

Uniqueness check for OCR device passed.

 

Checking the version of OCR…

OCR of correct Version "2" exists.

 

Checking data integrity of OCR…

Data integrity check for OCR passed.

 

OCR integrity check passed.

 

Checking CRS integrity…

 

Checking daemon liveness…

Liveness check passed for "CRS daemon".

 

Checking daemon liveness…

Liveness check passed for "CSS daemon".

 

Checking daemon liveness…

Liveness check passed for "EVM daemon".

 

Checking CRS health…

CRS health check passed.

 

CRS integrity check passed.

 

Checking node application existence…

 

 

Checking existence of VIP node application (required)

Check passed.

 

Checking existence of ONS node application (optional)

Check passed.

 

Checking existence of GSD node application (optional)

Check passed.

 

 

Post-check for cluster services setup was successful.

 

成功了

 

13 安装数据库

 

"/tmp/enterprise.rsp" 1578L, 71091C written

[oracle@rac1 response]$ grep = /tmp/enterprise.rsp

RESPONSEFILE_VERSION=2.2.1.0.0

#Example    : UNIX_GROUP_NAME = "install"

UNIX_GROUP_NAME=dba

#Example    : FROM_LOCATION = "../stage/products.xml"

FROM_LOCATION="/soft/linuxsoft/10gdatabase/stage/products.xml"

#Example: NEXT_SESSION_RESPONSE = "nextinstall.rsp"

NEXT_SESSION_RESPONSE=<Value Unspecified>

#Example    : ORACLE_HOME = "/product/10.2.0/db_1"

ORACLE_HOME=/oracle/product/10.2.0/db

#Example    : ORACLE_HOME_NAME = "OraDbHome1"

ORACLE_HOME_NAME=OraDbHome1

#Example    : TOPLEVEL_COMPONENT = {"oracle.server","10.2.0.1.0"}

TOPLEVEL_COMPONENT={"oracle.server","10.2.0.1.0"}

#Example    : DEINSTALL_LIST = {"oracle.server","10.2.0.1.0"}

DEINSTALL_LIST={"oracle.server","10.2.0.1.0"}

#Example    : SHOW_SPLASH_SCREEN = true

SHOW_SPLASH_SCREEN=false

#Example    : SHOW_WELCOME_PAGE = false

SHOW_WELCOME_PAGE=false

#Example    : SHOW_NODE_SELECTION_PAGE = false

SHOW_NODE_SELECTION_PAGE=false

#Example    : SHOW_SUMMARY_PAGE = true

SHOW_SUMMARY_PAGE=false

#Example    : SHOW_INSTALL_PROGRESS_PAGE = true

SHOW_INSTALL_PROGRESS_PAGE=false

#Example    : SHOW_CONFIG_TOOL_PAGE = true

SHOW_CONFIG_TOOL_PAGE=false

#Example    : SHOW_XML_PREREQ_PAGE = true

SHOW_XML_PREREQ_PAGE=false

#Example: SHOW_ROOTSH_CONFIRMATION = false

SHOW_ROOTSH_CONFIRMATION=true

#Example    : SHOW_END_SESSION_PAGE = true

SHOW_END_SESSION_PAGE=false

#Example    : SHOW_EXIT_CONFIRMATION = true

SHOW_EXIT_CONFIRMATION=false

#Example    : NEXT_SESSION = true

NEXT_SESSION=false

#Example    : NEXT_SESSION_ON_FAIL = true

NEXT_SESSION_ON_FAIL=false

#Example    : SHOW_DEINSTALL_CONFIRMATION = true

SHOW_DEINSTALL_CONFIRMATION=false

#Example    : SHOW_DEINSTALL_PROGRESS = true

SHOW_DEINSTALL_PROGRESS=false

#Example    : RESTART_SYSTEM = false

RESTART_SYSTEM=<Value Unspecified>

#Example    : RESTART_REMOTE_SYSTEM = false

RESTART_REMOTE_SYSTEM=<Value Unspecified>

#Example    : REMOVE_HOMES = {<full_path_of_home1>,<full_path_of_home2>, …}

REMOVE_HOMES=<Value Unspecified>

#Example    : ORACLE_HOSTNAME =

ORACLE_HOSTNAME=<Value Unspecified>

#Example    : SHOW_END_OF_INSTALL_MSGS = true

SHOW_END_OF_INSTALL_MSGS=true

#Example    : CLUSTER_NODES = {"node1","node2"}

CLUSTER_NODES={"rac1","rac2"}

#Example    : COMPONENT_LANGUAGES = {"en"}

COMPONENT_LANGUAGES={"en"}

#Example    : INSTALL_TYPE = "EE"

INSTALL_TYPE="EE"

# Example    : s_nameForDBAGrp = "dba"

s_nameForDBAGrp=dba

# Example    : s_nameForDBAGrp = "oper"

s_nameForOPERGrp=dba

# Example    : n_configurationOption=1

n_configurationOption=2

s_ASMSYSPassword="oracle"

s_ASMSYSPasswordAgain="oracle"

# If you chose n_performUpgrade=0 (Do not Upgrade an existing database) and   #

# n_configurationOption=1 (Create a Database) then you need to specify the    #

# If you did not choose n_performUpgrade=0 and n_configurationOption=1        #

#  n_configurationOption=1

#  n_performUpgrade=0

# Example    : n_dbType=1

n_dbType=<Value Required>

#              specifying n_dbType=4 above, then you need to specify a number

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType=4

# Example    : oracle.assistants.server:s_responseFileName = "/tmp/dbca.rsp"

oracle.assistants.server:s_responseFileName=<Value Unspecified>

# If you chose n_performUpgrade=0 (Do Not Upgrade an existing database),      #

# n_configurationOption=1 (Create a Database), and n_dbType = 1, 2 or 3       #

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

# Example     : s_globalDBName = "mydb.mydomain.com"

s_globalDBName=<Value Required>

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

# Example    : s_dbSid = "orcl"

s_dbSid=<Value Required>

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

# Example    : s_dbRetChar = "WE8ISO8859P1"

s_dbRetChar="WE8ISO8859P1"

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

# Example    : b_loadExampleSchemas=false

b_loadExampleSchemas=false

# If you chose n_performUpgrade=0 (Do Not Upgrade an existing database),      #

# n_configurationOption=1 (Create a Database), and n_dbType = 1, 2 or 3       #

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

# Example     : b_useDBControl=true

b_useDBControl=true

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_useDBControl=true

# Example     : b_receiveEmailNotification=false

b_receiveEmailNotification=false

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_useDBControl=true

#  b_receiveEmailNotification=true

# Example     : s_dlgEMSMTPServer = "mysmtp.mydomain.com"

s_dlgEMSMTPServer=<Value Unspecified>

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_useDBControl=true

#  b_receiveEmailNotification=true

# Example    : s_dlgEMEmailAddress = "myemail@mydomain.com"

s_dlgEMEmailAddress=<Value Unspecified>

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_useDBControl=false

# Example    : s_dlgEMCentralAgentSelected = "http://myem.mydomain.com:4889/em/upload"

s_dlgEMCentralAgentSelected=<Value Unspecified>

# If you chose n_performUpgrade=0 (Do Not Upgrade an existing database),      #

# n_configurationOption=1 (Create a Database), and n_dbType = 1, 2 or 3       #

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

n_dbStorageType=<Value Unspecified>

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  n_dbStorageType = 1

s_mountPoint=<Value Unspecified>

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  n_dbStorageType = 3

s_rawDeviceMapFileLocation=<Value Unspecified>

# If you chose n_performUpgrade=0 (Do Not Upgrade an existing database),      #

# n_configurationOption=1 (Create a Database), and n_dbType = 1, 2 or 3       #

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

# Example     : b_enableAutoBackup=true

b_enableAutoBackup=false

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_enableAutoBackup=true

# Example     : b_useFileSystemForRecovery=true

b_useFileSystemForRecovery=true

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_enableAutoBackup=true

#  b_useFileSystemForRecovery=true

# Example     : s_dlgRBORecoveryLocation="/u01/app/oracle/flash_recovery_area"

s_dlgRBORecoveryLocation=<Value Unspecified>

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_enableAutoBackup=true

# Example     : s_dlgRBOUsername = "oracle"

s_dlgRBOUsername=<Value Unspecified>

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_enableAutoBackup=true

s_dlgRBOPassword=<Value Unspecified>

# If you chose n_performUpgrade=0 (Do Not Upgrade an existing database),      #

# n_configurationOption=1 (Create a Database), n_dbType = 1, 2 or 3, and      #

# n_dbStorageType=2 (use ASM)                                                 #

# If you chose n_performUpgrade=0 (Do Not Upgrade an existing database),      #

# n_configurationOption=1 (Create a Database), n_dbType = 1, 2 or 3,          #

# b_enableAutoBackup=true, and b_useFileSystemForRecovery=false (use ASM      #

# If you chose n_performUpgrade=0 and n_configurationOption=2 (configure      #

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  n_dbStorageType = 2

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_enableAutoBackup=true

#  b_useFileSystemForRecovery=false

#  n_configurationOption=2

#  n_performUpgrade=0

# Example   : s_dlgASMCfgDiskGroupName="DATA"

s_dlgASMCfgDiskGroupName="DATA"

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  n_dbStorageType = 2

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_enableAutoBackup=true

#  b_useFileSystemForRecovery=false

#  n_configurationOption=2

#  n_performUpgrade=0

# Example   : s_dlgASMCfgDiskDiscoveryString="/dev/raw/*"

s_dlgASMCfgDiskDiscoveryString=<Value Unspecified>

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  n_dbStorageType = 2

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_enableAutoBackup=true

#  b_useFileSystemForRecovery=false

#  n_configurationOption=2

#  n_performUpgrade=0

# Example   : n_dlgASMCfgRedundancySelected=2

n_dlgASMCfgRedundancySelected=<Value Unspecified>

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  n_dbStorageType = 2

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_enableAutoBackup=true

#  b_useFileSystemForRecovery=false

#  n_configurationOption=2

#  n_performUpgrade=0

# Example    : sl_dlgASMCfgSelectableDisks={"/dev/raw/asm1","1800","/dev/raw/asm2","1800","/dev/raw/asm3","1800","/dev/raw/asm4","1800"}

sl_dlgASMCfgSelectableDisks=<Value Unspecified>

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  n_dbStorageType = 2

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_enableAutoBackup=true

#  b_useFileSystemForRecovery=false

#  n_configurationOption=2

#  n_performUpgrade=0

# Example    : sl_dlgASMCfgDiskSelections={"/dev/raw/asm1","1800","/dev/raw/asm2","1800","/dev/raw/asm3","1800","/dev/raw/asm4","1800"}

sl_dlgASMCfgDiskSelections=<Value Unspecified>

# If you chose n_performUpgrade=0 (Do Not Upgrade an existing database),      #

# n_configurationOption=1 (Create a Database), n_dbType = 1, 2 or 3, and      #

# n_dbStorageType=2 (use ASM)                                                 #

# If you chose n_performUpgrade=0 (Do Not Upgrade an existing database),      #

# n_configurationOption=1 (Create a Database), n_dbType = 1, 2 or 3,          #

# b_enableAutoBackup=true, and b_useFileSystemForRecovery=false (use ASM      #

#                    $ORACLE_HOME/bin/kfod op=groups _asmsid=’+ASM’

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  n_dbStorageType = 2

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_enableAutoBackup=true

#  b_useFileSystemForRecovery=false

# Example    : sl_dlgASMDskGrpSelectedGroup={"DATA","3600","3498","NORMAL"}

sl_dlgASMDskGrpSelectedGroup={" "," "," "," "}

# If you chose n_performUpgrade=0 (Do Not Upgrade an existing database),      #

# and n_configurationOption=2 (Confiugure an ASM instance) and if you already #

#              n_configurationOption=2 (Configure an ASM instance), and if

# Example    : b_centrallyManageASMInstance=true

b_centrallyManageASMInstance=true

# If you chose n_performUpgrade=0 (Do Not Upgrade an existing database),      #

# n_configurationOption=1 (Create a Database), and n_dbType = 1, 2 or 3       #

#              If b_useSamePassword=true, then you must specify the password

#              If b_useSamePassword=false, then you must specify the passwords

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

# Example    : b_useSamePassword=false

b_useSamePassword=true

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_useSamePassword=true

s_superAdminSamePasswd=<Value Unspecified>

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_useSamePassword=true

s_superAdminSamePasswdAgain=<Value Unspecified>

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_useSamePassword=false

# Example    : sl_superAdminPasswds = {"<password for SYS>","<password for SYSTEM>","<password for SYSMAN>","<password for DBSNMP>"}

sl_superAdminPasswds=<Value Unspecified>

#  n_configurationOption=1

#  n_performUpgrade=0

#  n_dbType = 1, 2, or 3

#  b_useSamePassword=false

# Example    : sl_superAdminPasswdsAgain = {"<password for SYS>","<password for SYSTEM>","<password for SYSMAN>","<password for DBSNMP>"}

sl_superAdminPasswdsAgain=<Value Unspecified>

#              If n_performUpgrade=1, then an upgrade will be performed at the

#              IMPORTANT INFO: If n_performUpgrade=0, then an upgrade will not

#              n_performUpgrade=0, then use the following values ONLY for the

#              – n_upgradeDB=0

#              – s_dbOHSelectedForUpgrade=""

#              – s_dbSIDSelectedForUpgrade=""

#              – n_upgradeASM=0

#              – s_dbSelectedUsesASM="no"

# Example    : n_performUpgrade=0

n_performUpgrade=0

#              If n_upgradeDB=1, then you must also specify values for the

#  n_performUpgrade=1

# Example    : n_upgradeDB = 1

n_upgradeDB=0

#  n_performUpgrade=1

#  n_upgradeDB=1

# Example    : s_dbOHSelectedForUpgrade = "/u01/app/oracle/9.2.0/db"

s_dbOHSelectedForUpgrade=""

#  n_performUpgrade=1

#  n_upgradeDB=1

# Example    : s_dbSIDSelectedForUpgrade = "orcl"

s_dbSIDSelectedForUpgrade=""

#  n_performUpgrade=1

# Example    : n_upgradeASM = 1

n_upgradeASM=0

#  n_performUpgrade=1

#  n_upgradeDB=1

s_dbSelectedUsesASM="no"

sl_upgradableSIDBInstances={}

sl_upgradableRACDBInstances={}

n_dbSelection=0

b_stateOfUpgradeASMCheckbox=false

b_stateOfUpgradeDBCheckbox=false

b_oneClick=false

s_dlgASMCfgRedundancyValue=""

s_dlgASMCfgExistingFreeSpace="0"

s_dlgASMCfgNewDisksSize=""

s_dlgASMCfgAdditionalSpaceNeeded="0 MB"

 

 

 

[oracle@rac1 10gdatabase]$ ./runInstaller -silent -responeFile /tmp/enterprise.rsp

Starting Oracle Universal Installer…

 

Checking installer requirements…

 

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2

                                      Passed

 

 

All installer requirements met.

 

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-07-09_09-46-39PM. Please wait …[oracle@rac1 10gdatabase]$ Oracle Universal Installer, Version 10.2.0.1.0 Production

Copyright (C) 1999, 2005, Oracle. All rights reserved.

 

OUI-10202:No response file is specified for this session. A silent session requires inputs from a response file or from the command line. Specify the response file and re-run the installer.

 

[oracle@rac1 10gdatabase]$ ./runInstaller -silent -responseFile /tmp/enterprise.rsp

Starting Oracle Universal Installer…

 

Checking installer requirements…

 

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2

                                      Passed

 

 

All installer requirements met.

 

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-07-09_09-47-35PM. Please wait …[oracle@rac1 10gdatabase]$ Oracle Universal Installer, Version 10.2.0.1.0 Production

Copyright (C) 1999, 2005, Oracle. All rights reserved.

 

You can find a log of this install session at:

 /oracle/oraInventory/logs/installActions2013-07-09_09-47-35PM.log

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

 

 

Loading Product Information

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

 

 

Performing tests to see whether nodes rac2 are available

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

 

 

Analyzing dependencies

…………………………………………………

Starting execution of Prerequisites…

Total No of checks: 12

 

Performing check for CertifiedVersions

Checking operating system requirements …

Expected result: One of redhat-3,redhat-4,SuSE-9

Actual Result: redhat-4

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for Packages

Checking operating system package requirements …

Checking for make-3.79; found make-1:3.81-3.el5.        Passed

Checking for binutils-2.15; found binutils-2.17.50.0.6-20.el5.  Passed

Checking for gcc-3.2; found gcc-4.1.2-52.el5.   Passed

Checking for libaio-0.3.96; found libaio-0.3.106-5.     Passed

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for Kernel

Checking kernel parameters

Checking for semmsl=250; found semmsl=250.      Passed

Checking for semmns=32000; found semmns=32000.  Passed

Checking for semopm=100; found semopm=100.      Passed

Checking for semmni=128; found semmni=128.      Passed

Checking for shmmax=536870912; found shmmax=2147483648. Passed

Checking for shmmni=4096; found shmmni=4096.    Passed

Checking for shmall=2097152; found shmall=2097152.      Passed

Checking for file-max=65536; found file-max=65536.      Passed

Checking for VERSION=2.6.9; found VERSION=2.6.18-308.el5.       Passed

Checking for ip_local_port_range=1024 – 65000; found ip_local_port_range=9000 – 65500.  Failed <<<<

Checking for rmem_default=262144; found rmem_default=262144.    Passed

Checking for rmem_max=262144; found rmem_max=2097152.   Passed

Checking for wmem_default=262144; found wmem_default=262144.    Passed

Checking for wmem_max=262144; found wmem_max=1048576.   Passed

Check complete. The overall result of this check is: Failed <<<<

 

 

Check complete: Failed <<<<

Problem: The kernel parameters do not meet the minimum requirements (see above).

Recommendation: Perform operating system specific instructions to update the kernel parameters.

 

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

Performing check for GLIBC

Checking Recommended glibc version

Expected result: ATLEAST=2.3.2-95.27

Actual Result: 2.5-81

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for TotalMemory

Checking physical memory requirements …

Expected result: 922MB

Actual Result: 4224MB

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for SwapSpace

Checking available swap space requirements …

Expected result: 4224MB

Actual Result: 8191MB

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for DetectIfDHCPAssignedIP

Checking Network Configuration requirements …

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for OracleBase

Validating ORACLE_BASE location (if set) …

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for OracleHomeSpace

Checking Oracle Home path for spaces…

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for DetectAnyInvalidASMHome

Checking for proper system clean-up….

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for CompatibilityChecks

Checking for Oracle Home incompatibilities ….

Actual Result: NEW_HOME

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

Performing check for Detect10.2CRS

Checking Oracle Clusterware version …

Check complete. The overall result of this check is: Passed

 

 

Check complete: Passed

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

PrereqChecks complete

 

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

 

 

—————————————————————————–

Summary

Global Settings

    Source: /soft/linuxsoft/10gdatabase/stage/products.xml

    Oracle Home: /oracle/product/10.2.0/db (OraDbHome1)

    Node Name: rac1

    Node Name: rac2

    Installation Type: Enterprise Edition

Product Languages

   English

Space Requirements

   / Required 1.74GB (includes 130MB temporary) : Available 25.12GB

Remote Nodes

            rac2

                /: Required 1.62GB : Available 25.36GB

New Installations (109 products)

   Oracle Database 10g 10.2.0.1.0

   Enterprise Edition Options 10.2.0.1.0

   Oracle Partitioning 10.2.0.1.0

   Oracle Spatial 10.2.0.1.0

   Oracle OLAP 10.2.0.1.0

   Oracle Enterprise Manager Console DB 10.2.0.1.0

   Oracle Net Services 10.2.0.1.0

   Oracle Database 10g 10.2.0.1.0

   Oracle Net Listener 10.2.0.1.0

   HAS Files for DB 10.2.0.1.0

   Oracle Internet Directory Client 10.2.0.1.0

   Oracle Call Interface (OCI) 10.2.0.1.0

   Oracle Programmer 10.2.0.1.0

   Oracle interMedia 10.2.0.1.0

   Enterprise Manager Agent Core 10.2.0.1.0

   Oracle JVM 10.2.0.1.0

   Database Configuration and Upgrade Assistants 10.2.0.1.0

   Oracle interMedia Locator 10.2.0.1.0

   Oracle XML Development Kit 10.2.0.1.0

   Oracle Text 10.2.0.1.0

   Oracle Database Utilities 10.2.0.1.0

   Generic Connectivity Common Files 10.2.0.1.0

   Oracle Advanced Security 10.2.0.1.0

   Enterprise Manager Repository Core 10.2.0.1.0

   PL/SQL 10.2.0.1.0

   Oracle Net 10.2.0.1.0

   Assistant Common Files 10.2.0.1.0

   Oracle Notification Service 10.1.0.3.0

   Enterprise Manager plugin Common Files 10.2.0.1.0 Beta

   Buildtools Common Files 10.2.0.1.0

   Installation Common Files 10.2.0.1.0

   Oracle LDAP administration 10.2.0.1.0

   Oracle Java Client 10.2.0.1.0

   Oracle Recovery Manager 10.2.0.1.0

   SQL*Plus 10.2.0.1.0

   iSQL*Plus 10.2.0.1.0

   Enterprise Manager plugin Common Files 10.2.0.1.0

   Oracle Help for the  Web 1.1.10.0.0

   HAS Common Files 10.2.0.1.0

   Oracle Clusterware RDBMS Files 10.2.0.1.0

   Oracle Wallet Manager 10.2.0.1.0

   Enterprise Manager Minimal Integration 10.2.0.1.0

   Oracle Database User Interface 2.2.13.0.0

   Precompiler Common Files 10.2.0.1.0

   Secure Socket Layer 10.2.0.1.0

   Oracle ODBC Driver 10.2.0.1.0

   Database SQL Scripts 10.2.0.1.0

   OLAP SQL Scripts 10.2.0.1.0

   PL/SQL Embedded Gateway 10.2.0.1.0

   Required Support Files 10.2.0.1.0

   Character Set Migration Utility 10.2.0.1.0

   LDAP Required Support Files 10.2.0.1.0

   Oracle JDBC Thin Driver for JDK 1.4 10.2.0.1.0

   Oracle JDBC Thin Driver for JDK 1.2 10.2.0.1.0

   Oracle interMedia Client Option 10.2.0.1.0

   Oracle Required Support Files 32 bit 10.2.0.0.0

   Oracle Code Editor 1.2.1.0.0I

   Oracle Globalization Support 10.2.0.1.0

   JDBC Common Files 10.2.0.1.0

   Oracle Locale Builder 10.2.0.1.0

   Oracle Containers for Java 10.2.0.1.0

   Database Workspace Manager 10.2.0.1.0

   Oracle Core Required Support Files 10.2.0.1.0

   Platform Required Support Files 10.2.0.1.0

   Oracle interMedia Locator RDBMS Files 10.2.0.1.0

   Oracle JDBC/OCI Instant Client 10.2.0.1.0

   Oracle interMedia Annotator 10.2.0.1.0

   SQLJ Runtime 10.2.0.1.0

   Oracle interMedia Java Advanced Imaging 10.2.0.1.0

   Oracle Database 10g interMedia Files 10.2.0.1.0

   Oracle Data Mining RDBMS Files 10.2.0.1.0

   Enterprise Manager Baseline 10.2.0.1.0

   Oracle Help For Java 4.2.6.1.0

   Oracle UIX 2.1.22.0.0

   XML Parser for Java 10.2.0.1.0

   Precompiler Required Support Files 10.2.0.1.0

   XML Parser for Oracle JVM 10.2.0.1.0

   Oracle Database 10G 32 bit 10.2.0.1.0

   Oracle Message Gateway Common Files 10.2.0.1.0

   Oracle Starter Database 10.2.0.1.0

   Sample Schema Data 10.2.0.1.0

   Parser Generator Required Support Files 10.2.0.1.0

   Agent Required Support Files 10.2.0.1.0

   Oracle RAC Required Support Files-HAS 10.2.0.1.0

   RDBMS Required Support Files 10.2.0.1.0

   RDBMS Required Support Files for Instant Client 10.2.0.1.0

   XDK Required Support Files 10.2.0.1.0

   Oracle OLAP API 10.2.0.1.0

   Oracle OLAP RDBMS Files 10.2.0.1.0

   DBJAVA Required Support Files 10.2.0.1.0

   SQL*Plus Required Support Files 10.2.0.1.0

   Oracle JFC Extended Windowing Toolkit 4.2.33.0.0

   Oracle Ice Browser 5.2.3.6.0

   regexp 2.1.9.0.0

   Oracle Extended Windowing Toolkit 3.4.38.0.0

   Enterprise Manager Common Files 10.2.0.1.0

   Enterprise Manager Agent DB 10.2.0.1.0

   Oracle Net Required Support Files 10.2.0.1.0

   Enterprise Manager Repository DB 10.2.0.1.0

   Oracle Display Fonts 9.0.2.0.0

   SSL Required Support Files for InstantClient 10.2.0.1.0

   Bali Share 1.1.18.0.0

   Perl Interpreter 5.8.3.0.2

   Oracle Universal Installer 10.2.0.1.0

   Oracle One-Off Patch Installer 10.2.0.1.0

   Installer SDK Component 10.2.0.1.0

   Java Runtime Environment 1.4.2.0.8

   Java 2 SDK 1.4.2.0.8

   Sun JDK extensions 10.1.2.0.0

—————————————————————————–

 

 

Installation in progress (Tue Jul 09 21:47:49 CST 2013)

………………………………………………………   7% Done.

………………………………………………………  14% Done.

………………………………………………………  21% Done.

………………………………………………………  28% Done.

………………………………………………………  35% Done.

………………………………………………………  42% Done.

………………………….                                  45% Done.

Install successful

 

Linking in progress (Tue Jul 09 21:49:20 CST 2013)

..                                                               45% Done.

Link successful

 

Setup in progress (Tue Jul 09 21:50:32 CST 2013)

………………………………                             49% Done.

Setup successful

 

Remote operations in progress (Tue Jul 09 21:50:34 CST 2013)

………………………………………………………  56% Done.

………………………………………………………  63% Done.

………………………………………………………  70% Done.

………………………………………………………  77% Done.

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

Remote operations complete

 

End of install phases.(Tue Jul 09 21:54:50 CST 2013)

Starting to execute configuration assistants

Configuration assistant "Oracle Net Configuration Assistant" failed

SEVERE:OUI-10104:Some of the configuration assistants failed. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured. Select the failed assistants and click the ‘Retry’ button to retry them.

————————————–

The "/oracle/product/10.2.0/db/cfgtoollogs/configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.

The "/oracle/product/10.2.0/db/cfgtoollogs/configToolAllCommands" script contains all commands to be executed by the configuration assistants. This file may be used to run the configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.

 

————————————–

WARNING:The following configuration scripts

/oracle/product/10.2.0/db/root.sh

need to be executed as root in the nodes: rac1,rac2, for configuring the system(s). If you skip the execution of the configuration tools, the configuration will not be complete and the product wont function properly. In order to get the product to function properly, you will be required to execute the scripts and the configuration tools after exiting the OUI.

The installation of Oracle Database 10g was successful, but some optional configuration assistants failed, were cancelled or skipped.

Please check ‘/oracle/oraInventory/logs/silentInstall2013-07-09_09-47-35PM.log’ for more details.

 

 

查看日志

[root@rac1 oui]# pwd

/oracle/product/10.2.0/db/cfgtoollogs/oui

 

INFO: Starting to execute configuration assistants

INFO: Command = /oracle/product/10.2.0/db/jdk/jre//bin/java   -Duser.dir=/oracle/product/10.2.0/db/network/jlib -classpath /oracle/product/10.2.0/db/jdk/jre//lib/i18n.jar:/oracle/product/10.2.0/db/jdk/jre//lib/rt.jar:/oracle/product/10.2.0/db/jlib/ewt3.jar:/oracle/product/10.2.0/db/jlib/ewtcompat-3_3_15.jar:/oracle/product/10.2.0/db/jlib/netcfg.jar:/oracle/product/10.2.0/db/network/jlib/netcam.jar:/oracle/product/10.2.0/db/network/jlib/netca.jar:/oracle/product/10.2.0/db/jlib/help4.jar:/oracle/product/10.2.0/db/jlib/jewt4.jar:/oracle/product/10.2.0/db/jlib/oracle_ice.jar:/oracle/product/10.2.0/db/jlib/share.jar:/oracle/product/10.2.0/db/jlib/swingall-1_1_1.jar:/oracle/product/10.2.0/db/jlib/srvmhas.jar:/oracle/product/10.2.0/db/jlib/srvm.jar:/oracle/product/10.2.0/db/network/tools:/oracle/product/10.2.0/db/jlib/ldapjclnt9.jar:/oracle/product/10.2.0/db/jlib/ldapjclnt10.jar:/oracle/product/10.2.0/db/oui/jlib/OraInstaller.jar:/oracle/product/10.2.0/db/lib/xmlparserv2.jar oracle.net.ca.NetCA /orahome /oracle/product/10.2.0/db /orahnam OraDbHome1 /instype typical /inscomp client,oraclenet,javavm,server,ano /insprtcl tcp /cfg local /authadp NO_VALUE /nodeinfo rac1,rac2 /responseFile /oracle/product/10.2.0/db/network/install/netca_typ.rsp  /silent

 

Command = /oracle/product/10.2.0/db/jdk/jre//bin/java has failed

 Execution Error : Exception in thread "main" java.lang.UnsatisfiedLinkError: /oracle/product/10.2.0/db/jdk/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory

        at java.lang.ClassLoader$NativeLibrary.load(Native Method)

        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)

        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)

        at java.lang.Runtime.loadLibrary0(Runtime.java:788)

        at java.lang.System.loadLibrary(System.java:834)

        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)

        at java.security.AccessController.doPrivileged(Native Method)

        at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)

        at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)

        at java.awt.Component.<clinit>(Component.java:506)

 

 

Configuration assistant "Oracle Net Configuration Assistant" failed

SEVERE: OUI-10104:Some of the configuration assistants failed. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured. Select the failed assistants and click the ‘Retry’ button to retry them.

INFO: User Selected: Yes/OK

 

INFO: ————————————–

INFO: The "/oracle/product/10.2.0/db/cfgtoollogs/configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.

INFO: The "/oracle/product/10.2.0/db/cfgtoollogs/configToolAllCommands" script contains all commands to be executed by the configuration assistants. This file may be used to run the configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.

INFO:

INFO: ————————————–

WARNING: The following configuration scripts

/oracle/product/10.2.0/db/root.sh

need to be executed as root in the nodes: rac1,rac2, for configuring the system(s). If you skip the execution of the configuration tools, the configuration will not be complete and the product wont function properly. In order to get the product to function properly, you will be required to execute the scripts and the configuration tools after exiting the OUI.

INFO: User Selected: Yes/OK

 

 

发现可能是由于libXp包的原因

[root@rac2 ~]# yum install libXp

Loaded plugins: katello, product-id, security, subscription-manager

Updating certificate-based repositories.

Unable to read consumer identity

RHEL5.6                                                                                                      | 1.5 kB     00:00    

 

 

14,手动创建监听文件

 

[oracle@rac1 response]$ $ORACLE_HOME/bin/netca /silent /nodeinfo rac1,rac2 /responsefile /tmp/netca.rsp

 

Parsing command line arguments:

    Parameter "silent" = true

    Parameter "nodeinfo" = rac1,rac2

    Parameter "responsefile" = /tmp/netca.rsp

Done parsing command line arguments.

Oracle Net Services Configuration:

Profile configuration complete.

Profile configuration complete.

Listener started at port:1521

rac1…

rac2…

Listener configuration complete.

Default local naming configuration complete.

Default local naming configuration complete.

Oracle Net Services configuration successful. The exit code is 0

 

15,手动创建asm磁盘组

[oracle@rac1 response]$ /oracle/product/10.2.0/db/bin/dbca -silent  -configureASM -templateName NO_VALUE -gdbName NO -sid NO      -emConfiguration NONE    -diskList /dev/oracleasm/disks/VOL1  -diskGroupName DATA -datafileJarLocation /oracle/product/10.2.0/db/assistants/dbca/templates  -responseFile NO_VALUE  -nodeinfo rac1,rac2    -obfuscatedPasswords true   -oratabLocation /oracle/product/10.2.0/db/install/oratab   -asmSysPassword 05b28acbd2c4a9b2efcdf4a4f1e21604d9  -redundancy external

Look at the log file "/oracle/product/10.2.0/db/cfgtoollogs/dbca/silent.log" for further details.

 

 

这里看到会报下面的错误

[oracle@rac1 response]$ cat /oracle/product/10.2.0/db/cfgtoollogs/dbca/silent.log

ORA-15018: diskgroup cannot be created

ORA-15031: disk specification ‘/dev/oracleasm/disks/VOL1’ matches no disks

ORA-15014: location ‘/dev/oracleasm/disks/VOL1’ is not in the discovery set

 

SQL> show parameter disk

 

NAME                                 TYPE        VALUE

———————————— ———– ——————————

asm_diskgroups                       string

asm_diskstring                       string

disk_asynch_io                       boolean     TRUE

SQL> alter system set asm_diskstring=’/dev/oracleasm/disks/VOL*’;

 

System altered.

 

SQL> create diskgroup datavg external redundancy disk ‘/dev/oracleasm/disks/VOL1’;

 

Diskgroup created.

 

另一个节点

[oracle@rac2 ~]$ export ORACLE_SID=+ASM2

[oracle@rac2 ~]$ sqlplus / as sysdba

 

SQL*Plus: Release 10.2.0.1.0 – Production on Tue Jul 9 22:17:18 2013

 

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

 

 

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 – 64bit Production

With the Partitioning, Real Application Clusters, OLAP and Data Mining options

 

SQL> alter system set asm_diskstring=’/dev/oracleasm/disks/VOL*’;

 

System altered.

 

SQL> alter diskgroup datavg mount;

 

Diskgroup altered.

 

[oracle@rac1 response]$ crs_stat -t

Name           Type           Target    State     Host       

————————————————————

ora….SM1.asm application    ONLINE    ONLINE    rac1       

ora….C1.lsnr application    ONLINE    ONLINE    rac1       

ora.rac1.gsd   application    ONLINE    ONLINE    rac1       

ora.rac1.ons   application    ONLINE    ONLINE    rac1       

ora.rac1.vip   application    ONLINE    ONLINE    rac1       

ora….SM2.asm application    ONLINE    ONLINE    rac2       

ora….C2.lsnr application    ONLINE    ONLINE    rac2       

ora.rac2.gsd   application    ONLINE    ONLINE    rac2       

ora.rac2.ons   application    ONLINE    ONLINE    rac2       

ora.rac2.vip   application    ONLINE    ONLINE    rac2

正常

 

16,创建数据库

[oracle@rac1 response]$  $ORACLE_HOME/bin/dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbName htz -sid htz \

> -sysPassword oracle -systemPassword oracle -sysmanPassword oracle -dbsnmpPassword oracle -emConfiguration NONE -storageType ASM  \

> -diskGroupName DATAVG -datafileJarLocation $ORACLE_HOME/assistants/dbca/templates -nodeinfo rac1,rac2  \

> -characterset zhs16gbk -memoryPercentage 10 

Copying database files

1% complete

3% complete

9% complete

15% complete

21% complete

27% complete

30% complete

Creating and starting Oracle instance

32% complete

36% complete

40% complete

44% complete

45% complete

48% complete

50% complete

Creating cluster database views

52% complete

70% complete

Completing Database Creation

73% complete

76% complete

79% complete

88% complete

97% complete

100% complete

Look at the log file "/oracle/product/10.2.0/db/cfgtoollogs/dbca/htz/htz.log" for further details.

[oracle@rac1 response]$ crs_stat -t

Name           Type           Target    State     Host       

————————————————————

ora.htz.db     application    ONLINE    ONLINE    rac1       

ora….z1.inst application    ONLINE    ONLINE    rac1       

ora….z2.inst application    ONLINE    ONLINE    rac2       

ora….SM1.asm application    ONLINE    ONLINE    rac1       

ora….C1.lsnr application    ONLINE    ONLINE    rac1       

ora.rac1.gsd   application    ONLINE    ONLINE    rac1       

ora.rac1.ons   application    ONLINE    ONLINE    rac1       

ora.rac1.vip   application    ONLINE    ONLINE    rac1       

ora….SM2.asm application    ONLINE    ONLINE    rac2       

ora….C2.lsnr application    ONLINE    ONLINE    rac2       

ora.rac2.gsd   application    ONLINE    ONLINE    rac2       

ora.rac2.ons   application    ONLINE    ONLINE    rac2       

ora.rac2.vip   application    ONLINE    ONLINE    rac2

已经OK

本文固定链接: http://www.htz.pw/2014/07/17/10g-rac%e9%9d%99%e9%bb%98%e5%ae%89%e8%a3%85.html | 认真就输

该日志由 huangtingzhong 于2014年07月17日发表在 INSTALL, RAC 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: 10G RAC静默安装 | 认真就输
关键字: ,