Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: /*+ORDERED */ - Works Outside of CURSOR but not in ?!
Is this true? I've never heard of/run into this before. If you're running CBO, I'd suspect that the optimizer_mode is CHOOSE or FIRST_ROWS but the code inside the PL/SQL is using ALL_ROWS, which makes a certain amount of sense, but could be inadvertently doing bad things to your execution plan.
Jonathan Lewis covers this on his webpage better than I can.
For More Info, See:
http://www.jlcomp.demon.co.uk/sqlplsql.html
-Mark
In article <jZDO6.9096$CD5.3562037_at_news2.rdc2.tx.home.com>, "Kevin Brand"
<unixoracle_at_hotmail.com> wrote:
> You need spaces after the comment character(s) like this: > > /* +ORDERED */ > > when using PL/SQL > > -Kevin > > > "Brian Y." <NOSP_at_M> wrote in message > news:vEDO6.1344$Rq4.745879_at_news1.news.adelphia.net...