Skip to Main Content

SQL & PL/SQL

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!

Improving the performance of Oracle'INSERT'

MKJun 2 2011 — edited Jun 2 2011
Hi Guys,
I’ve a requirement to insert 10 lakh records in an empty table and it’s taking unexpectedly more time.
I’m using something like:
Insert /*+ append */ into table_1

Select * from other_tables where con1= con2 and con2 =con3 ;
SQL is returning data within 4-5 minutes ( in Toad) but Insert is taking more time.

I tried inserting 10,000 records using rownum condition as shown below and it took 3.23 minutes for this. So, it'll take around 5 hrs for inserting 10 lakh records.

Can you inform what should be the typical time to insert 10 lakh records and suggestions for improving the 'INSERT' performance.
create table_2 as 
Select * from other_tables where con1= con2 and con2 =con3 where rownum <=10000;
Regards,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 30 2011
Added on Jun 2 2011
9 comments
660 views