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 8526205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:12:24+00:00 2026-06-11T08:12:24+00:00

I want to give privileges to a user to call a function another users

  • 0

I want to give privileges to a user to call a function another users function.

I write this : GRANT EXECUTE ANY FUNCTION TO user;

but it doesn’t work.

user need to call this:

call XXX.YYY.AlterAllInvalidObjects(NULL,'PACKAGE BODY');

but how can I give grant ?

NOTE : I don’t want to use : GRANT EXECUTE ON FUNCTION AlterAllInvalidObjects TO user;
I need general solution not specific function name.

  • 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-11T08:12:26+00:00Added an answer on June 11, 2026 at 8:12 am
    GRANT EXECUTE ANY PROCEDURE TO user;
    

    http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_9013.htm#i2077938

    will manage both functions and procedures.
    You can’t grant that way to functions only…

    EDIT

    the other way (but you’ll have to run it every time the other user will create a new function to get all the grants):

    Run

    select 'GRANT EXECUTE ON '||owner||'.'||object_name||' TO user;'
    from all_objects
    where owner = 'xxx'
    and object_type='FUNCTION';
    

    and copy-paste-execute the result…

    or use a SP doing the same thing (cursor on the query and execute immediate in loop)

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

Sidebar

Related Questions

I want to give a user access to a stored procedure, but not to
Question: How can I give a new user almost all privileges, but still keep
I want to give users some formatting options like Reddit or stackOverFlow do, but
I want to give the user four choices, the first and second choices on
I want to give permission to a user to access my database using work
I want to give integer input to Ruby like this: 12 343 12312 12312
my website has separate tables for users and admin now i want to give
I want to give group access to user www-data on ubuntu for a directory.
I want to give users ability to post short text messages from their phones
I want to give my users the ability to export a table to CSV.

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.