Home » RDBMS Server » Performance Tuning » What is the use of DBM STATS PACKAGE? (Oracle Database 10.2.0.1 on AIX 5.3)
icon5.gif  What is the use of DBM STATS PACKAGE? [message #466852] Wed, 21 July 2010 09:07 Go to next message
vcm643
Messages: 1
Registered: July 2010
Location: Philippines
Junior Member
Hi,

I'am a new DBA and I am new here in ORAFAQ, we are having a performance slowdown in one of our database. When there is a batch process, it is uses a lot of space in TEMP tablespace, but we can't find any errors. We would like to try gathering table statistics, my questions is, what is the purpose of gathering statistics? What benefits can it contribute to the performance of the database? Thanks.
Re: What is the use of DBM STATS PACKAGE? [message #466853 is a reply to message #466852] Wed, 21 July 2010 09:09 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
By default in V10+ statistics are gathered nightly so you do not need to duplicate this effort.

Re: What is the use of DBM STATS PACKAGE? [message #466860 is a reply to message #466852] Wed, 21 July 2010 09:23 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
>>my questions is, what is the purpose of gathering statistics? What benefits can it contribute to the performance of the database?
Just like google/yahoo maps or GPS.
You need the best route from point A to point B.
If the current changes in roads are not updated to Maps, the software will
give the best route based on available data which may not be efficient at all.
In Oracle, CBO will use various factors to decide the best PLAN to fetch the records from database.
These factors are derived from the available statistics.
If the statistics are old/stale and underlying table/index data
has
changed a lot, the generated plan may not be the best one.
Re: What is the use of DBM STATS PACKAGE? [message #466862 is a reply to message #466852] Wed, 21 July 2010 09:25 Go to previous messageGo to next message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
http://www.lmgtfy.com/?q=oracle+dbms_stats

Regards
Michel
Re: What is the use of DBM STATS PACKAGE? [message #467062 is a reply to message #466862] Thu, 22 July 2010 03:16 Go to previous message
trantuananh24hg
Messages: 744
Registered: January 2007
Location: Ha Noi, Viet Nam
Senior Member
I'm sorry when ask you: "How do you know or think about DBMS_STATS when Temp increasing?". I think, you should knew what caused the problem, and Google show you some cases, one of them was DBMS_STATS?
Previous Topic: Hint is not working properly
Next Topic: optimised query
Goto Forum:
  


Current Time: Mon Nov 25 05:48:20 CST 2024