Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Granting the Privilege to Truncate a table

Status
Not open for further replies.

djbjr

Programmer
Joined
Dec 7, 2001
Messages
106
Location
US
Here is the easy question of the year.

How do you grant a user the privilege to truncate a table on a different schema.

I tried

GRANT truncate on <table_name> to user

But of course that doesnt work. I also looked on the user_tab_privs table and couldnt find the right privilege.

Can any of you DBA's throw a bone to me?

And no Im not asking this for homework help. My DBA's are unavailable becuase they are all trying to figure out how to get the 9i RAC to work. Our Cluster Manager keeps going down.

Thanks,
dj
 

Unfortunately you would have to GRANT DROP ANY TABLE.

[thumbsdown]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
You mean drop any table on the whole schema?


I suppose I will have to create a proc that truncates the table and give access to execute the procedure.

thanks
 
Yes, drop any table in ANY schema.

The better solution is to create a procedure and grant execute to authorized users.
[thumbsup2]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top