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 goal by schema, dbms_system proc??

Re: Optimizer goal by schema, dbms_system proc??

From: Anurag Varma <avarmadba.skipthis_at_yahoo.com>
Date: Mon, 20 Oct 2003 23:32:42 GMT
Message-ID: <ug_kb.9133$PZ1.2030@nwrdny03.gnilink.net>

"Domenic G." <domenicg_at_hotmail.com> wrote in message news:c7e08a19.0310201516.7ee0a0d8_at_posting.google.com...
> Is there a way to change the optimizer mode in another session through
> a dbms_system procedure so that the other session does not need to
> issue an "alter session set optimizer_goal = first_rows_1" (as an
> example)? Or, is it possible to set a default optimizer mode by
> schema that differs from the database-wide optimizer mode? I have two
> schemas in one db that perform optimally with two different optimizer
> modes.
>
> Thanks in advance for all replies ...
>
> Domenic.

You seem to be fixing the symptom rather than the problem.

However, what you want can be done by creating a database logon trigger which changes the
optimizer goal for the respective user.

Anurag Received on Mon Oct 20 2003 - 18:32:42 CDT

Original text of this message

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