ITPub博客

首页 > Linux操作系统 > Linux操作系统 > install oracle on redhat9

install oracle on redhat9

原创 Linux操作系统 作者:wzqnpu 时间:2011-02-14 16:01:07 0 删除 编辑
1. check the memory
   grep MemTotal /proc/meminfo(physical)
   grep SwapTotal /proc/meminfo(swap)
2. check the package
   rpm -p rpm -q make gcc glibc compat-db compat-gcc compat-gcc-c++ compat-libstdc++ compat-libstdc++-devel  openmotif21 setarch
gcc-3.2.3-34

glibc-2.3.2-95.20

compat-db-4.0.14-5

compat-gcc-7.3-2.96.128

compat-gcc-c++-7.3-2.96.128

compat-libstdc++-7.3-2.96.128

compat-libstdc++-devel-7.3-2.96.128

openmotif21-2.1.30-8

setarch-1.3-1(it is not necessary)

How to install rpm

rpm -ivh ...xx.rpm

3. create the groups

   groupadd oinstall 
   groupadd dba
  
4. create the user
   id oracle  (check the user 'oracle' whether it exists)
   mkdir -p /usr/oracle
   mkdir -p /usr/oradata
   useradd -d /usr/oracle -g oinstall -G dba oracle
   passwd oracle (set the password)

   chown -R oracle:oinstall /usr/oracle
   chown -R oracle:oinstall /usr/oradata
  
   chmod -R 775 /usr/oracle
   chmod -R 775 /usr/oradata

5.  config the kernel parameter
    1) add the following lines into the /etc/sysctl.conf
    kernel.shmall = 2097152
    kernel.shmmax = 2147483648
    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 = 262144
    net.core.rmem_max = 262144
    net.core.wmem_default = 262144
    net.core.wmem_max = 262144
    2) execute /sbin/sysctl -p to update
   
    3) vi /etc/security/limits.conf and add the following lines
    oracle        soft    nproc   2047
    oracle        hard    nproc   16384
    oracle        soft    nofile  1024
    oracle        hard    nofile  65536
  
  
    4) vi /etc/pam.d/login and add the following line
    session    required     /lib/security/pam_limits.so
   
    5) vi /etc/profile and add the following code
   
    if [ $USER = "oracle" ]; then

        if [ $SHELL = "/bin/ksh" ]; then

              ulimit -p 16384

              ulimit -n 65536

        else

              ulimit -u 16384 -n 65536

        fi

    fi
   
6.  vi /etc/hosts (delete all content and add the following two lines)

    127.0.0.1   localhost
    ip address  the hostname
   
7.  set the env variable
    go to the oracle user's home dir and vi .bash_profile
    export ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1/
    export ORACLE_SID=orcl
    export ORACLE_BASE=/usr/oracle
    export ORACLE_HOME=/usr/oracle
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:/usr/lib
   
    source .bash_profile (run three times)
    ==root (run xhost  local:oracle)
8.  (user root ) mount the .iso file
   
    chmod -R 777 /usr/oracle/xxxx.iso
    mkdir /mnt/b
    mount /usr/oracle/xxxx.iso /mnt/b -o loop
   
9.  install the oracle(use the full path to run )
    su - oracle
    ./runInstaller

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

上一篇: 硬解析和软解析
请登录后发表评论 登录
全部评论

注册时间:2011-02-12

  • 博文量
    6
  • 访问量
    3190