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!

Privileges required for calling a Function

KavanaghSep 6 2012 — edited Sep 6 2012
11.2

For procedures, we need to grant EXECUTE privilege.

For example:
grant execute on scott.process_salary to john;
Lets say I have a function SCOTT.GET_EMPIDS and I want another user john to be able to invoke this fuction. So, what is the privilege that needs to be granted to John.

Is it SELECT or EXECUTE ?
grant select on SCOTT.GET_EMPIDS to john;
or
grant execution on SCOTT.GET_EMPIDS to john;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 4 2012
Added on Sep 6 2012
2 comments
347 views