安裝Oracle 11g for RedHat AS5 U3(二)

guyeh發表於2009-09-11

安裝Oracle 11g for RedHat AS5 U3(二)

[@more@]

4、配置oracle使用者的環境變數和shell限制,編輯/etc/security/limits.conf,新增下面的內容:

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

1、 修改/etc/pam.d/login新增下面的內容:

session required /lib/security/pam_limits.so
session required pam_limits.so

2、 修改/etc/profile新增以下內容:

umask 022

if [ $USER = "oracle" ]; then

if [ $SHELL = "/bin/ksh" ]; then

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi
fi

3、 配置環境變數,編輯/home/oracle/.bash_profile,新增以下內容:

umask 022

ORACLE_BASE= /dbdata

ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1

ORACLE_SID=ora11g

PATH=$ORACLE_HOME/bin:$PATH

DISPLAY=:0.0

export PATH

export ORACLE_BASE ORACLE_HOME ORACLE_SID

export DISPLAY
三、開始安裝

1、以root使用者執行:xhost +

2、啟動安裝,按照介面的提示進行安裝,和Oracle10g的安裝類似。

3、 Oracle11g安裝的時候在“選擇安裝方法”介面選擇“基本安裝的時候”那麼Oracle Configuration Manager 允許您將配置資訊與 Metalink 帳戶相關聯。您可在該視窗上選擇啟用它,Oracle稱這個功能是為了更迅速的定位和解決問題。

4、 Oracle11g EM訪問地址:。

5、

如果安裝了SElinux安全管理,那麼最後將其關閉否則會出現類似如下的錯誤:

[oracle@jwdb ~]$ sqlplus "/as sysdba"

sqlplus: error while loading shared libraries: /dbdata/product/11.1.0/db_1/lib/libnnz11.so: cannot restore segment prot after reloc: Permission denied

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/570433/viewspace-1026853/,如需轉載,請註明出處,否則將追究法律責任。

相關文章