How to identify the cluster name

在为RAC环境配置database control的时候,会被问及cluster name,当然我们知道默认安装的Oracle Cluster Name就是crs,但是如何确认到底CRS的名字是什么呢?

[oracle@dbserver1 oracle10g]$ emca -config dbcontrol db -cluster -EM_NODE dbserver1 -EM_SID_LIST intertol2,intertol3,intertol4

STARTED EMCA at Jul 27, 2009 4:20:25 PM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Database unique name: intertol
Database Control is already configured for the database intertol
You have chosen to configure Database Control for managing the database intertol
This will remove the existing configuration and the default settings and perform a fresh configuration
Do you wish to continue? [yes(Y)/no(N)]: Y
Listener port number: 1521
Cluster name:

实际上Oracle提供了一个实用程序cemutlo来获取cluster name。

[oracle@dbserver1 ~]$ $ORA_CRS_HOME/bin/cemutlo -h
Usage: /u01/app/oracle/product/crs/bin/cemutlo.bin [-n] [-w]
        where:
        -n prints the cluster name
        -w prints the clusterware version in the following format:
                 ::

[oracle@dbserver1 ~]$ cemutlo -n
crs

另外还有使用ocrdump命令或者ocrconfig命令来间接获得cluster name的方法,详细参看《怎么查安装CRS时设置的cluster name》

5 thoughts on “How to identify the cluster name

  1. 在ORA_CRS_HOME/install/rootconfig脚本里有:
    ORA_CRS_HOME=/oracle/product/CRS
    CRS_ORACLE_OWNER=oracle
    CRS_DBA_GROUP=dba
    CRS_VNDR_CLUSTER=false
    CRS_OCR_LOCATIONS=/dev/rdisk/disk370,/dev/rdisk/disk371
    CRS_CLUSTER_NAME=crs

    该目录的cluster.ini文件里也有。

    其实后面crs的配置就是rootconfig、rootinstall脚本在配

Leave a Reply

Your email address will not be published. Required fields are marked *