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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Truncating the table

RE: Truncating the table

From: Jenkins, Michael <Michael.Jenkins_at_Nextel.com>
Date: Tue, 29 Jan 2002 13:57:25 -0800
Message-ID: <F001.003FFA30.20020129135652@fatcity.com>

<SPAN
class=822135321-29012002>Actually, technically speaking is does not destroy any data.  It simply makes it unrecoverable because the high water mark has been moved.  That is why is completes so quickly as opposed to a delete statement.  To recover the unused space you need to "alter table <table_name> deallocate unused"
<SPAN
class=822135321-29012002> 
<SPAN
class=822135321-29012002>--Michael

  <FONT face=Tahoma
  size=2>-----Original Message-----From: Adams, Matthew (GEA, 088130)   [mailto:MATT.ADAMS_at_APPL.GE.COM]Sent: Tuesday, January 29, 2002 4:28   PMTo: Multiple recipients of list ORACLE-LSubject:   Truncating the table
  That is incorrect JoJo.  When a table is   truncated, all rows are removed.  In addition   this statement does not generated Undo Blocks, and   therefore cannot be rolled back.  Use with   care.
  The OracleX SQL Reference manual has more information   (where X is either 8, 8i or 9 depending on the   version you are using)

Received on Tue Jan 29 2002 - 15:57:25 CST

Original text of this message

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