ITPub博客

首页 > 数据库 > Oracle > Linux6RAC步骤

Linux6RAC步骤

原创 Oracle 作者:zhangsharp20 时间:2016-01-28 23:54:54 0 删除 编辑
一、网络设置
192.168.137.200 node1
192.168.137.206 node2
192.168.137.201 node1-vip
192.168.137.207 node2-vip
10.10.10.100 node1-priv
10.10.10.101 node2-priv


192.168.137.250 scan-vip




互ping内外网,看是否可以实现通信




二、存储


使用nfs或使用ASM(需要官方提供ASMLIB包)


三、创建需要的用户和目录


groupadd -g 500 oinstall
groupadd -g 501 oper
groupadd -g 502 dba
groupadd -g 503 asmadmin
groupadd -g 504 asmdba
groupadd -g 505 asmoper
useradd -u 200 -g oinstall -G asmadmin,asmdba grid
useradd -u 201 -g oinstall -G dba,asmdba oracle











mkdir -p /u01/app/11.2.0/grid
chown -R grid:oinstall /u01/app/11.2.0/grid
mkdir -p /u01/app/oracle
chown oracle:oinstall /u01/app/oracle
chmod -R 775 /u01
mkdir /u01/app/oraInventory
chown -R grid:oinstall /u01/app/oraInventory



四、设置系统参数




/etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 976781312
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586


/etc/security/limits.conf
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 /lib/security/pam_limits.so


/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
fi


关闭ntpd服务
chkconfig ntpd off
mv /etc/ntp.conf /etc/ntp.conf.bk
servcie ntpd stop
设置用户的环境变量


node1 oracle用户


export EDITOR=vi
export ORACLE_SID=prod1
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
umask 022




node2 oracle用户


export EDITOR=vi
export ORACLE_SID=prod2
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
umask 022


node1 grid用户


export EDITOR=vi
export ORACLE_SID=+ASM1
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/11.2.0/grid
export GRID_HOME=/u01/app/11.2.0/grid
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export THREADS_FLAG=native
export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
umask 022




node2 grid用户


export EDITOR=vi
export ORACLE_SID=+ASM2
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/11.2.0/grid
export GRID_HOME=/u01/app/11.2.0/grid
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export THREADS_FLAG=native
export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
umask 022
~




安装前检查


[root@node1 software]# unzip p13390677_112040_Linux-x86-64_1of7.zip ; unzip p13390677_112040_Linux-x86-64_2of7.zip ;unzip p13390677_112040_Linux-x86-64_3of7.zip


chown -R grid:oinstall grid/


grid用户下执行


./runcluvfy.sh stage -pre crsinst -n node1,node2 -fixup -verbose




安装grid






安装oracle软件




来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29802484/viewspace-1983758/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: ins-06001
下一篇: 使index失效
请登录后发表评论 登录
全部评论

注册时间:2014-08-12

  • 博文量
    382
  • 访问量
    801414