非圖形化靜默安裝Oracle 11g

來源:互聯網
上載者:User

用response檔案silent模式安裝和配置Oracle11g
 

1.硬體需求:
 
記憶體:  grep -i memtotal /proc/meminfo    官方要求至少1G記憶體
 
swap 交換分區 grep -i swaptotal /proc/meminfo   

如果你的記憶體小於2G,那麼交換分區為記憶體的 1.5倍
 
如果記憶體介於2G - 8G 之間,那麼交換分區應該等於記憶體的大小
 
如果記憶體大於8G,那麼交換分區應該為記憶體的 0.75 倍   

註:以上交換分區只是建議的大小,實際安裝時不強制要求這樣設定
 
硬碟:df -k  企業版4.5G,那麼安裝的話,硬碟空間至少應該5G以上
 
2.安裝前準備
 
建立oracle帳號和使用者組,並建立安裝目錄
 
編輯/etc/sysctl.conf和/etc/security/limits.conf修改系統參數
 
編輯/etc/profile,/home/oracle/.bash_profile,/home/oracle/.bashrc修改oracle使用者設定檔
 
建立/etc/oraInst.loc檔案設定oracle inventory
 
可以用以下指令碼自動化佈建(OS:RHEL6.2)
 
#!/bin/bash
 
 
 
yum -y install binutils compat-libcap1 compat-libstdc++ gcc gcc-c++ glibc glibc-devel ksh libgcc libstdc++ libstdc++-devel libaio sysstat libaio-devel elfutils-libelf-devel unixODBC unixODBC-devel
 
 
 
#unzip linux.x64_11gR2_database_1of2.zip
 
#unzip linux.x64_11gR2_database_2of2.zip
 
#find database/ -name "db_install.rsp" | xargs -i cp {} .
 
 
 
ORACLE_BASE=/DataBase/oracle
 
 
 
ORACLE_PASSWORD="oracle_admin"
 
groupadd oinstall
 
groupadd dba
 
useradd -m -g oinstall -G dba oracle
 
echo "oracle:$ORACLE_PASSWORD" | chpasswd
 
mkdir -p $ORACLE_BASE
 
chown -R oracle:oinstall $ORACLE_BASE
 
chmod -R 775 $ORACLE_BASE
 
cat >> /etc/sysctl.conf <<EOF
 
 
 
fs.aio-max-nr = 3145728
 
 
 
fs.file-max = 6815744
 
 
 
kernel.shmall = 1073741824
 
 
 
kernel.shmmax = 4398046511104
 
 
 
kernel.shmmni = 4096
 
 
 
kernel.sem = 250 32000 100 142
 
 
 
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
 
 
 
EOF

  • 1
  • 2
  • 3
  • 4
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.