binutils-2.15.92.0.2-25 (x86_64)
compat-db-
compat-db-
compat-libstdc++-296-2.96-132.7.2 (i386)
control-center-
gcc-
gcc-c++-
glibc-
glibc-
glibc-common-
gnome-libs-
libstdc++-
libstdc++-
libstdc++-devel-
make-3.80-7.EL4 (x86_64)
pdksh-
sysstat-
xscreensaver-4.18-5.rhel4.14 (x86_64) |
setarch-1.6-1 (x86_64)
glibc-
glibc-
glibc-devel-
glibc-devel-
libaio-0.3.105-2 (i386)
libaio-0.3.105-2 (x86_64)
libaio-devel-0.3.105-2 (i386)
libaio-devel-0.3.105-2 (x86_64)
compat-gcc-32-
compat-gcc-32-c++-
xorg-x11-deprecated-libs-devel-
xorg-x11-deprecated-libs-devel-
xorg-x11-devel-
xorg-x11-devel-
fontconfig-devel-
freetype-devel-
|
rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' \binutils compat-db compat-libstdc++-296 \
control-center gcc gcc-c++ glibc glibc-common gnome-libs libstdc++ libstdc++-devel make pdksh \
sysstat xscreensaver setarch \
glibc glibc-devel libaio libaio-devel \
compat-gcc-32 compat-gcc-32-c++- \
xorg-x11-deprecated-libs-devel xorg-x11-devel \
fontconfig-devel freetype-devel |
http://oss.oracle.com/projects/compat-oracle/dist/files/RedHat/compat-oracle-rhel4-1.0-5.i386.rpm |
# groupadd –g 602 dba
# groupadd –g 601 oinstall
# useradd -g oinstall -G dba -m –u 601 oracle
# mkdir –p /opt/apps/oracle
# chown oracle:oinstall /opt/apps/oracle |
trap " " 0 1 2 3 5 9 15
trap clear 0
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/opt/apps/oracle
export ORACLE_HOME=$ORACLE_BASE/product/
export ORACLE_SID=orasid
export ORACLE_TERM=xterm
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib64:/usr/lib64:/usr/local/lib64:/usr/X11R6/lib64/
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export LD_ASSUME_KERNEL=
export NLS_LANG="Simplified Chinese_china".ZHS16GBK
#
LC_CTYPE=zh_CN.GB2312
LC_ALL=zh_CN
LANG=zh_CN.GB2312
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 |
# add content for oracle install
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
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 |
# add content for oracle install
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536 |
# add content for oracle install
session required pam_limits.so |
SELINUX=disabled |
# gzip -dc 10201_database_linux_x86_64.cpio.gz | cpio -div |
# su – oracle
$ export CC=/usr/bin/gcc32
$ ../runInstaller |