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 applications show detail in a table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-20-12, 04:21
Stef73 Stef73 is offline
Registered User
 
Join Date: Jan 2012
Posts: 16
list applications show detail in a table

Hello,
I'm trying to write a function to retrieve the application names and application ids from the output of the db2 command "list applications show detail".
I'm thinking about a table function which returns a table with 2 columns (appName and appId).

Would you suggest a way to do it?
Reply With Quote
  #2 (permalink)  
Old 01-20-12, 04:29
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
look in schema sysibmadm
there are different views that return this data
Supported administrative SQL routines and views
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 01-20-12, 04:33
Kazahel Kazahel is offline
Registered User
 
Join Date: Jan 2012
Location: turkiye
Posts: 3
Thumbs up

hi,

function in this link ;
DB2 Universal Database

example;

select * from table(SNAPSHOT_APPL_INFO('',-1)) a

Reply With Quote
  #4 (permalink)  
Old 01-20-12, 06:14
Stef73 Stef73 is offline
Registered User
 
Join Date: Jan 2012
Posts: 16
Thanks Kazahel,
that's exactly what I was looking for
Reply With Quote
Reply

Tags
applications, function, list, table

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