There is an automatic backup mechanism for OCR. The default location is : $ORA_CRS_HOME\cdata\"clustername"\
To display backups : ocrconfig -showbackup
To restore a backup : ocrconfig -restore
这说明OCR缺省的备份路径里就含有clustername,如果没改过OCR备份路径,也可以从这里得到
clustername.
ofs00biiacc002>ocrconfig -showbackup
ofs00biidrc001 2008/12/10 10:22:16 /app/oracle/product/crs/cdata/crs
ofs00biidrc001 2008/12/10 06:22:15 /app/oracle/product/crs/cdata/crs
ofs00biidrc001 2008/12/10 04:50:47 /app/oracle/product/crs/cdata/crs
ofs00biidrc001 2008/12/08 12:50:36 /app/oracle/product/crs/cdata/crs
ofs00biidrc001 2008/12/04 03:25:48 /app/oracle/product/crs/cdata/crs
这里的crs就是cluster name.
另外有一个命令也可以得到cluster name. (cemutlo -n)
ofs00biiacc002>./cemutlo
Usage: ./cemutlo.bin [-n] [-w]
where:
-n prints the cluster name
-w prints the clusterware version in the following format:
: :
ofs00biiacc002>./cemutlo -n
crs
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/228190/viewspace-509702/ ,如需转载,请注明出处,否则将追究法律责任。