Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: USE_NL with or without ORDERED
Hi Ed,
how many records are in the tables?
Hash join is favored when there aren't so many records and there's enough memory to slam together the result set.
I think you aren't seeing typical behavior. Try this on much larger tables and see what happens.
ORDERED and USE_NL can work together. I've done it.
Lisa Koivu
Oracle Database Administrator
Fairfield Resorts, Inc.
954-935-4117
-----Original Message-----
From: Shevtsov, Eduard [SMTP:EShevtsov_at_flagship.ru] Sent: Thursday, September 13, 2001 8:45 AM To: Multiple recipients of list ORACLE-LSubject: USE_NL with or without ORDERED
!! Please do not post Off Topic to this List !!Hi List,
did anybody notice that sometimes CBO ignores USE_NL hint without ORDERED
The following example was taken from oracle docs:
SQL> SQL> SQL> select name, value
NAME
Explained.
SQL> @opt\explain_n
statement id: 37
Query Plan
1 explain plan set statement_id = '38'
2 for
3 select /*+ use_nl(e) */
4 e.first_name
5 , e.last_name
6 , c.short_name
7 from courses c, employees e
8* where e.emp_id = c.dev_id
SQL> /
Explained.
SQL> @opt\explain_n
statement id: 38
Query Plan
Regards,
Ed
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Shevtsov, EduardReceived on Thu Sep 13 2001 - 12:34:35 CDT
INET: EShevtsov_at_flagship.ru
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
![]() |
![]() |