Re: Hint is not used in SQL

From: Jonathan Lewis <jlewisoracle_at_gmail.com>
Date: Wed, 15 Nov 2023 15:39:39 +0000
Message-ID: <CAGtsp8n1ddNYHtWmWWO6uxjYv3fyA--09fiU47tttBqF-5w_Uw_at_mail.gmail.com>



That hint report and patch generation statement aren't consistent with the previous output.

*3 - SEL$AC90CD92 / PO_LINE_LOCATIONS_ALL_at_SEL$2 U -
 USE_NL_WITH_INDEX(_at_SEL$AC90CD92 PO_LINE_LOCATIONS_ALL_at_SEL$2) 5 -  SET$632CC7ED N - LEADING(_at_SET$632CC7ED VW_NSO_1_at_SEL$AC90CD92 PO_LINE_LOCATIONS_ALL_at_SEL$2) *

You have *_at_SET$632CC7ED* in the leading hint and that should be
*_at_SEL$AC90CD92. *

For an initial test of the patch I'd also use just use_nl() rather than use_nl_with_index().

Regards
Jonathan Lewis

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Nov 15 2023 - 16:39:39 CET

Original text of this message