Redhat 6.2(x86_64)+oracle10g(RAC)+asm安装配置 下载本文

内容发布更新时间 : 2024/5/17 12:58:56星期一 下面是文章的全部内容请认真阅读。

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