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: ANALYZE question

RE: ANALYZE question

From: Vikas Khanna <vkhanna_at_quark.co.in>
Date: Wed, 24 Jul 2002 02:08:22 -0800
Message-ID: <F001.004A08A5.20020724020822@fatcity.com>


No Impact. Analyze would just collect the latest statistics for the concerned table and the next time any query gets fired on this table the optimizer (CBO) would generate the execution plan based on these statistics.

I also believe that this would be healthier sign as the CBO is generating plans as per the latest what is available and not on the stale ones.

Moreover, it would be good that instead of Using Analyze you should use DBMS_STATS.gether_table_statistics stored procedure as it :

  1. DBMS_STATS can run in parallel mode and hence would be faster than Analyze (which is a serial operation)
  2. Only if the statistics are stale the DBMS_STATS would execute.
  3. You can always Export/Import/Set the statistics from one db to another db.

Thanks,
Vikas Khanna

-----Original Message-----
Sent: Wednesday, July 24, 2002 2:33 PM
To: Multiple recipients of list ORACLE-L

Apart from explicity running an ANALYZE command against a table, what, if any, other events/actions can cause an analyze to be run on the table?



Seán O' Neill
Organon (Ireland) Ltd.
[subscribed: digest mode]

This message, including attached files, may contain confidential information and is intended only for the use by the individual and/or the entity to which it is addressed. Any unauthorized use, dissemination of, or copying of the information contained herein is not allowed and may lead to irreparable harm and damage for which you may be held liable. If you receive this message in error or if it is intended for someone else please notify the sender by returning this e-mail immediately and delete the message.

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: O'Neill, Sean
  INET: Sean.ONeill_at_organon.ie
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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Vikas Khanna
  INET: vkhanna_at_quark.co.in
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 Wed Jul 24 2002 - 05:08:22 CDT

Original text of this message

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