RHEL 5 下 安装 Oracle 10g 心得笔记


以下过程完全是个人在RHEL 5 下 安装 Oracle 10g心得笔记,一步一步安装步骤,按照此步骤安装应该不会有问题

1.安装RPM包
rpm -aq | grep libgcc //检查包文件
rpm -Uvh * //安装所有包文件
binutils
compat-db
compat-libstdc++
control-center
gcc
gcc-c++
glibc
glibc-common
libstdc++
libstdc++-devel
make
sysstat
setarch
libXp (to start runInstaller)
---------------------------------------------

2.修改/ect/sysctl.conf
kernel.shmall = 268435456
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
---------------------------------------------

3.生效sysctl.conf
sysctl -p
---------------------------------------------

4.创建ORACLE用户及组
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle //属于oinstall组并支持dba组
passwd oracle
---------------------------------------------

5.建立目录
mkdir /db
chown -R oracle:oinstall /db
---------------------------------------------

6.编辑用户环境变量
vi /home/oracle/.bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
ORACLE_SID=orcl
ORACLE_BASE=/db/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID ORACLE_BASE ORACLE_HOME
PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin
export PATH
---------------------------------------------

7.vi /ect/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
---------------------------------------------

8.vi /ect/pam.d/login
session required /lib/security/pam_limits.so
session required /lib64/security/pam_limits.so //X86_64内核
---------------------------------------------

9.vi /ect/profile
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
---------------------------------------------

10.授权安装
chmod -R 777 Database
./filename -ignoreSysPrereqs 跳过OS检测 (/etc/RedHat-release中的5.1改成4)
./runInstall -

相关内容