Link to home
Start Free TrialLog in
Avatar of Natchiket
NatchiketFlag for United Kingdom of Great Britain and Northern Ireland

asked on

ODBC Oracle connection loses connectivity overnight

Hi this is a non urgent question but one which has foxed me for a long time...

I'm maintaining a certain number of Access databases for a department in a large company.  Most of these databases link to Oracle via ODBC using Oracle in OraHome 9201 or 901.  What sometimes happens is that when these databases are left on overnight, the next day when the user attempts some kind of processing the user gets a connectivity problem and attempting to reconnect the Oracle tables either via code or the 'get external data' feaure in Access results in some kind of access denied error.  This seems especially true if the account is read/write.  Even recreating the DSN has no effect, and the only cure seems to be to re-boot the PC.

Non-ODBC applications e.g. TOAD remain unaffected.

My theory is that because the Oracle database undergoes data import overnight it locks out read-write accounts and somehow ODBC doesn't have the nounce to realise that the lock has been released ... but I'm just clutching at straws.  Does anyone else have any experience of this phenomenon or have any explanation why it occurs or how it may be circumvented ?
ASKER CERTIFIED SOLUTION
Avatar of dds110
dds110

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Natchiket

ASKER

yeah i was thinking about doing that ...  although I'm not sure the data load occurs (the oracle db is a data warehouse).  Some people seem to have an attitude about rebooting their PCs ... and the coporate policy is to keep them running overnight ... daft imo
Avatar of dds110
dds110

Hmmmmm, I wouldn't write anything to reboot the computers.  Just shut down the Access DB's.  If you don't want to shut down the DB's then you could write something to "disconnect" the db's from oracle while the import takes place.

Just my thoughts.
Time to wrap this one up.  Just for the record dds110 when I said people had an attitude towards rebooting PCs I meant rebooting them normally, I wasn't intending for my application to do it.
I wish I could've been more help to you.  Good luck with your issue.