Documente Academic
Documente Profesional
Documente Cultură
• Database security:
– System security
– Data security Database
• System privileges: Access administrator
to the database Username
• Object privileges: Ability and password
to manipulate the content privileges
of the database objects
• Schema: A collection of
objects, such as tables,
views, and sequences
Users
Example:
CREATE USER scott
IDENTIFIED BY tiger;
User created.
Syntax:
GRANT { system_privilege | role | ALL PRIVILEGES }
[, { system_privilege | role | ALL PRIVILEGES }]...
TO { user | role | PUBLIC }
[, { user | role | PUBLIC }]...
[IDENTIFIED BY password] [WITH ADMIN OPTION]
Example:
GRANT create table, create sequence, create view
TO scott;
Grant succeeded.
Users
Manager
Privileges
• Create a role:
CREATE ROLE manager;
Role created.
Object
Privilege Table View Sequence Procedure
ALTER √ √
DELETE √ √
EXECUTE √
INDEX √
INSERT √ √
REFERENCES √
SELECT √ √ √
UPDATE √ √
7-12 Copyright © 2004, Oracle. All rights reserved.
Understanding Object Privileges
Syntax:
REVOKE {privilege [, privilege...]|ALL}
ON object
FROM {user[, user...]|role|PUBLIC}
[CASCADE CONSTRAINTS];
Local Remote
EMP table