Redhat5上面安装oracle10.2.0.1

OS: RHEL 5.2
Oracle : 10.2.0.1
Place: office
Participator: chenzhuo
Date: 2008-10-30

 

1. Install RHEL5U2
==================
/  ext3     13500 MB
swap        2048MB  
physical memory =1G 
 
IP:  192.168.193.8 /255.255.255.0
Hostname: RHEL5
Gateway:  192.168.2.112
DNS: 202.96.209.133
No firewall

 

Languages:
English(USA)
Chinese(P.R. of China)

 

Location : Asia/Shanghai

 

Customize software packages to be installed.
----
X windows System
GNOME Desktop Environment
KDE (K DeskTop Environment )
----
Editors
Graphical Internet
----
Server Cofiguration Tools
Legacy Network Server
----
Development Tools
Legacy Software Development
----
Administration Tools
----
2Check the physical and virtual memory space
 
#grep MemTotal /proc/meminfo      
#grep SwapTotal /proc/meminfo 

 

3Check the installation environment
 
#rpm -q binutils compat-libstdc++ elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel libXp
 
Not installed, according to the installation of dependencies.

 

4. Modify version
oracle10  Incompatible linux5  so Modify  
[root@database ~]#vi /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)替换为redhat-4

 

5. Modify system parameters
[root@database ~]#vi /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

 

[root@database ~]# sysctl -p   使修改生效

 

6. The establishment of user groups and users
 
[root@database ~]# groupadd oinstall
[root@database ~]# groupadd dba
[root@database ~]# usermod -g oinstall -G dba oracle
[root@database ~]# mkdir /db
[root@database ~]# chown -R oracle:oinstall /db

 

7. Modify Oracle user's .bash_profile
 
[root@database ~]#vi /home/oracle/.bash_profile
# .bash_profile

 

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs
#oracle add

export  ORACLE_SID=orcl

export  ORACLE_BASE=/db/oracle

export  ORACLE_HOME=$ORACLE_BASE/product/10.2.0

export  PATH=$PATH:/ORACLE_HOME/bin:$HOME/bin

export  LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib

export  LC_CTYPE=en_US.UTF-8

 

8.set oracle shell
[root@database database] vi /etc/security/limits.conf

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

 

[root@database database] vi /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so


[root@database database] 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

 

9. modify /etc/hosts:
=============
127.0.0.1    RHEL5  localhost.localdomain    localhost
modify
127.0.0.1     localhost.localdomain    localhost
192.168.193.8    RHEL5

 

Oracle用户上传包10201_database_linux32.zip  /db

Oracle用户解压

开始安装,

[root@database database]#cd /db/database

[root@database database]#./ runInstaller
这里是选择高级安装

默认就可以了

这里有一个等待,已经修复了,原来是我的hosts文件里面有问题,这个只要安装上面的修改。
 
安装成功之后,$dbca&创建数据库。