If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How to find out that DB2 is available

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-09-08, 07:31
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
How to find out that DB2 is available

Hello Everybody,

I have just joined -- New ! So I will start with simple things.

I need to find state of the machine (Windows for now)
i.e if
1. DB2 Server is running - or not running ?
2. DB2 is installed or not installed ?

Secondly
If DB2 Server is Running - How could I interact with it without logging into just to find its existance. i.e. DB2 Get Connection State

Thanks
DBFinder
Reply With Quote
  #2 (permalink)  
Old 09-09-08, 08:19
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
To see if the system is up, you can try either of these two commands:

db2 list active databases
db2 list applications

To see if DB2 is installed, try this command:

db2level


For the second part, see the first question above.

Andy
Reply With Quote
  #3 (permalink)  
Old 09-09-08, 11:57
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Thanks ARWinner
DB2LEVEL was actually I needed to use for now.

My Next step will be to find free %age usage of on various Servers TABLESPACE

Any help will be appreciated
Reply With Quote
  #4 (permalink)  
Old 09-09-08, 12:00
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What DB2 version and OS are you using?

Andy
Reply With Quote
  #5 (permalink)  
Old 09-09-08, 12:11
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Working on DB2 V8.2 servers on Windows
Going to upgrade to v9.5 soon

Thanks for your time
DBFinder

Last edited by DBFinder; 09-09-08 at 12:19.
Reply With Quote
  #6 (permalink)  
Old 09-09-08, 12:42
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Reply With Quote
  #7 (permalink)  
Old 09-09-08, 12:58
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Thanks

DBFinder
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On