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: How to use dbms_stats.

Re: How to use dbms_stats.

From: Marin Dimitrov <marin.dimitrov_at_sirma.bg>
Date: Thu, 07 Mar 2002 02:23:21 -0800
Message-ID: <F001.00421B1B.20020307022321@fatcity.com>

>
> I want to know how to how to use dbms_stats. package and get the statistics
>

short answer:

begin

    dbms_stats.gather_schema_stats(ownname => 'XXXX',cascade=>true); end;

for a detailed explanation take a look at

http://download-west.oracle.com/otndoc/oracle9i/901_doc/server.901/a87503/stats.htm#26333 http://download-west.oracle.com/otndoc/oracle9i/901_doc/appdev.901/a89852/dbms_sta.htm#999107

hth,

    Marin



"...what you brought from your past, is of no use in your present. When you must choose a new path, do not bring old experiences with you. Those who strike out afresh, but who attempt to retain a little of the old life, end up torn apart by their own memories. "
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Marin Dimitrov
  INET: marin.dimitrov_at_sirma.bg

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 Thu Mar 07 2002 - 04:23:21 CST

Original text of this message

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