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 > Server Crash - Application

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-15-10, 15:10
deshaipet deshaipet is offline
Registered User
 
Join Date: Aug 2008
Posts: 76
Server Crash - Application

Hi,

We had a situation recently. An application connected via DB2 data server client ( Application server) to the database hung for around 9 minutes and then timed out with SQL30081N. This situation occured when the database server crashed all of a sudden ( sort fo power off situation).


Ques:

1) Can some one explain why did the application did not get back a SQL return code immediately after the server crash?

Thanks,
Panditt
Reply With Quote
  #2 (permalink)  
Old 09-15-10, 15:24
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Can you post the entire error message?

Andy
Reply With Quote
  #3 (permalink)  
Old 09-15-10, 15:27
deshaipet deshaipet is offline
Registered User
 
Join Date: Aug 2008
Posts: 76
Hi,

Here is the error message.

db2 insert into inst1.tbl1 values (134)
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL30081N A communication error has been detected. Communication protocol
being used: "TCP/IP". Communication API being used: "SOCKETS". Location
where the error was detected: "199.197.48.137". Communication function
detecting the error: "recv". Protocol specific error code(s): "78", "*", "*".
SQLSTATE=08001

Thanks,
Panditt
Reply With Quote
  #4 (permalink)  
Old 09-15-10, 15:34
deshaipet deshaipet is offline
Registered User
 
Join Date: Aug 2008
Posts: 76
Actually this error meesage came back after app 9 minutes. Till that 9th minute I was able to see the statement " db2 insert into inst1.tbl1 values (1 34) " just hangs there.

Thanks,
Manoj
Reply With Quote
  #5 (permalink)  
Old 09-15-10, 15:35
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
This is the description of the error:

Code:
*  If <protocol> = TCP/IP, <function> = recv, <rc1> =
   ETIMEDOUT/WSAETIMEDOUT, AIX (78), Windows (10060), linux (110), SUN
   (145), HP (238), the connection was dropped because the remote system
   failed to respond. Possible causes:
   *  SQLCancel() was called from a CLI application because the
      application set the Query Timeout value or there was an explicit
      cancel request. Adjust the Query Timeout value set by the
      application. If this is not possible, adjust the
      QueryTimeoutInterval setting in the db2cli.ini file. Use
      QueryTimeoutInterval=0 (no timeout) in the db2cli.ini file to test
      whether QueryTimeout is the cause of your application's failure.
      The failure of an existing connection is expected in this
      scenario.
   *  The network is slow, or the server might be too busy to respond to
      the recv request within a reasonable amount of time, you might
      need to adjust your system TCP recv timeout value.
The error basically states that you timed out. My guess is that the client started communicating with the server, then the server crashed, leaving the client waiting for a reply. After 9 minutes, the client timed out and gave you this error. You would not get an error message immediately since the communication had already commenced.

Andy
Reply With Quote
  #6 (permalink)  
Old 09-15-10, 15:38
deshaipet deshaipet is offline
Registered User
 
Join Date: Aug 2008
Posts: 76
Hi Andy,

That makes complete sense. I was not sure but your response confirms it.

Thanks a lot.

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