Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: OPTIMIZER
"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