Skip to Main Content
  • Questions
  • Objects auto validated intermittently

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question.

Asked: November 24, 2020 - 1:53 pm UTC

Last updated: November 27, 2020 - 7:12 am UTC

Version: 12.1.0.2.0

Viewed 1000+ times

You Asked

Hi Connor, Chris,

Past few days we are facing issues with database packages getting invalidated and all application processes resulted into "ORA-06508: PL/SQL: could not find program unit being called"/

We could find the invalid objects in user_objects for sometime and they gets validated after sometime.

Could you please provide any lead - how can I investigate it further.

and Connor said...

How about grabbing all DDL on your instance for a period of time and then comparing that to DBA_DEPENDENCIES for the objects concerned.

Here's a mechanism to grab the DDL

https://connor-mcdonald.com/2019/04/24/grab-all-the-ddl/

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

SYS or SYSTEM User

A reader, November 25, 2020 - 5:14 pm UTC

Hi Connor,
Thanks for your reply.
Could you please tell me which user we should use to create this trigger on Production SYS or SYSTEM?
Connor McDonald
November 27, 2020 - 7:12 am UTC

SYSTEM should be fine, or any similarly privileged user.

Don't create stuff in SYS unless you absolutely have to

More to Explore

Security

All of the vital components for a secure database are covered in the Security guide.