"ORA-20005: object statistics are locked" Error When Executing gather_table_stats.sql Script

(Doc ID 967050.1)

Last updated on FEBRUARY 14, 2018

Applies to:

Oracle Transportation Management - Version 5.5 to 6.3.2 [Release 5.5 to 6.3]
Information in this document applies to any platform.
***Checked for relevance on 19-APR-YYYY***


When running the OTM provided gather_table_stats.sql script to analyze the glogowner schema, the following error is occuring:

ERROR at line 1:
ORA-20005: object statistics are locked (stattype = ALL)
ORA-06512: at "SYS.DBMS_STATS", line 13159
ORA-06512: at "SYS.DBMS_STATS", line 13179
ORA-06512: at line 25


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms