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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Synonyms can be VERY bad for performance

RE: Synonyms can be VERY bad for performance

From: Connor McDonald <hamcdc_at_yahoo.co.uk>
Date: Fri, 02 Nov 2001 01:14:46 -0800
Message-ID: <F001.003BB227.20011102012017@fatcity.com>

One option you could pursue is:

  1. set optimizer_mode back to choose (as you've done)
  2. create a logon trigger (for everyone) which set optimizer_GOAL to first rows - so your dictionary runs as choose (ie rule), but your sessions run as first_rows (which I presume is your preference).

For those queries like the one below which are 'session-launched against dictionary objects' (for lack of a better term), you could

i) run them with the RULE hint manually and catch a stored outline
ii) use that stored outline to override the first_rows issues for the original sql

hth
connor


Connor McDonald
http://www.oracledba.co.uk (mirrored at http://www.oradba.freeserve.co.uk)

"Some days you're the pigeon, some days you're the statue"



Nokia Game is on again.
Go to http://uk.yahoo.com/nokiagame/ and join the new all media adventure before November 3rd.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: =?iso-8859-1?q?Connor=20McDonald?=
  INET: hamcdc_at_yahoo.co.uk

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Nov 02 2001 - 03:14:46 CST

Original text of this message

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