Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Srinivasa Rao Duggineni <dsrao at wilco-int dot com>
Subject: RE: Handling log full issues with DB-Library
Date: Sep 4 2002 8:32AM

In production like environments, we cann't configure to either dump the log
if it reaches the threshold limit or to abort the transactions if the log
gets filled in automatic fashion. as you can't really say that the query
which is being executed by the script is responsible to fill up the log. Any
process that is trying to use the log will get suspended until the log gets

So, we cann't make the configuration changes in these envs. That is why I am
looking to fix the issue in the script itself.

+91 40 3408600 x 8488

> -----Original Message-----
> From: []
> Sent:	Wednesday, September 04, 2002 1:39 PM
> To:	SybPerl Discussion List
> Subject:	RE: Handling log full issues with DB-Library
> Rather than answer the perl question, how about:
> Lower thresholds that dmp the log.  Generally speaking you should have
> these 
> (but obviously it depends.)
> It sounds as if the database should have "abort tran on log full" too,
> unless 
> this one single query is the only one that should abort when the log
> fills.
> I hope this helps,
> Regards,
> Abe Crabtree
> -----Original Message-----
> From: dsrao []
> Sent: 04 September 2002 04:58
> Cc: dsrao; duggineni.rao; andre.wong
> Subject: Handling log full issues with DB-Library
> Hi,
> 	I have a situation where I am executing a query through DB-Lib
> command in a Sybase database. If this query fills up the log to the
> threshold limit, the data server suspends the execution of the query till
> the space is made available in the log. But I want to catch that warning
> in
> my script and want to cancel the connection to the database. I am actually
> using the message handler in my script. So, whenever this happens, the
> control goes into the message handler. I am trying to kill the connection
> using dbclose/dbcancel, but It doesn't seem to work.
> 	Basically I want the control back to the script when this happens. 
> 	I am getting the "Segmentation fault(core dumped)" error when I
> tried to close and reopen a connection with the same db handler inside the
> message handler.
> 	Did anyone come across situation like this??
> 	Please pass on any idea that can handle this situation.
> Regards,
> Srini.
> This message is confidential and may also be legally privileged. If you
> are not 
> the intended recipient, please notify
> immediately. You 
> should not copy it or use it for any purpose, nor disclose its contents to
> any 
> other person. The views and opinions expressed in this e-mail message are
> the 
> author's own and may not reflect the views and opinions of Wilco.