Red Hat Enterprise Linux 4下安裝Oracle 10g圖解

來源:互聯網
上載者:User

1.下載Oracle_database_10.2.0.1.0 for linux 安裝程式:
:oracle官方網站(注意安裝檔案的版本號碼)

2.查詢核心版本和所需的軟體包,以為安裝Oracle 10g準備好軟體環境。當然了,你的機器需要滿足Oracle 10g所需的硬體條件,此處略,可參看官方文檔。

uname -r //所需核心版本為2.6.9-22.EL

用rpm -q 命令來查詢一下軟體包是否安裝,例:rpm -q gcc,如果沒有安裝的話,www.bkjia.com可以從Linux安裝光碟片或網路上得到相應的rpm包,再安裝即可。

gcc-3.4.4-2
make-3.80-5
glibc-2.3.4-2.13
binutils-2.15.92.0.2-15
openmotif-2.2.3-9.RHEL4.1
setarch-1.6-1
compat-gcc-32-3.2.3-47.3
compat-gcc-32-c++-3.2.3-47.3
compat-libstdc++-33-3.2.3-47.3
compat-libstdc++-296-2.96-132.7.2
compat-db-4.1.25-9 (此軟體包不要也可)

3.解壓軟體:
將ORACLE安裝壓縮包解壓,得到oracle_database_10.2.0.1.0.目錄
4.設定核心參數:
在/etc/sysctl.conf檔案中加入下列行:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
ne t.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
5.運行下列命令改變核心參數:/sbin/sysctl –p
6.在/etc/security/limits.conf檔案中加入下列行:
*               soft     nproc   2047
*               hard     nproc   16384
*               soft     nofile   1024
*               hard     nofile   65536

//此處的*表示對所有的使用者
7.在/etc/pam.d/login檔案中加入下列行,如果裡面沒有的話:
session     required     /lib/security/pam_limits.so
8.建立使用者和修改環境變數:
# /usr/sbin/groupadd oinstall                   /建立組使用者/
# /usr/sbin/groupadd dba                       /建立組使用者/
# /usr/sbin/useradd -g oinstall -G dba oracle       /建立使用者,並設定使用者組/
# passwd oracle                             /設定oracle使用者的密碼/
用oracle登陸進作業系統,編輯.bash_profile檔案(.bash_profile檔案為隱藏檔案,其位置在/home/oracle/.bash_profile),由於linux預設的shell使用的是bash,故要編輯這個檔案,如果你設定的使用csh,請編輯.login檔案。
在.bash_profile中添加如下內容:
ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
ORACLE_SID=oracle
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LIBRARY_PATH

編輯完後,source .bash_profile,使得環境變數生效。

  • 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.