码迷,mamicode.com
首页 > 数据库 > 详细

oracle 11g grid软件安装[20180121]

时间:2018-01-21 22:39:50      阅读:458      评论:0      收藏:0      [点我收藏+]

标签:/etc/   disabled   安装   disable   margin   amp   版本   shm   host   

 
实验环境:
    系统->Redhat 6.5
    Oracle软件版本->oracle 11.2.0.4.0
    
 
系统初始化
    设定hosts主机名和对应IP地址
        vi /etc/hosts
            192.168.139.11 t-redhat-02 t-redhat-02.com
    关闭selinux
        vi /etc/selinux/config
        #SELINUX=enforcing
        SELINUX=disabled
    关闭防火墙和自动
        service iptables stop&&service ip6tables stop
        chkconfig iptables off&&chkconfig ip6tables off
    更新系统内核参数
        vim /etc/sysctl.conf
            #ADD
#kernel.shmmax ->use os default no change
# shmmax: Smallest of -> (Half the size of the physical memory) or (4GB - 1 byte)
#kernel.shmall ->use os default no change
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 142
fs.aio-max-nr = 1048576
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 9000 65000
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default =262144
net.core.wmem_max = 1048576
 
 
        限制oracle&grid用户进程数和文件数
        vim /etc/security/limits.conf
oracle          soft     nproc           2047
oracle          hard     nproc           16384
oracle          soft     nofile          1024
oracle          hard     nofile          65536
 
grid             soft         nproc         2047
grid             hard         nproc         16384
grid             soft          nofile         1024
grid             hard         nofile         65536
 
vim /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
   创建grid和oracle用户
        groupadd -g 501 oinstall
        groupadd -g 502 dba
        groupadd -g 503 osasm
        groupadd -g 504 asmoper
 
        useradd -g oinstall -G osasm,asmoper grid
        useradd -g oninstall -G dba oracle
 
    更新grid和oracle用户环境变量
        vim /home/grid/.bash_profile
            export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/ 11.2.0.4/dbhome_1
            export GRID_HOME=/u01/app/grid/product/11.2.0.4
             export PATH=$ORACLE_HOME/bin:$GRID_HOME/bin:$ORACLE_HOME/OPatch:$PATH
 
  vim /home/oracle/.bash_profile
    
           export  ORACLE_BASE=/u01/app/oracle;
           export ORACLE_HOME=$ORACLE_BASE/product/ 11.2.0.4/dbhome_1
           export PATH=$ORACLE_HOME/bin:$PATH
 
 
 
安装所需依赖包
        yum -y install binutils
yum -y install compat-libcap1
yum -y install compat-libstdc++*
yum -y install libgcc
yum -y install libgcc
yum -y install libstdc++
yum -y install libstdc++-devel
yum -y install sysstat
yum -y install gcc
yum -y install gcc-c++
yum -y install ksh
yum -y install make
yum -y install glibc
yum -y install glibc-devel
yum -y install libaio
yum -y install libaio-devel
yum -y install elfutils-libelf
yum -y install elfutils-libelf-devel
yum -y install glibc-common
yum -y install glibc-headers
yum -y install expat
           rpm -vih pdksh-5.2.14-30*
 
    为grid和oracle软件创建目录
        mkdir -p /u01/app/grid/product/11.2.0.4
        mkdir -p /u01/app/oraInventory
        mkdir -p /u01/app/oracle
    分别为目录进行授权
        chown -R grid.oinstall /u01/app/grid
        chown -R oracle.oinstall /u01/app/oracle
        chown -R grid.oinstall /u01/app/oraInventory
        chmod -R 775 /u01/app/grid /u01/app/oracle  /u01/app/oraInventory
 
 首先安装grid软件
技术分享图片

 

技术分享图片
只安装grid软件
技术分享图片

技术分享图片

 

技术分享图片
 技术分享图片

 

技术分享图片
技术分享图片
 技术分享图片

 

技术分享图片
 
配置RAC
    cd $GRID_HOME/crs/config
    ./config.sh
 
 

oracle 11g grid软件安装[20180121]

标签:/etc/   disabled   安装   disable   margin   amp   版本   shm   host   

原文地址:https://www.cnblogs.com/also-brook/p/8325696.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!