Outer Join Query Over Dblink Can Fail With ORA-904 (Doc ID 730256.1) | To Bottom |
Modified:03-May-2013Type:PROBLEM |
|
In this Document
APPLIES TO:Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.1.0.7 [Release 10.2 to 11.1] SYMPTOMSFollowing query over dblink having Local database 9iR2 and remote 10gR2 works.. select * The same query fails when both local and remote databases are 10g R2, with following errors: ERROR at line 2: CHANGESCAUSEOuter join query over dblink can fail with ORA-904, as referenced in: BUG 6620988 QUERY OVER DBLINK FAILS WITH ORA-904 SELECTING DATE Predicates are not checked to verify if they belong to same network node when we attempt to colocate the remote tables. This results in wrongly generating remote query and ORA-904 REDISCOVERY INFORMATION: SOLUTION-- To implement the solution, please execute the following steps:: Use the workaround of disabling colocated joins via event 10176 and force a hard parse to happen SQL> alter session set events '10176 trace name context forever'; or For a permanent fix, request a One-Off Backport of 6620988 for the appropiate platform. REFERENCESBUG:6620988 - QUERY OVER DBLINK FAILS WITH ORA-904 SELECTING DATE |