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';
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';
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;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us