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 -> how does truncate table work?

how does truncate table work?

From: utkanbir <hopehope_123_at_yahoo.com>
Date: 18 Aug 2003 23:00:56 -0700
Message-ID: <f6c90ebe.0308182200.3f51f194@posting.google.com>


Dear Gurus,

I am new with oracle database but strong experience with informix . In one of the oracle training which i have recently involved , the lecturer asked the difference between delete and truncate table. Although i did not exactly know , i can guess that , truncate table runs fast because instead of deleting each records , it can invalidate the table by cahnging a flag in data file headers or etc. ( thinking of informix architecture) But the lecturer said truncate table also deleted records but did not generate redo log data thats why it was faster.

Is it possible to be very fast for example deleting 100000000 rows without creating redo log entry. I had better drop & create it?

I will be appreciate if someone comments about this.

Kind Regards,
hope Received on Tue Aug 19 2003 - 01:00:56 CDT

Original text of this message

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