Dbms_stats.gather_table_stats Failing with 'ORA-12838: cannot read/modify an object after modifying it in parallel'
(Doc ID 2769871.1)
Last updated on APRIL 17, 2023
Applies to:
Oracle Database - Enterprise Edition - Version 19.9.0.0.0 and laterInformation in this document applies to any platform.
Symptoms
- Stats Gathering Failing With Errors
SQL> exec dbms_stats.gather_table_stats (ownname => 'NDMIS_DATA', tabname => 'F_CONTACT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt => 'for all columns size auto', cascade => true, degree => 4);
BEGIN dbms_stats.gather_table_stats (ownname => 'NDMIS_DATA', tabname => 'F_CONTACT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt => 'for all columns size auto', cascade => true, degree => 4); END;*
ERROR at line 1:
ORA-12838: cannot read/modify an object after modifying it in parallel
ORA-06512: at "SYS.DBMS_STATS", line 40753
ORA-06512: at "SYS.DBMS_STATS", line 40037
ORA-06512: at "SYS.DBMS_STATS", line 38914
Changes
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 |
Changes |
Cause |
Solution |
References |