基于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 be greater than 150 MB.   Actual 5945 MB    Passed

Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-09-26_12

                      安装图 略

以root用户按顺序执行

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

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

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

4.[[email protected] ~]# /u01/app/11.2.0/grid/root.sh 运行完脚本后,点击ok完成安装.如果不能rac-scan,那么会报错


[[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/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

Running Oracle 11g root.sh script...

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]: /usr/local/bin

The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying dbhome to /usr/local/bin ...

The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying oraenv to /usr/local/bin ...

The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying coraenv to /usr/local/bin ...

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.sh script.

Now product-specific root actions will be performed.

2014-10-17 00:24:16: Parsing the host name

2014-10-17 00:24:16: Checking for super user privileges

2014-10-17 00:24:16: User has super user privileges

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

Creating trace directory

LOCAL ADD MODE

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

Operation 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 daemon to inittab

CRS-4123: Oracle High Availability Services has been started.

ohasd is starting

ADVM/ACFS is not supported on centos-release-5-4.el5.centos.1

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

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

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

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

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

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

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

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

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

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

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

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

CRS-2672: Attempting to start ‘ora.ctssd‘ on ‘linuxrac1‘

CRS-2676: Start of ‘ora.ctssd‘ on ‘linuxrac1‘ succeeded

ASM created and started successfully.

DiskGroup OCR_VOTE created successfully.

clscfg: -install mode specified

Successfully accumulated necessary OCR keys.

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

Operation successful.

CRS-2672: Attempting to start ‘ora.crsd‘ on ‘linuxrac1‘

CRS-2676: Start of ‘ora.crsd‘ on ‘linuxrac1‘ succeeded

CRS-4256: Updating the profile

Successful addition of voting disk 4657b29f8f874f22bfd2d3d9ace93e9f.

Successfully replaced voting disk group with +OCR_VOTE.

CRS-4256: Updating the profile

CRS-4266: Voting file(s) successfully replaced

##  STATE    File Universal Id                File Name Disk group

--  -----    -----------------                --------- ---------

1. ONLINE   4657b29f8f874f22bfd2d3d9ace93e9f (ORCL:OCR_VOTE) [OCR_VOTE]

Located 1 voting disk(s).

CRS-2673: Attempting to stop ‘ora.crsd‘ on ‘linuxrac1‘

CRS-2677: Stop of ‘ora.crsd‘ on ‘linuxrac1‘ succeeded

CRS-2673: Attempting to stop ‘ora.asm‘ on ‘linuxrac1‘

CRS-2677: Stop of ‘ora.asm‘ on ‘linuxrac1‘ succeeded

CRS-2673: Attempting to stop ‘ora.ctssd‘ on ‘linuxrac1‘

CRS-2677: Stop of ‘ora.ctssd‘ on ‘linuxrac1‘ succeeded

CRS-2673: Attempting to stop ‘ora.cssdmonitor‘ on ‘linuxrac1‘

CRS-2677: Stop of ‘ora.cssdmonitor‘ on ‘linuxrac1‘ succeeded

CRS-2673: Attempting to stop ‘ora.cssd‘ on ‘linuxrac1‘

CRS-2677: Stop of ‘ora.cssd‘ on ‘linuxrac1‘ succeeded

CRS-2673: Attempting to stop ‘ora.gpnpd‘ on ‘linuxrac1‘

CRS-2677: Stop of ‘ora.gpnpd‘ on ‘linuxrac1‘ succeeded

CRS-2673: Attempting to stop ‘ora.gipcd‘ on ‘linuxrac1‘

CRS-2677: Stop of ‘ora.gipcd‘ on ‘linuxrac1‘ succeeded

CRS-2673: Attempting to stop ‘ora.mdnsd‘ on ‘linuxrac1‘

CRS-2677: Stop of ‘ora.mdnsd‘ on ‘linuxrac1‘ succeeded

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

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

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

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

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

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

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

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

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

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

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

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

CRS-2672: Attempting to start ‘ora.ctssd‘ on ‘linuxrac1‘

CRS-2676: Start of ‘ora.ctssd‘ on ‘linuxrac1‘ succeeded

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

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

CRS-2672: Attempting to start ‘ora.crsd‘ on ‘linuxrac1‘

CRS-2676: Start of ‘ora.crsd‘ on ‘linuxrac1‘ succeeded

CRS-2672: Attempting to start ‘ora.evmd‘ on ‘linuxrac1‘

CRS-2676: Start of ‘ora.evmd‘ on ‘linuxrac1‘ succeeded

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

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

CRS-2672: Attempting to start ‘ora.OCR_VOTE.dg‘ on ‘linuxrac1‘

CRS-2676: Start of ‘ora.OCR_VOTE.dg‘ on ‘linuxrac1‘ succeeded

linuxrac1     2014/10/17 00:28:25     /u01/app/11.2.0/grid/cdata/linuxrac1/backup_20141017_002825.olr

Preparing packages for installation...

cvuqdisk-1.0.7-1

Configure Oracle Grid Infrastructure for a Cluster ... succeeded

Updating inventory properties for clusterware

Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 5945 MB    Passed

The inventory pointer is located at /etc/oraInst.loc

The inventory is located at /u01/app/oraInventory

‘UpdateNodeList‘ was successful.

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

Running Oracle 11g root.sh script...

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]: /usr/local/bin

The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying dbhome to /usr/local/bin ...

The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying oraenv to /usr/local/bin ...

The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying coraenv to /usr/local/bin ...

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.sh script.

Now product-specific root actions will be performed.

2014-10-17 00:30:02: Parsing the host name

2014-10-17 00:30:02: Checking for super user privileges

2014-10-17 00:30:02: User has super user privileges

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

Creating trace directory

LOCAL ADD MODE

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

Operation successful.

Adding daemon to inittab

CRS-4123: Oracle High Availability Services has been started.

ohasd is starting

ADVM/ACFS is not supported on centos-release-5-4.el5.centos.1

CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node linuxrac1, number 1, and is terminating

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

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

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

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

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

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

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

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

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

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

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

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

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

CRS-2672: Attempting to start ‘ora.ctssd‘ on ‘linuxrac2‘

CRS-2676: Start of ‘ora.ctssd‘ on ‘linuxrac2‘ succeeded

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

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

CRS-2672: Attempting to start ‘ora.crsd‘ on ‘linuxrac2‘

CRS-2676: Start of ‘ora.crsd‘ on ‘linuxrac2‘ succeeded

CRS-2672: Attempting to start ‘ora.evmd‘ on ‘linuxrac2‘

CRS-2676: Start of ‘ora.evmd‘ on ‘linuxrac2‘ succeeded

linuxrac2     2014/10/17 00:32:27     /u01/app/11.2.0/grid/cdata/linuxrac2/backup_20141017_003227.olr

Preparing packages for installation...

cvuqdisk-1.0.7-1

Configure Oracle Grid Infrastructure for a Cluster ... succeeded

Updating inventory properties for clusterware

Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 5945 MB    Passed

The inventory pointer is located at /etc/oraInst.loc

The inventory is located at /u01/app/oraInventory

‘UpdateNodeList‘ was successful.

3.4.2.确认集群软件安装成功


查看集群软件安装结果


[[email protected] /]# crs_stat -t

Name           Type           Target    State     Host

------------------------------------------------------------

ora....ER.lsnr ora....er.type ONLINE    ONLINE    linuxrac1

ora....N1.lsnr ora....er.type ONLINE    ONLINE    linuxrac1

ora....VOTE.dg ora....up.type ONLINE    ONLINE    linuxrac1

ora.asm        ora.asm.type   ONLINE    ONLINE    linuxrac1

ora.eons       ora.eons.type  ONLINE    ONLINE    linuxrac1

ora.gsd        ora.gsd.type   OFFLINE   OFFLINE

ora....SM1.asm application    ONLINE    ONLINE    linuxrac1

ora....C1.lsnr application    ONLINE    ONLINE    linuxrac1

ora....ac1.gsd application    OFFLINE   OFFLINE

ora....ac1.ons application    ONLINE    ONLINE    linuxrac1

ora....ac1.vip ora....t1.type ONLINE    ONLINE    linuxrac1

ora....SM2.asm application    ONLINE    ONLINE    linuxrac2

ora....C2.lsnr application    ONLINE    ONLINE    linuxrac2

ora....ac2.gsd application    OFFLINE   OFFLINE

ora....ac2.ons application    ONLINE    ONLINE    linuxrac2

ora....ac2.vip ora....t1.type ONLINE    ONLINE    linuxrac2

ora....network ora....rk.type ONLINE    ONLINE    linuxrac1

ora.oc4j       ora.oc4j.type  OFFLINE   OFFLINE

ora.ons        ora.ons.type   ONLINE    ONLINE    linuxrac1

ora.scan1.vip  ora....ip.type ONLINE    ONLINE    linuxrac1

[[email protected] /]# crs_stat -t -v

Name           Type           R/RA   F/FT   Target    State     Host

----------------------------------------------------------------------

ora....ER.lsnr ora....er.type 0/5    0/     ONLINE    ONLINE    linuxrac1

ora....N1.lsnr ora....er.type 0/5    0/0    ONLINE    ONLINE    linuxrac1

ora....VOTE.dg ora....up.type 0/5    0/     ONLINE    ONLINE    linuxrac1

ora.asm        ora.asm.type   0/5    0/     ONLINE    ONLINE    linuxrac1

ora.eons       ora.eons.type  0/3    0/     ONLINE    ONLINE    linuxrac1

ora.gsd        ora.gsd.type   0/5    0/     OFFLINE   OFFLINE

ora....SM1.asm application    0/5    0/0    ONLINE    ONLINE    linuxrac1

ora....C1.lsnr application    0/5    0/0    ONLINE    ONLINE    linuxrac1

ora....ac1.gsd application    0/5    0/0    OFFLINE   OFFLINE

ora....ac1.ons application    0/3    0/0    ONLINE    ONLINE    linuxrac1

ora....ac1.vip ora....t1.type 0/0    0/0    ONLINE    ONLINE    linuxrac1

ora....SM2.asm application    0/5    0/0    ONLINE    ONLINE    linuxrac2

ora....C2.lsnr application    0/5    0/0    ONLINE    ONLINE    linuxrac2

ora....ac2.gsd application    0/5    0/0    OFFLINE   OFFLINE

ora....ac2.ons application    0/3    0/0    ONLINE    ONLINE    linuxrac2

ora....ac2.vip ora....t1.type 0/0    0/0    ONLINE    ONLINE    linuxrac2

ora....network ora....rk.type 0/5    0/     ONLINE    ONLINE    linuxrac1

ora.oc4j       ora.oc4j.type  0/5    0/0    OFFLINE   OFFLINE

ora.ons        ora.ons.type   0/3    0/     ONLINE    ONLINE    linuxrac1

ora.scan1.vip  ora....ip.type 0/0    0/0    ONLINE    ONLINE    linuxrac1

3.4.3.创建ASM磁盘组

  本次任务将创建 3 个asm 磁盘组,分别为:DATA,FRA。其中DATA 将存放数据库文件;FRA 存放闪回文件.

在grid 用户下,执行 asmca,启动 asm 磁盘组创建向导。


在grid用户下,执行asmca


[[email protected] ~]$ pwd

/home/grid

[[email protected] ~]$ asmca

时间: 2024-10-13 10:50:26

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

基于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

基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境

1.资源准备 最近,在VmwareStation 10虚拟机上,基于CentOS5.4安装Oracle 11g RAC,并把过程记录下来.刚开始时,是基于CentOS 6.4安装Oracle 11g RAC, 没有成功,主要是Oracle 11g RAC安装,没有针对CentOS 6.4的内核的一些包. 本文内容详实,包括安装过程中遇到的一些问题,也单独编一章节,第四章节的FAQ. http://blog.chinaunix.net/xmlrpc.php?r=blog/article&id=46

基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.5. 配置网络

2.5.           配置网络 2.5.1.          配置网络 Oracle Rac数据库涉及到公用网络和私有网络,因此要做网络划分和IP地址规划,下表列出了要安装的RAC数据库对应的IP地址.主机名以及网络连接类型: Rac1 主机名 IP址址 子网 网络类型 解析方式 Eth0 10.10.97.161 255.255.255.0 公用网络 Eth1 192.168.2.116 255.255.255.0 私有网络 10.10.97.181 255.255.255.0 虚拟

基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:3.安装Oracle RAC-3.5.安装oracle11gr2 database 软件与创建数据库

3.5.安装oracle11gr2 database 软件与创建数据库 3.5.1.安装Oracle 11gr2 Database 以oracle 用户登录到节点一,切换到软件安装目录,执行安装. 在oracle用户安装,首先将两个Oracle安装文件解压在一个文件夹中 [[email protected] ~]# su oracle [[email protected] root]$ cd /home/oracle [[email protected] ~]$ ll total 4 drwxr

基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:1.资源准备

1.1.  软件准备 SecureCRT:用于客户机通过SSH连接LINUX VmWareStation10: VMware-workstation-full-10.0.1-1379776.exe 5C4A7-6Q20J-6ZD58-K2C72-0AKPE  (已测,可用) 1Y0W5-0W205-7Z8J0-C8C5M-9A6MF NF2A7-AYK43-CZCT8-FCAN6-CA84 4A4QH-6Q195-XZW10-6K8N2-A3CJX 5A6ZT-20JD2-LZWZ9-H38N0

基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.3配置共享磁盘

2.3.           配置共享磁盘 2.3.1.          创建共享磁盘 在cmd中进入WMware Workstation 10.0 安装目录: 1.创建存储Oracle Clusterware文件  (Oracle Cluster Registry and voting disk) 的磁盘: vmware-vdiskmanager.exe -c -s 4Gb -a   lsilogic  -t  2  "E:\SoftwareInstall\vmware\SharedDisk

基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.1创建虚拟机

2.1.           创建虚拟机 2.1.1.          创建虚拟机节点1 图略 2.1.2.          创建虚拟机节点2 操作如节点1.

基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.4. 安装JDK

2.4.           安装JDK 2.4.1.          准备JDK 在百度搜索:JDK下载 2.4.2.          上传JDK put E:\软件安装文件\jdk-8u11-linux-x64.rpm /home/linuxrac1/Downloads put E:\软件安装文件\linux.x64_11gR2_database_1of2.zip /home/linuxrac1/Downloads put E:\软件安装文件\linux.x64_11gR2_databa

基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:3.安装Oracle RAC-3.3.安装前检查

3.3. 安装前检查 1.检查节点连通性 [[email protected] grid]$ ./runcluvfy.sh stage -post hwos -n linuxrac1,linuxrac2 -verbose Performing post-checks for hardware and operating system setup Checking node reachability... Check: Node reachability from node "linuxrac1&