CentOS 5.6 上安装 Oracle 11g R2 单实例数据库详解
一、硬件需求
1、检查物理内存需求(>=256MB)
[root@CentOS ~]# grep MemTotal /proc/meminfo
MemTotal: 1554748 kB
2、检查虚拟内存需求
RAM 1-2GB :swap 1.5*RAM
RAM 2-16GB : swap =RAM
RAM > 16GB : swap 16GB
[root@centos ~]# grep SwapTotal /proc/meminfo
SwapTotal: 2096472 kB
3、查看系统体系架构
[root@centos ~]# grep "model name" /proc/cpuinfo
model name : Intel(R) Core(TM)2 Duo CPU P7450 @ 2.13GHz
[root@centos ~]# uname -am
Linux centos 2.6.9-55.ELsmp #1 SMP Wed May 2 14:28:44 EDT 2007 i686 i686 i386 GNU/Linux
4、查看磁盘空间需求
/tmp 空间必须>=400MB
[root@centos ~]# df -m /tmp
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/sda3 1004 18 936 2% /tmp
如果不够i全年共设置TMP和TMPDIR环境变量
必须至少存在 2.7GB 空闲空间用于安装 Oracle 11g 软件
[root@centos ~]# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/sda1 8069 2875 4785 38% /
none 760 0 760 0% /dev/shm
/dev/sda3 1004 18 936 2% /tmp
/dev/sda6 5035 43 4737 1% /u01
/dev/sda5 4031 723 3104 19% /u02
/dev/hdc 57 57 0 100% /media/cdrecorder
二、软件需求
2.1 操作系统版本需求
The following are the operating sytem requirements for Oracle Database 11g release 1:
Asianux 2 SP2
Asianux 3
Oracle Linux 4
Oracle Linux 5
Red Hat Enterprise Linux 4
Red Hat Enterprise Linux 5
SUSE Enterprise Linux 10
The following or later version of packages for Asianux 2, Oracle Linux 4, and Red Hat Enterprise Linux 4 should be installed:
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.4-2.19
glibc-common-2.3.4-2.19
glibc-devel-2.3.4-2.19
glibc-headers-2.3.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
numactl-0.6.4.i386
sysstat-5.0.5
rpm -qa | grep binutils-2.17.50.0.6
rpm -qa | grep compat-libstdc++-33-3.2.3
rpm -qa | grep elfutils-libelf-0.125
rpm -qa | grep elfutils-libelf-devel-0.125
rpm -qa | grep elfutils-libelf-devel-static-0.125
rpm -qa | grep gcc-4.1.2
rpm -qa | grep gcc-c++-4.1.2
rpm -qa | grep glibc-2.5-24
rpm -qa | grep glibc-common-2.5
rpm -qa | grep glibc-devel-2.5
rpm -qa | grep ksh-20060214
rpm -qa | grep libaio-0.3.106
rpm -qa | grep libaio-devel-0.3.106
rpm -qa | grep libgcc-4.1.2
rpm -qa | grep libgomp-4.1.2
rpm -qa | grep libstdc++-4.1.2
rpm -qa | grep libstdc++-devel-4.1.2
rpm -qa | grep make-3.81
rpm -qa | grep sysstat-7.0.2
rpm -qa | grep elfutils-libelf-devel 1
rpm -qa | grep glibc
rpm -qa | grep glibc-common
rpm -qa | grep glibc-devel
rpm -qa | grep glibc-headers
rpm -qa | grep gcc
rpm -qa | grep gcc-c++
rpm -qa | grep libaio-devel 1
rpm -qa | grep libaio 1
rpm -qa | grep libgcc
rpm -qa | grep libstdc++
rpm -qa | grep libstdc++-devel
rpm -qa | grep make
rpm -qa | grep numactl
rpm -qa | grep sysstat 1
[root@centos ~]# rpm -qa | grep make
-----经检查却如下包-----
elfutils-libelf-devel-0.97-5
libaio-devel-0.3.105-2
libaio-0.3.105-2
sysstat