dbTalk Databases Forums  

statistics.

comp.databases.oracle.server comp.databases.oracle.server


Discuss statistics. in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Superboer
 
Posts: n/a

Default statistics. - 06-13-2008 , 01:50 AM






Hello

i am looking at V9 and try to figure out the equivalent command in
oracle
of update statistics high for table mytable(mycolumn) in informix

this will command will produce a distribution of data and will help
the optimizer
when there are a high number of certain values in column mycolumn to
pick a
better query execution plan.

does oracle have such a beast; i found the 'analyze' button
which does a dbms_stats.gather_table_stats
looking in the help it said it would not look at the data...

what am i missing??

Thanks

Superboer.

Reply With Quote
  #2  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: statistics. - 06-13-2008 , 03:09 AM






On Thu, 12 Jun 2008 23:50:00 -0700, Superboer wrote:

Quote:
does oracle have such a beast; i found the 'analyze' button which does a
dbms_stats.gather_table_stats looking in the help it said it would not
look at the data...
Oracle can't collect statistics without looking at the data. DBMS_STATS
is used to collect the optimizer statistics. It has many options and
possibilities, in fact, it is a small science. Jonathan Lewis wrote a 500+
pages book devoted mostly to the stuff related to DBMS_STATS.

--
Mladen Gogala
http://mgogala.freehostia.com


Reply With Quote
  #3  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: statistics. - 06-13-2008 , 03:09 AM



On Thu, 12 Jun 2008 23:50:00 -0700, Superboer wrote:

Quote:
does oracle have such a beast; i found the 'analyze' button which does a
dbms_stats.gather_table_stats looking in the help it said it would not
look at the data...
Oracle can't collect statistics without looking at the data. DBMS_STATS
is used to collect the optimizer statistics. It has many options and
possibilities, in fact, it is a small science. Jonathan Lewis wrote a 500+
pages book devoted mostly to the stuff related to DBMS_STATS.

--
Mladen Gogala
http://mgogala.freehostia.com


Reply With Quote
  #4  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: statistics. - 06-13-2008 , 03:09 AM



On Thu, 12 Jun 2008 23:50:00 -0700, Superboer wrote:

Quote:
does oracle have such a beast; i found the 'analyze' button which does a
dbms_stats.gather_table_stats looking in the help it said it would not
look at the data...
Oracle can't collect statistics without looking at the data. DBMS_STATS
is used to collect the optimizer statistics. It has many options and
possibilities, in fact, it is a small science. Jonathan Lewis wrote a 500+
pages book devoted mostly to the stuff related to DBMS_STATS.

--
Mladen Gogala
http://mgogala.freehostia.com


Reply With Quote
  #5  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: statistics. - 06-13-2008 , 03:09 AM



On Thu, 12 Jun 2008 23:50:00 -0700, Superboer wrote:

Quote:
does oracle have such a beast; i found the 'analyze' button which does a
dbms_stats.gather_table_stats looking in the help it said it would not
look at the data...
Oracle can't collect statistics without looking at the data. DBMS_STATS
is used to collect the optimizer statistics. It has many options and
possibilities, in fact, it is a small science. Jonathan Lewis wrote a 500+
pages book devoted mostly to the stuff related to DBMS_STATS.

--
Mladen Gogala
http://mgogala.freehostia.com


Reply With Quote
  #6  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: statistics. - 06-13-2008 , 03:09 AM



On Thu, 12 Jun 2008 23:50:00 -0700, Superboer wrote:

Quote:
does oracle have such a beast; i found the 'analyze' button which does a
dbms_stats.gather_table_stats looking in the help it said it would not
look at the data...
Oracle can't collect statistics without looking at the data. DBMS_STATS
is used to collect the optimizer statistics. It has many options and
possibilities, in fact, it is a small science. Jonathan Lewis wrote a 500+
pages book devoted mostly to the stuff related to DBMS_STATS.

--
Mladen Gogala
http://mgogala.freehostia.com


Reply With Quote
  #7  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: statistics. - 06-13-2008 , 03:09 AM



On Thu, 12 Jun 2008 23:50:00 -0700, Superboer wrote:

Quote:
does oracle have such a beast; i found the 'analyze' button which does a
dbms_stats.gather_table_stats looking in the help it said it would not
look at the data...
Oracle can't collect statistics without looking at the data. DBMS_STATS
is used to collect the optimizer statistics. It has many options and
possibilities, in fact, it is a small science. Jonathan Lewis wrote a 500+
pages book devoted mostly to the stuff related to DBMS_STATS.

--
Mladen Gogala
http://mgogala.freehostia.com


Reply With Quote
  #8  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: statistics. - 06-13-2008 , 03:09 AM



On Thu, 12 Jun 2008 23:50:00 -0700, Superboer wrote:

Quote:
does oracle have such a beast; i found the 'analyze' button which does a
dbms_stats.gather_table_stats looking in the help it said it would not
look at the data...
Oracle can't collect statistics without looking at the data. DBMS_STATS
is used to collect the optimizer statistics. It has many options and
possibilities, in fact, it is a small science. Jonathan Lewis wrote a 500+
pages book devoted mostly to the stuff related to DBMS_STATS.

--
Mladen Gogala
http://mgogala.freehostia.com


Reply With Quote
  #9  
Old   
Mark D Powell
 
Posts: n/a

Default Re: statistics. - 06-13-2008 , 08:34 AM



On Jun 13, 4:09*am, Mladen Gogala <mgog... (AT) yahoo (DOT) com> wrote:
Quote:
On Thu, 12 Jun 2008 23:50:00 -0700, Superboer wrote:
does oracle have such a beast; i found the 'analyze' button which does a
dbms_stats.gather_table_stats looking in the help it said it would not
look at the data...

Oracle can't collect statistics without looking at the data. DBMS_STATS
is used to collect the optimizer statistics. It has many options and
possibilities, in fact, it is a small science. Jonathan Lewis wrote a 500+
pages book devoted mostly to the stuff related to DBMS_STATS.

--
Mladen Gogalahttp://mgogala.freehostia.com
Superboer, I believe the specific statistics related feature you are
asking about is histograms. As Mlladen identified the dbms_stats
package will generate statistics including histograms if desired. See
the Supplied Packages and Types manual for a write up on dbms_stats
and its options.

HTH -- Mark D Powell --



Reply With Quote
  #10  
Old   
Mark D Powell
 
Posts: n/a

Default Re: statistics. - 06-13-2008 , 08:34 AM



On Jun 13, 4:09*am, Mladen Gogala <mgog... (AT) yahoo (DOT) com> wrote:
Quote:
On Thu, 12 Jun 2008 23:50:00 -0700, Superboer wrote:
does oracle have such a beast; i found the 'analyze' button which does a
dbms_stats.gather_table_stats looking in the help it said it would not
look at the data...

Oracle can't collect statistics without looking at the data. DBMS_STATS
is used to collect the optimizer statistics. It has many options and
possibilities, in fact, it is a small science. Jonathan Lewis wrote a 500+
pages book devoted mostly to the stuff related to DBMS_STATS.

--
Mladen Gogalahttp://mgogala.freehostia.com
Superboer, I believe the specific statistics related feature you are
asking about is histograms. As Mlladen identified the dbms_stats
package will generate statistics including histograms if desired. See
the Supplied Packages and Types manual for a write up on dbms_stats
and its options.

HTH -- Mark D Powell --



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.