Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Is there a way to timeout queries over database links?

RaphaelSApr 7 2017 — edited Apr 13 2017

Hello everyone, hope everything is fine.

I have a situation here where one database we connect via dblink became unresponsive (its operating system froze, according to the guy responsible), but was still accepting incoming connections. This resulted in sessions that were stuck, running indefinitely (they would not die after a "kill session" either, I had to log into the operating system and kill -9 the appropriate process manually). With this, the number of open sessions in our own database skyrocketed (thanks to apps that accessed the problematic dblink), hit the process limit and crashed our database.

Considering this scenario, what would you guys recommend, to avoid this kind of issue in the future? My first thought was to set up a timeout of sorts to queries done via dblink, but I can't find any way to do this.

My Db version is 11.2.0.4.

Thanks!

This post has been answered by unknown-7404 on Apr 10 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 11 2017
Added on Apr 7 2017
27 comments
5,124 views