Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: OPTIMIZER

Re: OPTIMIZER

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Fri, 10 Aug 2001 17:12:04 +0200
Message-ID: <997456342.21856.0.pluto.d4ee154e@news.demon.nl>

"Anthony Millard" <Anthony.Millard_at_Ramesys.Com> wrote in message news:euRc7.23422$e%3.2537773_at_news2-win.server.ntlworld.com...
> Is it possible to find out which optimizer goal has been decided in
> SQL_PLUS.
> I can use the
> alter session set optimizer_goal = FIRST_ROWS;
> to set it to a neww value, however, how do I find out the original value.
>
> Regards
> Anthony.Millard_at_Ramesys.Com
>
>

The original value is whatever your DBA has set in the optimizer_mode parameter in init<sid>.ora
Usually that's choose which means use RBO, if you have no statistics and ALL_ROWS if you have statistics.
PL/SQL runs in all_rows by design.

Hth,

Sybrand Bakker, Senior Oracle DBA Received on Fri Aug 10 2001 - 10:12:04 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US