Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

What is fastest way to insert millions rows of data to another table

user4184769May 23 2010 — edited May 30 2010
Hi,

We have weekly a maintenance job to refresh all the data. One of the process to load data from a staging table to the target table as simple as

INSERT /*+ append */ INTO my_table
SELECT /*+ parallel(mst, default) */ FROM my_staging_table mst
WHERE id = :id

id is indexed, and my_staging_table contains 55 millions rows. Once the processing is loading 35 millions rows, it takes more than 7 hours.

Does anyone have any recommendation how to speed up the processing?


Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 27 2010
Added on May 23 2010
30 comments
37,302 views