Centos5上安装ORACLE 11g

 Centos5上安装ORACLE 11g 

 
Centos 5.1上安装Oracle11g
准备工作:磁盘空间大于8G,必需安装“开发工具”和“开发库”。
一、检查是否安装了以下包。(rpm -qa | grep *进行检查)
binutils-2.15.92.0.2-18
compat-libstdc++-33.2.3-47.3
elfutils-libelf-0.97-5
elfutils-libelf-devel-0.97-5
glibc-2.3.9.4-2.19
glibc-common-2.3.9.4-2.19
glibc-devel-2.3.9.4-2.19
gcc-3.4.5-2
gcc-c++-3.4.5-2
libaio-devel-0.3.105-2
libaio-0.3.105-2
libgcc-3.4.5
libstdc++-3.4.5-2
libstdc++-devel-3.4.5-2
make-3.80-5
sysstat-5.0.5
unixODBC-2.2.11
unixODBC-devel-2.2.11

二、建用户组和用户

groupadd oinstall
groupadd dba
useradd -d /oracle/11g -g oinstall -G dba oracle
passwd oracle
mkdir /oracle
mkdir /oracle/11g
chown -R oracle:oinstall /oracle
三、修改系统文件,加入以下内容:
(1) vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
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

(2)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

(3)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

(4)//以ORACLE用户
vi /oracle/11g/.bash_profile
ORACLE_SID=wilson
ORACLE_BASE=/oracle
ORACLE_HOME=$ORACLE_BASE/11g
PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
四、进行图形界面安装

你可能感兴趣的:(oracle,安装,centos,职场,休闲)