一、安装CentOS 5及关闭selinux(安装Oracle后可以再打开)
系统->管理->安全级别和防火墙->Selinux->禁用
二 、检查安装的软件:rpm -qa |grep xxxxx
binutils
compat-libstdc++
elfutils-libelf
elfutils-libelf-devel
glibc
glibc-common
glibc-devel
gcc
gcc-c++
libaio
libaio-devel
libgcc
libstdc++
libstdc++-devel
make
sysstat
unixODBC
unixODBC-devel
这些软件直接从安装光盘上找
三.建立用户和组(用root操作)
$su -
#groupadd oinstall
#groupadd dba
#useradd -g oinstall -G dba oracle
#passwd oracle
四.建立目录和权限(用root操作)
#mkdir /oracle
#mkdir /oracle/10g
#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
3.
vi /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
4.
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
5.
cd /home/oracle
vi .bash_profile
ORACLE_BASE=/oracle
ORACLE_HOME=$ORACLE_BASE/10g
ORACLE_SID=wilson
PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
6.安装libXp
yum -y install libXp
7.
vi /etc/RedHat-release
将CentOS release 5 (Final) 修改成redhat 4
六.用oracle用户进入linux
进入终端
$cd oralce安装文件目录
$LANG=en
$sh runInstaller
七.安装后启动oracle
$sqlpuls /nolog
$sql> conn sys/密码 as sysdba
$sql> startup
$sql> exit
启动监听:
$cd /oracle/10g/bin
$./lsnrctl start