Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: join x$kglcursor and x$ksmhp - USE_NL
Hi Rahul,
X$KSMHP is not a fixed structure. It is dynamic (as are quite a lot of the X$ tables). What it returns depends on which heap descriptor you join to it. It is effectively a function returning the contents of an arbitrary heap that takes the heap descriptor as its argument. Thus the need for the use_nl hint.
Regards,
Steve Adams
http://www.ixora.com.au/ http://www.oreilly.com/catalog/orinternals/ http://www.christianity.net.au/
-----Original Message-----
From: Rahul [mailto:rahul_at_ratelindo.co.id]
Sent: Tuesday, 1 August 2000 17:20
To: 'Oracle List I'
Cc: 'Oracle List II'
Subject: join x$kglcursor and x$ksmhp - USE_NL
List,
just looked at V$SQL_SHARED_MEMORY
it joins x$kglcursor with x$ksmhp
it selects the chunksize/chunktype etc from the x$ksmhp (memory heap ?)
table..
but if i select * from x$ksmhp i get nothing !! , after looking at the
view_definition of V$SQL_SHARED_MEMORY, i came to know
that ONLY if i use sql hint "USE_NL" , does two tables select rows !!
why is that.. ??
TIA Rahul