Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check permission on procedure or function

Status
Not open for further replies.

maswien

Technical User
Sep 24, 2003
1,286
CA


How do I check if a user has execute permission on a procedure? Which view I can use?

Thanks
 
To check somebody else's privileges, use dba_tab_privs. To check your own, use all_tab_privs.
 

I'm little confused, why I need check a view that shows user's permissions on tables while I want to know user's permissions on procedures.
 
Maswien said:
...why I need check a view that shows user's permissions on tables while I want to know user's permissions on procedures.
...Because in Oracle's infinite wisdom <grin>, they poorly named the view "DBA_TAB_PRIVS" when, instead, they should have named the view "DBA_OBJ_PRIVS".


Here is a proof-of-concept of what Dave (Carp) is saying:
Code:
grant execute on xyz to doh;
select privilege, table_name
  from dba_tab_privs
 where grantee = 'DOH';

PRIVILEGE                                TABLE_NAME
---------------------------------------- ----------
EXECUTE                                  XYZ
Let us know if you have additional questions.



[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I can provide you with low-cost, remote Database Administration services: see our website and contact me via www.dasages.com]
 


Thanks carp and Mufasa!

I guess that doesn't matter, as long as people map things correctly in brain, they should be fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top