Redhat 6.2(x86_64)+oracle10g(RAC)+asm安装配置

更新时间:2024-07-03 10:54:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

Redhat6.2下oracle10g+rac+ASM安装说明

安装环境:

操作系统:redhat6.2(x86_64) 数据库:oracle10g(RAC)+ASM

一、安装前的准备工作:

1) 网络接口配置说明

规划和配置好系统中各网卡的ip地址,并写入到各rac节点中的/etc/hosts文件中 # public

10.36.106.33 ycweb1 10.36.106.34 ycweb2 # vip

10.36.106.31 ycweb1-vip 10.36.106.32 ycweb2-vip # private

10.10.2.1 ycweb1-priv 10.10.2.2 ycweb2-priv 2)关闭SELINUX配置(各节点都需要) [root@ycweb1 ~]# cat /etc/selinux/config

# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values:

# enforcing - SELinux security policy is enforced.

# permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=disabled

# SELINUXTYPE= type of policy in use. Possible values are:

# targeted - Only targeted network daemons are protected. # strict - Full SELinux prot SELINUXTYPE=targeted

3)关闭防火墙(各节点都需要)

[root@ycweb1 ~]# chkconfig --list iptables

iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root@ycweb1 ~]# chkconfig iptables off [root@ycweb1 ~]# chkconfig --list iptables

iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off 也可以通过系统----管理----防火墙来禁用防火墙。

4)检查操作系统中文件系统大小 (各节点都需要) #df –k

/dev/sda1 75594872 2558884 69195988 4% /

tmpfs 16414856 8200592 8214264 50% /dev/shm /dev/sda5 101363088 18816672 77397440 20% /df8003 /dev/sdb1 287832456 27705468 245505960 11% /rdbm /dev/sda2 80634688 16549528 59989160 22% /usr

5)时间同步协议NTP配置

该步很重要,建议配置好对时,两台节点时间同步。时间不同步但时间差不能超过10秒。安装的数据库软件的节点比其他节点要稍快点。 Linux配置NTP对时如下操作:

该案例以WEB2为NTP时间服务器,其他节点与其对时。 1、 两节点启动ntp服务

2、 系统---管理----防火墙---其他端口中,增加端口号123,协议是UDP 3、修改ycweb2的/etc/ntp.conf文件,内容如下: [oracle@ycweb2 ~]$ cat /etc/ntp.conf

# For more information about this file, see the man pages # ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).

#driftfile /var/lib/ntp/drift

# Permit time synchronization with our time source, but do not # permit the source to query or modify the service on this system. #restrict default kod nomodify notrap nopeer noquery #restrict -6 default kod nomodify notrap nopeer noquery

# Permit all access over the loopback interface. This could # be tightened as well, but to do so would effect some of # the administrative functions. #restrict 127.0.0.1 #restrict -6 ::1

# Hosts on local network are less restricted.

#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap # Use public servers from the pool.ntp.org project.

# Please consider joining the pool (http://www.pool.ntp.org/join.html). #server 0.rhel.pool.ntp.org #server 1.rhel.pool.ntp.org #server 2.rhel.pool.ntp.org

#broadcast 192.168.1.255 autokey # broadcast server #broadcastclient # broadcast client

#broadcast 224.0.1.1 autokey # multicast server #multicastclient 224.0.1.1 # multicast client

#manycastserver 239.255.254.254 # manycast server #manycastclient 239.255.254.254 autokey # manycast client

# Undisciplined Local Clock. This is a fake driver intended for backup # and when no outside source of synchronized time is available.

#server 127.127.1.0 # local clock #fudge 127.127.1.0 stratum 10 # Enable public key cryptography. #crypto

includefile /etc/ntp/crypto/pw

# Key file containing the keys and key identifiers used when operating # with symmetric key cryptography. keys /etc/ntp/keys

# Specify the key identifiers which are trusted. #trustedkey 4 8 42

# Specify the key identifier to use with the ntpdc utility. #requestkey 8

# Specify the key identifier to use with the ntpq utility. #controlkey 8

# Enable writing of statistics records.

#statistics clockstats cryptostats loopstats peerstats restrict default kod nomodify notrap nopeer noquery restrict 10.36.106.0 mask 255.255.255.0 nomodify notrap restrict 127.0.0.1

server 10.36.106.34 version 3 server 127.127.1.0

driftfile /var/lib/ntp/drift broadcastdelay 0.008

4)修改ycweb1的/etc/ntp.conf文件,内容如下: [oracle@ycweb2 ~]$ cat /etc/ntp.conf

# For more information about this file, see the man pages # ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).

#driftfile /var/lib/ntp/drift

# Permit time synchronization with our time source, but do not # permit the source to query or modify the service on this system. restrict default kod nomodify notrap nopeer noquery #restrict -6 default kod nomodify notrap nopeer noquery

# Permit all access over the loopback interface. This could # be tightened as well, but to do so would effect some of # the administrative functions. #restrict 127.0.0.1 #restrict -6 ::1

# Hosts on local network are less restricted.

#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

# Use public servers from the pool.ntp.org project.

# Please consider joining the pool (http://www.pool.ntp.org/join.html). #server 0.rhel.pool.ntp.org #server 1.rhel.pool.ntp.org #server 2.rhel.pool.ntp.org

#broadcast 192.168.1.255 autokey # broadcast server #broadcastclient # broadcast client

#broadcast 224.0.1.1 autokey # multicast server #multicastclient 224.0.1.1 # multicast client

#manycastserver 239.255.254.254 # manycast server #manycastclient 239.255.254.254 autokey # manycast client

# Undisciplined Local Clock. This is a fake driver intended for backup # and when no outside source of synchronized time is available. #server 127.127.1.0 # local clock #fudge 127.127.1.0 stratum 10

# Enable public key cryptography. #crypto

includefile /etc/ntp/crypto/pw

# Key file containing the keys and key identifiers used when operating # with symmetric key cryptography. keys /etc/ntp/keys

# Specify the key identifiers which are trusted. #trustedkey 4 8 42

# Specify the key identifier to use with the ntpdc utility. #requestkey 8

# Specify the key identifier to use with the ntpq utility. #controlkey 8

# Enable writing of statistics records.

#statistics clockstats cryptostats loopstats peerstats restrict 10.36.106.0 mask 255.255.255.0 nomodify notrap restrict 127.0.0.1

server 10.36.106.34 version 3 server 127.127.1.0

driftfile /var/lib/ntp/drift broadcastdelay 0.008

[oracle@ycweb1 ~]$

[oracle@ycweb1 ~]$ cat /etc/ntp.conf

# For more information about this file, see the man pages # ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5). #driftfile /var/lib/ntp/drift

# Permit time synchronization with our time source, but do not # permit the source to query or modify the service on this system. #restrict default kod nomodify notrap nopeer noquery #restrict -6 default kod nomodify notrap nopeer noquery

# Permit all access over the loopback interface. This could # be tightened as well, but to do so would effect some of # the administrative functions. restrict 127.0.0.1 #restrict -6 ::1

# Hosts on local network are less restricted.

#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap # Use public servers from the pool.ntp.org project.

# Please consider joining the pool (http://www.pool.ntp.org/join.html). #server 0.rhel.pool.ntp.org #server 1.rhel.pool.ntp.org #server 2.rhel.pool.ntp.org

#broadcast 192.168.1.255 autokey # broadcast server #broadcastclient # broadcast client

#broadcast 224.0.1.1 autokey # multicast server #multicastclient 224.0.1.1 # multicast client

#manycastserver 239.255.254.254 # manycast server #manycastclient 239.255.254.254 autokey # manycast client

# Undisciplined Local Clock. This is a fake driver intended for backup # and when no outside source of synchronized time is available. #server 127.127.1.0 # local clock #fudge 127.127.1.0 stratum 10 # Enable public key cryptography. #crypto

includefile /etc/ntp/crypto/pw

# Key file containing the keys and key identifiers used when operating # with symmetric key cryptography. keys /etc/ntp/keys

# Specify the key identifiers which are trusted. #trustedkey 4 8 42

# Specify the key identifier to use with the ntpdc utility. #requestkey 8

# Specify the key identifier to use with the ntpq utility. #controlkey 8

# Enable writing of statistics records.

#statistics clockstats cryptostats loopstats peerstats

restrict 127.0.0.1

server 10.36.106.34 prefer driftfile /var/lib/ntp/drift broadcastdelay 0.008

6)内核参数调整 节点1 ycweb1:

cat >> /etc/sysctl.conf << EOF kernel.shmall = 6291456 7864320

kernel.shmmax = 25769803776 32212254720 kernel.shmmni = 4096 4096

kernel.sem = 250 32000 100 128 250 32000 100 128 fs.file-max = 755360 65536

net.ipv4.ip_local_port_range = 9000 65500 1024 65000 net.core.rmem_default = 262144 262144 net.core.wmem_default = 262144 262144 net.core.rmem_max = 1048536 262144 net.core.wmem_max = 1048536 262144 #vm.pagecache = 1 10 30 6.2 中不存在 vm.min_free_kbytes=819200 819200 vm.vfs_cache_pressure=200 200 vm.swappiness =40 40 vm.nr_hugepages=8500 8500 kernel.core_uses_pid = 0 0 EOF

节点2 ycweb2 同上

REDHAT6.2下:

kernel.shmall = 7864320 kernel.shmmax = 32212254720 kernel.shmmni = 4096

kernel.sem = 250 32000 100 128 fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 262144 net.core.rmem_max = 262144 net.core.wmem_default = 262144 net.core.wmem_max = 262144

vm.min_free_kbytes=819200 vm.vfs_cache_pressure=200 vm.swappiness =40 vm.nr_hugepages=8500 kernel.core_uses_pid = 0

7)安全限制调整 节点1 ycweb1

shell limits 设置:

cat >> /etc/security/limits.conf << EOF 内容如下:

orasrv soft nproc 4096 orasrv hard nproc 16384 orasrv soft nofile 65536 orasrv hard nofile 65536 orasrv soft memlock 30857216 orasrv hard memlock 30857216 * soft nproc 4096 * hard nproc 16384 * soft nofile 65536 * hard nofile 65536 EOF

节点2 ycweb2

shell limits 设置: 同上

8)会话限制调整 节点1 ycweb1

[root@ycweb1 ~]# vi /etc/pam.d/login # Add by RAC install

session required /lib/security/pam_limits.so

节点2 ycweb2

[root@ycweb2 ~]# vi /etc/pam.d/login # Add by RAC install

session required /lib/security/pam_limits.so

9)系统补丁包

要求安装Redhat6.2系统的补丁集。确保下面的包被安装,

binutils compat-db compat-libstdc++-33 glibc glibc-devel glibc-headers gcc gcc-c++ libstdc++ cpp make libaio ksh elfutils-libelf sysstat libaio libaio-devel setarch gcc make binutils openmotif glibc setarch libaio compat-db libXp

openmotif compat-libstdc++-33-3.2.3 compat-gcc-34-c++- 补丁包的安装工作非常重要,如果补丁包没有安装完整,在crs的安装过程中会出现各种问题,因此前期包的安装工作很重要。

二、安装前的准备工作

1)相关组、用户创建 节点1 ycweb1

[root@ycweb1 ~]# /usr/sbin/groupadd -g 502 dba

[root@ycweb1 ~]#/usr/sbin/useradd -g dba -d /rdbm/orasrv -u 501 -p ora123 orasrv 注意使用passwd命令修改orasrv用户的密码,且两节点的orasrv用户的ID号保持一致。 节点2 ycweb2同上。 2)建立信任关系:

两节点要实现orasrv用户,无口令ssh,rlogin。 3)环境变量设置

节点1 ycweb1

[grid@ycweb1 ~]$ vi .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 DISPLAY=:0.0 export TEMP=/tmp export TMPDIR=/tmp

export ORACLE_BASE=/rdbm/orasrv

export ORA_CRS_HOME=$ORACLE_BASE/product/10g/crs export CRS_HOME=$ORA_CRS_HOME

export ORACLE_HOME=$ORACLE_BASE/product/10g/db export ORACLE_OWNER=orasrv export ORACLE_SID=orcl1 export ORACLE_TERM=vt100

export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/bin:.:$PATH export

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:$ORACLE_HOME/rdbms/lib:$ORA_CRS_HOME/lib:/usr/local/lib

#export NLS_LANG=american_america.zhs16gbk export NLS_LANG=American_America.ZHS16GBK

export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data export

PATH=$PATH:.:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/usr/bin:/sbin:$ORACLE_HOME/OPatch

set -o emacs

export AIXTHREAD_SCOPE=S umask 022

if [ -t 0 ]; then stty intr ^C fi

节点2 ycweb2

[grid@ycweb2 ~]$ vi .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 DISPLAY=:0.0 export TEMP=/tmp export TMPDIR=/tmp

export ORACLE_BASE=/rdbm/orasrv

export ORA_CRS_HOME=$ORACLE_BASE/product/10g/crs export CRS_HOME=$ORA_CRS_HOME

export ORACLE_HOME=$ORACLE_BASE/product/10g/db export ORACLE_OWNER=orasrv export ORACLE_SID=orcl1 export ORACLE_TERM=vt100

export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/bin:.:$PATH export

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:$ORACLE_HOME/rdbms/lib:$ORA_CRS_HOME/lib:/usr/local/lib

#export NLS_LANG=american_america.zhs16gbk export NLS_LANG=American_America.ZHS16GBK

export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data

export

PATH=$PATH:.:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/usr/bin:/sbin:$ORACLE_HOME/OPatch

set -o emacs

export AIXTHREAD_SCOPE=S umask 022

if [ -t 0 ]; then stty intr ^C fi

4)确认网络配置正确

[root@ycweb1 ~]# ping ycweb1

[root@ycweb1 ~]# ping ycweb1-priv [root@ycweb1 ~]# ping ycweb2

[root@ycweb1 ~]# ping ycweb2-priv [root@ycweb2 ~]# ping ycweb2

[root@ycweb2 ~]# ping ycweb2-priv [root@ycweb2 ~]# ping ycweb1 [root@ycweb2 ~]# ping ycweb1-priv

5)Hangcheck-timer设置

修改文件/etc/rc.d/rc.local

增加以下内容:modprobe hangcheck-timer hangcheck_tick=30 hangcheck_margin=180 执行命令使其生效: modprobe -v hangcheck-timer

三、配置裸设备

1)对磁盘进行分区

由于linux6.2下,裸设备必须基于磁盘的逻辑分区才能进行创建,因此需要提前对磁盘进行分区。阵列安装完成后,不同的存储厂家根据存储软件的不同,在/dev下会生成不同的设备文件,具体到本现场,使用的是EMC的存储,因此阵列安装完成后,在/dev目录下生成了/dev/emcpowerb /dev/emcpowerc ……等文件,我们需要做的就是根据现场需求,对这些磁盘设备进行分区操作,比如:

[root@ycweb1 ~]#fdisk /dev/emcpowerf Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0x9755c97b.

Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to

sectors (command 'u').

Command (m for help): n Command action e extended

p primary partition (1-4) p

Partition number (1-4): 1

First cylinder (1-1011, default 1): Using default value 1

Last cylinder, +cylinders or +size{K,M,G} (1-1011, default 1011): 100M

Command (m for help): n Command action e extended

p primary partition (1-4) e

Partition number (1-4): 2

First cylinder (101-1011, default 101): Using default value 101

Last cylinder, +cylinders or +size{K,M,G} (101-1011, default 1011): Using default value 1011

Command (m for help): n Command action

l logical (5 or over)

p primary partition (1-4) l

First cylinder (101-1011, default 101): Using default value 101

Last cylinder, +cylinders or +size{K,M,G} (101-1011, default 1011): 200M

Command (m for help): p

Disk /dev/emcpowerf: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x9755c97b

Device Boot Start End Blocks Id System /dev/emcpowerf1 1 100 103669+ 83 Linux /dev/emcpowerf2 101 1011 944707 5 Extended

/dev/emcpowerf5 101 200 103669+ 83 Linux

Command (m for help): save

对其他的设备也进行类似的分区后,分完区后可使用fdisk –l命令进行查看。 2) 配置自动生成裸设备 需要编辑文件,生成裸设备,并写成脚本,放在/etc目录下,具体文件名为raw.rac,内容为: #!/bin/sh

# Oracle Cluster Registry (OCR) devices chown root:dba /dev/emcpowerf[5,6] chmod 640 /dev/emcpowerf[5,6] raw /dev/raw/raw1 /dev/emcpowerf5 raw /dev/raw/raw2 /dev/emcpowerf6 sleep 2

chown root:dba /dev/raw/raw1 chown root:dba /dev/raw/raw2 chmod 640 /dev/raw/raw1 chmod 640 /dev/raw/raw2 #####

# Oracle Cluster Voting disks #####

chown orasrv:dba /dev/emcpowere[5,6,7] chmod 644 /dev/emcpowere[5,6,7] raw /dev/raw/raw3 /dev/emcpowere5 raw /dev/raw/raw4 /dev/emcpowere6 raw /dev/raw/raw5 /dev/emcpowere7 sleep 2

chown orasrv:dba /dev/raw/raw[3,4,5] chmod 644 /dev/raw/raw[3,4,5] #Oracle Asm

chown orasrv:dba /dev/emcpowerg5 chown orasrv:dba /dev/emcpowerb5 chown orasrv:dba /dev/emcpowerc5 chmod 664 /dev/emcpowerg5 chmod 664 /dev/emcpowerb5 chmod 664 /dev/emcpowerc5

raw /dev/raw/raw6 /dev/emcpowerg5 raw /dev/raw/raw7 /dev/emcpowerb5 raw /dev/raw/raw8 /dev/emcpowerc5

sleep 2

chown orasrv:dba /dev/raw/raw[6,7,8] chmod 664 /dev/raw/raw[6,7,8]

[root@pehis1 etc]# fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sda: 499.0 GB, 498999492608 bytes 255 heads, 63 sectors/track, 60666 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000

Device Boot Start End Blocks Id System /dev/sda1 1 60667 487304191+ ee GPT Partition 1 does not start on physical sector boundary.

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdb: 499.0 GB, 498999492608 bytes 255 heads, 63 sectors/track, 60666 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000

Device Boot Start End Blocks Id System /dev/sdb1 1 60667 487304191+ ee GPT Partition 1 does not start on physical sector boundary.

Disk /dev/sdc: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000

Disk /dev/sdc doesn't contain a valid partition table

Disk /dev/sdd: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x7010185f

Device Boot Start End Blocks Id System /dev/sdd1 1 100 103669+ 83 Linux /dev/sdd2 101 1011 944707 5 Extended /dev/sdd5 101 200 103669+ 83 Linux /dev/sdd6 201 398 205295+ 83 Linux

Disk /dev/sde: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x2b557bae

Device Boot Start End Blocks Id System /dev/sde1 1 100 103669+ 83 Linux /dev/sde2 101 1011 944707 5 Extended /dev/sde5 101 200 103669+ 83 Linux /dev/sde6 201 398 205295+ 83 Linux /dev/sde7 399 596 205295+ 83 Linux

Disk /dev/sdf: 1932.7 GB, 1932735283200 bytes 255 heads, 63 sectors/track, 234975 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x1f20228d

Device Boot Start End Blocks Id System /dev/sdf1 1 100 803218+ 83 Linux /dev/sdf2 101 234975 1886633437+ 5 Extended /dev/sdf5 101 234975 1886633406 83 Linux

Disk /dev/sdh: 574.2 GB, 574220140544 bytes 255 heads, 63 sectors/track, 69811 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xbb3a5b38

Device Boot Start End Blocks Id System /dev/sdh1 1 100 803218+ 83 Linux /dev/sdh2 101 69811 559953607+ 5 Extended /dev/sdh5 101 69811 559953576 83 Linux

Disk /dev/sdg: 1395.9 GB, 1395864371200 bytes 255 heads, 63 sectors/track, 169704 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x818b0333

Device Boot Start End Blocks Id System /dev/sdg1 1 100 803218+ 83 Linux /dev/sdg2 101 169704 1362344130 5 Extended /dev/sdg5 101 169704 1362344098+ 83 Linux

Disk /dev/sdj: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x7010185f

Device Boot Start End Blocks Id System /dev/sdj1 1 100 103669+ 83 Linux /dev/sdj2 101 1011 944707 5 Extended /dev/sdj5 101 200 103669+ 83 Linux /dev/sdj6 201 398 205295+ 83 Linux

Disk /dev/sdi: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000

Disk /dev/sdi doesn't contain a valid partition table

Disk /dev/sdk: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x2b557bae

Device Boot Start End Blocks Id System /dev/sdk1 1 100 103669+ 83 Linux /dev/sdk2 101 1011 944707 5 Extended /dev/sdk5 101 200 103669+ 83 Linux /dev/sdk6 201 398 205295+ 83 Linux /dev/sdk7 399 596 205295+ 83 Linux

Disk /dev/sdm: 1395.9 GB, 1395864371200 bytes 255 heads, 63 sectors/track, 169704 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x818b0333

Device Boot Start End Blocks Id System /dev/sdm1 1 100 803218+ 83 Linux /dev/sdm2 101 169704 1362344130 5 Extended /dev/sdm5 101 169704 1362344098+ 83 Linux

Disk /dev/sdl: 1932.7 GB, 1932735283200 bytes 255 heads, 63 sectors/track, 234975 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x1f20228d

Device Boot Start End Blocks Id System /dev/sdl1 1 100 803218+ 83 Linux /dev/sdl2 101 234975 1886633437+ 5 Extended /dev/sdl5 101 234975 1886633406 83 Linux

Disk /dev/sdp: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x7010185f

Device Boot Start End Blocks Id System /dev/sdp1 1 100 103669+ 83 Linux /dev/sdp2 101 1011 944707 5 Extended /dev/sdp5 101 200 103669+ 83 Linux

/dev/sdp6 201 398 205295+ 83 Linux

Disk /dev/sdr: 1932.7 GB, 1932735283200 bytes 255 heads, 63 sectors/track, 234975 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x1f20228d

Device Boot Start End Blocks Id System /dev/sdr1 1 100 803218+ 83 Linux /dev/sdr2 101 234975 1886633437+ 5 Extended /dev/sdr5 101 234975 1886633406 83 Linux

Disk /dev/sdo: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000

Disk /dev/sdo doesn't contain a valid partition table

Disk /dev/sdt: 574.2 GB, 574220140544 bytes 255 heads, 63 sectors/track, 69811 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xbb3a5b38

Device Boot Start End Blocks Id System /dev/sdt1 1 100 803218+ 83 Linux /dev/sdt2 101 69811 559953607+ 5 Extended /dev/sdt5 101 69811 559953576 83 Linux

Disk /dev/sdq: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x2b557bae

Device Boot Start End Blocks Id System /dev/sdq1 1 100 103669+ 83 Linux

/dev/sdq2 101 1011 944707 5 Extended /dev/sdq5 101 200 103669+ 83 Linux /dev/sdq6 201 398 205295+ 83 Linux /dev/sdq7 399 596 205295+ 83 Linux

Disk /dev/sdu: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000

Disk /dev/sdu doesn't contain a valid partition table

Disk /dev/sdv: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x7010185f

Device Boot Start End Blocks Id System /dev/sdv1 1 100 103669+ 83 Linux /dev/sdv2 101 1011 944707 5 Extended /dev/sdv5 101 200 103669+ 83 Linux /dev/sdv6 201 398 205295+ 83 Linux

Disk /dev/sdx: 1932.7 GB, 1932735283200 bytes 255 heads, 63 sectors/track, 234975 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x1f20228d

Device Boot Start End Blocks Id System /dev/sdx1 1 100 803218+ 83 Linux /dev/sdx2 101 234975 1886633437+ 5 Extended /dev/sdx5 101 234975 1886633406 83 Linux

Disk /dev/sdn: 574.2 GB, 574220140544 bytes 255 heads, 63 sectors/track, 69811 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0xbb3a5b38

Device Boot Start End Blocks Id System /dev/sdn1 1 100 803218+ 83 Linux /dev/sdn2 101 69811 559953607+ 5 Extended /dev/sdn5 101 69811 559953576 83 Linux

Disk /dev/sdw: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x2b557bae

Device Boot Start End Blocks Id System /dev/sdw1 1 100 103669+ 83 Linux /dev/sdw2 101 1011 944707 5 Extended /dev/sdw5 101 200 103669+ 83 Linux /dev/sdw6 201 398 205295+ 83 Linux /dev/sdw7 399 596 205295+ 83 Linux

Disk /dev/sdz: 574.2 GB, 574220140544 bytes 255 heads, 63 sectors/track, 69811 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xbb3a5b38

Device Boot Start End Blocks Id System /dev/sdz1 1 100 803218+ 83 Linux /dev/sdz2 101 69811 559953607+ 5 Extended /dev/sdz5 101 69811 559953576 83 Linux

Disk /dev/sds: 1395.9 GB, 1395864371200 bytes 255 heads, 63 sectors/track, 169704 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x818b0333

Device Boot Start End Blocks Id System /dev/sds1 1 100 803218+ 83 Linux /dev/sds2 101 169704 1362344130 5 Extended /dev/sds5 101 169704 1362344098+ 83 Linux

Disk /dev/sdy: 1395.9 GB, 1395864371200 bytes 255 heads, 63 sectors/track, 169704 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x818b0333

Device Boot Start End Blocks Id System /dev/sdy1 1 100 803218+ 83 Linux /dev/sdy2 101 169704 1362344130 5 Extended /dev/sdy5 101 169704 1362344098+ 83 Linux

Disk /dev/emcpowerb: 1395.9 GB, 1395864371200 bytes 255 heads, 63 sectors/track, 169704 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x818b0333

Device Boot Start End Blocks Id System /dev/emcpowerb1 1 100 803218+ 83 Linux /dev/emcpowerb2 101 169704 1362344130 5 Extended /dev/emcpowerb5 101 169704 1362344098+ 83 Linux

Disk /dev/emcpowerg: 574.2 GB, 574220140544 bytes 255 heads, 63 sectors/track, 69811 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xbb3a5b38

Device Boot Start End Blocks Id System /dev/emcpowerg1 1 100 803218+ 83 Linux /dev/emcpowerg2 101 69811 559953607+ 5 Extended /dev/emcpowerg5 101 69811 559953576 83 Linux

Disk /dev/emcpowerd: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000

Disk /dev/emcpowerd doesn't contain a valid partition table

Disk /dev/emcpowerf: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x7010185f

Device Boot Start End Blocks Id System /dev/emcpowerf1 1 100 103669+ 83 Linux /dev/emcpowerf2 101 1011 944707 5 Extended /dev/emcpowerf5 101 200 103669+ 83 Linux /dev/emcpowerf6 201 398 205295+ 83 Linux

Disk /dev/emcpowere: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x2b557bae

Device Boot Start End Blocks Id System /dev/emcpowere1 1 100 103669+ 83 Linux /dev/emcpowere2 101 1011 944707 5 Extended /dev/emcpowere5 101 200 103669+ 83 Linux /dev/emcpowere6 201 398 205295+ 83 Linux /dev/emcpowere7 399 596 205295+ 83 Linux

Disk /dev/emcpowerc: 1932.7 GB, 1932735283200 bytes 255 heads, 63 sectors/track, 234975 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x1f20228d

Device Boot Start End Blocks Id System /dev/emcpowerc1 1 100 803218+ 83 Linux /dev/emcpowerc2 101 234975 1886633437+ 5 Extended /dev/emcpowerc5 101 234975 1886633406 83 Linux [root@pehis1 etc]#

1、使用fdisk –l命令查看当前硬盘设备分区信息: [root@ycweb1 ~]# fdisk -l

Disk /dev/sda: 299.4 GB, 299439751168 bytes 255 heads, 63 sectors/track, 36404 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0007de7d

Device Boot Start End Blocks Id System /dev/sda1 * 1 9562 76800000 83 Linux /dev/sda2 9562 19760 81920000 83 Linux

/dev/sda3 19760 23585 30720000 82 Linux swap / Solaris /dev/sda4 23585 36405 102980608 5 Extended /dev/sda5 23585 36405 102979584 83 Linux

Disk /dev/sdb: 299.4 GB, 299439751168 bytes 255 heads, 63 sectors/track, 36404 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000b103e

Device Boot Start End Blocks Id System /dev/sdb1 1 36405 292420608 83 Linux

Disk /dev/sdd: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000

Disk /dev/sdd doesn't contain a valid partition table

Disk /dev/sde: 572.3 GB, 572304392192 bytes 255 heads, 63 sectors/track, 69578 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xfdfa9a73

Device Boot Start End Blocks Id System /dev/sde1 1 14 112423+ 83 Linux /dev/sde2 15 69578 558772830 5 Extended

/dev/sde5 15 40 208813+ 83 Linux /dev/sde6 41 66 208813+ 83 Linux /dev/sde7 67 92 208813+ 83 Linux /dev/sde8 93 118 208813+ 83 Linux /dev/sde9 119 144 208813+ 83 Linux /dev/sde10 145 69578 557728573+ 83 Linux

Disk /dev/sdc: 1073 MB, 1073741824 bytes 34 heads, 61 sectors/track, 1011 cylinders

Units = cylinders of 2074 * 512 = 1061888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000

Disk /dev/sdc doesn't contain a valid partition table

Disk /dev/sdg: 1825.4 GB, 1825361100800 bytes 255 heads, 63 sectors/track, 221920 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x14bb8f67

Device Boot Start End Blocks Id System /dev/sdg1 1 14 112423+ 83 Linux /dev/sdg2 15 221920 1782459945 5 Extended /dev/sdg5 15 221920 1782459913+ 83 Linux

Disk /dev/sdf: 1825.4 GB, 1825361100800 bytes 255 heads, 63 sectors/track, 221920 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x32450e9b

Device Boot Start End Blocks Id System /dev/sdf1 1 14 112423+ 83 Linux /dev/sdf2 15 221920 1782459945 5 Extended /dev/sdf5 15 221920 1782459913+ 83 Linux

Disk /dev/sdi: 1825.4 GB, 1825361100800 bytes 255 heads, 63 sectors/track, 221920 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x90dac9c5

Device Boot Start End Blocks Id System /dev/sdi1 1 14 112423+ 83 Linux /dev/sdi2 15 221920 1782459945 5 Extended /dev/sdi5 15 221920 1782459913+ 83 Linux

Disk /dev/sdh: 1825.4 GB, 1825361100800 bytes 255 heads, 63 sectors/track, 221920 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xeb6441b5

Device Boot Start End Blocks Id System /dev/sdh1 1 14 112423+ 83 Linux /dev/sdh2 15 221920 1782459945 5 Extended /dev/sdh5 15 221920 1782459913+ 83 Linux

Disk /dev/sdj: 165.4 GB, 165356240896 bytes 255 heads, 63 sectors/track, 20103 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000

Disk /dev/sdj doesn't contain a valid partition table

Disk /dev/sdk: 16.2 GB, 16231956480 bytes 256 heads, 54 sectors/track, 2293 cylinders

Units = cylinders of 13824 * 512 = 7077888 bytes

Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xc3072e18

Device Boot Start End Blocks Id System

/dev/sdk1 * 1 2294 15851504 c W95 FAT32 (LBA) [root@ycweb1 ~]#

2、该现场使用/dev/sde中的5,6作为注册文件分区,7,8,9作为投票文件分区。 /dev/sde10作为参数库数据文件分区,sdf5、sdg5、sdh5、sdi5作为历史数据文件分区。

具体绑定裸设备如下配置:

在/etc/rc.local文件中增加行:/etc/raw.rac且该文件内容如下: #!/bin/sh

# Oracle Cluster Registry (OCR) devices chown root:dba /dev/sde[5,6] chmod 640 /dev/sde[5,6] raw /dev/raw/raw1 /dev/sde5 raw /dev/raw/raw2 /dev/sde6 sleep 2

chown root:dba /dev/raw/raw1 chown root:dba /dev/raw/raw2 chmod 640 /dev/raw/raw1 chmod 640 /dev/raw/raw2 #####

# Oracle Cluster Voting disks #####

chown orasrv:dba /dev/sde[7,8,9] chmod 644 /dev/sde[7,8,9] raw /dev/raw/raw3 /dev/sde7 raw /dev/raw/raw4 /dev/sde8 raw /dev/raw/raw5 /dev/sde9 sleep 2

chown orasrv:dba /dev/raw/raw[3,4,5] chmod 644 /dev/raw/raw[3,4,5] #Oracle Asm

chown orasrv:dba /dev/sde10 chown orasrv:dba /dev/sdf5 chown orasrv:dba /dev/sdg5 chown orasrv:dba /dev/sdh5 chown orasrv:dba /dev/sdi5 chmod 664 /dev/sde10 chmod 664 /dev/sdf5 chmod 664 /dev/sdg5 chmod 664 /dev/sdh5 chmod 664 /dev/sdi5

raw /dev/raw/raw6 /dev/sde10 raw /dev/raw/raw7 /dev/sdf5 raw /dev/raw/raw8 /dev/sdg5 raw /dev/raw/raw9 /dev/sdh5 raw /dev/raw/raw10 /dev/sdi5

sleep 2

chown orasrv:dba /dev/raw/raw[6,7,8,9] chown orasrv:dba /dev/raw/raw10 chmod 664 /dev/raw/raw[6,7,8,9]

chmod 664 /dev/raw/raw10

#/etc/init.d/init.crs start

四、安装CRS软件

安装前要更改操作系统版本号:/etc/redhat-release文件中的版本号为4,等待所有数据库软件安装完成后再更改回来。

1、到crs软件所在目录执行./runInstaller

根据环境变量更改下图中设置,该例name是:CRS_HOME(看前面profile文件),

点击NEXT,前期准备工作充分先决条件检查基本会通过,个别的可手工验证通过。

点击NEXT

点击ADD,后结果如下:

点击NEXT,此处将bond0对应的private改为public。如下:

点击NEXT,此处填写对应的OCR对应的两个裸设备存储位置,如下:

点击NEXT,此处填写3个投票仲裁文件位置,如下:

点击NEXT,

最后如下:此处不要点击OK,直到下面操作进行完后再点击OK。

重点注意下操作: 依据该窗口提示:

第一行脚本先后在两个节点操作(可开两个终端窗口,以ROOT用户执行)。 第二行脚本在YCWEB1节点执行时,

如下,当执行到Expecting the CRS daemons to be up within 600 seconds时,需另开一终端以root用户如下操作(不要等待失败退出再执行): [root@ycweb1 etc]# /etc/init.d/init.evmd run & [1] 21952

[root@ycweb1 etc]# /etc/init.d/init.cssd fatal & [2] 22035

[root@ycweb1 etc]# /etc/init.d/init.crsd run & [3] 22121

正常执行root.sh脚本后结果如下:

[root@ycweb1 ~]# /rdbm/orasrv/product/10g/crs/root.sh

WARNING: directory '/rdbm/orasrv/product/10g' is not owned by root WARNING: directory '/rdbm/orasrv/product' is not owned by root WARNING: directory '/rdbm/orasrv' is not owned by root WARNING: directory '/rdbm' is not owned by root

Checking to see if Oracle CRS stack is already configured Setting the permissions on OCR backup directory Setting up NS directories

Oracle Cluster Registry configuration upgraded successfully

WARNING: directory '/rdbm/orasrv/product/10g' is not owned by root WARNING: directory '/rdbm/orasrv/product' is not owned by root WARNING: directory '/rdbm/orasrv' is not owned by root WARNING: directory '/rdbm' is not owned by root Successfully accumulated necessary OCR keys.

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

node : node 1: ycweb1 ycweb1-priv ycweb1 node 2: ycweb2 ycweb2-priv ycweb2

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

CSS is inactive on these nodes. ycweb2

Local node checking complete.

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

同样在节点ycweb2上执行root.sh脚本如上操作,执行结果如下: # /rdbm/orasrv/product/10g/crs/root.sh

WARNING: directory '/rdbm/orasrv/product/10g' is not owned by root WARNING: directory '/rdbm/orasrv/product' is not owned by root WARNING: directory '/rdbm/orasrv' is not owned by root WARNING: directory '/rdbm' is not owned by root

Checking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directory Setting up NS directories

Oracle Cluster Registry configuration upgraded successfully

WARNING: directory '/rdbm/orasrv/product/10g' is not owned by root WARNING: directory '/rdbm/orasrv/product' is not owned by root WARNING: directory '/rdbm/orasrv' is not owned by root WARNING: directory '/rdbm' 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 : node 1: ycweb1 ycweb1-priv ycweb1 node 2: ycweb2 ycweb2-priv ycweb2

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. ycweb1 ycweb2

CSS is active on all nodes.

Waiting for the Oracle CRSD and EVMD to start

Oracle CRS stack installed and running under init(1M) Running vipca(silent) for configuring nodeapps

/rdbm/orasrv/product/10g/crs/jdk/jre//bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

此处的error: libpthread.so.0: cannot open shared object file 可以不理会,但是要如下操作:

1)以orasrv用户编辑vipca文件找到(两台节点都需要做):

if [ \ then

LD_ASSUME_KERNEL=2.4.19 export LD_ASSUME_KERNEL fi

unset LD_ASSUME_KERNEL //增加该行

#End workaround

2)以orasrv用户编辑srvctl文件(两台节点都需要做):

LD_ASSUME_KERNEL=2.4.19 export LD_ASSUME_KERNEL

unset LD_ASSUME_KERNEL //增加该行 # Run ops control utility

3) 在ycweb1节点上,su到root用户执行#./vipca,报错信息如下:

Error 0(Native: listNetInterfaces:[3]) Error 0(Native: listNetInterfaces:[3]) 执行下操作:

[root@ycweb1 bin]# oifcfg setif -global bond0/10.36.106.0:public

[root@ycweb1 bin]# oifcfg setif –global bond1/10.10.2.0:cluster_interconnect [root@ycweb1 bin]# oifcfg getif //查看当前节点的网口信息 bond0 10.36.106.0 global public

bond1 10.10.2.0 global cluster_interconnect [root@ycweb1 bin]# export LANG= [root@ycweb1 bin]# ./vipca 该过程如下:

点击NEXT,

点击NEXT,配置如下:

点击NEXT

下一步,

点击EXIT后,退出VIPCA配置。

4)此时才能点击下图的OK,系统自动配置CRS,执行成功后退出即可。

此时执行./crs_stat –t 查看crs状态如下: [orasrv@ycweb2 ~]$ crs_stat -t

Name Type Target State Host ------------------------------------------------------------ ora.ycweb1.gsd application ONLINE ONLINE ycweb1 ora.ycweb1.ons application ONLINE ONLINE ycweb1 ora.ycweb1.vip application ONLINE ONLINE ycweb1 ora.ycweb2.gsd application ONLINE ONLINE ycweb2 ora.ycweb2.ons application ONLINE ONLINE ycweb2 ora.ycweb2.vip application ONLINE ONLINE ycweb2

五、安装ORACLE软件(10.2.0.1.0)

1、以orasrv用户执行./runInstaller

点击NEXT

点击NEXT

点击NEXT,选中两节点:

点击NEXT,此处的ERROR,是由于重装没有删除/etc/oratab文件造成的,可删除后,继续

点击NEXT,选中只安装软件(待后面打完补丁后,再DBCA建库)

点击NEXT,此过程会报一个小错误,可忽略继续进行。

本文来源:https://www.bwwdw.com/article/jrs.html

Top