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!

insert data in local table from table of remote database using db link

2987348May 30 2016 — edited May 31 2016

Hi all

I want to insert in my local table from a remote table where the values dont exist in local table like below -

insert into local_table

select * from remote_table@dblink a where not exists (select1  from local_table b where a.columna=b.columna);

data to be inserted is more than 220 illion rows, issue is, it is taking lot of time

what hints should I use to improve performane? Should i first create a copy of remote table in my database or any other way?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 28 2016
Added on May 30 2016
14 comments
4,655 views