Why ORA-00942 Happens
- Missing schema prefix or synonym when connecting as a different application user.
- Object privilege granted via a ROLE instead of directly to the user (roles are disabled inside definer-rights PL/SQL packages!).
- Typo or case-sensitive double-quoted table name.
Recommended Resolution
Qualify schema.table explicitly, verify privileges in ALL_TAB_PRIVS, and grant direct SELECT/INSERT/UPDATE privileges for objects used inside PL/SQL stored procedures.
SQL Diagnostic & Fix Example
-- Required for definer-rights PL/SQL packages GRANT SELECT, INSERT ON finance.payment_ledger TO app_worker;