Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: "create table as" statement versus an "insert into" stateme
Heidi,
The CREATE TABLE .. AS SELECT uses temporary segment space to store the data
from the original table which is then bulk loaded into the new table. It
doesn't use rollback segments and utilizes memory more efficiently. In
addition the performance of CREATE TABLE AS SELECT statements can be further
improved in two ways :
1) by parallelism (using the PARALLEL hint) so that multiple CPUs can be
used to carry out the command
2) using the NOLOGGING clause, which will disable redo log generation for
the table creation statement.
Check out the Oracle documentation on parallel execution at :- http://www.sch.bme.hu/misc/oracle8/server/a58227/ch_paral.htm
Regards,
Kieran
-----Original Message-----
From: Heidi_Schmidt_at_gillette.com
To: Multiple recipients of list ORACLE-L
Sent: 10/24/00 4:01 AM
Subject: "create table as" statement versus an "insert into" statement
(performance
I could use some help.
Does someone know why a create table as statement would perform better
than
a truncate table, and then insert into statement?
Gut instinct tells me the create table is cleaner and the insert into
has
to find free chunks, but that can't be all of it.
The background is that we have some developers who are executing large
data
loads and have to recreate objects every evening as part of a
hierarchical
OLAP tool process. They are looking to shave time wherever they can to
get
it all into their batch window.
I am not sure where to begin to look for information that would show why
one way would perform better than the other.
I think it would be under parsing algorithms, which would be cool to
learn
if there was a list of them or a chart.
Thanks in advance,
Heidi
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Heidi_Schmidt_at_gillette.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-LReceived on Tue Oct 24 2000 - 02:03:02 CDT
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). The information contained in this e-mail transmission is confidential and may be privileged. It is intended only for the addressee(s) stated above. If you are not an addressee, any use, dissemination, distribution, publication, or copying of the information contained in this e-mail is strictly prohibited. If you have received this e-mail in error, please immediately notify our IT Department by telephone at 353-1-6769333 or e-mail mail.sweeper_at_norkom.com and
![]() |
![]() |