Oracle Database / Accounts, Security & Access
Investigate a synonym resolving to the wrong Oracle object
An unqualified name can resolve differently across schemas after a synonym or object changes. Inspect both private and public synonyms.
Environment and inputs: Oracle Database 19c baseline · SQL*Plus-compatible SQL unless RMAN, DGMGRL, ADRCI or a host shell is specified. Check release, patch level, edition and container first.
Start with this diagnostic
Run each example in the tool named in the guide: SQL, RMAN, DGMGRL or the host command shell. Replace example names with approved values. To query DBA and V$ views, use authorized catalog access in the correct database container. Do not add broad permissions just to run an example.
SELECT owner, synonym_name, table_owner, table_name, db_link FROM all_synonyms WHERE synonym_name = 'APP_ORDERS';
What the results mean
The result reveals visible synonym targets and possible remote links. Object naming resolution also depends on the current schema and existing local objects.
Fix the cause and check again
Confirm the application's current schema and intended owner, then correct the naming design or use an approved qualified reference. Validate dependencies after deployment.
Before you make a change
Do not repoint a public synonym for one application's convenience without reviewing other consumers.