Link to home
Start Free TrialLog in
Avatar of bmsande
bmsande

asked on

Broken DBLinks in Oracle after network outage or remote DB shutdown

We have two enterprise apps each with their own Oracle 11g database.  App2 has a dblink to App1.  When App1 is taken offline for scheduled maintenance, and then restored - our dblink is broken.  Users run a report and will receive ORA-03114.  The error only occurs once because when the user runs the report again there are no issues.

We are positive the issue is caused when App1 goes offline during a reboot or network outage.

Is there a way to restore the dblink once App1 is brought online after maintenance?
Avatar of Geert G
Geert G
Flag of Belgium image

running a query with table@dblink should recreate the dblink session

you could do this after app1 starts
Avatar of bmsande
bmsande

ASKER

any suggestions on automating this?
ASKER CERTIFIED SOLUTION
Avatar of Geert G
Geert G
Flag of Belgium image

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 bmsande

ASKER

Thanks for the additional info.  Is the behavior we receive with the ORA error expected when the remote db is shutdown or restarted?  Is this common with db links?
dblinks are not very stable

they sometimes just fail and then you have to find the session on the remote db and kill them to fix the problem
the db will automatically make new dblink session after they were killed