Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: a hints question
It's because you are not supposed to qualify table names in hints, so the hint is interpreted as a comment, not a hint.
In the non-owner version of the code, give the qualified table an alias, and use the alias in the hint:
select --+full(XYZ)
from trischbp.blz_t_sic XYZ
where blz='1'
--
Jonathan Lewis
Yet another Oracle-related web site: www.jlcomp.demon.co.uk
Tony Adolph wrote in message <7l7eck$c9h$1_at_nnrp1.deja.com>...
>Hello All,
>
>Could someone please explain why the hint used in the following text
>only works when connected to the table's schema and not otherwise:
>
>select --+full(trischbp.blz_t_sic)
>from trischbp.blz_t_sic
>where blz='1'
>
> SELECT STATEMENT, COST=0, CARDINALITY=0
> TABLE ACCESS BY ROWID BLZ_T_SIC, COST=0, CARDINALITY=0
> INDEX RANGE SCAN I_BLZ_T_SIC_IND, COST=0, CARDINALITY=0
Received on Mon Jun 28 1999 - 04:36:36 CDT