Download presentation
Presentation is loading. Please wait.
1
IS221: Database Management
Lab 6 Information Systems Department TA. Rawan Alayed
2
Outline : Object Privileges . Granting/Revoking Object Privileges .
ALL Privilege . WITH ADMIN Option . Drop User Privilege . Information Systems Department TA. Rawan Alayed
3
Object Privileges Description Object Privileges
Enables a user to insert into a table . INSERT Enables a user to update a table . UPDATE Enables a user to delete from a table . DELETE Enables a user to select from a table, sequence, view, materialized view, or synonym. A user can be granted the SELECT privilege on a synonym or a view without being explicitly granted the SELECT privilege on the originating table. SELECT Enables a user to execute a PL/SQL package, procedure or function directly. EXECTUE Enables a user to load a cache group. LOAD Enables a user to unload a cache group. UNLOAD Enables a user to refresh cache group. REFRESH Grant all privileges on an object. ALL Information Systems Department TA. Rawan Alayed
4
Granting Object Privileges
Grant object privileges to particular user : “ Grant object_privilege on object_name to user_name ; “ For example : INSERT, SELECT, DELETE privilege : Information Systems Department TA. Rawan Alayed
5
Revoking Object Privileges
Revoke the object privileges already granted to a user. “ Revoke object_privilege on object_name from user_name ” Information Systems Department TA. Rawan Alayed
6
ALL Privilege Grant all privileges on a specific object to a user.
“ Grant ALL on object_name to user_name “ Revoke ALL privileges already granted to a user. “ Revoke ALL on object_name from user_name “ Information Systems Department TA. Rawan Alayed
7
1. Admin grants CREATE USER to rawan.
With Admin Option Using “ WITH ADMIN OPTION “ allows the user granted the privilege to grant that privilege to other users . For example : grant CREATE USER system privilege. 1. Admin grants CREATE USER to rawan. 2. Rawan grants CREATE USER to rwn Information Systems Department TA. Rawan Alayed
8
“ Drop user user_name CASCADE “
Drop user system privilege : “ Drop user user_name CASCADE “ Specify CASCADE to drop all objects in the user's schema before dropping the user. Specify CASCADE to drop all objects in the user's schema before dropping the user. You must specify this clause to drop a user whose schema contains any objects. If the user's schema contains tables, then Oracle Database drops the tables and automatically drops any referential integrity constraints on tables in other schemas that refer to primary and unique keys on these tables. If this clause results in tables being dropped, then the database also drops all domain indexes created on columns of those tables and invokes appropriate drop routines. Information Systems Department TA. Rawan Alayed
9
Visit the link for more Object Privileges :
/privileges.htm#TTSQL338 Information Systems Department TA. Rawan Alayed
10
Information Systems Department TA. Rawan Alayed
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.