[root@localhost ~]# ls 10201_database_linux_x86_64.cpio
10201_database_linux_x86_64.cpio
[root@localhost ~]# gunzip 10201_database_linux_x86_64.cpio.gz
[root@localhost ~]# cpio -idmv < 10201_database_linux_x86_64.cpio

解压oracle包


操作系统准备工作

1.OS版本限制

 oracle10G的版本只支持到RHEL4,生产中建议安装官方认可的操作系统版本

 

[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
[root@localhost ~]# vi /etc/redhat-release
[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 4.3 (Tikanga)

2.磁盘空间限制

  • At least 1 GB of physical RAM

  • The following table describes the relationship between installed RAM and the configured swap space requirement.

    RAMSwap Space
    Up to 512 MB2 times the size of RAM
    Between 1024 MB and 2048 MB1.5 times the size of RAM
    Between 2049 MB and 8192 MBEqual to the size of RAM
    More than 8192 MB0.75 times the size of RAM

  • 400 MB of disk space in the /tmp directory

  • Between 1.5 GB and 3.5 GB of disk space for the Oracle software, depending on the installation type

  • 1.2 GB of disk space for a preconfigured database that uses file system storage (optional)


3.软件包依赖

Red Hat Enterprise Linux 4.0:

binutils-2.15.92.0.2-10.EL4
compat-db-4.1.25-9
control-center-2.8.0-12
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
glibc-2.3.4-2
glibc-common-2.3.4-2
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2

4.主机名和解析地址

[root@localhost ~]# hostname
dba.up.com
[root@localhost ~]# vi /etc/sysconfig/network
[root@localhost ~]# grep -v '^#' /etc/hosts
127.0.0.1               localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
192.168.0.5     dba.up.com dba

5.用户和系统资源限制(PAM)

[root@localhost ~]# cat /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
[root@localhost ~]# sysctl -p
[root@dba ~]# groupadd -g 1000 oinstall
[root@dba ~]# groupadd -g 1001 dba
[root@dba ~]# useradd -u 1000 -g oinstall -G dba oracle
[root@dba ~]# passwd oracle
[root@dba ~]# mkdir -p /u01/oracle
[root@dba ~]# chown -R oracle.oinstall /u01
[root@dba ~]# cat ~oracle/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0
export ORACLE_SID=ora10g
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
[root@dba ~]# source .bash_profile
[root@dba ~]# grep -v '^#' /etc/security/limits.conf
oracle              soft    nproc   2047
oracle              hard    nproc   16384
oracle              soft    nofile  1024
oracle              hard    nofile  65536
[root@dba ~]# grep 'limit' /etc/pam.d/system-auth
session     required      pam_limits.so
[root@dba ~]# xhost +
[root@dba ~]# su - oracle
[oracle@dba ~]$ cd database/
[oracle@dba database]$ ls
doc  install  response  runInstaller  stage  welcome.html
[oracle@dba database]$ pwd
/home/oracle/database
[oracle@dba database]$ ./runInstaller

出现安装提示,按照提示安装就可以了