DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: Compile Privilege

  1. #1
    Join Date
    Jan 2001
    Posts
    515

    Compile Privilege

    Is there a right I can grant to a user that would allow them to compile objects in my schema?

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334

    Re: Compile Privilege

    Originally posted by lesstjm
    Is there a right I can grant to a user that would allow them to compile objects in my schema?
    guessing grant any procedure would do that for you

  3. #3
    Join Date
    Jan 2001
    Posts
    515

    Doesn't Work

    user1@tesdb>grant any procedure to user2;
    grant any procedure to user2
    *
    ERROR at line 1:
    ORA-00990: missing or invalid privilege

  4. #4
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092

  5. #5
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439

    Re: Compile Privilege

    Originally posted by lesstjm
    Is there a right I can grant to a user that would allow them to compile objects in my schema?
    No, no way to limit that compiling objects privilege to only one schema. It's all or nothing - you can only grant that for the whole database, not for a particular schema. You would need to grant that user two system privileges:

    ALTER ANY PROCEDURE;
    ALTER ANY TRIGGER;

    The problem with triggers is that he will not be only able to compile them, he'll also have the power to disable/enable them.
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

  6. #6
    Join Date
    Nov 2003
    Posts
    89
    Give
    Grant execute on proc-name to user2.
    create public synonym.

  7. #7
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    The most secure way would probably be to create a definer's rights stored procedure in your schema to accept an object name and type and compile it, and grant execute privilege to the other user on that procedure.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width