1.检查环境要求
grep MemTotal /proc/meminfo .........内存
grep SwapTotal /proc/meminfo .........交换空间
df -h /tmp ........................./tmp目录
df -h .........................磁盘空间
2.配置环境要求
软件包:
binutils
compat-db
compat-libstdc++
control-center-
gcc
gcc-c++
glibc
glibc-comon
libstdc++
libstdc++-devel
libXp
make
ksh
sysstat
setarch
配置内核参数
vi /etc/sysctl.conf
加入
kernel.shmall=2097152
kernel.shmmax=536870912l(通常只需改这个,物理内存的一半)
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.wramem_default=262144
net.core.wmem_max=262144
fs.aio-max-nr = 1048576
sysctl -p .........................验证参数是否正确
3.添加以下内容到/etc/security/limits.conf
# vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
4.添加以下内容到/etc/pam.d/login
# vi /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
5.添加以下内容到/etc/profile
#
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
6.创建组、用户和目录
groupadd oinstall
groupadd dba
user add -g oinstall -G dba oracle
passwd oracle
7.创建目录
mkdir /u01/app/oracle
chown -R oracle.oinstall u01/app/oracle
chmod -R 755 u01/app/oracle
8.配置环境变量
su -oracle
vi .bash_profile
export ORACEL_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
export ORACLE_SID=orcl export NLS_LANG=
export PATH=$PATH:ORACLE_HOME/bin:
source ~./.bash_profile
9.安装 ./runInstaller
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26358285/viewspace-754808/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26358285/viewspace-754808/