Skip to Main Content

SQL & PL/SQL

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!

Random PL/SQL Package Invalidation

triangleHeadFeb 14 2017 — edited Feb 20 2017

Hi All,

Shot in the dark question here.

We have a situation which has happened repeatedly over the last week or so with a set of core PL/SQL package bodies going into an invalid state during our online day.

We have DDL auditing enabled and can see that NOTHING which these objects are dependant upon (from DBA_DEPENDENCIES) has been changed, either locally or remotely, I have also checked that there are no timestamp mismatches between sys.dependency$ and sys.obj$ - again all clear.

So, does anyone know of any under the covers method of enabling a form of tracing which might reveal why the DB is marking the objects invalid ? We cannot SQL trace as there are thousands of connection pooled .NET sessions hitting the DB, more often than not these are the sessions which have the issues (they all try to auto recompile and end up in a horrible mess of library cache locks).

I was secretly hoping for an "event 99999" which generates a nice tracefile every time a package is marked as invalid and explains why ... probably asking too much!

Any thoughts would be welcomed though.

Many Thanks,

Paul

This post has been answered by triangleHead on Feb 17 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 20 2017
Added on Feb 14 2017
42 comments
11,702 views