Fedora22 下安裝Oracle 11g

來源:互聯網
上載者:User

標籤:

同時參考

http://www.linuxidc.com/Linux/2012-08/69082.htm

http://www.linuxidc.com/Linux/2013-10/91270.htm

一、硬體檢測

1、記憶體檢測 Oracle11g要求最低1GB記憶體

grep MemTotal  /proc/meminfo

2、交換空間檢測 通常交換空間是記憶體1.5倍

grep  SwapTotal /proc/meminfo

3、臨時目錄/tmp檢查

df -h /tmp
二、配置過程

1、建立使用者和使用者組

/usr/sbin/groupadd dba/usr/sbin/useradd -g dba -m oraclepasswd oraclemkdir /home/oracle/appmkdir /home/oracle/app/oraclemkdir /home/oracle/app/oradatamkdir /home/oracle/app/oracle/productchown -R oracle:dba /home/oracle/app

2、修改使用者的SHELL的限制

vi /etc/security/limits.conforacle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536vi /etc/pam.d/loginsession required /lib/security/pam_limits.so session required pam_limits.sovi /etc/profileif [ $USER = "oracle" ]; then     if [ $SHELL = "/bin/ksh" ]; then         ulimit -p 16384         ulimit -n 65536     else         ulimit -u 16384 -n 65536     fifi

3、修改linux核心

vi /etc/sysctl.conffs.file-max = 6815744 fs.aio-max-nr = 1048576 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 4194304 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576

立即生效

/sbin/sysctl -p

4、配置oracle使用者的環境變數

su – oraclevi .bash_profileumask 022export ORACLE_BASE=/home/oracle/appexport ORACLE_HOME=$ORACLE_BASE/oracle/product/11.2.0/dbhome_1export ORACLE_SID=orclexport PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin   #注意刪除已有的export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib

登出系統

三、安裝資料庫 (圖形介面下)
unzip linux_11gR2_database_1of2.zip unzip linux_11gR2_database_2of2.zipexport LANG=en_US.UTF-8./runInstaller

Fedora22 下安裝Oracle 11g

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.