美文网首页我爱编程
[转]Oracle 11g Silent install on

[转]Oracle 11g Silent install on

作者: Aieru | 来源:发表于2016-06-23 13:16 被阅读54次
    1. 安装所需组件

    # apt-get install gcc g++ make binutils libc6 libc6-dev libstdc++6 libstdc++5 rpm gawk alien ksh java7-jdk lesstif2 libaio1 linux-headers-$(uname -r) elfutils libaio-dev sysstat unixodbc-bin unixodbc-dev pdksh libmotif4 gcc-multilib g++-multilib

    1. 建用户和组

    # addgroup oinstall
    # addgroup dba
    # addgroup nobody
    # useradd -g oinstall -G dba -p 123 -s /bin/bash -d /home/oracle -m oracle
    # usermod -g nobody nobody

    1. 建Oracle的基本路径

    # mkdir -p /oracle
    # chown oracle /oracle

    1. 对部分文件建软连接

    # ln -s /usr/bin/awk /bin/awk
    # ln -s /usr/bin/rpm /bin/rpm
    # ln -s /usr/bin/basename /bin/basename
    # ln -s /etc /etc/rc.d

    下面是64
    

    # ln -s /usr/lib/x86_64-linux-gnu /usr/lib64
    # cd /lib64
    # ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 .

    1. 修改debian runLevel 为3或5

    # vi /etc/inittab
    id:3:initdefault:

    切换到oracle用户  su - oracle
    
    1. 制作responseFile(略)

    2. 设置系统参数

    #vi /etc/sysctl.conf
    # # Oracle 11g #
    kernel.sem = 250 32000 100 128
    kernel.shmall = 2097152
    kernel.shmmni = 4096
    # Replace kernel.shmmax with the half of your memory in bytes
    # if lower than 4Go minus 1
    # 1073741824 is 1 GigaBytes
    kernel.shmmax=1073741824
    # Try sysctl -a | grep ip_local_port_range to get real values
    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 = 1048576
    # Max value allowed, should be set to avoid IO errors
    fs.aio-max-nr = 1048576
    # 512 * PROCESSES / what really means processes ?
    fs.file-max = 6815744
    # To allow dba to allocate hugetlbfs pages
    # 1001 is your oinstall group, id. grep oinstall /etc/group will give this value
    vm.hugetlb_shm_group = 1001

    执行命令
    

    # sysctl -p

    Now, update /etc/security/limits.conf:
    

    # vi /etc/security/limits.conf

    And add the following parameters:
    

    # Oracle

    oracle soft nproc 2047
    oracle hard nproc 16384
    oracle soft nofile 1024
    oracle hard nofile 65536
    oracle soft stack 10240

    Check that /etc/pam.d/login contains a line like this one:
    

    session required pam_limits.so

    Now, update /etc/profile:
    

    # vi /etc/profile

    And add the following lines:
        if [ $USER = "oracle" ]; then 
             if [ $SHELL = "/bin/ksh" ]; then 
                ulimit -p 16384 
                ulimit -n 65536 
             else ulimit -u 16384 -n 65536 
             fi 
        fi 
    
    1. 运行安装

    $./runInstaller -silent -responseFile /home/oracle/db_install.rsp

    查看安装日志,发现少了个重要文件:glibc-2.3.4-2.41
    

    网上查看原因可能是gcc版本问题,加上 -ignorePrereq 重试

    相关文章

      网友评论

        本文标题:[转]Oracle 11g Silent install on

        本文链接:https://www.haomeiwen.com/subject/eznndttx.html