Re: [CDBI] reconnecting after timeout

[prev] [thread] [next] [Date index for 2006/02/21]

From: Matt S Trout
Subject: Re: [CDBI] reconnecting after timeout
Date: 15:41 on 21 Feb 2006
On Tue, Feb 21, 2006 at 09:27:39AM -0600, Jay Strauss wrote:
> On Tuesday 21 February 2006 9:13 am, Matt S Trout wrote:
> > It should auto-reconnect on its own. If it doesn't then I suspect your
> > DBD::Oracle isn't correctly reporting the closed connection.
> 
> Are you sure about it doing it on it's own?
> 
> I'm using DBD::Oracle = $DBD::Oracle::VERSION = '1.16';
> I'm using Oracle instantclient_10_2
> 
> That stuff should be recent enough.
> 
> (Tim Bunce are you lurking?  can you shed any light?)

Ima::DBI calls $dbh->ping and checks $dbh->{Active} before it uses the $dbh.

If the connection is dead one of those should return false.

It's always worked beautifully for me on every database I tried it on; what
DBIx::Class does is extremely similar and I haven't had any problems with
that either - including our Oracle-based users, a number of whom came from
CDBI and didn't have this problem there either.

So I'm definitely voting for "not Class::DBI's fault".

        -- 
             Matt S Trout       Offering custom development, consultancy and support
  Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

(message missing)

[CDBI] reconnecting after timeout
Jay Strauss 14:54 on 21 Feb 2006

Re: [CDBI] reconnecting after timeout
Matt S Trout 15:13 on 21 Feb 2006

Re: [CDBI] reconnecting after timeout
Jay Strauss 15:27 on 21 Feb 2006

Re: [CDBI] reconnecting after timeout
Matt S Trout 15:41 on 21 Feb 2006

Re: [CDBI] reconnecting after timeout
Jay Strauss 16:10 on 21 Feb 2006

Re: [CDBI] reconnecting after timeout
Michael Peters 16:19 on 21 Feb 2006

Re: [CDBI] reconnecting after timeout
Tim Bunce 16:50 on 21 Feb 2006

Re: [CDBI] reconnecting after timeout
Jay Strauss 17:53 on 21 Feb 2006

Re: [CDBI] reconnecting after timeout
Jay Strauss 14:57 on 24 Feb 2006

Re: [CDBI] reconnecting after timeout
Jay Strauss 15:46 on 24 Feb 2006

Re: [CDBI] reconnecting after timeout
Jay Strauss 16:20 on 21 Feb 2006

Generated at 12:31 on 28 Feb 2006 by mariachi v0.52