redhat 5.4 安裝oracle11g 步驟

shishj發表於2013-05-08
1.建立使用者組 oinstall 及使用者 oracle
2.建立安裝檔案目錄及資料目錄
3.設定oracle環境變數
export ORACLE_BASE=/usr/local/src/oracle
export ORACLE_HOME=$ORALCE_BASE/product/10.2.0/db_1
export ORACLE_SID=ngcrm
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY=$ORACLE_HOME/lib:/usr/lib
4.檢查redhat 5.4 系統是否符合oracel安裝所需要的包
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
elfutils-libelf-devel-static-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-common-2.5
glibc-devel-2.5
glibc-headers-2.5
kernel-headers-2.6.18
ksh-20060214
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.2
libgomp-4.1.2
libstdc++-4.1.2
libstdc++-devel-4.1.2
make-3.81
sysstat-7.0.2
unixODBC-2.2.11
unixODBC-devel-2.2.11
5.修改系統核心引數、etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
./sysctl -p
6.設定Shell對於oracle使用者的限制 /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc
oracle soft nofile 1024
oracle hard nofile
7./etc/pam.d/login檔案
session required /lib/security/pam_limits.so
8.lsnrctl start
9.sqlplus /nolog
10.connect /as sysdba
11.startup;
12.select sysdate from dual;
13.shutdown immediate;
[@more@]

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

相關文章