Linux下搭建Oracle11g RAC(6)----安装Grid Infrastructure

从此步骤开始,我们正式安装Grid软件:

① 以grid用户登录图形界面,执行/home/grid/grid/runInstaller,进入OUI的图形安装界面:

② 进入OUI安装界面后,选择第3项,跳过软件更新,Next:

③ 选择集群的Grid Infrastructure,Next:

④ 选择 advanced Installation,Next:

⑤ 语言选择默认,English,Next:

⑥ 去掉Configure GNS选项,按照之前表格输入Cluster Name:scan-cluster,SCAN Name:scan-cluster.localdomain。Next:

⑦ 单击Add,添加第2个节点,Next:

⑧ 确认网络接口,Next:

⑨ 选择ASM,作为存储,Next:

⑩ 输入ASM磁盘组名,这里命名为GRIDDG,冗余策略选择External外部,AU大小选择默认1M,ASM磁盘选择VOL1,VOL2。Next:

? 选择给ASM的SYS、ASMSNMP用户配置为相同的口令,并输入口令,Next:

? 选择不使用IPMI,Next:

? 给ASM指定不同的组,Next:

? 选择GRID软件的安装路径,其中ORACLE_BASE,ORACLE_HOME均选择之前已经配置好的,可参照配置信息。这里需要注意GRID软件的ORACLE_HOME不能是ORACLE_BASE的子目录。

? 选择默认的Inventory,Next:

? 检查出现告警,提示在所有节点上缺失cvuqdisk-1.0.9-1软件包。

可以选择忽略,直接进入下一步安装。也可以从grid安装文件的rpm目录下获取该RPM包,然后进行安装。

node1:


[[email protected] rpm]# pwd

/home/grid/grid/rpm

[[email protected] rpm]# ll

total 12

-rwxr-xr-x 1 root root 8551 Sep 22  2011 cvuqdisk-1.0.9-1.rpm

[[email protected] rpm]# rpm -ivh cvuqdisk-1.0.9-1.rpm

Preparing…                ########################################### [100%]

Using default group oinstall to install package

1:cvuqdisk               ########################################### [100%]

[[email protected] rpm]#

node2:


[[email protected] ~]# ll

total 96

-rw——- 1 root root  1371 Apr 20 14:48 anaconda-ks.cfg

drwxr-xr-x 2 root root  4096 Apr 26 11:20 asm_rpm

-rwxr-xr-x 1 root root  8551 Apr 27 09:27 cvuqdisk-1.0.9-1.rpm

-rw-r–r– 1 root root 51256 Apr 20 14:48 install.log

-rw-r–r– 1 root root  4077 Apr 20 14:48 install.log.syslog

drwxr-xr-x 2 root root  4096 Apr 24 10:45 shell

[[email protected] ~]# export CVUQDISK_GRP=oinstall

[[email protected] ~]# rpm -ivh cvuqdisk-1.0.9-1.rpm

Preparing…                ########################################### [100%]

1:cvuqdisk               ########################################### [100%]

[[email protected] ~]#

在所有节点上安装完cvuqdisk-1.0.9-1软件后,重新执行预检查,不再有警告信息。

? 进入安装GRID安装之前的概要信息,Install进行安装:

? 根据提示以root用户分别在两个节点上执行脚本:

执行/u01/app/oraInventory/orainstRoot.sh脚本:

node1:


[[email protected] ~]# /u01/app/oraInventory/orainstRoot.sh

Changing permissions of /u01/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.

The execution of the script is complete.

[[email protected] ~]#

node2:


[[email protected] ~]# /u01/app/oraInventory/orainstRoot.sh

Changing permissions of /u01/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.

The execution of the script is complete.

[[email protected] ~]#

执行/u01/app/11.2.0/grid/root.sh脚本:

node1:


[[email protected] ~]# /u01/app/11.2.0/grid/root

root.sh         rootupgrade.sh

[[email protected] ~]# /u01/app/11.2.0/grid/root.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:

ORACLE_OWNER= grid

ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:

Copying dbhome to /usr/local/bin …

Copying oraenv to /usr/local/bin …

Copying coraenv to /usr/local/bin …

Creating /etc/oratab file…

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params

Creating trace directory

OLR initialization - successful

root wallet

root wallet cert

root cert export

peer wallet

profile reader wallet

pa wallet

peer wallet keys

pa wallet keys

peer cert request

pa cert request

peer cert

pa cert

peer root cert TP

profile reader root cert TP

pa root cert TP

peer pa cert TP

pa peer cert TP

profile reader pa cert TP

profile reader peer cert TP

peer user cert

pa user cert

Adding Clusterware entries to inittab

CRS-2672: Attempting to start ‘ora.mdnsd‘ on ‘node1‘

CRS-2676: Start of ‘ora.mdnsd‘ on ‘node1‘ succeeded

CRS-2672: Attempting to start ‘ora.gpnpd‘ on ‘node1‘

CRS-2676: Start of ‘ora.gpnpd‘ on ‘node1‘ succeeded

CRS-2672: Attempting to start ‘ora.cssdmonitor‘ on ‘node1‘

CRS-2672: Attempting to start ‘ora.gipcd‘ on ‘node1‘

CRS-2676: Start of ‘ora.gipcd‘ on ‘node1‘ succeeded

CRS-2676: Start of ‘ora.cssdmonitor‘ on ‘node1‘ succeeded

CRS-2672: Attempting to start ‘ora.cssd‘ on ‘node1‘

CRS-2672: Attempting to start ‘ora.diskmon‘ on ‘node1‘

CRS-2676: Start of ‘ora.diskmon‘ on ‘node1‘ succeeded

CRS-2676: Start of ‘ora.cssd‘ on ‘node1‘ succeeded

ASM created and started successfully.

Disk Group GRIDDG created successfully.

clscfg: -install mode specified

Successfully accumulated necessary OCR keys.

Creating OCR keys for user ‘root‘, privgrp ‘root‘..

Operation successful.

CRS-4256: Updating the profile

Successful addition of voting disk 9516d145c0254f9ebf50064a6a916182.

Successfully replaced voting disk group with +GRIDDG.

CRS-4256: Updating the profile

CRS-4266: Voting file(s) successfully replaced

##  STATE    File Universal Id                File Name Disk group

–  —–    —————–                ——— ———

1. ONLINE   9516d145c0254f9ebf50064a6a916182 (ORCL:VOL1) [GRIDDG]

Located 1 voting disk(s).

CRS-2672: Attempting to start ‘ora.asm‘ on ‘node1‘

CRS-2676: Start of ‘ora.asm‘ on ‘node1‘ succeeded

CRS-2672: Attempting to start ‘ora.GRIDDG.dg‘ on ‘node1‘

CRS-2676: Start of ‘ora.GRIDDG.dg‘ on ‘node1‘ succeeded

CRS-2672: Attempting to start ‘ora.registry.acfs‘ on ‘node1‘

CRS-2676: Start of ‘ora.registry.acfs‘ on ‘node1‘ succeeded

Configure Oracle Grid Infrastructure for a Cluster … succeeded

[[email protected] ~]#

node2:


[[email protected] ~]# /u01/app/11.2.0/grid/root.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:

ORACLE_OWNER= grid

ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:

Copying dbhome to /usr/local/bin …

Copying oraenv to /usr/local/bin …

Copying coraenv to /usr/local/bin …

Creating /etc/oratab file…

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params

Creating trace directory

OLR initialization - successful

Adding Clusterware entries to inittab

CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node node1,

number 1, and is terminating

An active cluster was found during exclusive startup, restarting to join the cluster

Configure Oracle Grid Infrastructure for a Cluster … succeeded

[[email protected] ~]#

此时,集群件相关的服务已经启动。当然,ASM实例也将在两个节点上启动。


[[email protected] ~]# su - grid

node1-> crs_stat -t

Name           Type           Target    State     Host

————————————————————

ora.GRIDDG.dg  ora….up.type ONLINE    ONLINE    node1

ora….N1.lsnr ora….er.type ONLINE    ONLINE    node1

ora.asm        ora.asm.type   ONLINE    ONLINE    node1

ora.cvu        ora.cvu.type   ONLINE    ONLINE    node1

ora.gsd        ora.gsd.type   OFFLINE   OFFLINE

ora….network ora….rk.type ONLINE    ONLINE    node1

ora….SM1.asm application    ONLINE    ONLINE    node1

ora.node1.gsd  application    OFFLINE   OFFLINE

ora.node1.ons  application    ONLINE    ONLINE    node1

ora.node1.vip  ora….t1.type ONLINE    ONLINE    node1

ora….SM2.asm application    ONLINE    ONLINE    node2

ora.node2.gsd  application    OFFLINE   OFFLINE

ora.node2.ons  application    ONLINE    ONLINE    node2

ora.node2.vip  ora….t1.type ONLINE    ONLINE    node2

ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    node1

ora.ons        ora.ons.type   ONLINE    ONLINE    node1

ora….ry.acfs ora….fs.type ONLINE    ONLINE    node1

ora.scan1.vip  ora….ip.type ONLINE    ONLINE    node1

node1->

? 执行完上述脚本之后,单击OK,Next,进入下一步。

? 最后,单击close,完成GRID软件在双节点上的安装。

至此,GRID集群件安装成功!!!

时间: 2024-08-11 05:38:02

Linux下搭建Oracle11g RAC(6)----安装Grid Infrastructure的相关文章

Linux下搭建Oracle11g RAC(3)----创建用户及配置相关文件

配置11gR2 RAC需要安装Oracle Grid Infrastructure软件.Oracle数据库软件,其中Grid软件等同于Oracle 10g的Clusterware集群件.Oracle建议以不同的用户分别安装Grid Infrastructure软件.Oracle数据库软件,我们这里以grid用户安装Grid Infrastructure,oracle用户安装Oracle数据库软件.并且grid.oracle用户需要属于不同的用户组.在配置RAC时,还要求这两个用户在RAC的不同节

Linux下搭建Oracle11g RAC(5)----配置ASM磁盘

将共享磁盘格式化.然后用asmlib将其配置为ASM磁盘,用于将来存放OCR.Voting Disk和数据库用. 注意:只需在其中1个节点上格式化就可以,接下来我们选择在node1节点上格式化. 这里我们以asmlib软件来创建ASM磁盘,而不使用raw disk,而且从11gR2开始,OUI的图形界面已经不再支持raw disk. 格式化共享磁盘 ① 以root用户分别在两个节点上执行fdisk命令,查看现有硬盘分区信息: node1: [[email protected] ~]# fdisk

Linux下搭建Oracle11g RAC(4)----配置oracle,grid用户SSH对等性

虽然在安装软件的过程中,oracle会自动配置SSH对等性,建议在安装软件之前手工配置. 配置oracle用户对等性: node1: [[email protected] ~]# su - oracle node1-> env | grep ORA ORACLE_UNQNAME=devdb ORACLE_SID=devdb1 ORACLE_BASE=/u01/app/oracle ORACLE_HOSTNAME=node1.localdomain ORACLE_TERM=xterm ORACLE

Linux下搭建Oracle11g RAC(1)----IP分配与配置IP

首先需要说明的,我的RAC搭建不是在虚拟机上完成的,而是在实际部署中,二者之间有些许差异,本人水平有限,请见谅. 其中,每台机器至少需要配置3个IP地址,在安装操作系统的过程中,我们需要配置公网IP和私有IP即可,虚拟IP在安装集群件时分配. Public IP.Virtual IP.SCAN IP必须配置在同一网段. private IP与他们不能在同一网段内. SCAN IP是Oracle 11g新推出的,在配置11g RAC时需要指定. Hostname Short Hostname Ty

Linux下搭建无人执守安装服务器

Linux下搭建无人执守安装服务器 实验概述 原理和概念: 1:什么是PXE ? 严格来说,PXE 并不是一种安装方式,而是一种引导的方式.进行 PXE 安装的必要条件是要安装的计算机中包含一个 PXE 支持的网卡(NIC),即网卡中必须要有 PXE Client.PXE (Pre-bootExecution Environment)协议使计算机可以通过网络启动. 网卡中必须有PXE芯片 协议分为client 和 server 端,PXE client 在网卡的 ROM 中,当计算机引导时,BI

linux下搭建lamp环境以及安装swoole扩展

linux下搭建lamp环境以及安装swoole扩展   一.CentOS 6.5使用yum快速搭建LAMP环境 准备工作:先更新一下yum源 输入下面命令: yum -y update 1.安装Apache [[email protected] ~]# yum -y install httpd # 开机自启动 [[email protected] ~]# chkconfig httpd on # 启动httpd 服务 [[email protected] ~]# service httpd s

linux下一个Oracle11g RAC建立(五岁以下儿童)

四.建立主机之间的信任关系(node1.node2) 建立节点之间oracle .grid 用户之间的信任(通过ssh 建立公钥和私钥) 分别在node1和node2创建 =====Oracle用户========================= 在oracle用户下操作: [[email protected] /]# su - oracle [[email protected] ~]$ mkdir .ssh       创建一个.ssh的隐藏文件夹 [[email protected] ~]

基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:3.安装Oracle RAC-3.4.安装Grid Infrastructure

3.4.安装Grid Infrastructure 3.4.1.安装Grid 1.运行 grid的安装文件runInstaller [[email protected] grid]$ ./runInstaller Starting Oracle Universal Installer... Checking Temp space: must be greater than 120 MB.   Actual 14708 MB    Passed Checking swap space: must

基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:3.安装Oracle RAC-3.6.集群管理命令

3.6. 集群管理命令 3.6.1. RAC的启动与关闭 oracle rac默认会开机自启动,如需维护时可使用以下命令: 关闭: crsctl stop cluster 停止本节点集群服务 crsctl stop cluster –all 停止所有节点服务 开启: crsctl start cluster 开启本节点集群服务 crsctl stop cluster –all 开启所有节点服务 注:以上命令需以 root用户执行 3.6.2.RAC检查运行状况 以grid 用户运行 [[emai