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 > Tracking open connections in db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-07-03, 09:58
mmarwaha mmarwaha is offline
Registered User
 
Join Date: Sep 2003
Posts: 6
Tracking open connections in db2

Hi all

I need a way to track open db connections to my db2 database through
some mechanism.

I tried using the Control center available with the db2 install but it shows lot of connections which apparently are not created.(Kind of confusing).Also it does not give the machine name or IP from where the connection is created.

Is there a tool/command to track open connections with db2.

Appreciate everyones help.

Thanks
-MM
Reply With Quote
  #2 (permalink)  
Old 10-07-03, 11:19
quigleyd quigleyd is offline
Registered User
 
Join Date: Nov 2002
Location: Delaware
Posts: 186
Re: Tracking open connections in db2

You can use the command to

get snapshot for all applications


If an application is connected it will say so.

Look under " Inbound communication address" for the ip address, you can searh on "Application status "
with a status of excuting to find all the things connected and see what there doing.
Reply With Quote
  #3 (permalink)  
Old 10-07-03, 11:24
mmarwaha mmarwaha is offline
Registered User
 
Join Date: Sep 2003
Posts: 6
Re: Tracking open connections in db2

Tried what you mentioned but got this.Any clues ?

db2 => get snapshot for all applications
SQL1611W No data was returned by Database System Monitor. SQLSTATE=00000

-MM

Quote:
Originally posted by quigleyd
You can use the command to

get snapshot for all applications


If an application is connected it will say so.

Look under " Inbound communication address" for the ip address, you can searh on "Application status "
with a status of excuting to find all the things connected and see what there doing.
Reply With Quote
  #4 (permalink)  
Old 10-07-03, 11:30
quigleyd quigleyd is offline
Registered User
 
Join Date: Nov 2002
Location: Delaware
Posts: 186
Re: Tracking open connections in db2

Make sure your monintor switches are on.

Buffer pool (DFT_MON_BUFPOOL) = ON
Lock (DFT_MON_LOCK) = ON
Sort (DFT_MON_SORT) = ON
Statement (DFT_MON_STMT) = ON
Table (DFT_MON_TABLE) = ON
Unit of work (DFT_MON_UOW) = ON


According to IBM leaving them on won't hurt performace. Plus it will make your job easier.

And also make sure you mon_haep_sz has some memory allocated to it, usually 256 is good enough
Reply With Quote
  #5 (permalink)  
Old 10-07-03, 13:54
achiola achiola is offline
Registered User
 
Join Date: May 2002
Location: General Deheza, Cba, Arg.
Posts: 273
Re: Tracking open connections in db2

test this commad:
list application <show detail>

Abel.
Reply With Quote
  #6 (permalink)  
Old 10-07-03, 15:09
chuzhoi chuzhoi is offline
Registered User
 
Join Date: Dec 2002
Posts: 134
Re: Tracking open connections in db2

To get appl with ip (If your clients are using tcp/ip to comunicate)

1. "list applications", for every application - get snapshot for aplication agentid <id> and check for "Inbound communication address "parameter

2. Use my db2 monitor
http://chuzhoi_files.tripod.com

regards,
dmitri
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