How to create a user in Oracle 11g and grant permissions

后端 未结 9 1485
梦谈多话
梦谈多话 2020-11-29 17:17

Can someone advise me on how to create a user in Oracle 11g and only grant that user the ability only to execute one particular stored procedure and the tables in that proce

9条回答
  •  迷失自我
    2020-11-29 18:09

    Connect as SYSTEM.

    CREATE USER username IDENTIFIED BY apassword;
    
    GRANT CONNECT TO username;
    
    GRANT EXECUTE on schema.procedure TO username;
    

    You may also need to:

    GRANT SELECT [, INSERT] [, UPDATE] [, DELETE] on schema.table TO username;
    

    to whichever tables the procedure uses.

提交回复
热议问题