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

后端 未结 9 1379
梦谈多话
梦谈多话 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:05
    • step 1 .

      create user raju identified by deshmukh;

    • step 2.

      grant connect , resource to raju;

    • step 3.

      grant unlimitted tablespace to raju;

    • step4.

      grant select , update , insert , alter to raju;

    0 讨论(0)
  • 2020-11-29 18:06
    CREATE USER books_admin IDENTIFIED BY MyPassword;
    GRANT CONNECT TO books_admin;
    GRANT CONNECT, RESOURCE, DBA TO books_admin;
    GRANT CREATE SESSION GRANT ANY PRIVILEGE TO books_admin;
    GRANT UNLIMITED TABLESPACE TO books_admin;
    GRANT SELECT, INSERT, UPDATE, DELETE ON schema.books TO books_admin;
    

    https://docs.oracle.com/cd/B19306_01/network.102/b14266/admusers.htm#i1006107 https://chartio.com/resources/tutorials/how-to-create-a-user-and-grant-permissions-in-oracle/

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题