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
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22741583/viewspace-684268/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22741583/viewspace-684268/