Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8079991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:16:58+00:00 2026-06-05T16:16:58+00:00

I execute the command below to revoke a user’s permissions to execute a particular

  • 0

I execute the command below to revoke a user’s permissions to execute a particular SP:

REVOKE EXECUTE ON SOME.SP_NAME FROM SOME_USER;

I want a query to find out whether the execute permission has been successfully revoked.

Is there some query that will show me the all the permissions SOME_USER has on SOME.SP_NAME so that I can visually verify that EXECUTE isn’t one of them now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T16:17:00+00:00Added an answer on June 5, 2026 at 4:17 pm
    select * from all_tab_privs where grantee = 'SOME_USER' and table_name = 'SP_NAME' and table_schema = 'SOME'
    

    EDIT:

    ALL_TAB_PRIVS works fine. Here’s a session of my own:

    SQL> create procedure myproc is begin null; end;
      2  /
    
    Procedure created.
    
    SQL> grant execute on myproc to x11414;
    
    Grant succeeded.
    
    SQL> select * from all_tab_privs where table_name = 'MYPROC';
    
    GRANTOR                        GRANTEE                                          
    ------------------------------ ------------------------------                   
    TABLE_SCHEMA                   TABLE_NAME                                       
    ------------------------------ ------------------------------                   
    PRIVILEGE                                GRA HIE                                
    ---------------------------------------- --- ---                                
    W13582                         X11414                                           
    W13582                         MYPROC                                           
    EXECUTE                                  NO  NO                                 
    
    
    SQL> revoke execute on myproc from x11414;
    
    Revoke succeeded.
    
    SQL> select * from all_tab_privs where table_name = 'MYPROC';
    
    no rows selected
    

    EDIT #2: DBA_TAB_PRIVS may be better if you have access to it. ALL_TAB_PRIVS is limited to:

    Grants on objects for which the user is the grantor, grantee, owner,
    or an enabled role or PUBLIC is the grantee

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I execute a command line from within a WiX script? I want
From my Eclipse plugin, I want to execute a command and show the results
Below is the code that I want to execute a command if the click
I get an error when I execute the command below from a DOS window
I want to execute some Unix commands from the java code. I want to
I am trying to execute a command like this: find ./ -name *.gz -print
I'm trying to do a 'within' query using mongomapper. When I execute the command
I need to execute the below command in command prompt. C:\MySQL\MySQL Server 5.0\bin>mysql -uroot
how do i let UIthread to execute a command when im in some thread
I want to execute a command line tool to process data. It does not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.