好文档 - 专业文书写作范文服务资料分享网站

Oracle 11g R2+RAC+ASM+OracleLinux6.4安装详解(图)

天下 分享 时间: 加入收藏 我要投稿 点赞

Oracle 11g R2+RAC+ASM+OracleLinux6.4安装详解

2014-12-08 18:10:28

(图)

分类: Oracle

一、版本说明

发现网上相关文章很多但是不是很专,因此细化版本为了使文章更加实用。 这次搭建的是Oracle 11g R2 11.2.0.4的RAC环境,使用的操作系统版本为Oracle Linux 6.4

点击(此处)折叠或打开

1. [root@node1 ~]# lsb_release -a

2. LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphi

cs-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch 3. Distributor ID: OracleServer

4. Description: Oracle Linux Server release 6.4 5. Release: 6.4 6. Codename: n/a

内核版本:

点击(此处)折叠或打开 1. [root@node1 ~]# uname -r 2. 2.6.39-400.17.1.el6uek.x86_64

UEK代表Unbreakable Enterprise Kernel,是Oracle专门为Oracle Linux定制的内核,可以提供在线支持和对数据库的支持,算是OracleLinux的卖点之一。(本文中一些配置过程会因实用UEK版本而得到简化)

二、Oracle 11g R2 RAC安装整体步骤

? ? ? ? ?

1.服务器准备 (system, storage, and network administration): 安装操作系统并升级到满足Oracle安装要求的版本。 创建安装所需要的组、用户以及软件的家目录。

设置GNS域名如果您打算部署GNS,并且完成网络地址在DNS和服务器上的配置。 设置所要求的存储。

将所有安装文件拷贝到一个节点上。

2.安装Oracle Grid集群基础架构, 包括Oracle Clusterware和Oracle ASM (system and storage administration):

为集群安装Oracle Grid 基础架构软件。在安装过程中,Fixup脚本进行操作系统参数、SSH和用户环境变量等参数的附加调整。

升级Oracle Clusterware和Oracle ASM到最新补丁。 3.安装Oracle RAC (database administration): 安装Oracle RAC

? ? ?

? ?

打补丁到最新版本 完成安装后的调试

三、详细安装过程及说明(参考官方文档)

1.通过SecureCRT或TerminalX建立命令行连接。

2.在每一个节点上添加安装Oracle Grid的用户、组和家目录,并设置权限。

点击(此处)折叠或打开

1. # /usr/sbin/groupadd -g 1000 oinstall 2. # /usr/sbin/groupadd -g 1020 asmadmin 3. # /usr/sbin/groupadd -g 1021 asmdba 4. # /usr/sbin/groupadd -g 1022 asmoper 5. # /usr/sbin/groupadd -g 1031 dba 6. # /usr/sbin/groupadd -g 1032 oper

7. # useradd -u 1100 -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid 8. # useradd -u 1101 -g oinstall -G dba,asmdba,oper oracle 9. # mkdir -p /u01/app/11.2.0/grid 10. # mkdir -p /u01/app/grid 11. # chown -R grid:oinstall /u01 12. # mkdir /u01/app/oracle

13. # chown oracle:oinstall /u01/app/oracle 14. # chmod -R 775 /u01/

参照官方文档,采用GI与DB分开安装和权限的策略,对于多实例管理有利。

3.检查服务器各个节点的配置是否符合安装要求

I.服务器硬盘空间要求 /tmp目录大小至少:1GB

安装Grid Infrastracture所需空间:6.6GB 安装Oracle Database所需空间:4GB

此外安装过程中分析、收集、跟踪文件所需空间:10GB

建议总共至少30GB,放心!(此处不包含ASM或NFS的空间需求)

II.服务器内存要求

内存大小:至少2.5GB Swap大小:

当内存为2.5GB-16GB时,Swap需要大于等于系统内存。 当内存大于16GB时,Swap等于16GB即可。

III.检查和调试代码

?

查看内存及Swap大小的命令如下。 点击(此处)折叠或打开

1. # grep MemTotal /proc/meminfo 2. # grep SwapTotal /proc/meminfo

?

查看/tmp目录以及配置单独lv的命令如下。

点击(此处)折叠或打开 1. # df -h /tmp

2. # lvcreate -L 2G -n lv_tmp vg_temp 3. # mount /dev/vg_temp/lv_tmp /tmp 4. # df -h /tmp

4.设置操作系统相关参数

这一项在非Oracle Linux的操作系统中算是一项比较繁琐的工作,然而我们这次安装的版本是Oracle Linux 6.4 with Unbreakable Enterprise

Kernel,因此我们有了更简单的办法,就是通过安装Oracle

Preinstallation RPM来实现相关操作系统参数的调整和软件包的安装。 这个安装包主要完成以下工作:

?

Automatically downloads and installs any additional RPM packages needed for installing Oracle Grid Infrastructure and Oracle Database, and resolves any dependencies

?

Creates an oracle user, and creates the oraInventory (oinstall) and OSDBA (dba) groups for that user

?

As needed, sets sysctl.conf settings, system startup parameters, and driver parameters to values based on recommendations from the Oracle Preinstallation RPM program

? ?

Sets hard and soft resource limits

Sets other recommended parameters, depending on your kernel version

此安装包位于操作系统安装盘的Packages目录下。

点击(此处)折叠或打开

1. # cd /mnt/install_DVD 2. # cd Packages

3. # ll | grep preinstall

4. -rw-r--r-- 1 root root 15524 Jan 16 2013 oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm

5. # rpm -ivh oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm

安装包修改/etc/sysctl.conf的内容如下:

其中标有oracle-rdbms-server-11gR2-preinstall字样注释的便是安装包所添加的参数。 点击(此处)折叠或打开 1. # cat /etc/sysctl.conf

2. # Kernel sysctl configuration file for Red Hat Linux 3. #

4. # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and 5. # sysctl.conf(5) for more details. 6.

7. # Controls IP packet forwarding 8. net.ipv4.ip_forward = 0 9.

10. # Controls source route verification 11. net.ipv4.conf.default.rp_filter = 1 12.

13. # Do not accept source routing

14. net.ipv4.conf.default.accept_source_route = 0 15.

16. # Controls the System Request debugging functionality of the kernel 17. kernel.sysrq = 0 18.

19. # Controls whether core dumps will append the PID to the core filename. 20. # Useful for debugging multi-threaded applications. 21. kernel.core_uses_pid = 1 22.

23. # Controls the use of TCP syncookies 24. net.ipv4.tcp_syncookies = 1 25.

26. # Disable netfilter on bridges.

27. net.bridge.bridge-nf-call-ip6tables = 0 28. net.bridge.bridge-nf-call-iptables = 0 29. net.bridge.bridge-nf-call-arptables = 0 30.

31. # Controls the default maxmimum size of a mesage queue 32. kernel.msgmnb = 65536 33.

34. # Controls the maximum size of a message, in bytes 35. kernel.msgmax = 65536 36.

37. # Controls the maximum shared segment size, in bytes 38.

39. # Controls the maximum number of shared memory segments, in pages 40.

Oracle 11g R2+RAC+ASM+OracleLinux6.4安装详解(图)

Oracle11gR2+RAC+ASM+OracleLinux6.4安装详解2014-12-0818:10:28(图)分类:Oracle一、版本说明发现网上相关文章很多但是不是很专,因此细化版本为了使文章更加实用。这次搭建的是Oracle11gR211.2.0.4的RAC环境,使用的
推荐度:
点击下载文档文档为doc格式
3t3cc0xctf2teb88j4i568ub00wtu60063i
领取福利

微信扫码领取福利

微信扫码分享