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: Delete a BIG table.

Re: Delete a BIG table.

From: Connor McDonald <mcdonald.connor.cs_at_bhp.com.au>
Date: 1997/02/26
Message-ID: <3314082E.5499@bhp.com.au>#1/1

Kenneth Foo wrote:
>
> Hi,
>
> Dose anybody know how to disable the ROLLBACK when you delete a BIG table ( I
> don't want to drop it) rather than giving you the error message
>
> Unable to extent rollback segment ......
>
> and I hope I can leave the existing rollback segment structure intact because
> this is only a temporally deleting a big table and I am pretty sure I don't
> need it to be rollbacked.
>
> Thanks for any help.
>
> Ken
> Cheers

Note that truncate only works on the WHOLE table - if you want to delete part of the table but this still is a lot of data, then you can do it in "chunks" using PL/SQL eg

while true
  delete from table
  where ...
  and rownum < 1000;
  if sql%ROWCOUNT = 1000 then
   commit;
  else
   exit;
  end if;
end loop;
commit;

Cheers

-- 
Connor McDonald
Systems Administrator-Unix/Oracle
BHP Iron Ore
"You're not drunk if you can lie on the floor without holding on"
            - Dean Martin
Received on Wed Feb 26 1997 - 00:00:00 CST

Original text of this message

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