on 09-26-2008 8:53 PM
Hi,
The UpdateStats job takes up to 48h to complete the run. It appears that the problem happened for a while (at least 3 months). The command used is : brconnect -u / -jid STATS20080413100000 -c -f stats -t ALL -f monit I remark that the sample size of method Estimate is setting at 100, and almost of tables are partitionned. My questions are : 1) Where is the sample size set in SAP for partitionned tables ? 2) How can I modify it ? Here is an extraction of "Tables with longest duration of collecting statistics for owner R3"
Table--
Thanks for your input.
Hi,
agree with the others - once we faced a similar problem . Someone changed the percentage to 100 ( = compute)
on our 250 Gbyte partitioned table and it took more than 2 hours, we changed to 5% and now we speed through
it in about 17 minutes.
For the CBO very often a smaller value is sufficient for generating statistics for good execution plans.
Make sure you have the MONITORING option set for your tables so statistics are only calculated when necessary to give a representative view on your data.
Bye
Yk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Additionally you can consider to run the stats generation in parallel, you can either add -p <degree> or set stats_parallel_degree in the initSID.sap. The degree can be something like your number of cpu cores to start, degrees of 4 or 8 work quite well on smaller systems.
We always do parallel stats generation for the larger db's.
Regards
Michael
> 1) Where is the sample size set in SAP for partitionned tables ?
The sample size for any table is specified in DB21. You should only specify there special cases.
Change it there.
> 2) How can I modify it ?
DB21
Estimate 100% is the same as compute.
This is not done by SAP, someone changed it manually. Try to find out who did it and ask why.
The command you use is not correct:
> brconnect -u / -jid STATS20080413100000 -c -f stats -t ALL -f monit
-f monit is used to activate monitoring.
Monitoring is activated only once
Oracle 10g has monitoring activated, it is not necessary to do it
SAP Note 628590 tells you:
Caution:
-
This new option is no longer required in Oracle 10g of higher. The monitoring attribute is automatically active there.
you should use
> brconnect -u / -c -f stats -t ALL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
which Oracle version are you using?
With Oracle 10g, recalculating stats in much faster well, at least, it was much faster for me.
what is the size of your system ? Are you using BW? which version?
P1000 is too high, use a smaller value. it can be chagned in initSID.sap file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
9 | |
9 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.