GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  SQL Plus
Go To First  |  Previous Question  |  Next Question 
 SQL Plus  |  Question 120 of 132    Print  
How to grant all permission of one user to another user.

  
Total Answers and Comments: 4 Last Update: March 29, 2007     Asked by: globalanil18 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 26, 2007 07:19:53   #1  
Subashini.Ramasamy Member Since: February 2007   Contribution: 19    

RE: How to grant all permission of one user to another...



Hi Friends


You can follow this one for granting all permission of one user to another.

GRANT ALL ON <TABLE-NAME> TO <USER-NAME> [WITH GRANT OPTION]


ALL used to specify all of the object privilegs such as
ALTER DELETE INDEX UPDATE INSERT and SELECT

ON <TABLE-NAME> Specifies the table view or synonyms


TO <USER-NAME> Specifies to whom the privileges are granted


WITH GRANT OPTION Specifies that the grantee may pass on the privileges

that has been granted to another user.


I think that this is helpful


 
Is this answer useful? Yes | No
March 05, 2007 05:48:29   #2  
Nabajit        

RE: How to grant all permission of one user to another...
Hi Guys..

U need to create ROLE for that user whose all access u want to grant to other.. Then just grant the whole ROLE to that user...

Thanks...

 
Is this answer useful? Yes | No
March 12, 2007 06:38:06   #3  
globalanil18 Member Since: August 2006   Contribution: 19    

RE: How to grant all permission of one user to another...
Thanks for reply meBut We need to grant to over all permission to another user. Anyone as create any table in that user then another user will able to access that newly created table without giveing any sp. permission to that table. That means we have to provide over all permission of one user to another. Thank You
 
Is this answer useful? Yes | No
March 20, 2007 02:11:34   #4  
mukesh        

RE: How to grant all permission of one user to another...


SELECT 'GRANT ' ||privilege ||' ON '||table_schema||'.'||table_name ||' TO '||USER ||' ;' FROM ALL_TAB_PRIVS
WHERE grantee
'TILITS' -- user name that has already access


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape