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: why cannot truncate???

Re: why cannot truncate???

From: Pei L. Ku <pku_at_gte.net>
Date: 1998/03/21
Message-ID: <6evgl6$83n$1@gte1.gte.net>#1/1

Have you checked beforehand how many extents is the table taking up? Truncating
tables with many extents take a long time because Oracle needs to update data dictionary as it reclaims space from freed extents.

Pei

Chan Wai Tong <cscwt95_at_engsvr.ust.hk> wrote in article <6eojmb$4p3_at_ustsu10.ust.hk>...
>
> I am using oracle 7.1.6.
> I want to import data to a table.
> Before I import data, I would like to truncate the table first.
> I login sqlplus and submit the following SQL.
>
> SQL> truncate table me.mytable;
>
> But no response for a long ... long time.
> Then I try to delete all records from the table.
> I can delete records successfully.
>
> Could anyone tell me the reason??
>
> The table is not a cluster table.
>
> Thank you very much.
>
> Mike CHAN
>
>
>
Received on Sat Mar 21 1998 - 00:00:00 CST

Original text of this message

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