473,395 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Users on dabatase

Hi friends

What is the best way to keep track of number of users logged into
database everyday.

Where does db2 store user connection information ? does it keep a log
of user connections?

meaning can i say, on last monday who logged in to database and when ?

Thanks in advance for repliers.

I appreciate your help.

rick
Mar 25 '08 #1
2 2203
Hi Rick,

connection information is not stored (unless you have audit
enabled...)

You can get the current users logged on with "db2 list applications
[show detail]"

You can also get a complete list of all logons with the help on the
event monitor for connections.
There you have the information you want:
* logon time, names, some environment (see **1)
* logoff time, cpu usage, etc... (see **2)
But it's a bit unhandy to retrieve the information you want...

**1 )))))))))))))))))))))))))))))))))))))))))))))))))
4) Connection Header Event ...
Appl Handle: 969
Appl Id: *N0.dwhprod.080325230005
Appl Seq number: 0001
DRDA AS Correlation Token: *N0.dwhprod.080325230005
Program Name : db2bp
Authorization Id: DWHPROD
Execution Id : dwhprod
Codepage Id: 819
Territory code: 0
Client Process Id: 4853950
Client Database Alias: DWHDB
Client Product Id: SQL08029
Client Platform: Unknown
Client Communication Protocol: Local
Client Network Name: apdwh1.nbg.sdv.sdvrz
Connect timestamp: 03/26/2008 00:00:02.824930

**2 )))))))))))))))))))))))))))))))))))))))))))))))))
5) Connection Event
Appl Handle: 616
Appl Id: *N0.dwhprod.080325230002
Appl Seq number: 0006

Record is the result of a flush: FALSE

Application Status: SQLM_UOWWAIT

Lock Statistics:
Lock Waits: 0
Total time waited on locks (milliseconds): 0
Deadlocks: 0
Lock escalations: 0
X lock escalations: 0
Lock timeouts: 0

Sort Statistics:
Sorts: 0
Total sort time (milliseconds): 0
Sort overflows: 0

Hash Statistics:
Hash Joins: 0
Hash Loops: 0
Hash Join Small Overflows: 0
Hash Join Overflows: 0

Buffer Pool Statistics:
Buffer pool logical data page reads: 568
Buffer pool physical data page reads: 0
Buffer pool data page writes: 0
Buffer pool logical index page reads: 578
Buffer pool physical index page reads: 0
Buffer pool index page writes: 0
Buffer pool read time (milliseconds): 0
Buffer pool write time (milliseconds): 0
Time spent waiting for a prefetch: 0 milliseconds
Unread prefetch pages: 0

Workspace Statistics:
Shared workspace high water mark: 109066224
Total shared workspace overflows: 0
Total shared workspace section lookups: 3
Total shared workspace section inserts: 2
Private workspace high water mark: 19484
Total private workspace overflows: 0
Total private workspace section lookups: 3
Total private workspace section inserts: 3

Direct I/O Statistics:
Sectors read directly: 0
Sectors written directly: 0
Direct read requests: 0
Direct write requests: 0
Direct read time: 0
Direct write time: 0

SQL Statement counts
Commit SQL statements: 4
Rollback SQL statements: 0
Dynamic SQL statements: 10
Static SQL stmts: 4
Failed SQL statements: 0
Select SQL statements: 1
Data Definition Language SQL statements: 1
Update/Insert/Delete SQL statements: 1

Internal counts
Internal auto rebinds: 0
Internal rows deleted: 0
Internal rows updated: 0
Internal rows inserted: 0
Internal commits: 1
Internal rollbacks: 0
Internal rollbacks due to deadlock: 0

Row counts
Rows deleted: 0
Rows inserted: 0
Rows updated: 0
Rows selected: 1
Rows read: 568
Rows written: 0
Binds/Precompiles: 0
Rejected block cursor requests: 0
Accepted block cursor requests: 0

Package Cache Statistics
Package Cache Lookups: 19
Package Cache Inserts: 3
Section Lookups: 10
Section Inserts: 5

Catalog Cache Statistics
Catalog Cache Overflows: 0
Catalog Cache High Water Mark: 0
Catalog Cache Lookups: 15
Catalog Cache Inserts: 0

CPU times
User CPU time: 0.023042 seconds
System CPU time: 0.003204 seconds

Memory usage:

Node Number: 0
Memory Pool Type: Application Heap
Current size (bytes): 147456
High water mark (bytes): 147456
Configured size (bytes): 33783808

Disconnection Time: 03/26/2008 00:00:05.013925

On Mar 25, 2:55*pm, rick <kantha...@gmail.comwrote:
Hi friends

What is the best way to keep track of number of users logged into
database everyday.

Where does db2 store user connection information ? does it keep a log
of user connections?

meaning can i say, on last monday who logged in to database and when ?

Thanks in advance for repliers.

I appreciate your help.

rick
Mar 26 '08 #2
On Mar 26, 10:26*am, "stefan.albert" <stefan.alb...@spb.dewrote:
Hi Rick,

connection information is not stored (unless you have audit
enabled...)

You can get the current users logged on with "db2 list applications
[show detail]"

You can also get a complete list of all logons with the help on the
event monitor for connections.
There you have the information you want:
* ** logon time, names, some environment (see **1)
* ** logoff time, cpu usage, etc... (see **2)
But it's a bit unhandy to retrieve the information you want...

**1 )))))))))))))))))))))))))))))))))))))))))))))))))
4) Connection Header Event ...
* Appl Handle: 969
* Appl Id: *N0.dwhprod.080325230005
* Appl Seq number: 0001
* DRDA AS Correlation Token: *N0.dwhprod.080325230005
* Program Name * *: db2bp
* Authorization Id: DWHPROD
* Execution Id * *: dwhprod
* Codepage Id: 819
* Territory code: 0
* Client Process Id: 4853950
* Client Database Alias: DWHDB
* Client Product Id: SQL08029
* Client Platform: Unknown
* Client Communication Protocol: Local
* Client Network Name: apdwh1.nbg.sdv.sdvrz
* Connect timestamp: 03/26/2008 00:00:02.824930

**2 )))))))))))))))))))))))))))))))))))))))))))))))))
5) Connection Event
* Appl Handle: 616
* Appl Id: *N0.dwhprod.080325230002
* Appl Seq number: 0006

* Record is the result of a flush: FALSE

* Application Status: SQLM_UOWWAIT

*Lock Statistics:
* Lock Waits: 0
* Total time waited on locks (milliseconds): 0
* Deadlocks: 0
* Lock escalations: 0
* X lock escalations: 0
* Lock timeouts: 0

*Sort Statistics:
* Sorts: 0
* Total sort time (milliseconds): 0
* Sort overflows: 0

*Hash Statistics:
* Hash Joins: 0
* Hash Loops: 0
* Hash Join Small Overflows: 0
* Hash Join Overflows: 0

*Buffer Pool Statistics:
* Buffer pool logical data page reads: 568
* Buffer pool physical data page reads: 0
* Buffer pool data page writes: 0
* Buffer pool logical index page reads: 578
* Buffer pool physical index page reads: 0
* Buffer pool index page writes: 0
* Buffer pool read time (milliseconds): 0
* Buffer pool write time (milliseconds): 0
* Time spent waiting for a prefetch: 0 milliseconds
* Unread prefetch pages: 0

*Workspace Statistics:
* Shared workspace high water mark: 109066224
* Total shared workspace overflows: 0
* Total shared workspace section lookups: 3
* Total shared workspace section inserts: 2
* Private workspace high water mark: 19484
* Total private workspace overflows: 0
* Total private workspace section lookups: 3
* Total private workspace section inserts: 3

*Direct I/O Statistics:
* Sectors read directly: 0
* Sectors written directly: 0
* Direct read requests: 0
* Direct write requests: 0
* Direct read time: 0
* Direct write time: 0

*SQL Statement counts
* Commit SQL statements: 4
* Rollback SQL statements: 0
* Dynamic SQL statements: 10
* Static SQL stmts: 4
* Failed SQL statements: 0
* Select SQL statements: 1
* Data Definition Language SQL statements: 1
* Update/Insert/Delete SQL statements: 1

*Internal counts
* Internal auto rebinds: 0
* Internal rows deleted: 0
* Internal rows updated: 0
* Internal rows inserted: 0
* Internal commits: 1
* Internal rollbacks: 0
* Internal rollbacks due to deadlock: 0

*Row counts
* Rows deleted: 0
* Rows inserted: 0
* Rows updated: 0
* Rows selected: 1
* Rows read: 568
* Rows written: 0
* Binds/Precompiles: 0
* Rejected block cursor requests: 0
* Accepted block cursor requests: 0

*Package Cache Statistics
* Package Cache Lookups: 19
* Package Cache Inserts: 3
* Section Lookups: 10
* Section Inserts: 5

*Catalog Cache Statistics
* Catalog Cache Overflows: 0
* Catalog Cache High Water Mark: 0
* Catalog Cache Lookups: 15
* Catalog Cache Inserts: 0

*CPU times
* User CPU time: 0.023042 seconds
* System CPU time: 0.003204 seconds

*Memory usage:

* Node Number: 0
* *Memory Pool Type: *Application Heap
* * *Current size (bytes): 147456
* * *High water mark (bytes): 147456
* * *Configured size (bytes): 33783808

*Disconnection Time: 03/26/2008 00:00:05.013925

On Mar 25, 2:55*pm, rick <kantha...@gmail.comwrote:
Hi friends
What is the best way to keep track of number of users logged into
database everyday.
Where does db2 store user connection information ? does it keep a log
of user connections?
meaning can i say, on last monday who logged in to database and when ?
Thanks in advance for repliers.
I appreciate your help.
rick- Hide quoted text -

- Show quoted text -
Thanks a lot guys
Mar 26 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: zsh-users-help | last post by:
Hi! This is the ezmlm program. I'm managing the zsh-users@sunsite.dk mailing list. To confirm that you would like python-list@python.org removed from the zsh-users mailing list, please send...
0
by: tcm-users-request | last post by:
This pre-recorded message is being sent in response to your recent email to tcm-users-request@listserv.cs.utwente.nl. All routine administrative requests (including subscriptions and...
6
by: Hannu | last post by:
Hi. In the ldb file you can see the users of the mdb-file. If you open the mdb-file your machine and username will be written in the lbd- file. Allthough you close the mdb-file your name won't...
3
by: mgPA | last post by:
Short: How can I limit the number of concurrent logins to Access (2000) DB? Long: I seem to be having the problem discussed in previous postings of having more than 9 or 10 concurrent logins. ...
6
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
6
by: google | last post by:
I have a few general questions. I am working on a new database to be used within my company. I would like to give a couple of people, particularly HR, the ability to add and delete Access users,...
5
by: profdotnet | last post by:
Below is the code of web.config file: <configuration> <system.web> <authentication mode="Forms" /> <authorization> <allow users="Admin"/> <deny users="Jack,Mary" /> <deny users="?">...
1
by: cefrancke | last post by:
I have a Back End database (split) that is on a smokin' hot machine (dual processor, 2 gig RAM, XP Pro SP2) and I'm getting an error that says the database (back end file) is "opened exclusively"...
3
by: Paul Brady | last post by:
I have two users, Andrew and Nancy, who each have their own computer and can connect to a common database called "employees.mdb" which resides on a network server. On that same network server,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.