Skip to Main Content

Oracle Database Discussions

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!

Grant a permission to select the function but not execute in any PL/SQL block

Gurwinder SinghAug 15 2015 — edited Aug 17 2015

Hello.

I know there are only two permissions on procedures/functions - EXECUTE and DEBUG.

But I want to grant the EXECUTE permission to a user in such a way that the user can select the function using dual or any other query but not execute( to prevent the user from firing DMLs - Insert, update etc) inside any BEGIN-END block.

I know that we can revoke access to tables etc. But that access has to be given. The user should be able to do perform DML operation, but just not through a function.

Can anyone please help?

This post has been answered by unknown-7404 on Aug 16 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 14 2015
Added on Aug 15 2015
7 comments
4,723 views