How to give select privilege on all the objects owned by an user(say user1) to another user say(user2) using a single sql statement?

Showing Answers 1 - 12 of 12 Answers

g_sidhu

  • Feb 12th, 2008
 

A privilege that is granted with the WITH GRANT OPTION clause can be passed on to other users and roles by the grantee. Object privileges granted with the WITH GRANT OPTION clause are revoked when the grantor’s privilege is revoked.

  Was this answer useful?  Yes

SQL> conn sample/sample;
Connected.
SQL> select count(1) from girija.employees;
select count(1) from girija.employees
                            *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL> conn girija/******;
Connected.
SQL> grant all privileges to sample;

Grant succeeded.

SQL> conn sample/sample
Connected.
SQL> select count(1) from girija.employees;

  COUNT(1)
----------
        20

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions