Home » RDBMS Server » Server Administration » Still don't know how to use dbms_stats
Still don't know how to use dbms_stats [message #61056] Wed, 24 March 2004 05:02 Go to next message
Jadie
Messages: 64
Registered: January 2002
Member
I read Oracle document about dbms_stats. I want to analyze some major schema in the production database. But I still don't know how to user dbms_stats.gather_schema_stats. There are so many parameters! I don't know what values I should use.

In order to improve the system's performance, except analyzing the schemas, what other statistics I should get? Appreciate your answer.

Jadie
Re: Still don't know how to use dbms_stats [message #61058 is a reply to message #61056] Wed, 24 March 2004 10:29 Go to previous messageGo to next message
Thiru
Messages: 1089
Registered: May 2002
Senior Member
Jadie,
Most of them have defaults,if you notice it carefully.

couple of examples:

SQL> execute dbms_stats.gather_schema_stats('THIRU');

PL/SQL procedure successfully completed.

the above 'computes' statistics on all (tables,partitions) owned by user 'THIRU' with the default(ie table default) degree of parallelism .

SQL> execute dbms_stats.gather_schema_stats(ownname=>'THIRU',cascade=>TRUE);

PL/SQL procedure successfully completed.

this one includes indexes.

and so on.

You could gather system statistics ,using DBMS_STATS.GATHER_SYSTEM_STATS in addition to object statistics to give CBO more information on the system.

-Thiru
Re: Still don't know how to use dbms_stats [message #61067 is a reply to message #61056] Wed, 24 March 2004 21:35 Go to previous messageGo to next message
_simma_dba
Messages: 34
Registered: November 2003
Member
U should try this article:

http://builder.com.com/5100-6388_14-5057857.html
Re: Still don't know how to use dbms_stats [message #61081 is a reply to message #61058] Fri, 26 March 2004 09:31 Go to previous message
Jadie
Messages: 64
Registered: January 2002
Member
Thanks for your reply, Thiru. I will try to run it once to see what happen. And how can I check how long it takes to finish analyzing?

Jadie
Previous Topic: URGENT - Fatal NI Connection
Next Topic: where can i find oracle for red hat linux 8.x
Goto Forum:
  


Current Time: Wed Jan 22 21:21:34 CST 2025