473,563 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to find if instance is cluster or non-cluster

I need to figure out programmaticall y if an instance is a cluster or
non-cluster. Also, if it is a cluster what are nodes and associated
cluster directories in the instance. All I know is the instance name.

I am looking for this information for MSSQL, Oracle, DB2 and Sybase
databases.

Thanks in advance for any help.
Jun 27 '08 #1
5 7900
Virendra wrote:
I need to figure out programmaticall y if an instance is a cluster or
non-cluster. Also, if it is a cluster what are nodes and associated
cluster directories in the instance. All I know is the instance name.

I am looking for this information for MSSQL, Oracle, DB2 and Sybase
databases.

Thanks in advance for any help.
I'm not sure why you would ask about Oracle here but as you have, in
SQL*Plus:

set serveroutput on

DECLARE
inst_tab dbms_utility.in stance_table;
inst_cnt NUMBER;
BEGIN
IF dbms_utility.is _cluster_databa se THEN
dbms_utility.ac tive_instances( inst_tab, inst_cnt);
dbms_output.put _line('-' || inst_tab.FIRST) ;
dbms_output.put _line(TO_CHAR(i nst_cnt));
ELSE
dbms_output.put _line('Not A Clustered Database');
END IF;
END;
/
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
da******@x.wash ington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Jun 27 '08 #2
I am looking for this information for MSSQL, Oracle, DB2 and Sybase
databases.
The result of the following query will be non-empty if the Microsoft SQL
Server instance is clustered.

SELECT * FROM sys.dm_os_clust er_nodes;

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

"Virendra" <vi********@hot mail.comwrote in message
news:e5******** *************** ***********@t54 g2000hsg.google groups.com...
>I need to figure out programmaticall y if an instance is a cluster or
non-cluster. Also, if it is a cluster what are nodes and associated
cluster directories in the instance. All I know is the instance name.

I am looking for this information for MSSQL, Oracle, DB2 and Sybase
databases.

Thanks in advance for any help.
Jun 27 '08 #3
On Jun 7, 10:50*am, "Dan Guzman" <guzma...@nospa m-
online.sbcgloba l.netwrote:
I am looking for this information for MSSQL, Oracle, DB2 and Sybase
databases.

The result of the following query will be non-empty if the Microsoft SQL
Server instance is clustered.

SELECT * FROM sys.dm_os_clust er_nodes;

--
Hope this helps.

Dan Guzman
SQL Server MVPhttp://weblogs.sqlteam .com/dang/

"Virendra" <virenbe...@hot mail.comwrote in message

news:e5******** *************** ***********@t54 g2000hsg.google groups.com...
I need to figure out programmaticall y if an instance is a cluster or
non-cluster. Also, if it is a cluster what are nodes and associated
cluster directories in the instance. All I know is the instance name.
I am looking for this information for MSSQL, Oracle, DB2 and Sybase
databases.
Thanks in advance for any help.- Hide quoted text -

- Show quoted text -
Thanks both of you.

I noticed that sys.dm_os_clust er_nodes table/view does not exist for
SQL 2000. I believe SQL2000 has clustering support.

Thanks again.
Jun 27 '08 #4
I noticed that sys.dm_os_clust er_nodes table/view does not exist for
SQL 2000. I believe SQL2000 has clustering support.
Yes SQL 2000 has clustering support. Another method to detect clustering is
with SERVERPROPERTY:

SELECT SERVERPROPERTY( 'IsClustered')

This will return 1 if clustered (otherwise 0) and can be used with SQL 2000
and later versions.

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

"Virendra" <vi********@hot mail.comwrote in message
news:93******** *************** ***********@x41 g2000hsb.google groups.com...
On Jun 7, 10:50 am, "Dan Guzman" <guzma...@nospa m-
online.sbcgloba l.netwrote:
I am looking for this information for MSSQL, Oracle, DB2 and Sybase
databases.

The result of the following query will be non-empty if the Microsoft SQL
Server instance is clustered.

SELECT * FROM sys.dm_os_clust er_nodes;

--
Hope this helps.

Dan Guzman
SQL Server MVPhttp://weblogs.sqlteam .com/dang/

"Virendra" <virenbe...@hot mail.comwrote in message

news:e5******** *************** ***********@t54 g2000hsg.google groups.com...
I need to figure out programmaticall y if an instance is a cluster or
non-cluster. Also, if it is a cluster what are nodes and associated
cluster directories in the instance. All I know is the instance name.
I am looking for this information for MSSQL, Oracle, DB2 and Sybase
databases.
Thanks in advance for any help.- Hide quoted text -

- Show quoted text -
Thanks both of you.

I noticed that sys.dm_os_clust er_nodes table/view does not exist for
SQL 2000. I believe SQL2000 has clustering support.

Thanks again.

Jun 27 '08 #5
In addition to Dan's comments, it is possible to enumerate SQL Server
instances and get information if the instance is clustered via using
ADO.NET:
http://msdn.microsoft.com/en-us/library/a6t1z9x2.aspx

HTH,

Plamen Ratchev
http://www.SQLStudio.com

Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
13947
by: michaeljohnsmith | last post by:
I am running Win XP SP2 and MSDE 2000 SP3a. The user is logging on as a POWERUSER. When the user logs on the MSSQLSERVER service starts but the SQL Server Service Manager, that runs in the system tray, shows that the instance has not started. The field that displays the instance name is blank and it is not listed in the drop down list. The...
0
1401
by: Stefan Behnel | last post by:
Hi! I just stumbled over this: ..>>> class test(object): .... def t(): pass .... t.testval = 1 .... ..>>> test.t
2
8821
by: PC | last post by:
Hi, I have used the DLast("!","")function to find and display the last entry in a table. How would I go about displaying the last record in a table that is not Null? Thanks in advance ...pc
10
2338
by: A.M | last post by:
Hi, Can Global object have non-static methods? If answer is yes, then How can I access them in pages? I have following property in Global.asax.cs, but when I try to use it in pages, I receive error "An object reference is required for the nonstatic field, method, or property CurrentDisplayName":
11
3342
by: tshad | last post by:
I am setting up some of my functions in a class called MyFunctions. I am not clear as to the best time to set a function as Shared and when not to. For example, I have the following bit manipulation routines in my Class: ******************************************************************************* imports System NameSpace MyFunctions
7
3971
by: Chris Thunell | last post by:
I'm looking to find in a long string an instance of 4 numbers in a row, and pull out those numbers. For instance: string = "0104 PBR", i'd like to get the 0104. string="PBR XT 0105 TD", i'd like to get the 0105. The numbers will always be 4 digits together. (I'm using vb.net) Any help would be greatly appreciated! Chris...
3
476
by: csharpula csharp | last post by:
Non-static method requires a target appeares when I am trying to activte nunit (test). Any clue? Thank you! *** Sent via Developersdex http://www.developersdex.com ***
0
1398
by: sk.rasheedfarhan | last post by:
Hi all, I set the configuration for Merge replication for Subscription on one database and I have created the Merge replication for publication on another machine. And I updated columns of subscription database table and I find publication machine database table also updated with subscription database table, here my problem starts, My...
1
3515
by: D2 | last post by:
Hi, I need to find all the non-ui controls like errorproviders that have been dropped in the form. Unlike form.controls property, I dont see any collection that maintains all the non-ui controls dropped in the form. After scanning various posts on the newsgroups, I came to know that these are maintained in the following member variable...
0
908
by: mayank1 | last post by:
Hi, I am writing code in windows form application C++, i need function similar to GetFirstDocTemplatePosition(),......but i could not find it for non-MFC. is there anyone who had alreday done such stuff??? thanks in advance
0
7658
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7941
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6235
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5479
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5201
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2077
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.