[CDBI] reconnecting after timeout

Matt S Trout dbix-class at trout.me.uk
Tue Feb 21 15:13:29 GMT 2006


On Tue, Feb 21, 2006 at 08:54:57AM -0600, Jay Strauss wrote:
> Hi,
> 
> I'm using Oracle, and after long periods of idle, my database connection is 
> closed.  Is there a way to ask class::dbi to reconnect?

It should auto-reconnect on its own. If it doesn't then I suspect your
DBD::Oracle isn't correctly reporting the closed connection.

-- 
     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/ +




More information about the ClassDBI mailing list