Checking how many instances are running the db I am connected to.
FredApiDec 8 2010 — edited Dec 20 2010Is the following query going to tell me how many instances are running the db I am connected to (in any cluster configuration)?
SELECT COUNT(*) FROM gv$parameter WHERE name='db_name' AND value =(
SELECT value FROM gv$parameter WHERE name='db_name' AND Inst_ID=SYS_CONTEXT('USERENV', 'INSTANCE'))
Why this question?
I do actualy a [SELECT COUNT(*) FROM gv$instance] but I fear it will not return the correct information if the Oracle OneNode is used (instance1 on db1 and instance2 on db2).
I have no Oracle OneNode installed to test this.
Thanks.