在Oracle Enterprise Linux R5U7上安装Oracle 11gr2数据库

折腾了好几次,经验是:

包的安装

在安装包里,需要把开发方面的安装包都装上.

另外安装完成后,需要安装的包包括:

cd /media/cdrom/Server
rpm -Uvh binutils-2.*
rpm -Uvh compat-libstdc++-33*
rpm -Uvh compat-libstdc++-33*.i386.rpm
rpm -Uvh elfutils-libelf*
rpm -Uvh gcc-4.*
rpm -Uvh gcc-c++-4.*
rpm -Uvh glibc-2.*
rpm -Uvh glibc-common-2.*
rpm -Uvh glibc-devel-2.*
rpm -Uvh glibc-headers-2.*
rpm -Uvh ksh*
rpm -Uvh libaio-0.*
rpm -Uvh libaio-devel-0.*
rpm -Uvh libgomp-4.*
rpm -Uvh libgcc-4.*
rpm -Uvh libstdc++-4.*
rpm -Uvh libstdc++-devel-4.*
rpm -Uvh make-3.*
rpm -Uvh sysstat-7.*
rpm -Uvh unixODBC-2.*
rpm -Uvh unixODBC-devel-2.*
rpm -Uvh numactl-devel-*

建用户

/usr/sbin/groupadd dba
/usr/sbin/groupadd oinstall
/usr/sbin/useradd -g oinstall -G dba oracle
passwd oracle

修改系统参数

修改/etc/sysctl.conf文件,添加下列命令
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
fs.file-max = 6553600
使配置文件生效
/sbin/sysctl -p

添加下列命令到/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
添加下列命令到/etc/pam.d/login
session required /lib64/security/pam_limits.so
session required pam_limits.so
对于Bourne,Bash或者Korn 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

创建子文件目录,设定所有者,组,还有权限
mkdir -p /u01/app
chown -R oracle:oinstall /u01/app
chmod -R 775 /u01/app

登陆oracle用户
修改umask设置到~/.bash_profile
umask 022
使配置文件生效
. ./.bash_profile
配置ORACLE_BASE
export ORACLE_BASE=/u01/app/oracle

其他的就按照常规的来.

上一篇:Echarts折线图表断点如何补全


下一篇:Oracle Hyperion Planning 11.1 .1:创建与管理应用程序 第1课:Planning概述