yum install setarch-2* make-3* glibc-2* libaio-0* compat-libstdc++-33-3* compat-gcc-34-3* compat-gcc-34-c++-3* gcc-4* libXp-1* openmotif-2* compat-db-4* binutils-* control-center-* gcc-c++-* glibc-common-* gnome-libs-* libstdc++-* libstdc++-devel-* -y
2.设置内核参数(/etc/sysctl.conf)
vi /etc/sysctl.conf
# semaphores: semmsl, semmns, semopm, semmni
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 101365
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
net.ipv4.ip_local_port_range = 1024 65000
#/sbin/sysctl -p (使其立刻生效)
3.用户资源设置
vi /etc/security/limits.conf
Oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
4.用户shell资源设置
/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
vi /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
7.添加oracle相关用户和组,并为其设置密码
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/useradd -g oinstall -G dba oracle -d /u01
# chmod -R 777 /u01
# chown oracle:oinstall /u01
# passwd oracle
su - oracle(切换到oracle用户)
vi .bash_profile
添加如下内容
ORACLE_BASE=/u01; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=WILLSON;export ORACLE_SID
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;export CLASSPATH
图形化界面安装
打开终端,./runInstaller
16.安装完成后需要以root用户运行2个脚本
sh /u01/oraInventory/orainstRoot.sh
sh /u01/product/10.2.0/db_1/root.sh
输入dbca创建数据库
netca创建监听器
评论