I have a DBIx::HA (High Availability) module on CPAN, but I'm readying a next version real soon now that will take care of this for you.
If you combine Apache+mod_perl+Apache::DBI+DBIx::HA, you'll get what you need.
I'm debugging one last instance of a dbh having an ActiveKid handle when it shouldn't, and then I'll release it. It will require DBI 1.44+ (needs swap_inner_handle()).


On Oct 18, 2004, at 2:05 PM, Jesse, Rich wrote:

Hmmmm...one thing I thought of is to check the validity of the handle, in case the Oracle instance bounces (i.e. The Oracle instance is available, but the persistent connection no longer exists). Does that automagically happen in the connect or should there be code to check for a specific error either on the connect or maybe the statement handle?

Rich

Rich Jesse                        System/Database Administrator
[EMAIL PROTECTED]      QuadTech, Sussex, WI USA


-----Original Message----- From: Jesse, Rich [mailto:[EMAIL PROTECTED] Sent: Monday, October 18, 2004 3:51 PM To: Paul Appleby; BAXTER, LINCOLN A Cc: [EMAIL PROTECTED] Subject: RE: Slow connection to Oracle 9i


Perhaps this'll help:

http://perl.apache.org/docs/1.0/guide/ performance.html#Persistent_DB_Connections

There's a link on that site to "Tim Bunce's Advanced DBI talk", but it returns a 500. Tim???

Rich

Rich Jesse                        System/Database Administrator
[EMAIL PROTECTED]      QuadTech, Sussex, WI USA


-----Original Message----- From: Paul Appleby [mailto:[EMAIL PROTECTED] Sent: Monday, October 18, 2004 3:39 PM To: BAXTER, LINCOLN A Cc: [EMAIL PROTECTED] Subject: RE: Slow connection to Oracle 9i


My CGI application will be called by different users at different times. Are you saying the first user's connection can be left open for all the other users? How?

Paul



Reply via email to