Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / May 2006

Tip: Looking for answers? Try searching our database.

List applications and Client login ID

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Odd Bjørn Andersen - 19 May 2006 08:14 GMT
When I right click on a database in Control Center and choose 'Applications'
I get listed alle the applications connected at the moment, and among other
things I get to know the 'Client login ID'. For some reason I want to have
this information written to a file, but this is not possible from the GUI. I
try 'list application show detail' but the information about Client login ID
is not included there.

Is there a simple way to get that information so that I can write that to a
file?

Regards
Odd Bjørn A
ErgoGroup AS, Oslo, Norway
peteh - 19 May 2006 15:14 GMT
Check out the snapshot table functions. We use SQL like the following.
Output could be directed to a file pretty easily...Here's an example:
            SELECT a.Agent_ID
                  , a.Appl_Name
                  , a.DB_Name
                  , a.Auth_ID
                  , a.Execution_ID
            FROM TABLE(SYSPROC.SNAPSHOT_APPL_INFO(CURRENT SERVER,-1)) as a
            inner join TABLE(SYSPROC.SNAPSHOT_STATEMENT(CURRENT SERVER,-1)) as
b
                  on a.agent_id = b.agent_id

Good luck!

Pete H
Odd Bjørn Andersen - 22 May 2006 07:01 GMT
Thank you! Just what I was looking for.

Regards
Odd Bjørn

> Check out the snapshot table functions. We use SQL like the following.
> Output could be directed to a file pretty easily...Here's an example:
[quoted text clipped - 11 lines]
>
> Pete H
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.