DBAI Les17 Rev1 1
DBAI Les17 Rev1 1
DBAI Les17 Rev1 1
Users
A B C
Privileges
SELECT ON INSERT ON
JOBS JOBS
• By password:
CREATE ROLE hr_clerk
IDENTIFIED BY bonus;
• Identified externally:
CREATE ROLE hr_manager
IDENTIFIED EXTERNALLY;
• Dropping a role:
– Removes it from all users and roles it was granted
– Removes it from the database
• Requires the ADMIN OPTION or DROP ANY ROLE
privilege
• To drop a role:
DROP ROLE hr_manager;
Users
User
roles
HR_CLERK HR_MANAGER PAY_CLERK
Application
roles BENEFITS PAYROLL
Application
privileges
PAY_CLERK PAY_CLERK_RO