vmserver1.04+oracle Enterprise linux 5.1+oracle10g RAC安装文

时间:2022-11-20 23:43:08 作者:壹号 字数:7657字

vmserver1.0.4+oracle Enterprise linux 5.1+oracle10g RAC安装文档

配置过程:

1.安装vmserver1.0.4虚拟机(过程略)

2.安装oracle Eenterprise linux 5.1系统(过程略)

3.节点node1的配置: 3.1 编辑/etc/hosts文件

127.0.0.1 localhost.localdomain localhost

192.168.1.131 node1 192.168.1.132 node2

192.168.1.231 node1-vip 192.168.1.232 node2-vip

10.10.10.31 node1-priv 10.10.10.32 node2-priv

3.2 创建组oinstall,dba, 用户oracle Groupadd oinstall Groupadd dba

Usradd –d /home/oracle –g oinstall –G dba oracle Passwd oracle ****** ****** 3.3 配置oracle用户的环境变量 Vi .bash_profile export PATH

export EDITOR=vi

export ORACLE_SID=racdb1

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1 export ORA_CRS_HOME=$ORACLE_BASE/product/10.2.0/crs_1 export LD_LIBRARY_PATH=$ORACLE_HOME/lib

export TNS_ADMIN=\$ORACLE_HOME/network/admin export CLASSPATH=\$ORACLE_HOME\JRE export TEMP=/tmp

$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/bin:$PATH

PATH=.:\${PATH}:\$HOME/bin:\$ORACLE_HOME/bin:\$ORA_CRS_HOME\bin

3.4 创建oracle管理目录

Mkdidr –p /u01/app/oracle Chown –R /u01

3.5 配置内核参数 Vi /etc/sysctl.conf

kernel.shmall = 2097152

kernel.shmmax = 536870912 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 = 1048576 net.core.rmem_max = 1048576 net.core.wmem_default = 262144 net.core.wmem_max = 262144

sysctl -p

3.6 oracle用户的SHELL限制 vi /etc/security/limits.conf oracle soft nproc 2047

oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 3.7 修改安全限制

vi /etc/pam.d/login

session required /lib/security/pam_limits.so 3.8

配置Hangcheck 计时器 vi /etc/rc.local

modprobe hangcheck-timer hangcheck-tick=30 hangcheck_margin=180

3.9 磁盘分区,创建裸设备 Fdisk /dev/sdb -------OCR Fdisk /dev/sdc -------voting Fdisk /dev/sdd --------asm Fdisk /dev/sde --------asm 4.0 安装相应的补丁包

compat-binutils215-2.15.92.0.2-24.i386.rpm

compat-libcwait-2.1-1.i386.rpm compat-libstdc++-3.2-1.i386.rpm openmotif21-2.1.30-11.EL5.i386.rpm

…… 此处隐藏2413字 ……

6.2 在节点node2上面:

[root@node2 /]# /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 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

Fix permissions of Oracle ASM disks on boot (y/n) [y]: y Writing Oracle ASM library driver configuration: [ OK ] Loading module OK ]

Mounting ASMlib driver filesystem: [ OK ] Scanning system for ASM disks: [ OK ] 6.3 建立ASM磁盘组 在节点node1上面:

[root@node1 /]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdd1 Marking disk OK ]