Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Privileges needed for truncate
Jack,
It used to be DELETE ANY TABLE. I'm not sure if that has changed in recent versions. Long ago, I setup the following procedure to allow a specific table to be truncated, without out the DELETE ANY TABLE privilege. It must be owned by the owner of the table. I haven't dealt with this issue in years, so if things have changed since Oracle 7, somebody else can chime in.
Jay
CREATE OR REPLACE PROCEDURE TRUNC_TAB
(TAB_IN IN USER_TABLES.TABLE_NAME%TYPE)
-- Author : Tony Ziemba Sheck Cho 4/18/95
>>> nlzanen1_at_EY.NL 09/19/02 10:23AM >>>
Hi
I need to create a user/role that among other stuff must be able to
truncate a table. I can't figure out which privileges are needed (DBA is a
bit OTT :-))
Try them one by one does not sound appealing at all
TIA Jack
**DISCLAIMER
This e-mail message and any files transmitted with it are intended for the use of the individual or entity to which they are addressed and may contain information that is privileged, proprietary and confidential. If you are not the intended recipient, you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received this communication in error, please notify the sender and delete this e-mail message. The contents do not represent the opinion of D&E except to the extent that it relates to their official business.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Jay Hostetter
INET: jhostetter_at_decommunications.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting servicesto: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Sep 19 2002 - 11:03:39 CDT
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
![]() |
![]() |