这里介绍在Red Hat Enterprise Linux Server release 5.7 (Tikanga)下安装Oracle 11.2.0.1.0的过程,本文仅仅是为了写这样安装指导文档而整理在此。仅供参考!
1:下载对应平台的ORACLE 11g安装介质
安装ORACLE,首先要获取安装介质,大部分情况手头都有相关版本的安装介质。如果你手头没有安装介质,那么可以从下面链接获取对应平台的ORACLE安装介质。
强烈建议在安装ORACLE之前,先看一遍Linux Installation Guides 文档,毕竟这是最权威、最全面的资料。这样可以避免你在安装过程中遇到各类奇奇怪怪的问题,下载链接如下所示:
2:检查硬件配置是否满足要求
2.1:内存大小要求
官方文档中,要求物理内存至少需要1G,推荐2G或以上配置,如果是服务器的话,配置肯定比这个高。查看系统内存配置,可以使用下面命令:
检查物理内存
[root@DB-Server ~]# grep MemTotal /proc/meminfo MemTotal: 3968144 kB [root@DB-Server ~]# free -m total used free shared buffers cached Mem: 3875 710 3164 0 85 317 -/+ buffers/cache: 307 3567 Swap: 5887 0 5887 [root@DB-Server ~]#
Note: On Linux, the HugePages feature allocates non-swappable memory for large page tables using memory-mapped files. If you enable HugePages, then you should deduct the memory allocated to HugePages from the available RAM before calculating swap space
Linux Swap大小要求(这是一个指导值,最好根据Linux版本供应商的文档设置。如果不太清楚这些,尽量按照下面要求设置)
检查交换空间(Swap)大小(free命令亦可)
[root@DB-Server ~]# grep SwapTotal /proc/meminfo SwapTotal: 6029304 kB
Automatic Memory Management
从Oracle Database 11g开始,自动内存管理(Automatic Memory Management)要求更多的共享内存(/dev/shm)和文件描述符(file descriptors),共享内存的大小应该只是比MEMROY_MAX_TARGET 和MEMROY_TARGET大。
查看共享内存大小
[root@DB-Server ~]# df -h /dev/shm Filesystem Size Used Avail Use% Mounted on tmpfs 1.9G 927M 1012M 48% /dev/shm [root@DB-Server ~]#
Starting with Oracle Database 11g, the Automatic Memory Management feature requires more shared memory (/dev/shm)and file descriptors. The size of the shared memory must be at least the greater of the MEMORY_MAX_TARGET and MEMORY_TARGET parameters for each Oracle instance on the computer. If the MEMORY_MAX_TARGET parameter or the MEMORY_TARGET parameter is set to a nonzero value, and an incorrect size is assigned to the shared memory, it results in an ORA-00845 error at startup. On Linux systems, if the operating system /dev/shm mount size is too small for the Oracle system global area (SGA) and program global area (PGA), it results in an ORA-00845 error.