Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

DB2: How to get active user connections thro SQL query?

Hi,
I am new to DB2 and I want to know whether in DB2 it's possible to get active
user connections thro' a SQL query.
I'll appreciate any help!
[180 byte] By [Vinay] at [2007-11-9 18:51:37]
# 1 Re: DB2: How to get active user connections thro SQL query?
use 'list applications' - although you have to have the proper security to
run it.

"Vinay" <vinay@gallerysystems.com> wrote:
>
>Hi,
>
>I am new to DB2 and I want to know whether in DB2 it's possible to get active
>user connections thro' a SQL query.
>
>I'll appreciate any help!
mark at 2007-11-12 0:01:59 >
# 2 Re: DB2: How to get active user connections thro SQL query?
I have a VB application which uses DB2 as back-end. I want to limit the users
of my application to say 50.

Is there any way of writing SQL query to get active users of this VB application?
I know how to do this in MSSQL server and Oracle. I need help in DB2.

I'll appreciate any help.

"mark" <mnuttall@nospam.com> wrote:
>
>use 'list applications' - although you have to have the proper security
to
>run it.
>
>"Vinay" <vinay@gallerysystems.com> wrote:
>>
>>Hi,
>>
>>I am new to DB2 and I want to know whether in DB2 it's possible to get
active
>>user connections thro' a SQL query.
>>
>>I'll appreciate any help!
>
Vinay at 2007-11-12 0:03:08 >
# 3 Re: DB2: How to get active user connections thro SQL query?
I am using Oracle & VB and would like to know how you do it!

Can you please post your method

Thanks

"Vinay" <vinay@gallerysystems.com> wrote:
>
>I have a VB application which uses DB2 as back-end. I want to limit the
users
>of my application to say 50.
>
>Is there any way of writing SQL query to get active users of this VB application?
>I know how to do this in MSSQL server and Oracle. I need help in DB2.
>
>I'll appreciate any help.
Stephen at 2007-11-12 0:04:06 >
# 4 Re: DB2: How to get active user connections thro SQL query?
Query is like this (for Oracle) :

SELECT COUNT(COUNT(UserName)) Num FROM v$session WHERE UPPER(UserName) =
'DBO' GROUP BY MACHINE

"Stephen" <mcmillas@mfish.govt.nz> wrote:
>
>I am using Oracle & VB and would like to know how you do it!
>
>Can you please post your method
>
>Thanks
>
>
>"Vinay" <vinay@gallerysystems.com> wrote:
>>
>>I have a VB application which uses DB2 as back-end. I want to limit the
>users
>>of my application to say 50.
>>
>>Is there any way of writing SQL query to get active users of this VB application?
>>I know how to do this in MSSQL server and Oracle. I need help in DB2.
>>
>>I'll appreciate any help.
>
>
Vinay at 2007-11-12 0:05:02 >