oracleoracle11goracle-rac

Read Oracle Cluster name from Oracle RAC using SQL query


I'd like to know what is my RAC cluster name using SQL query. I've found out that it can be retrieved using Oracle tool cemutlo -n or just ocrdump (see http://www.br8dba.com/tag/how-to-display-oracle-cluster-name/). However, it's not possible in this case, because on target environment, I can only execute SQL queries and I don't have access to DBMS installation directory.

I've found out (here https://community.oracle.com/thread/2510788?tstart=0) that it can be done using some unusual queries:

SELECT a.ID, a.CLUSTER_ID FROM TABLE(DBMS_DATA_MINING.GET_MODEL_DETAILS_OC('CLUS_OC_1_15',NULL,NULL,1,0,0)) a

select * from table(dbms_data_mining.get_model_details_km('CLUS_KM_1_25'))

However, they don't work on my environment and I'm unable to create new model.

Most preferably, I'd just read this from some kind of v$/gv$ tables - but I can't find it there. I guess that's because cluster is far below DBMS.


Solution

  • Finally, I found out that there is no way to do that :(.