on 05-18-2018 1:32 PM
Good afternoon,
In our Solman 7.2, we have, everyday, db13 / dbcheck warnings concerning HARMFUL_STATISTICS for thousands of tables.
It is mostly for SMO* tables.
If I delete the harmful stats, the warning would come back again the day after because the table exists and Oracle automatically creates its' stats.
Have you faced a similar behavior?
Would you now what should be done to avoid this behavior?
I provide the list of tables impacted in this file: missingstats.txt
Thanks in advance for your help.
Hi Benoit
Haven't seen this but found an old thread which points to interesting information:
https://archive.sap.com/discussions/thread/2148302
Best regards
Tom
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Benoit
If I interpret correctly, is comes from the value defined in table DBSTATC:
https://help.sap.com/saphelp_nw73ehp1/helpdata/EN/46/b9de2b5a731824e10000000a1553f6/frameset.htm
If table DBSTATC has tablename + active = 'N' combination, statistics existing for that table would be marked as "harmful" because the expectation is that no statistics exist for that table.
From that last help.sap.com page:
"This is an absolute exception since, in Oracle 10g or higher, all tables normally have statistics. Harmful statistics are automatically deleted by update database statistics."
As I've mentioned, I haven't seen this but it looks like you would have to check DBSTATC and avoid entries with active = 'N' since this basically shouldn't be used anymore since Oracle 10g.
Best regards
Tom
Good afternoon,
You are correct Tom.
After applying the sql script, provided in Note 1918288, to update the dbstatc, the proble has vanished.
Regards,
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.