欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

怎么得到Oracleclustername?Oracle解锁!

程序员文章站 2023-09-20 18:32:56
怎么得到Oracleclustername?Oracle解锁! APPLIES TO: Oracle Database - Enterprise Edition - Versi...

怎么得到Oracleclustername?Oracle解锁!

APPLIES TO:

Oracle Database - Enterprise Edition - Version 10.1.0.2 and later
Information in this document applies to any platform.
Information in this document applies to any platform.

GOAL

How to find out the cluster name after Oracle clusterware installed?

SOLUTION

One can use cemutlo command.

cd $CRS_HOME/bin
./cemutlo -h <=== will list all the options
Usage: ./cemutlo.bin [-n] [-w]
where:
-n prints the cluster name
-w prints the clusterware version in the following format:
::

Output example:

./cemutlo -n
clustergp1 <=== cluster name, default cluster name is "crs"
[grid@hosta ~]$ which cemutlo
/u01/app/11.2.0/grid/bin/cemutlo
[grid@hosta ~]$ cemutlo -n
orcl-cluster
[grid@hosta ~]$ 

Oracle解锁

alter user test account unlock;