It's a known issue, and it is not specific to Oracle. We've seen the
same error frequently for Filemaker JDBC and Oracle connections for a
couple of years now. The best solution anyone has come up with is to
trap the error and then issue a restart to the server process. There
does not appear to be an easy way to kill off the specific connection.
It appears that the error occurs when the database connection is not
properly closed, usually due to some networking interference (dropped
packets, firewall killing idle connections, etc.) We were able to
reduce the number of failures by eliminating some of the potential
points of networking failure between servers A and B. If your
database server is remote, this may not be an option for you. The
other thing we did was make sure the DATASOURCELIFE was set to be
shorter than likely network timeouts. This created a separate problem
in Oracle 9+ where idle sessions were left on the Oracle side,
eventually using up all of the available users and significantly
annoying our dba, so we ended up scheduling witango server restarts
anyway to clear those.
Depending on your setup, namely the number of connections and the
amount of site traffic you're talking about, you can try trapping
the 113 error and then setting the DATASOURCELIFE to 0, immediately
hitting the same db connection again (to timeout the datasource).
Then you reset the DATASOURCELIFE to it's previous setting. That
should force the connection to be retried the third time most of the
time. This works pretty well in our dev environment, but it turned
out to be impractical with the sheer number of connections we work
with in production.
A couple of people have contacted me on and off list saying they've
had the same issues, so I'm sure a few of us would be happy to hear
of a better solution should you come across one.
--sh
On Oct 13, 2008, at 12:55 AM, MC Tay wrote:
Hi:
I have encountering lost database connection and need some help.
I have a Witango application (Server A) accessing Oracle database
(Server B) on a remote site. It works fine not until may be 2-3
hours later the database connection is lost. I have to restart
Witango service on Server A and it works again. But, few hours
later the database connection is lost again.
Any idea how to fix this and is it a known problem?
Thanks!
MC
______________________________________________________________________
__
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf