Module 5 Session 4
Module 5 Session 4
Database
administrator
Users
• Database security:
– System security
– Data security
• System privileges: Gaining access to the database
• Object privileges: Manipulating the content of the
database objects
• Schemas: Collections of objects, such as tables,
views, and sequences
Users
Manager
Privileges
Allocating Allocating
privileges privileges with
without a role a role
• Create a role
CREATE ROLE manager;
Role created.
Object
Privilege Table View Sequence Procedure
ALTER √ √
DELETE √ √
EXECUTE √
INDEX √
INSERT √ √
REFERENCES √ √
SELECT √ √ √
UPDATE √ √
GRANT object_priv
ON [(columns)]
TO object
[WITH GRANT OPTION];
{user|role|PUBLIC}
Local Remote
EMP
Table
SELECT *
FROM emp@HQ.ACME.COM;