G
Guest
I have an Access database that queries data from an associated Oracle
database, through linked tables, over an ODBC connection, with code such as:
mySQL = "SELECT RECIPE_STATUS FROM RECIPE"
DoCmd.RunSQL mySQL
Under normal circumstances this works just fine, but I'm finding that there
is a network issue somewhere that is periodically breaking the connection to
the Oracle database, leading to the ubiquitous ora-03113, end-of-file on
communications channel, error. I can trap for the error, but any further
attempt to run a query against the Oracle database results in the ora-03114,
not connected to ORACLE, error. The only recourse is to close the Access
database and start over again.
This has been the only means of recovery I've found with any application
accessing an Oracle database that's hit with the 3113 error, shut it down and
start over again; whether the app is written in VB, VBA, C++, etc.
It occurred to me, however, that if I could clear all knowledge of any
remote database connections within the Access application, that I could rerun
the query successfully, but I can't find any way to tell Access to clear all
database connection information.
Is this even possible?
If so, what would the VBA code be to pull this off?
Thanks,
J Toth
database, through linked tables, over an ODBC connection, with code such as:
mySQL = "SELECT RECIPE_STATUS FROM RECIPE"
DoCmd.RunSQL mySQL
Under normal circumstances this works just fine, but I'm finding that there
is a network issue somewhere that is periodically breaking the connection to
the Oracle database, leading to the ubiquitous ora-03113, end-of-file on
communications channel, error. I can trap for the error, but any further
attempt to run a query against the Oracle database results in the ora-03114,
not connected to ORACLE, error. The only recourse is to close the Access
database and start over again.
This has been the only means of recovery I've found with any application
accessing an Oracle database that's hit with the 3113 error, shut it down and
start over again; whether the app is written in VB, VBA, C++, etc.
It occurred to me, however, that if I could clear all knowledge of any
remote database connections within the Access application, that I could rerun
the query successfully, but I can't find any way to tell Access to clear all
database connection information.
Is this even possible?
If so, what would the VBA code be to pull this off?
Thanks,
J Toth