Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
============
*)DCL commands are used to grant permission or to remove permission on database
objects or resources.
*)Permissions on objects can be granted/revoked by owner of the Object where as
Resources by dba.
*)Oracle provides two group of privileges(Permissions)
1)Object Privileges(SELECT,DELETE,UPDATE,INSERT,INDEX)
2)System Privileges (Near about 100+, they are listed below)
-CREATE TABLE
-CREATE VIEW
-CREATE USER
.........
.........
*)To use Object Privilege,SQL Provides two commands.
-GRANT
-REVOKE
*) For System Privileges also above two commands are used with differenct systax
.
a)OBJECT PRIVILEGES:
===================
GRANT TO OBJECT:
---------------syntax:
GRANT <Object Privileges List>/ALL
ON <Object Name>
TO <user Name>/PUBLIC
[WITH GRANT OPTION];
REVOKE FOR OBJECT:
----------------Syntax:
REVOKE <Object Privileges List>/ALL
ON <Object Name>
FROM <User Name>/PUBLIC;
Scott -------->
Sivanand
Emp
----------->
Scott.Emp
Somu
Scott.emp
privileges.