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 > list application data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-06-09, 00:36
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
Question list application data

Hi,
when we do 'list applications', where the output data comes from. I mean, is there any table where the current applications info is stored and the command 'list applications' fetches the data from that particular table???

also for 'list active databases'.
Reply With Quote
  #2 (permalink)  
Old 01-06-09, 02:47
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Technically, there is no table that has that information, but DB2 V9.5 has some administrative views that will supply the information. Check out this view:

SYSIBMADM.APPLICATIONS

If you don't have version 9.5 you can use the following table function:

SNAP_GET_APPL_INFO

Go to the DB2 Info Center for your release and search on one of the above options to get more information on how they work.

If you have V9.5 the above view is preferred and I think the table functions will eventually be phased out.

I doin't think there is one for "list active databases" because the above view or function assumes you are connected to a database already (but not 100% certain about that).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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