473,581 Members | 2,833 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2212
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.080 325230005
Appl Seq number: 0001
DRDA AS Correlation Token: *N0.dwhprod.080 325230005
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.080 325230002
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...@gmai l.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.alb ert" <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.080 325230005
* Appl Seq number: 0001
* DRDA AS Correlation Token: *N0.dwhprod.080 325230005
* 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.080 325230002
* 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...@gmai l.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
2026
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 an empty reply to this address:
0
1284
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 unsubscriptions) concerning this mailing list are handled by an automated server. Please read this message carefully to find the information relevant to you....
6
12346
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 disappear from the ldb-file, before every user has closed the mdb-file. I have heard that there will be problems if the amount of users will be over...
3
4435
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. If I can limit the number of concurrent logins to 8 or 9, that would satisfy our needs. Thanks
6
539
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 surfin it in multiple browsers simultaneously the site generates a generic runtime error after awhile. I'm thinking this has something to do with my...
6
1960
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, and add/remove them to groups, so as people join and leave the company, they can be added/removed as database users at that time. However, I don't...
5
16423
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="?"> </authorization>
1
6907
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" by someone else. I looked at the number of sessions and noticed that when the number of sessions were at 10, any new user launching the front end...
3
2100
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, there is a folder containing jpegs of the employee pictures. When either person brings up an employee's file, the computer goes into the network and...
0
7876
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8156
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7910
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6563
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3809
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3832
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2307
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1409
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.