环境:redhat linux 5.5 64bit, 2.6.18-194-el5
1、确认内存、swap、/tmp空间足够;
2、确认必须的pkg:
rpm -q make binutils setarch compat-db compat-gcc compat-gcc-c++ compat-libstdc++ compat-libstdc++-devel unixODBC unixODBC-devel libaio-devel sysstat
需要安装下列包 :
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
unixODBC-2.2.11
unixODBC-2.2.11 (32 bit)
unixODBC-devel-2.2.11
unixODBC-devel-2.2.11 (32 bit)
3、创建oinstall、dba用户组;
4、创建oracle用户及密码:
useradd -g oinstall -G dba oracle
5、修改系统参数:
将以下内容加入文件 /etc/sysctl.conf
# Added for oracle 11G, 20100814, by ljg
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.tcp_wmem = 262144 262144 262144
net.ipv4.tcp_rmem = 4194304 4194304 4194304
fs.aio-max-nr = 1048576
# /sbin/sysctl -p
# /sbin/sysctl -a
6、修改oracle用户设置:将以下内容加入到文件/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
7、设置可插入认证模块 (PAM) 限制:将以下内容加入到文件/etc/pam.d/login
session required pam_limits.so
8、在全局 pro
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
unset i
unset pathmunge
9、确认nobody用户存在;
10、为Linux 第 4 版到第 5 版名称发生变化的一个库创建链接:
ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2
11、export DISPLAY=10.16.12.178:0.0可以将x窗口显示到本地
文章评论