2

When i execute this query

Select * 
  from remote_tabe@my_db_Link 
 where Update_Date >= to_Date( sysdate - 1/24 )

it returns around 4000 rows by 30 secs

but when i execute the insert statement

Insert into my_table 
    select * 
      from remote_tabe@my_db_Link 
     where Update_Date >= to_Date( sysdate - 1/24 )

it takes more than 3 hours! Can anybody please help in solving this issue?

Alexander Malakhov
  • 3,383
  • 2
  • 33
  • 58
Maen
  • 21
  • 1

1 Answers1

1

It is possible that the execution plans are different for the two queries. Have you checked, using DBMS_Xplan?

David Aldridge
  • 51,479
  • 8
  • 68
  • 96