Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Truncate before drop. Any real improvement?

Re: Truncate before drop. Any real improvement?

From: sybrandb <sybrandb_at_gmail.com>
Date: 14 Sep 2006 02:38:34 -0700
Message-ID: <1158226714.020128.302150@h48g2000cwc.googlegroups.com>

Franky R. wrote:
> Hello,
>
> Due to testing with some really big tables (creating, deleting,
> altering and updating involved) sometimes it's needed to drop the full
> table and start again.
> AFAIK, "truncate" is the best way to remove all rows in a table,
> besides, it does not generate undo information.
>
> So, does it make any sense to truncate a big table before dropping it?
> Is there any improvement in deleting a table previously truncated?
>
> Thanks in advance.

If you are going to DROP the table, TRUNCATE doesn't make sense at all, as in both cases records are not deleted, and no redo is generated.

-- 
Sybrand Bakker
Senior Oracle DBA
Received on Thu Sep 14 2006 - 04:38:34 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US