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: CTAS use of rollback

Re: CTAS use of rollback

From: Yosi Greenfield <yosi_at_comhill.com>
Date: Fri, 05 Oct 2001 12:50:33 -0700
Message-ID: <F001.003A3E8A.20011005130022@fatcity.com>

Confirmed.

"Nicoll, Iain (Calanais)" wrote:

> Could anyone tell me whether Create table .. as select .. uses rollback.
>
> I initially thought it would (despite being a cross between ddl and dml) but
> having created a 3.5 million row table and checked the sum of the writes in
> v$rollstat it had only done ~130k writes between the start of the ctas and
> the end. It also doesn't create the table initially but just has a numbered
> object which it seems to rename only at the very end, so if it fails I would
> have though it would just drop that object and if it completes successfully
> then a commit would be done because of the ddl aspects of the command.
>
> I tried inserting 10k rows into the same table and this came back with about
> 25k writes (seemed reasonable if it's only storing the rowid). Given this
> it doesn't seem to be using rollback (other than recording changes to
> extents etc) but I'd appreciate confirmation.
>
> Iain Nicoll
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Nicoll, Iain (Calanais)
> INET: iain.nicoll_at_calanais.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).

--
Thanks,

Yosi


---------------------------------------------------------
Yosi Greenfield
Oracle Certified DBA
ygreenfield_at_compuserve.com


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Yosi Greenfield
  INET: yosi_at_comhill.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Oct 05 2001 - 14:50:33 CDT

Original text of this message

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