RedHat Linux 9.0下安裝Oracle 9.2全面指南(圖)

來源:互聯網
上載者:User

  RedHat Linux 9.0是一個非常好的Linux發行版本,具有良好的中文支援和豐富的應用軟體,令包括筆者在內的好多Linux用家愛不釋手。但由於Redhat9.0採用的GCC版本比較高,造成了一定的相容性問題。使得包括Oracle9.2和IBM DB2等大型資料庫軟體在RedHat Linux 9.0上不能順利安裝。

  經過一段時間的摸索和反覆尋找 資料。筆者終於總結除了Oracle9.2在RedHat Linux 9.0上的安裝方法,在此給大家參考。

  當然首先需要安裝RedHat Linux 9.0,如果您不是非常有經驗的使用者,請選擇完整安裝。

  安裝前的準備工作

  建立一個使用者和組,Oracle 往往要求建立兩個組,一個負責安裝,另一個負責管理,但很多老資格的DBA都認為建立一個組就足夠了。以root使用者運行下列命令:

  groupadd oracle
  useradd oracle -g dba
  passwd oracle

  Oracle安裝的位置應遵守OFA( Optimal Flexible Architecture )規範,但在我的機器上,由於空間有限,所以將ORACLE_HOME設定為/soft/oracle,並要確保oracle使用者對這個目錄可寫。

  安裝和運行Oracle需要配置核心參數,我的電腦具有512M記憶體。在 /etc/sysctl.conf 檔案中增加如下內容:

  kernel.shmmax = 536870912
  kernel.shmmni = 4096
  kernel.shmall = 2097152
  kernel.sem = 250 32000 100 128
  fs.file-max = 65536
  net.ipv4.ip_local_port_range = 1024 65000

  修改後運行sysctl -p 命令使得核心改變立即生效。

  還需要在/etc/security/limits.conf 檔案增加如下內容:
  oracle soft nofile 65536
  oracle hard nofile 65536
  oracle soft nproc 16384
  oracle hard nproc 16384

  配置Oracle 的環境變數如下:

  export ORACLE_HOME=/soft/oracle
  export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/Apache/bin:$PATH
  export ORACLE_SID=or9i
  export THREADS_FLAG=native
  export LD_LIBRARY_PATH=/soft/oracle/lib:$LD_LIBRARY_PATH
  export PATH=/$ORACLE_HOME/bin:$PATH

  最好將上邊的環境變數寫入/home/oracle/.bash_profile 中,使得oracle 每次登入時都帶有這些環境變數。

  開始安裝

  我採用在硬碟安裝的方式,直接執行LANG=和./runInstaller,將出現下面的介面(圖一)

  • 1
  • 2
  • 3
  • 下一頁

相關文章

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.