Professional Documents
Culture Documents
Shabeerali, A.V.
Shab-pg5@iiitmk.ac.in
Roll No: M0508036
My Goal
• Privileges
• Roles
• Usage
• Demo
Privileges Roles Usage Demo
Privileges
System Privileges
Database system privileges let you execute
specific set of commands.
Object Privileges
To perform some operations on various
objects.
Roles
An Oracle role is set of privileges (or type of access that
each user needs, depending on his or her status and
responsibilities).
Three standard roles
•CONNECT
•RESOURCE
•DBA
Privileges Roles Usage Demo
The CONNECT Role
Gives users to log in and do basic functions
Access to specific tables belonging to other users.
--Create tables, views, sequences, clusters, synonyms,
and links to other database.
The RESOURCE Role
Gives additional rights create their own tables,
sequences, procedures ,triggers, data types, operators,
index types, indexes and clusters.
Privileges Roles Usage Demo
Grant
Format for the grant command
Grant {system privilege | role | all
[privileges] }[, {system privilege | role
| all [privileges]}……]
to {user | role }[,{user | role }]…
[identified by password ][with admin
option];
create user july identified by july;
grant CONNECT to july;
grant CONNECT,RESOURCE to user;
Privileges Roles Usage Demo
Privileges Roles Usage Demo
Creating a role
create role CLERK
Granting privileges to a role
grant select on TABLENAME to CLERK;
Granting role to another role
grant CLERK to MANGER ;
Granting role to users
grant CLERK to Bob;
Grant with admin option
grant MANAGER to Bob with admin option;
Privileges Roles Usage Demo
Granting access to the public
Grant select on TABLENAME to public;
Granting limited resource
Alter user bob quota 100M on USERS;
Privileges Roles Usage Demo
DEMO
REFERENCE