[轉(zhuǎn)]Oracle 11g Silent install on debian7

  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. 設置系統(tǒng)參數(shù)

#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

執(zhí)行命令

# 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

查看安裝日志,發(fā)現(xiàn)少了個重要文件:glibc-2.3.4-2.41

網(wǎng)上查看原因可能是gcc版本問題,加上 -ignorePrereq 重試

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容