oracle grant role

Solutions on MaxInterview for oracle grant role by the best coders in the world

showing results for - "oracle grant role"
Felix
05 Jan 2021
1GRANT role_name TO user_name;
2ALTER USER user_name DEFAULT ROLE role_name;
3-- Check:
4SELECT * FROM DBA_ROLES WHERE ROLE = 'role_name';
5SELECT * FROM DBA_ROLE_PRIVS WHERE GRANTED_ROLE = 'role_name' 
6	AND GRANTEE = 'user_name';
Antonella
06 Mar 2016
1-- CREATE ROLE role_name [IDENTIFIED BY password] [NOT IDENTIFIED]
2CREATE ROLE role_name;
3GRANT CREATE SESSION, ALTER SESSION TO role_name;
4GRANT SELECT, INSERT, DELETE, UPDATE ON table_name TO role_name;
5GRANT EXECUTE ON proc_name TO role_name;
6-- Grant role to user
7GRANT role_name TO user_name;
8ALTER USER user_name DEFAULT ROLE role_name;
9SELECT * FROM DBA_ROLES WHERE ROLE = 'role_name';
10SELECT * FROM DBA_ROLE_PRIVS WHERE GRANTED_ROLE = 'role_name' 
11	AND GRANTEE = 'user_name';
Alexandra
22 Nov 2018
1GRANT role_name TO user_name;
queries leading to this page
how to grant roles to user in oraclecreate user role in oracleuser roles oraclegrant database link to user in oracleoracle all roles to userprivileges of role oracleoracle grant role to usercreate role in oraclehow to find user roles and privileges in oraclegive role to user oracleoracle grant roles to usercreate role in oracle sqloracle grant roleoracle sql grant role to useroracle sql grant privileges to role adminhow to grant roles in oraclegive privileges to role oraclegrant role to role oracleoracle role useroracle create role privilegeoracle grant admin role to useroracle role syntaxgrant role to user oracleoracle rolecreate role oracle sqlgrant all roles to db user oracleoracle 19 grant role to useroracle grant all roles to useroracle sql grant rolehow to create role in oracleoracle default role for useroracle add user to rolegrant privileges to role in oraclegrant table oracle to usergrant a role to a user in oraclecreate role oracleoracle sql grant privileges to user adminoracle create role examplecreate role oracle exemplecreate role oracle databaseoracle user grantoracle sql grant privileges to roleoracle create roleoracle 19 grant role to user as admincreate role oracle 12cgrant user access to table oracleoracle grant schema to roleassign role to user oraclehow to grant user role to schema in oraclegrant role with admin option in oracleoracle grant catalog roleadd role to user oraclecreate role and grant privileges in oraclecreate role oracle syntaxoracle base create roleoracle grant role