Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Is possible to truncate a remote DB?
miguelangel6886_at_my-deja.com wrote:
>Hi!
>Does anybody know if is it possible to truncate a remote
database? I
>mean, without using drop table or delete from.
>regards,
>Miguel
>
On the targe db set up a truncate procedure then execute this
from your local db. With version 8.1 and up you can use the
pl/sql execute immediate statement and for version 7 - 8 you can
use the dbms_sql package. Have the procedure owner be the table
owner for privilege reasons, and build in a check of authorized
tables to be truncated to prevent malicious or just plain stupid
use.
Got questions? Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com
Received on Mon Jul 24 2000 - 00:00:00 CDT
![]() |
![]() |