Install Oracle 11g in RHEL 6


先檢查防火牆是否關閉。

用root身份,下 service iptables status
Disable firewall:
service iptables stop
chkconfig iptables off


建立Oracle使用者帳號

#groupadd oinstall
#groupadd dba
#useradd –g oinstall –G dba oracle
#passwd oracle


修改系統參數

(可參考網頁:http://docs.oracle.com/cd/B28359_01/install.111/b32002/pre_install.htm#BABIAEEC)

需修改的參數為:

Configure Oracle Installation Owner Shell Limits
Add the following lines to the /etc/security/limits.conf file:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

Configuring Kernel Parameters

Using any text editor, create or edit the /etc/sysctl.conf file, and add or edit lines similar to the following:

Note:

Include lines only for the kernel parameter values that you want to change. For the semaphore parameters (kernel.sem), you must specify all four values. However, if any of the current values are larger than the minimum value, then specify the larger value.

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

fs.file-max = 6815744

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 262144

net.core.rmem_max = 4194304vi

net.core.wmem_default = 262144

net.core.wmem_max = 1048576

fs.aio-max-nr = 1048576

(以上設定會依每台伺服器的硬體條件不同而異,但至少須符合最低要求)

Enter the following command to change the current values of the kernel parameter:

# /sbin/sysctl -p

Add the folloing configuration in Oracle shell.
Loging oracle account.

#vi .bash_profile

TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/db_1; export ORACLE_HOME
ORACLE_SID=lawbidb; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH

5. 將/u01及/u02 及/u03(有的話)目錄,調整成oracle身份使用。

# chown oracle.oinstall -R -f /u01
# chown oracle.oinstall -R -f /u02
# chmod 775 -R -f /u01
# chmod 775 -R -f /u02

6. 修正安裝設定程式,避免程式檢查報錯,如下:
Change directory to <path>/database/stage/cvu/cv/admin
Backup cvu_config cp cvu_config backup_cvu_config
Edit cvu_config and change the following line CV_ASSUME_DISTID=OEL4 to CV_ASSUME_DISTID=OEL6

Save the updated cvu_config file

7. 完成以上動作,即可開始進行DB安裝。

留言

這個網誌中的熱門文章

TeknoParrot 模擬器介紹,俗稱《鸚鵡模擬器》

[轉貼] ASP.NET傳遞參數給Crystal Report做Export或Print的動作

[轉貼] Server 端Post資料到 .ashx