Hi,
Got a Oracle proc that just selects 50 rows and inserts them into a table. If I run the SQL manually the select takes 30secs and the insert takes 5 secs. The select uses a DB link.
If I run the same SQL as a procedure I can see it doing the select but then its sits there for 12hrs to do the insert (I left it overnight).
No locks on the table, nothing waiting to commit. In Toad I can see it shows it waiting for a response from the DB link, but its done the select so doesnt need anything else via the DB link. Seems to be db link related,
Got a Oracle proc that just selects 50 rows and inserts them into a table. If I run the SQL manually the select takes 30secs and the insert takes 5 secs. The select uses a DB link.
If I run the same SQL as a procedure I can see it doing the select but then its sits there for 12hrs to do the insert (I left it overnight).
No locks on the table, nothing waiting to commit. In Toad I can see it shows it waiting for a response from the DB link, but its done the select so doesnt need anything else via the DB link. Seems to be db link related,
Comment