Skip to Main Content

(In)valid Synonyms

As you may know, the user_objects, all_objects and sys_objects views do not always show the correct status for synonyms.
They may show Valid for synonyms with a missing object, or Invalid for synonyms that do have an object.

Seems a bit strange at first, but it is not illogical I suppose.
It is confusing however, so I built a query for this. Not sure if it is 100% OK, but it served my purpose.

A source with useful info:
https://forums.oracle.com/ords/apexds/post/synonym-with-base-objects-dropped-9727

My query: