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

后端 未结 9 1479
梦谈多话
梦谈多话 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 17:54

    Follow the below steps for creating a user in Oracle.
    --Connect as System user

    CONNECT /@;
    

    --Create user query

    CREATE USER  IDENTIFIED BY ;
    

    --Provide roles

    GRANT CONNECT,RESOURCE,DBA TO ;
    

    --Provide privileges

    GRANT CREATE SESSION, GRANT ANY PRIVILEGE TO ;
    GRANT UNLIMITED TABLESPACE TO ;
    

    --Provide access to tables.

    GRANT SELECT,UPDATE,INSERT ON  TO ;
    
        

    提交回复
    热议问题