Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can call a procedure in an anonymous block but i am not able to do it in a procedure

FormsFeb 23 2015 — edited Feb 24 2015

Hi Gurus,

I created a procedure my_log in a schema called A. I granted "Execute privilege" on my_log to a role called my_role.

Schema B has been granted wtih the role my_role.

When I am calling my_log procedure in an anonymous block logged as Schema B the block executes successfully.

But when i create a procedure my_proc and use A.my_log in schema B the procedure is not getting compiled and complains with the followign error.

PLS-00201: identifier 'A.my_log' must be declared.

Could you please let me know why is this happening. Code snippet attached.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2015
Added on Feb 23 2015
13 comments
2,853 views