本文详细介绍了如何在 Oracle/RedHat Enterprise Linux 5.4 (x86, x86_64) 上安装 Oracle11gR2 参考文档
Oracle Database Quick Installation Guide 11g Release 2 (11.2) for Linux x86 E10857-01 August 2009 Oracle Grid Infrastructure Installation Guide 11g Release 2 (11.2) for Linux E10812-03 August 2009
-- 适用范围
本文档主要以 Linux + Oracle11gR2 RAC安装为主,详细说明了安装和配置步骤
Oracle11gR2 RAC+存储使用ASM (包括RAC One) Oracle11gR2 单机+存储使用ASM
RAC One 与RAC的主要区别是使用dbca创建数据库时选择RAC ONE
###################################################################### 一. 准备 SCAN 解析方式(仅适用于RAC)
######################################################################
-- 本步仅适用于RAC,在RAC环境中可以使用 DNS Server 解析 SCAN, 也可以使用hosts文件解析 Oracle 推荐使用 DNS Server.
Oracle strongly recommends that you do not configure SCAN VIP addresses in the hosts file. Use DNS resolution for SCAN VIPs. If you use the hosts file to resolve SCANs, then you will only be able to resolve to one IP address and you will have only one SCAN address.
With 11gR2 the /etc/host hack to bypass using DNS to resolve the SCAN IP no longer works. You must have SCAN IP setup in your DNS to install GRID successfully.
1) 方式一: 配置 DNS Server
(必须采用一台单独的Windows Server 做 DNS server) 在 DNS 中加入 一个 hostname 对应3个不同的IP
[root@oelnode1 11gr2]# nslookup scan.olive.com Server: 172.17.78.10 Address: 172.17.78.10#53
Name: scan.olive.com Address: 172.17.78.122 Name: scan.olive.com Address: 172.17.78.123 Name: scan.olive.com Address: 172.17.78.121
2) 方式二: 配置 /etc/hosts
-- 如果不使用 DNS Server, 则可以在 /etc/hosts 中加入下一行 172.17.78.151 rhscan
###################################################################### 二. 准备环境
######################################################################
1. 安装OS
大部分采用默认安装
-- (Red Hat Enterprise Linux 5.4 x86 32bit) -- (Red Hat Enterprise Linux 5.4 x86_64 64bit)
1) Desktop Envirionments: 只选择 GNOME 2) Applications: 全部不选 3) Development : 全部不选 4) Servers: 只选一个 FTP SERVER 5) Base System: 使用默认, 一共有6个: Administration Tool, Base, Java,
Dialup Networking support, Legacy software support, X Windows system 6) Language: 使用默认,全不选
2. 关闭防火墙
[root@rhnode2 sysconfig]# iptables -L Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
3. 关闭SELinux
vi /etc/selinux/config 确保以下内容 SELINUX=disabled
[root@rh5node4 ~]# sestatus
SELinux status: disabled [root@rh5node4 ~]#
4. OS 没有安装 Oracle Validated RPM 包 OS 没有运行 Installation Fixup Scripts
5. 准备 ORACLE 11gR2 介质
-- 11.2.0.1 介质(3个包) x86
[root@oel54 softwares]# md5sum *.zip
81e6288078b2b54068959b8df4ae789d linux_11gR2_database_1of2.zip aa4caca507ca0493444be84d0b11c647 linux_11gR2_database_2of2.zip 38ff5f87dee3fa40d89ab16918c074c1 linux_11gR2_grid.zip
-- 11.2.0.1 介质(3个包) x86_64
b86b3f97a55745302036ff2c8bb4df9d linux.x64_11gR2_database_1of2.zip f070b470de2dbdf44d4e7f28a2d67e93 linux.x64_11gR2_database_2of2.zip eae96ea4dd53cc0c663e86602e843eb2 linux.x64_11gR2_grid.zip
-- 11.2.0.3 介质(3个包) x86_64
[root@rhnode1 softwares]# md5sum *.zip
bdbf8e263663214dc60b0fdef5a30b0a p10404530_112030_Linux-x86-64_1of7.zip e56b3d9c6bc54b7717e14b6c549cef9e p10404530_112030_Linux-x86-64_2of7.zip 695cbad744752239c76487e324f7b1ab p10404530_112030_Linux-x86-64_3of7.zip
6. 准备附加软件包(OS包和 ASMLib包可选)
-- RedHat 5.4 x86
E:\\Home\\02_Softwares\\02_Oracle>md5sum package_on_redhat54_x86_for_ora11gr2.tar.gz 42957cf5b036c2d794b3bb215e2e5f95 *package_on_redhat54_x86_for_ora11gr2.tar.gz
-- RedHat 5.4 x86_64
E:\\Home\\02_Softwares\\02_Oracle>md5sum package_on_redhat54_x64_for_ora11gr2.tar.gz d4ce51f69bfb5845affbb48b162ede2b *package_on_redhat54_x64_for_ora11gr2.tar.gz
7. 检查2个节点的时间 (仅适用于RAC) 不需要配置NTP Server
###################################################################### 三. 检查硬件要求
######################################################################
1) 内存最小需要:1.5G
2) 系统交换区SWAP最小需要:1.5GB 或2倍内存容量的空间,如果内存大于等于2GB那么SWAP在1倍或2倍内存容量之间。
Available RAM Swap Space Required Between 1 GB and 2 GB 1.5 times the size of RAM Between 2 GB and 16 GB Equal to the size of RAM More than 16 GB 16 GB
[root@rhnode1 softwares]# free -m
total used free shared buffers cached
Mem: 2007 1925 81 0 3 1767 -/+ buffers/cache: 154 1852 Swap: 4031 0 4031
3) /tmp最小需要:1GB
[root@rhnode1 softwares]# df -k /tmp
Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup-lv_root
26391624 5664552 19386452 23% /
4) 磁盘空间最小需要:4.5GB
5) 系统结构必须是:32位 or 64 位
可以用以下命令检测系统是否符合安装要求:
# grep MemTotal /proc/meminfo # grep SwapTotal /proc/meminfo # df -k /tmp # free # uname -m
-- RedHat 5.4 x86
[root@rhnode1 ~]# grep SwapTotal /proc/meminfo SwapTotal: 5701624 kB
[root@rhnode1 ~]# grep MemTotal /proc/meminfo MemTotal: 3652264 kB
[root@rhnode1 ~]# df -k /tmp
Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00
14664528 5128336 8779252 37% /
[root@rhnode1 ~]# free
total used free shared buffers cached
Mem: 3652264 3537360 114904 0 20964 2412344 -/+ buffers/cache: 1104052 2548212 Swap: 5701624 71232 5630392
-- RedHat 5.4 x86_64
###################################################################### 四. 检查软件要求
######################################################################
1. 查看系统信息
-- RedHat 5.4 x86
[root@rhnode1 network-scripts]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.4 (Tikanga)
[root@rhnode1 network-scripts]# uname -rm 2.6.18-164.el5 i686
-- RedHat 5.4 x86_64
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库Oracle11gRAC安装手册在线全文阅读。
相关推荐: