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: DROP TABLE always takes long time.

Re: DROP TABLE always takes long time.

From: Scott Johnson <sjohnson_at_ibm.net>
Date: 1998/01/17
Message-ID: <34C0B99A.6626B82B@ibm.net>#1/1

Why does drop table generate rollback when a DDL command automatically does a commit. You cannot rollback a drop table. Right?

Scott

draggs_at_hawkeye.idx.com wrote:

> On Tue, 13 Jan 1998 17:08:39 GMT, chuckh_at_dvol.com (Chuck Hamilton)
> wrote:
>
> >What would cause all DROP TABLE commands, even on the simplest of
> >tables, those with no indexes, rows, or constraints, to take an
> >inordinately long time?
> >
> >For example:
> >
> > CREATE TABLE mytable (
> > name VARCHAR2(10),
> > qty NUMBER(9,0)
> > );
> >
> >takes about 2 seconds. But
> >
> > DROP TABLE MYTABLE;
> >
> >takes 3.5 minutes;
>
> Try truncating the table before you drop it. Truncate does not right
> the the rollback segments, but drop does. It can really speed things
> up if theres much data in the tables.
Received on Sat Jan 17 1998 - 00:00:00 CST

Original text of this message

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