oracle10G在RHEL4u4_64bit安裝

來源:互聯網
上載者:User

注意問題:安裝linux組件選everything swap分區要大於4G 否則安裝會出現莫名其妙的問題

在安裝提示運行兩個.sh 的指令碼的時候。一定要單開一個視窗以root許可權執行。然後在點擊提示的“確定”按鈕

Oracle的安裝前準備:
1、配置系統核心參數,以root使用者登入,修改在/etc/sysctl.conf檔案,在該檔案中添加以下參數:
kernel.shmall = 2097152
kernel.shmmax = 536870912 (512實體記憶體的標準)
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144

2.2) 編輯 /etc/security/limits.conf ,加入以下內容:
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
存檔退出。

2.3) 編輯 /etc/pam.d/login ,加入以下內容:
session required /lib/security/pam_limits.so

2.4) 編輯 /etc/selinux/config,確認以下內容存在並開啟(如沒有則添加在最後)
SELINUX=disabled

2、建立安裝資料庫時所需要使用的使用者組oinstall,dba及Oracle使用者,並將oinstall,dba組定義成oracle使用者的主次組。命令參考如下:
# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba oracle (設定oracle使用者為oinstall、dba使用者組的成員)
# passwd oracle (設定oracle使用者的密碼)

3、以root使用者身份登入系統建立Oracle系統的安裝目錄和資料庫檔案存放的目錄。例如:/oracle,及改變以上目錄的屬性命令參考如下:
# mkdir -p /oracle/product/10.2.0 (建立資料目錄)
# chown -R oracle.oinstall /oracle (設定目錄所屬的使用者組和使用者)
# chmod -R 775 /oracle (設定目錄的讀寫權限)

4、以oracle 使用者身份登入系統,複製和解壓10201_database_linux32.zip檔案到/home/oracle下:
# cp 10201_database_linux32.zip /home/oracle/ (複製檔案到oracle個人目錄內)
# unzip /home/oracle/10201_database_linux32.zip (解壓zip檔案)

5、配置oracle使用者環境,以oracle使用者登入,修改oracle使用者下的 .bash_profile 檔案。增加以下參數:
vi .bash_profile (執行vi命令來修改.bash_profile)
# Get the aliases and functions
  
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
  
# User specific environment and startup programs
  
PATH=$PATH:$HOME/bin
  
export PATH
unset USERNAME

# 以下是我們所需配置的內容
umask 022
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_BASE=/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/; export ORACLE_HOME
ORACLE_SID=fstest; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
display=172.20.16.55:0.0這個IP是你自己的那台電腦在這個電腦上起圖形遠程操作用的。
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
#LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL

  • 1
  • 2
  • 下一頁
【內容導航】
第1頁:oracle10G在RHEL4u4_64bit安裝 第2頁:oracle10G在RHEL4u4_64bit安裝

聯繫我們

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