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 > Production System : Connect to DB hang !

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-03-09, 00:01
Jenny80db2 Jenny80db2 is offline
Registered User
 
Join Date: Aug 2009
Posts: 10
Production System : Connect to DB hang !

Hello All,
We have few monitoring jobs which connect to the database on a
regular basis to ensure that the database is up. If these jobs cannot
connect within a reasonable period they issue a service outage notice.
We had these service outage notices for 3 minutes. Usually connect to DB takes less than 10-15 seconds. So we want to find the cause of this hang.
Its V9.5fp1 on AIX.

I know we will have to capture the below data when such hang occurs.
But our problem is we dont know when this hang will occur and this hang stays for 2-3 mins and mostly in night time, so its hard for us to run these commands during the problem.
db2pd -edu
db2pd -stack all
db2pd -dump all
db2pd -latches
db2pd -eve
ipcs -a

I am not good in scripting lang.
Can you give me the script that monitors the connection to DB and if connect does not get successful in sat 2 mins we will need to run above commands.
Reply With Quote
  #2 (permalink)  
Old 09-03-09, 00:11
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
If I were you, I would "activate" the database. It should not take 10-15 seconds to connect unless you are the only current connection. If the database is already activated, then you should connect right away even if you are the only the connection.

Also, there have been some problems reported with initial connection times that is fixed in 9.5 FP4, especially if you have large bufferpools.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 09-03-09, 02:47
Jenny80db2 Jenny80db2 is offline
Registered User
 
Join Date: Aug 2009
Posts: 10
Well, we need to focus on the original issue Marcus.
Need the script that monitors the connection to DB and if connect does not get successful in sat 2 mins we will need to run above commands.
Reply With Quote
  #4 (permalink)  
Old 09-03-09, 02:53
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
This thread just reinforces what I said earlier about people who have "db2" included in their forum name (at least for 95% of them).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 09-03-09, 04:52
Jenny80db2 Jenny80db2 is offline
Registered User
 
Join Date: Aug 2009
Posts: 10
cool, this answers your understanding of db2 knowledge :-) isn't it?
I believe you need some education about how to focus on problem rather than spreading own words unnecessarily at unwanted place :-)
Admins should take some serious actions against such persons who take the thread away from the actual topic and moving into their own world.
Good luck for your future work MaRcUs
Reply With Quote
  #6 (permalink)  
Old 09-03-09, 09:27
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
this is priceless. Ignorance is A bliss
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #7 (permalink)  
Old 09-03-09, 17:22
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by Jenny80db2
cool, this answers your understanding of db2 knowledge :-) isn't it?
I believe you need some education about how to focus on problem rather than spreading own words unnecessarily at unwanted place :-)
Admins should take some serious actions against such persons who take the thread away from the actual topic and moving into their own world.
Good luck for your future work MaRcUs
You will have to excuse me. I thought the problem is that your db connection is hanging. I specifically mentioned a problem reported by IBM that "might" be applicable in your case. I have experienced this problem myself with 9.5 FP 3 and found a potential fix in FP4.

If you don't want to focus on fixing the problem that is your privilege and I will not interfere in your scripting lesson. It seems doubtful to me that capturing all that info at the time of the hang would really help you solve the problem anyway.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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