Grant

Granting Privileges using the GRANT statement
The grant statement provides various types of access to database objects such as tables views and sequences.
Syntax:- GRANT object privileges on objectname to User name [with grant option];
Privileges
            SELECT,INSERT,UPDATE,INDEX,ALTER,DELETE,ALL
With grant option
            The with grant option allows the grantee to in turn grant object privileges to other users.
Ex:-     Grant all on vision to vision;
            Grant select on vision1 to vision;
            Grant select,update on vision2 to vision;
            Grant select,update,delete on vision3  to vision with grant option;

Vision user
Ex:-     select * from scott.vision;
            insert into scott.vision values(122,'sekhar',222);

select * from scott.vision1;

            select * from scott.vision2;
update scott.vision2 set sal=sal+1000;

 select * from scott.vision3;

       update scott.vision3 set sal=sal+1000 where code=20;
delete from scott.vision3 where code=20;

grant select on scott.vision3 to suri;
Suri screen After granting permissions from vision

For
More Explanation
&
Online Classes

Contact Us:
+919885348743