安装顺利,没有遇到特别的问题,要注意的是系统的安装包一定要更新一次。详细步骤如下:
1.更新系统安装包:
yum -y install kernel-devel kernel-headers && echo exclude=kernel* >> /etc/yum.conf
yum -y update
yum -y install autoconf automake binutils-devel bison cpp dos2unix ftp gcc gcc-c++ lrzsz python-devel
yum -y install compat-db compat-gcc-34 compat-gcc-34-c++ compat-libstdc++-33 glibc-* glibc-*.i686 libXpm-*.i686 libXp.so.6 libXt.so.6 libXtst.so.6 libgcc_s.so.1 ksh libXp libaio-devel numactl numactl-devel unixODBC unixODBC-devel
2.重启系统,并关闭防火墙
3.vi /etc/sysctl.conf //添加
(
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 8388608000 //物理内存的一半,8G
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
)
/sbin/sysctl -p //使之生效
4.vi /etc/security/limits.conf //添加
(
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
)
5.vi /etc/pam.d/login //添加
(
session required pam_limits.so
)
6.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
)
7.vi /etc/csh.login //添加
(
if( $USER == “oracle” ) then
limit maxproc 16384
limit descriptors 65536
umask 022
endif
)
8.vi /etc/selinux/config //修改 config 文件,使得 SELINUX =disabled
(
SELINUX=disabled
)
9.创建oracle用户
groupadd oinstall
groupadd dba
useradd -m -g oinstall -G dba oracle
passwd oracle
mkdir -p /home/u01/oracle
chown -R oracle:oinstall /home/u01/oracle
chmod -R 775 /home/u01/oracle
mkdir -p /home/u01/oraInventory
chown -R oracle:oinstall /home/u01/oraInventory
chmod -R 775 /home/u01/oraInventory
10.vi /home/oracle/.bash_profile //oracle登录
(
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/home/u01/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME
ORACLE_SID=oramh; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=$ORACLE_HOME/bin:/usr/sbin:$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
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
umask 022
)
11.解压安装文件,以及运行图形化安装界面,先安装数据库文件后再建库。点击下一步即可顺利完成。