Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: DBD::Sybase query execute hangs randomly for Sybase IQ 15.4

by jfroebe (Vicar)
on Jun 18, 2013 at 16:37 UTC ( #1039591=note: print w/ replies, xml ) Need Help??


in reply to DBD::Sybase query execute hangs randomly for Sybase IQ 15.4

Set the timeout connection option so you aren't waiting forever.

$dsn = "dbi:Sybase:serverType=IQ:loginTimeout=240:timeout=180:server=$ +db_server_ifc"; my $dbh = DBI->connect($dsn, $self->get_db_username(), $self->get_db_password(), \%connect_options ); my $sqlA =<< "END_SQLA"; SELECT table_id FROM sys.systable WHERE table_name like ? AND length(table_name) = ? AND user_name(creator) = ? END_SQLA my $sthA = $dbh->prepare($sqlA); $sthA->execute($uc_table_name . '%', $table_name_len, $uc_schema);

DBD::Sybase works fine with IQ. That being said, connections to IQ work differently than other database systems. If you have 100 allowable connections, you may have 40 connections that can do work at a time. The other 60 will appear to hang from the application perspective. If you're running into this feature, it will also occur using dbisql or isql.

Jason L. Froebe

Blog, Tech Blog


Comment on Re: DBD::Sybase query execute hangs randomly for Sybase IQ 15.4
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039591]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-11-28 04:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (193 votes), past polls