Oracle - 11gR2 - 11.2.0.3 - Installation - Gudie

更新时间:2023-10-18 04:26:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

Oracle RAC DB Installation Guide

DOCUMENT ID: REVISION NO: 1.0 NUMBER OF PAGES: 41 STATUS: FOR APPROVAL PREPARED BY: SIGNATURE DATE REVIEWED BY: SIGNATURE DATE REVIEWED BY: SIGNATURE DATE APPROVED BY: SIGNATURE DATE REVIEWED BY: SIGNATURE DATE REVIEWED BY: SIGNATURE DATE APPROVED BY: SIGNATURE DATE

? Hewlett-Packard Ltd., 2010. All rights reserved.

HP Global Method

Oracle RAC DB Installation Guide

Page 1 of 41

253541359.docx

Last changed: 09 March 2015 at 15:05

Oracle RAC DB Installation Guide Oracle 11gR2 Database 11.2.0.3 Installation Guide for HFXS CIM Project

Responsible Department: Infra Responsible Person: Sun, Shili

Distribution Control Copy No. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19.

Role

HFXS CIM Project Manager HFXS CIM Project MOD MES HFXS CIM Project FAB MES HFXS CIM Project EIS HFXS CIM Project FDC HFXS CIM Project DFS HFXS CIM Project RTD HFXS CIM Project MDW HFXS CIM Project FGMS HFXS CIM Project YMS HP CIM Project Manager HP CIM Project Solution Architect HP CIM Project QA Manager HP/MOD MES Project Manager HP/EIS/FDC Project Manager HP/DFS Project Manager HP/MDW/FGMS Project Manager HP/YMS Project Manager

HP/FAB MES/RTD Project Manager

Name

HP Global Method

Oracle RAC DB Installation Guide

Page 1 of 41

253541359.docx

Last changed: 09 March 2015 at 15:05

Oracle RAC DB Installation Guide Revision History

Date

(dd/mm/yy)

31/07/13

Reason/History

Initial draft for review

Revision

1.0

By Whom

Sun, Shili

HP Global Method

Oracle RAC DB Installation Guide

Page 2 of 41

253541359.docx

Last changed: 09 March 2015 at 15:05

Oracle RAC DB Installation Guide Table of Contents

Revision History .................................................................................................................................... 2 1. Basic Information .......................................................................................................................5

1.1. 1.2. 1.3. 1.4. 2.1. 2.2. 2.3. 2.4. 2.5.

RAC Architecture ....................................................................................................................... 5 IP Summary List ........................................................................................................................ 6 HP-UX OS Setting ...................................................................................................................... 7 3Par Share Disk Information .................................................................................................... 12 Preinstallation ......................................................................................................................... 12 Parameter Settings .................................................................................................................. 13 Grid Infrastructure Installation ................................................................................................. 15 Database Software Installation ................................................................................................. 27 Database Creation ................................................................................................................... 31

2. Oracle Database Configuration ............................................................................................... 12

HP Global Method

Oracle RAC DB Installation Guide

Page 3 of 41

253541359.docx

Last changed: 09 March 2015 at 15:05

Oracle RAC DB Installation Guide Proprietary Notice

Hewlett-Packard makes no warranty of any kind with regard to this material, including, but not limited to, the implied warranties of the merchantability and fitness for a particular purpose.

Hewlett-Packard Company shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, or use of this material. Hewlett-Packard Company assumes no responsibility for the use or reliability of its software on equipment that is not furnished by Hewlett-Packard Company.

Copyright: This document contains proprietary information that is protected by copyright. All rights are reserved. No part of this document may be photocopied, reproduced or translated to another program language without prior consent of Hewlett-Packard Company.

HP Global Method

Oracle RAC DB Installation Guide

Page 4 of 41

253541359.docx

Last changed: 09 March 2015 at 15:05

#cd /usr/lib #ls libX*.sl

Oracle RAC DB Installation Guide (8)检查系统是否存在符合的链接文件:

如果不存在需要创建,执行以下命令创建: #cd /usr/lib # cd /usr/lib

# ln -s libX11.3 libX11.sl # ln -s libXIE.2 libXIE.sl # ln -s libXext.3 libXext.sl # ln -s libXhp11.3 libXhp11.sl # ln -s libXi.3 libXi.sl # ln -s libXm.4 libXm.sl # ln -s libXp.2 libXp.sl # ln -s libXt.3 libXt.sl # ln -s libXtst.2 libXtst.sl

(9)检查网络接口:

使用#smh将public与private网卡做好APA,APA端口模式统计如下:

Database MOD MES/FGMS DB FAB MES DB MDW/YMS DB FDC DB 说明:

APA是HP-UX的端口绑定协议,指将两个或多个端口绑定成一个逻辑端口,以便达到load-balance、failover 等功能。

因为MOD MES/FGMS DB是三个节点,此套DB的heartbeat通过cisco heartbeat switch进行心跳信息交互,故将APA模式设置为Active/Standby。其它的DB的heartbeat未通过任何heartbeat switch传输心跳信息,而是node与node之间对接心跳线缆,故设置为Active/Active模式;

HP Global Method

Oracle RAC DB Installation Guide

Public (LAN900) Active/Standby Active/Standby Active/Standby Active/Standby Private (LAN901) Active/Standby Active/Active Active/Active Active/Active Page 10 of 41

253541359.docx

Last changed: 09 March 2015 at 15:05

#vi /etc/hosts

Oracle RAC DB Installation Guide (10)在两个RAC节点上修改/etc/hosts文件,新增IP信息:

10.73.1.25 moddb-rac moddb-rac-scan 10.73.1.26 moddb1 10.73.1.27 moddb2 10.73.1.28 moddb3 10.73.1.29 moddb1-vip 10.73.1.30 moddb2-vip 10.73.1.31 moddb3-vip 192.168.1.26 moddb1-priv 192.168.1.27 moddb2-priv 192.168.1.28 moddb3-priv

(11)配置系统内核参数:

使用命令#kctune可以查看,使用#smh进行更改。如果系统上的kernel值大于以下的推荐值,则可以不做更改,其中shmmax的值为物理内存的一半;

注意:其它DB按照各自的kernel参数调整,下面的表格仅限于MOD MES/FGMS DB;

Parameter executable_stack ksi_alloc_max max_thread_proc maxdsiz maxdsiz_64bit maxfiles maxfiles_lim maxssiz maxssiz_64bit maxuprc msgmni msgtql ncsize nflocks Minimum Value 0 32768 1024 1073741824 (1 GB) 2147483648 (2 GB) 1024 63488 134217728 (128 MB) 1073741824 (1 GB) 3686 4096 4096 35840 4096 Parameter ninode nkthread nproc semmni semmns semmnu semvmx shmmax shmmni shmseg tcp_smallest_anon_port tcp_largest_anon_port udp_smallest_anon_port udp_largest_anon_port Minimum Value 34816 7184 4096 4096 8192 4092 32767 17179869184 4096 512 9000 65500 9000 65500

HP Global Method

Oracle RAC DB Installation Guide

Page 11 of 41

253541359.docx

Last changed: 09 March 2015 at 15:05

Oracle RAC DB Installation Guide 1.4. 3Par Share Disk Information

在HP 3Par Storage上划分出share disk供Oracle ASM使用,/etc/rdisk下的disk id需要在所有DB节点保持一致,并且每个节点的每个disk id都要指到相同的物理分区: #ls /dev/rdisk/disk13*

2. Oracle Database Configuration

使用到的软件包:

p10404530_112030_HPUX-IA64_1of7 (Oracle 11gR2 database 1) p10404530_112030_HPUX-IA64_2of7 (Oracle 11gR2 database 2)

p10404530_112030_HPUX-IA64_3of7 (Oracle 11gR2 grid infrastructure pkg)

2.1. Preinstallation

(1)在RAC所有节点上创建用户和组:

#groupadd –g 501 oinstall #groupadd –g 502 dba #groupadd –g 503 oper #groupadd –g 504 asmadmin #groupadd –g 505 asmoper

#groupadd –g 506 asmdba

#useradd –m –u 600 –g oinstall –G dba,asmdba,oper oracle

#useradd –m –u 601 –g oinstall –G asmadmin,asmdba,asmoper,oper,dba grid #passwd oracle 设置密码 #passwd grid 设置密码

(2)存储划分share disk后,在每个节点上修改share disk的用户为grid,组为asmadmin,权限设置为660: #chown –R grid:asmadmin /dev/rdisk/disk13*

#chmod –R 660 /dev/rdisk/disk13*

HP Global Method

Oracle RAC DB Installation Guide

Page 12 of 41

253541359.docx

Last changed: 09 March 2015 at 15:05

#mkdir -p /grid/app

Oracle RAC DB Installation Guide (3)在两个节点上创建软件的安装目录,并修改权限及所有者和组:

#mkdir -p /oracle/app

#chown -R oracle:oinstall /oracle #chmod -R 755 /oracle #chown -R grid:oinstall /grid #chmod -R 755 /grid

2.2. Parameter Settings

(1) 在moddb1上设置oracle与grid用户的环境变量:

切换到oracle用户,修改如下的环境变量; # su - oracle $ vi ~/. profile

ORACLE_BASE=/oracle/app

ORACLE_HOME=/oracle/app/product/11.2.0 ORACLE_SID=moddb1 ORACLE_UNQNAME=moddb1 ORACLE_TERM=xterm TEMP=/tmp TEPDIR=/tmp

PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:$PATH:.

export PATH ORACLE_BASE ORACLE_HOME ORACLE_SID ORACLE_UNQNAME ORACLE_TERM TEMP TEPDIR umask 022

切换到grid用户,修改如下的环境变量; # su - grid $ vi ~/.profile

HP Global Method

Oracle RAC DB Installation Guide

Page 13 of 41

253541359.docx

Last changed: 09 March 2015 at 15:05

ORACLE_SID=+ASM1

Oracle RAC DB Installation Guide ORACLE_BASE=/grid/app ORACLE_HOME=/grid/11.2.0/grid

ORACLE_TERM=xterm TEMP=/tmp TEPDIR=/tmp

PATH=$ORACLE_HOME/bin:$PATH:.

export PATH ORACLE_BASE ORACLE_HOME ORACLE_SID ORACLE_TERM TEMP TEPDIR umask 022

(2) 在moddb2上设置oracle与grid用户的环境变量:

切换到oracle用户,修改如下的环境变量; # su - oracle $ vi ~/. profile

ORACLE_BASE=/oracle/app

ORACLE_HOME=/oracle/app/product/11.2.0 ORACLE_SID=moddb2 ORACLE_UNQNAME=moddb2 ORACLE_TERM=xterm TEMP=/tmp TEPDIR=/tmp

PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:$PATH:.

export PATH ORACLE_BASE ORACLE_HOME ORACLE_SID ORACLE_UNQNAME ORACLE_TERM TEMP TEPDIR umask 022

切换到grid用户,修改如下的环境变量; # su - grid $ vi ~/.profile

ORACLE_BASE=/grid/app

HP Global Method

Oracle RAC DB Installation Guide

Page 14 of 41

253541359.docx

Last changed: 09 March 2015 at 15:05

Oracle RAC DB Installation Guide (10)输入moddb2的Hostname名称和VIP的名称。

(11)节点添加完毕后,选择SSH Connectivity进行SSH等效性测试。

(12)选择Test进行测试,测试成功后,下一步继续安装。

(13)设置lan900为public,lan901为private。

HP Global Method

Oracle RAC DB Installation Guide

Page 20 of 41

253541359.docx

Last changed: 09 March 2015 at 15:05

(14)选择ASM管理。

Oracle RAC DB Installation Guide

(15)新建名为OCRVOTE的diskgroup,选择external模式,打开change discovery path后,输入/dev/rdisk进行磁盘发现动作(系统默认会自动发现),在出现的磁盘中,选择规划的相应磁盘,打上勾即可。

HP Global Method

Oracle RAC DB Installation Guide

Page 21 of 41

253541359.docx

Last changed: 09 March 2015 at 15:05

Oracle RAC DB Installation Guide (16)设置SYS与ASMSNMP的密码,有错误提示,这里指我们设置的密码没有达到密码复杂度,可以忽略。

(17)选择相应的group,默认即可。

HP Global Method

Oracle RAC DB Installation Guide

Page 22 of 41

253541359.docx

Last changed: 09 March 2015 at 15:05

(18)选择安装的目录。

Oracle RAC DB Installation Guide

(19)进行安装前的预检查,因我们未安装cvuqdisk这个包,且使用的是external的冗余模式,所以会出现这些提醒,选择Ignore All进行忽略操作。

HP Global Method

Oracle RAC DB Installation Guide

Page 23 of 41

253541359.docx

Last changed: 09 March 2015 at 15:05

(20)选择install进行安装。

Oracle RAC DB Installation Guide

(21)安装过程中,提醒用户使用root账户在每个节点上运行如下两个脚本。

注意:两个脚本现在第一个节点上全部执行完毕,再在其它节点依次执行,切勿在所有节点同时执行。 /grid/oraInventory/orainstRoot.sh /grid/11.2.0/grid/root.sh

(22)依次在每个节点上执行以上的脚本(第二个脚本执行时间较长),直至脚本执行完成后,返回到图形界面上,继续进行grid软件的安装。

(23)grid软件的安装后,会提示[INS-20802]的错误,这是因为我们没有安装cluster verification utility导致,忽略该错误完成安装。

(24)在grid用户下,执行$crs_stat –t可以查看服务开启状态,其中gsd和oc4j会显示为OFFLINE,不建议去删除或者启用它们。

HP Global Method

Oracle RAC DB Installation Guide

Page 24 of 41

253541359.docx

Last changed: 09 March 2015 at 15:05

本文来源:https://www.bwwdw.com/article/u6tf.html

Top