Skip to Main Content

Breadcrumb

Question and Answer

Tom Kyte

Thanks for the question, Om.

Asked: October 15, 2002 - 1:59 pm UTC

Last updated: October 16, 2002 - 5:35 am UTC

Version: 8.1.7

Viewed 1000+ times

You Asked

Hi Tom,

It's really a pleasure to see you back.

I recently made use of Insert /+ append +/ hint to copy some
70,0000 records from the table in one database to a table
(empty table with same structure) into another database.

I found that this command is quite fast and it took me less then
30 minutes to transfer these records which I think is good
as compared to exp/imp or any other method.

Q1) Is there any drawback of using INSERT /+append + / Hint
statement ?

Q2) Can we consider this as similar to insert statement as
far as considering factors like triggers etc

Please comment.

Best regards,
Om


and Tom said...

q1) if you had a BIG table, deleted (not truncated) all of the rows, and then insert append -- none of the free space that was already there would be reused. append only goes ABOVE the hwm. so appending will not reuse space on the freelists, it'll always grab space above the HWM

q2) see
</code> http://docs.oracle.com/cd/A87860_01/doc/server.817/a76965/c21dlins.htm#3321

or
http://docs.oracle.com/cd/A87860_01/doc/server.817/a76965/c21dlins.htm#365 <code>

there is a whole chapter on it!



Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Insert /+ append +/ statement

Om, October 16, 2002 - 5:35 am UTC

Thanks very much for the feedback and the useful links.It's very handy and useful.Aaagin a great tip as always from the site.

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library