1. 前言
Red Hat Enterprise Linux 4.0
|
CentOS5.2 下对应的软件包
|
binutils-2.15.92.0.2-13.EL4
|
binutils-2.17.50.0.6-6.el5
|
compat-db-4.1.25-9
|
compat-db-4.2.52-5.1
|
compat-libstdc++-296-2.96-132.7.2
|
compat-libstdc++-33-3.2.3-61
|
control-center-2.8.0-12
|
control-center-2.16.0-16.el5
|
gcc-3.4.3-22.1.EL4
|
gcc-4.1.2-42.el5
|
gcc-c++-3.4.3-22.1.EL44
|
gcc-c++-4.1.2-42.el5
|
glibc-2.3.4-2.9
|
glibc-2.5-24
|
glibc-common-2.3.4-2.9
|
glibc-common-2.5-24
|
gnome-libs-1.4.1.2.90-44.1
|
libgnome-2.16.0-6.el5
|
libstdc++-3.4.3-22.1
|
libstdc++-4.1.2-42.el5
|
libstdc++-devel-3.4.3-22.1
|
libstdc++-devel-4.1.2-42.el5
|
make-3.80-5
|
make-3.81-3.el5
|
pdksh-5.2.14-30
|
ksh-20060214-1.7
|
sysstat-5.0.5-1
|
sysstat-7.0.2-1.el5
|
xscreensaver-4.18-5.rhel4.2
|
gnome-screensaver-2.16.1-8.el5
|
setarch-1.6-1
|
setarch-2.0-1.1
|
|
libXp-1.0.0-8.1.el5
|
# rpm -q binutils compat-db compat-libstdc++-33 control-center \
gcc gcc-c++ glibc glibc-common libgnome libstdc++ \
libstdc++-devel make ksh sysstat gnome-screensaver setarch libXp
|
binutils-2.17.50.0.6-6.el5
compat-db-4.2.52-5.1
compat-libstdc++-33-3.2.3-61
control-center-2.16.0-16.el5
gcc-4.1.2-42.el5
gcc-c++-4.1.2-42.el5
glibc-2.5-24
glibc-common-2.5-24
libgnome-2.16.0-6.el5
libstdc++-4.1.2-42.el5
libstdc++-devel-4.1.2-42.el5
make-3.81-3.el5
ksh-20060214-1.7
sysstat-7.0.2-1.el5
gnome-screensaver-2.16.1-8.el5
setarch-2.0-1.1
libXp-1.0.0-8.1.el5
|
# vi /etc/sysctl.conf
... ...
kernel.shmall = 2097152
kernel.shmmax = 2147483648
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 = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
|
# chkconfig /etc/sysctl.conf
|
# vi /etc/security/limits.conf
... ...
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
|
# vi /etc/pam.d/login
... ...
session required /lib/security/pam_limits.so
session required pam_limits.so
|
# vi /etc/profile
... ...
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
|
# groupadd -g 501 oinstall
# groupadd -g 502 dba
|
# useradd -g oinstall -G dba -u 501 -d /oracle oracle
|
# chown -R oracle:oinstall /oracle
|
# su – oracle
$ pwd
/oracle
$ vi ./.profile
# !/usr/bin/bash
umask 022
ORACLE_BASE=/oracle/app
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1
export ORACLE_HOME
PATH=$PATH:$ORACLE_HOME/bin
export PATH
|
$ pwd
/oracle
$ mkdir app
$ mkdir data
|
$ ./runInstaller -ignoreSysPrereqs
|
本文出自 “sky ” 博客,请务必保留此出处http://skymax.blog.51cto.com/365901/124666