Answers for "oracle grant schema to role"

SQL
1

oracle grant role

GRANT role_name TO user_name;
ALTER USER user_name DEFAULT ROLE role_name;
-- Check:
SELECT * FROM DBA_ROLES WHERE ROLE = 'role_name';
SELECT * FROM DBA_ROLE_PRIVS WHERE GRANTED_ROLE = 'role_name' 
	AND GRANTEE = 'user_name';
Posted by: Guest on July-07-2021
1

oracle grant select on schema

BEGIN
   FOR R IN (SELECT owner, table_name FROM all_tables 
             WHERE owner='OTHER_SCHEMA') LOOP
      EXECUTE IMMEDIATE 'GRANT SELECT, INSERT, UPDATE, DELETE ON ' ||
                         R.owner || '.' || R.table_name || ' TO MY_SCHEMA';
   END LOOP;
END;
Posted by: Guest on February-22-2021

Code answers related to "oracle grant schema to role"

Code answers related to "SQL"

Browse Popular Code Answers by Language