11gR2 Grid Infrastructure Installation prerequisites On LINUX(三)
ll /u01/app/oraInventory
chmod -R 755 /u01/app/oraInventory
11 配制grid,oracle用户环境变量
节点1grid用户:
~/.bash_profile增加以下内容
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/11.2.0/grid
export PATH=$PATH:$ORACLE_HOME/bin
export NLS_LANG="SIMPLIFIED CHINESE_CHINA".AL32UTF8
export ORACLE_SID=+ASM1
umask 022
stty erase ^H
节点2grid用户:
~/.bash_profile增加以下内容
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/11.2.0/grid
export PATH=$PATH:$ORACLE_HOME/bin
export NLS_LANG="SIMPLIFIED CHINESE_CHINA".AL32UTF8
export ORACLE_SID=+ASM2
umask 022
stty erase ^H
节点1 ORACLE 用户:
~/.bash_profile增加以下内容
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export PATH=$PATH:$ORACLE_HOME/bin
export NLS_LANG="SIMPLIFIED CHINESE_CHINA".AL32UTF8
export ORACLE_SID=bdspoc1
umask 022
stty erase ^H
节点2 ORACLE 用户:
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export PATH=$PATH:$ORACLE_HOME/bin
export NLS_LANG="SIMPLIFIED CHINESE_CHINA".AL32UTF8
export ORACLE_SID=bdspoc2
umask 022
stty erase ^H
12 设置用户资源限制
1.在文件 /etc/security/limits.conf 加以下参数:
#Install oracle setting
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
增加如下行在/etc/pam.d/login 文件中
session required pam_limits.so
vim /etc/profile
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
For the C shell (csh or tcsh), add the following lines to the /etc/csh.login file:
if ( $USER = "oracle" || $USER = "grid" ) then
limit maxproc 16384
limit descriptors 65536
endif
13 设置RDAC
由于用的是IBM的磁盘阵列,所以需要在系统端安装多路径软件。
下载地址:http://support.netapp.com/NOW/public/apbu/oemcp/
将下载的RDAC包解压生成linuxrdac-09.03.0C05.0638文件夹
进入文件夹后编译该包,
[root@oradb1 linuxrdac-09.03.0C05.0638]# make
make[1]: Entering directory `/usr/src/kernels/2.6.18-274.el5-x86_64'
….
gcc mppUtil.o mppUtilSysdep.o -o mppUtil
gcc -o genuniqueid genuniqueid.c
[root@oradb1 linuxrdac-09.03.0C05.0638]# make install
make[1]: Entering directory `/tmp/linuxrdac-09.03.0C05.0638'
….
MPP driver package has been successfully installed on your system.
--在/boot 文件夹下生成一个mpp的文件
[root@oradb1 boot]# pwd
/boot
[root@oradb1 boot]# ls
config-2.6.18-274.el5 initrd-2.6.18-274.el5kdump.img symvers-2.6.18-274.el5.gz
grub lost+found System.map-2.6.18-274.el5
initrd-2.6.18-274.el5.img mpp-2.6.18-274.el5.img vmlinuz-2.6.18-274.el5
--修改启动选项
[root@oradb1 tmp]# vim /boot/grub/menu.lst
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-274.