Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: ORA-0113 Generated by Specific Query through DB-Link
Hi,
Thought I posted a reply to this thread earlier in the week, but I don't see it.
First - thank you everyone for the suggestions. I learned a bit more today. Here are the results for reference...
It turns out re-arranging the query and using the /*+ ordered */ hint solves my original performance problem (which is definitely preferable to building the IN() clause on the fly!).
So - the following works in about 350 msec:
SELECT /*+ ordered */ bv.*
FROM (SELECT linkid
FROM PROJECTGAS_MAIN_LINKS
WHERE projectid = 116448
AND blocklist = 'N') lk,
gas_mains_mgcbaseview bv
WHERE lk.linkid = bv.objectid
ORDER BY bv.physical_length DESC
Leaving the hint off takes 12 seconds.
Case closed! Received on Sat Jun 02 2007 - 11:54:19 CDT
![]() |
![]() |