Gather Statistics on Partition Errors with 'ORA-20005: object statistics are locked (stattype = ALL)'
(Doc ID 2534217.1)
Last updated on JULY 20, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 12.1.0.2 and laterInformation in this document applies to any platform.
Symptoms
- Gather table stats as below gives error:
begin
DBMS_STATS.GATHER_TABLE_STATS(
ownname => 'test_name',
tabname => 'TEST',
granularity => 'PARTITION',
partname => 'P1',
estimate_percent => 100,
cascade => TRUE
);
end;
Error report -
ORA-20005: object statistics are locked (stattype = ALL)
ORA-06512: at "SYS.DBMS_STATS", line 34634
ORA-06512: at line 2 -
Exec dbms_stats.unlock_table_stats('test_name','TEST'); did not help
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |