zoukankan      html  css  js  c++  java
  • ORACLE Install (10g r2) FOR Red Hat Enterprise Linux Server release 5.5 (64 bit) (转)

    OS Info
    ----------
    # cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 5.5 (Tikanga)
    # cat /etc/issue.net
    Red Hat Enterprise Linux Server release 5.5 (Tikanga)
    Kernel r on an m
    # uname -rm
    2.6.18-194.el5 x86_64
    # echo $MACHTYPE
    x86_64-redhat-linux-gnu

    # cat /proc/cpuinfo|grep "model name"
    model name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
    model name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
    model name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
    model name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
    model name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
    model name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
    model name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
    model name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz

    # free -m
    total used free shared buffers cached
    Mem: 3940 3816 124 0 72 3428
    -/+ buffers/cache: 315 3625
    Swap: 8001 0 8001

    # df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda3 67G 6.9G 56G 11% /
    /dev/sda6 1.6T 3.7G 1.6T 1% /oradata
    /dev/sda2 95G 188M 90G 1% /archive
    /dev/sda1 99M 20M 74M 22% /boot
    tmpfs 2.0G 0 2.0G 0% /dev/shm

    1.check packages
    # rpm -q make gcc glibc compat-db-4.2.52-5.1 compat-gcc-34-3.4.6-4 compat-gcc-34-c++-3.4.6-4 compat-libstdc++-33-3.2.3-61 compat-libstdc++-devel libXp

    openmotif22 setarch
    make-3.81-3.el5
    gcc-4.1.2-48.el5
    glibc-2.5-49
    glibc-2.5-49
    compat-db-4.2.52-5.1
    compat-db-4.2.52-5.1
    compat-gcc-34-3.4.6-4
    compat-gcc-34-c++-3.4.6-4
    compat-libstdc++-33-3.2.3-61
    compat-libstdc++-33-3.2.3-61
    package compat-libstdc++-devel is not installed --没有找到,不需安装
    libXp-1.0.0-8.1.el5
    libXp-1.0.0-8.1.el5
    openmotif22-2.2.3-18
    setarch-2.0-1.1

    [@more@]

    2.create oracle user&group
    # groupadd -g 501 dba
    # useradd -u 501 -g dba -G dba -m -s /bin/bash -d /home/oracle oracle
    # passwd oracle

    3. check memory
    # grep MemTotal /proc/meminfo
    MemTotal: 4035400 kB
    # grep SwapTotal /proc/meminfo
    SwapTotal: 8193108 kB

    4.check disk
    # df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda3 67G 4.9G 58G 8% /
    /dev/sda6 1.6T 197M 1.6T 1% /oradata
    /dev/sda2 95G 188M 90G 1% /archive
    /dev/sda1 99M 20M 74M 22% /boot
    tmpfs 2.0G 0 2.0G 0% /dev/shm

    5.create Directory For oracle
    # mkdir /orahome
    # chown -R oracle:dba /orahome /home/oracle /oradata /archive
    # chmod -R 775 /orahome /home/oracle /oradata /archive

    6.Redhat Version change
    # mv /etc/redhat-release /etc/redhat-release.orig
    # echo "Red Hat Enterprise Linux Server release 4 (Nahant Update 4)" > /etc/redhat-release

    7.setting system parameters
    # cat >> /etc/sysctl.conf << EOF
    kernel.core_uses_pid = 1
    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.wmem_default = 262144
    net.core.rmem_max = 262144
    net.core.wmem_max = 262144
    EOF
    # /sbin/sysctl -p
    -------
    cat >> /etc/security/limits.conf << EOF
    oracle soft nproc 2047
    oracle hard nproc 16384
    oracle soft nofile 1024
    oracle hard nofile 65536
    EOF
    -------
    # echo "session required /lib/security/pam_limits.so" >> /etc/pam.d/login
    ---
    # vi /etc/profile
    add:
    if [ $USER = "oracle" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
    ulimit -p 16384
    ulimit -n 65536
    else
    ulimit -u 16384 -n 65536
    fi
    umask 022
    fi

    8.setting oracle profile
    # su - oracle
    $ vi .bash_profile
    export ORACLE_BASE=/orahome
    export ORACLE_HOME=/orahome/10.2
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch/opatch:$PATH
    export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib
    export ORACLE_SID=XXX
    umask 022
    $ source .bash_profile

    9.oracle install for vnc

    $ gunzip 10201_database_linux_x86_64.cpio.gz
    $ cpio -idmv < 10201_database_linux_x86_64.cpio
    $ cd database
    $ ./runInstaller

    10.patch update for vnc
    $ unzip p6810189_10204_Linux-x86-64.zip
    $ cd DISK1
    $./runInstaller

    10.Recovery Redhat Version
    # cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 4 (Nahant Update 4)
    # rm /etc/redhat-release
    # mv /etc/redhat-release.orig /etc/redhat-release
    # cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 5.5 (Tikanga)

    http://blog.itpub.net/789833/viewspace-1042835/

  • 相关阅读:
    我的屌丝giser成长记-研二篇
    我的屌丝giser成长记-研一篇(下)
    C#连接Oracle数据库的方法(Oracle.DataAccess.Client也叫ODP.net)
    C# 日期格式化的中的(/)正斜杠的问题(与操作系统设置有关)
    C#,SOAP1.1与1.2的发布与禁用(SOAP 1.2 in .NET Framework 2.0)
    C#使用WebService 常见问题处理
    sql查询数据库中所有表的记录条数,以及占用磁盘空间大小。
    eclipse中的XML文件无法快捷键注释问题
    对比两个表中,字段名不一样的SQL
    oracle 恢复备份
  • 原文地址:https://www.cnblogs.com/softidea/p/4517728.html
Copyright © 2011-2022 走看看