VmwareServer Linux4安装Oracle10G
时间:2010-09-08 来源:jasoname
1、安装包
2、建组以及目录
groupadd oinstall
groupadd dba
cd /
mkdir -p /u01/oracle
useradd -g oinstall -G dba -d /u01/oracle oracle
passwd oracle
chown -R oracle:oinstall u01
/etc/sysctl.conf
kernel.sem = 250 32000 100 128
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
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
# /sbin/sysctl -p
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
su - oracle
vi .bash_profile
ORACLE_BASE=/u01
ORACLE_HOME=$ORACLE_BASE/oracle
ORACLE_SID=orcl
PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
接下来执行./runInstaller就可以了一路下来都是图像界面。相信大家在Windows都装过吧。
/u01/oraInventory/orainstRoot.sh
/u01/oracle/root.sh