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 know the db2's session number

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-04-04, 04:42
newhu114 newhu114 is offline
Registered User
 
Join Date: Jul 2004
Posts: 17
how to know the db2's session number

I use the "db2 get snapshot for all on zmccdb" to get the following information:
Database name = ZMCCDB
Database path = /home/zmccinst/zmccdb/db2inst2/NODE0000/SQL00001/
Input database alias = ZMCCDB
Database status = Active
Catalog database partition number = 0
Catalog network node name =
Operating system running at database server= AIX
Location of the database = Local
First database connect timestamp = 07-13-2004 21:00:52.200086
Last reset timestamp =
Last backup timestamp = 08-01-2004 21:00:42.086460
Snapshot timestamp = 08-02-2004 17:52:43.010177

High water mark for connections = 21
Application connects = 1331
Secondary connects total = 0
Applications connected currently = 7
Appls. executing in db manager currently = 0
Agents associated with applications = 7
Maximum agents associated with applications= 21
Maximum coordinating agents = 21


I want to know the meanings of "High water mark for connections" and "Application connects " and "Applications connected currently ".
Also ,please tell me how to get the session number just like in oracle
Thanks
Reply With Quote
  #2 (permalink)  
Old 08-04-04, 16:20
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by newhu114
I want to know the meanings of "High water mark for connections" and "Application connects " and "Applications connected currently ".
Also ,please tell me how to get the session number just like in oracle
Thanks
High water mark - maximum number of connections to the database that were active at any time after the monitor was last reset.

Application connects - number of connection attempts (I think).

Applications connected currently - that's sort of obvious, isn't it?

This probably gives you the same as "select count(*) from v$session" in Oracle.

To list all connected applications (what you refer to as "Sessions" in Oracle) use "list applications [show detail]".
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