Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Truncate another users table
Larry,
Synonyms don't work on DDL statements, as you discovered.
However, rather than granting a user DROP ANY TABLE, which it seems to me could be easily misused or abused, why not do:
As user1:
create function truncate_the_table as
begin
execute immediate 'truncate table this_table';
end;
/
grant execute on truncate_the_table to user2;
As user2:
exec truncate_the_table;
That may be a better solution for you....
-Mark
> -----Original Message-----
> From: oracle-l-bounce_at_freelists.org
> [mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Larry Hahn
> Sent: Friday, December 03, 2004 2:43 PM
> To: Oracle-L_at_freelists.org
> Subject: Truncate another users table
>=20 >=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20 >=20> Do you Yahoo!?
> =09
> __________________________________=20
-- http://www.freelists.org/webpage/oracle-lReceived on Fri Dec 03 2004 - 13:54:59 CST
![]() |
![]() |