Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Database Administration >> analyze command...

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: analyze command...
 Bishal  Posted: Apr 24, 2008 06:48:26 AM

 Total Post: 207
 Joined: Apr, 2008






 how do we see results of analyze command... what is its use... can anyone send me the link which tells the use and execution of analyze commands

 GOPU
Posted: Apr 24, 2008 06:52:38 AM  

 Total Post: 271
 Joined: Apr, 2008






 
Hi friend

some information regarding analyze command

The analyze command within the Oracle database collects statistics about an object. The information includes the distribution of data, the number of rows in the table and otehr important statistics. This information is collected and supplied to the optimizer to allow for the best possible execution path of a SQL statement.

If you are using the cost-based optimizer you must analyze your database objects. As well when you are analyzing your objects your should tell the database the size of the sample it should use if you wish to have the database estimate statistics (this is a faster method). If you wish for an exact computation of statistics you would use the "compute" argument.

To estimate statistics:

ANALYZE TABLE tablename ESTIMATE STATISTICS SAMPLE 30 PERCENT;

To compute statistics:
ANALYZE TABLE tablename COMPUTE STATISTICS;

You should also remember that statistics get old and dated, you should regularly schedule to re-analyze your tables and indexes.

Regards
Gopu

 GOPU
Posted: Apr 24, 2008 06:55:54 AM  

 Total Post: 271
 Joined: Apr, 2008






 
Hi,

please fo throuhg this link you will get some more detailed information about the analyze command..

http://www-eleves-isia.cma.fr/documentation/OracleDoc/ANALYZE.html

Regards
Gopu

 http://shaharear.blogspot.com
Posted: Apr 24, 2008 07:16:11 AM  

 Total Post: 79
 Joined: Apr, 2008






 
Please go through the following link ... you will get the answers of all your questions

http://sharear.blogspot.com/search/label/Gather%20Database%20Statistics


regard
Hasan

 Bishal
Posted: Apr 24, 2008 07:23:41 AM  

 Total Post: 207
 Joined: Apr, 2008






 
thanx guys


 Murtuja
Posted: Apr 26, 2008 09:03:20 AM  

 Total Post: 843
 Joined: Jan, 2006






 
Hi,

Don't use analyze command.
You should consider DBMS_STATS to collect statistics since it's Oracle's recommendation.


 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar843
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gitesh Trivedi322
  Gopu Gopi271
  neeraj sharma252
  Ramesh Jois245
  Bishal Khetan207






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software