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 > DB2 connections

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-29-06, 04:45
VitaminB VitaminB is offline
Registered User
 
Join Date: Jun 2004
Posts: 21
DB2 connections

Hi Guys,

I want to log all database's accesses in DB2. All: the successfully connections as well as the restricted connections. I want to see, which users try to connect to a db2 database. Where can I find/catch these information?



Regards,
Marcus
Reply With Quote
  #2 (permalink)  
Old 05-29-06, 05:09
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
Smile

OPTION 1>
To track the applications which got connected to your database over a particular period of the time (few hours) you can use the db2 event monitor:

see the syntax from the command reference:

(CREATE EVENT MONITOR--event-monitor-name--FOR---------------->
'-+-CONNECTIONS--+--+----------------------------+---------')

OPTION 2>
To see the connections at any particular moment,:

db2 "list applications show detail" . This will list all the connections active at that moment.

OPTION 3>
If you want to track the connections for a much longer period: Then avoid using event monitor and try using db2audit tool with configuration : "VALIDATE"

(see the syntax how to use db2audit in db2 information center).

Thanks,
Jayanta Datta
New Delhi, India
Reply With Quote
  #3 (permalink)  
Old 05-29-06, 05:17
VitaminB VitaminB is offline
Registered User
 
Join Date: Jun 2004
Posts: 21
all connection...

Can I see all tried connections? All, also the denied ones...
Reply With Quote
  #4 (permalink)  
Old 05-29-06, 05:25
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
yes the db2audit utility will show you both successful/failed connection alongwith the user_id and application details.

Thanks,
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