We have an application running on Oracle APEX (ORDS) workspace with parsing schema as "SCHEMA_A"
I have a package "PKG_A1" in schema "SCHEMA_A".
I have a package "PKG_B1" in schema "SCHEMA_B".
I have another package "PKG_B2" in schema "SCHEMA_B" and that package has AUTHID CURRENT_USER clause.
As we know APEX_PUBLIC_USER initiate the session, The call from application to PKG_B2 happens as below:
PKG_A1 --> PKG_B1 --> PKG_B2.
Note: grant execute ON PKG_B1 to schema_A
Question 1: PKG_B2 is executed with SCHEMA_A rights or SCHEMA_B rights or APEX_PUBLIC_USER rights?
Also, if SCHEMA_B has a table "TABLE_B1" exists and a public synonym of a view with the name "TABLE_B1" exists and
PKG_B2 has call to "TABLE_B1" without user alias.
Question 2: will the synonym be called or table is called when called from application?
Please help clarify this