ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 安装Oracle11.2.0.2 RAC for Linux X86-64(二)

安装Oracle11.2.0.2 RAC for Linux X86-64(二)

原创 Linux操作系统 作者:yangtingkun 时间:2011-05-14 23:25:54 0 删除 编辑

Solaris上安装过11.2RACLinux上还是第一次。描述一下安装配置过程。

这一篇描述CLUSTERWARE的安装。

安装Oracle11.2.0.2 RAC for Linux X86-64(一):http://yangtingkun.itpub.net/post/468/517812

 

 

启动图形工具,开始CLUSTER的安装:

[root@rac3 ~]# xhost +
access control disabled, clients can connect from any host
[root@rac3 ~]# su - grid
[grid@rac3 ~]$ cd /data/software/grid/
[grid@rac3 grid]$ ./runInstaller

安装第一个界面是输入metalink帐号,这里可以输入metalink的用户名密码;

选择安装类型,这里选择Install and Configure Oracle Grid Infrastructure for a Cluster

安装类型:这里选择高级安装;

产品语言:选择英文和简体中文;

网格设置:由于没有配置DNS,所以也没有办法使用GNS,这里取消GNS配置,SCAN_NAME输入rac-cluster

Cluster节点信息:输入节点2对应的主机名rac2vip名称rac2-vip,点击SSH Connectivity,配置各个节点间的SSH等同配配置;

网络接口:Oracle自动确认了privatepublic接口,如果Oracle没有找对,手工将接口指到对应的接口类型;

存储选项:选择ASM

创建ASM磁盘组:磁盘组名称默认为DATA,将磁盘组冗余设置选择为外部,将oracleasm创建的磁盘选中;

ASM密码:输入ASM实例SYSASMSNMP用户密码:

失败隔离:选择是否使用Intelligent Platform. ManagementInterface

操作系统组选择:输入oinstall组;

目录位置:输入GRID_BASE目录/data/grid和软件安装目录/data/11.2.0/grid

Inventory目录:采用默认的/data/oraInventory

检查系统是否满足安装需求:点击fix and check again,在两个节点上执行脚本:

[root@rac3 ~]# /tmp/CVU_11.2.0.2.0_grid/runfixup.sh
/usr/bin/id
Response file being used is :/tmp/CVU_11.2.0.2.0_grid/fixup.response
Enable file being used is :/tmp/CVU_11.2.0.2.0_grid/fixup.enable
Log file location: /tmp/CVU_11.2.0.2.0_grid/orarun.log
Setting Kernel Parameters...
kernel.sem = 250 32000 100 128
net.core.wmem_default = 131072
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 1048576
uid=1300(grid) gid=1000(oinstall) groups=1000(oinstall),1200(dba)
Installing Package /tmp/CVU_11.2.0.2.0_grid//cvuqdisk-1.0.9-1.rpm
Preparing...                ########################################### [100%]
   1:cvuqdisk               ########################################### [100%]

还存在SWAP空间不足的问题,但是考虑内存足够,忽略所有的错误,继续安装;

在两个节点分别运行脚本orainstRoot.sh

[root@rac3 ~]# /data/oraInventory/orainstRoot.sh
Changing permissions of /data/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /data/oraInventory to oinstall.
The execution of the script. is complete.

节点1上运行root.sh

[root@rac3 ~]# /data/11.2.0/grid/root.sh
Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /data/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: /data/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
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 daemon to inittab
ACFS-9200: Supported
ACFS-9300: ADVM/ACFS distribution files found.
ACFS-9307: Installing requested ADVM/ACFS software.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9321: Creating udev for ADVM/ACFS.
ACFS-9323: Creating module dependencies - this may take some time.
ACFS-9327: Verifying ADVM/ACFS devices.
ACFS-9309: ADVM/ACFS installation correctness verified.
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac3'
CRS-2676: Start of 'ora.mdnsd' on 'rac3' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac3'
CRS-2676: Start of 'ora.gpnpd' on 'rac3' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac3'
CRS-2672: Attempting to start 'ora.gipcd' on 'rac3'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac3' succeeded
CRS-2676: Start of 'ora.gipcd' on 'rac3' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac3'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac3'
CRS-2676: Start of 'ora.diskmon' on 'rac3' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac3' succeeded

ASM created and started successfully.

Disk Group DATA 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 958813ad4d8a4fc2bf7fff51e988d7a2.
Successfully replaced voting disk group with +DATA.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   958813ad4d8a4fc2bf7fff51e988d7a2 (ORCL:VOL1) [DATA]
Located 1 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'rac3'
CRS-2676: Start of 'ora.asm' on 'rac3' succeeded
CRS-2672: Attempting to start 'ora.DATA.dg' on 'rac3'
CRS-2676: Start of 'ora.DATA.dg' on 'rac3' succeeded
ACFS-9200: Supported
ACFS-9200: Supported
CRS-2672: Attempting to start 'ora.registry.acfs' on 'rac3'
CRS-2676: Start of 'ora.registry.acfs' on 'rac3' succeeded
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

节点2上运行root.sh

[root@rac2 data]# /data/11.2.0/grid/root.sh
Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /data/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: /data/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
OLR initialization - successful
Adding daemon to inittab
ACFS-9200: Supported
ACFS-9300: ADVM/ACFS distribution files found.
ACFS-9307: Installing requested ADVM/ACFS software.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9321: Creating udev for ADVM/ACFS.
ACFS-9323: Creating module dependencies - this may take some time.
ACFS-9327: Verifying ADVM/ACFS devices.
ACFS-9309: ADVM/ACFS installation correctness verified.
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac3, 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

执行完脚本,Oracle继续安装配置cluster,最后一步cluster验证报错,这是由于没有使用GNS导致的,忽略后,Cluster安装完成。

[root@rac3 ~]# su - grid
[grid@rac3 ~]$ export ORACLE_SID=+ASM1
[grid@rac3 ~]$ export ORACLE_HOME=/data/11.2.0/grid
[grid@rac3 ~]$ export PATH=$ORACLE_HOME/bin:$PATH
[grid@rac3 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Sat Mar 26 00:14:19 2011

Copyright (c) 1982, 2010, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options

SQL> set pages 100 lines 120
SQL> select instance_name, status from gv$instance;

INSTANCE_NAME    STATUS
---------------- ------------
+ASM1            STARTED
+ASM2            STARTED

CLUSTER安装成功,下面将export的内容添加到grid的环境变量中,CLUSTER安装步骤结束:

umask 022
export PATH
export ORACLE_SID=+ASM1
export ORACLE_BASE=/data/grid
export ORACLE_HOME=/data/11.2.0/grid
export ORA_CRS_HOME=/data/11.2.0/grid
export PATH=$ORACLE_HOME/bin:$PATH

 

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/4227/viewspace-695368/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
暂无介绍

注册时间:2007-12-29

  • 博文量
    1954
  • 访问量
    10651903