AUTO STATS Job Fails with ORA-30926: unable to get a stable set of rows in the source tables
(Doc ID 2734227.1)
Last updated on APRIL 17, 2023
Applies to:
Oracle Database - Enterprise Edition - Version 12.2.0.1 and laterInformation in this document applies to any platform.
Symptoms
Auto STATS Gathering Job failed with ORA-30926
PDBA(5):Errors in file /u01/app/oracle/diag/rdbms/moe/ABCD/trace/ABCD1_j000_211316.trc:
ORA-12012: error on auto execute of job "SYS"."ORA$AT_OS_OPT_SY_11111"
ORA-30926: unable to get a stable set of rows in the source tables
ORA-06512: at "SYS.DBMS_STATS", line 47214
ORA-06512: at "SYS.DBMS_STATS", line 43479
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 191
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 10799
ORA-06512: at "SYS.DBMS_STATS", line 43466
ORA-06512: at "SYS.DBMS_STATS", line 47182
ORA-12012: error on auto execute of job "SYS"."ORA$AT_OS_OPT_SY_11111"
ORA-30926: unable to get a stable set of rows in the source tables
ORA-06512: at "SYS.DBMS_STATS", line 47214
ORA-06512: at "SYS.DBMS_STATS", line 43479
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 191
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 10799
ORA-06512: at "SYS.DBMS_STATS", line 43466
ORA-06512: at "SYS.DBMS_STATS", line 47182
Error-stack for ORA-30926 revealed the Failing SQL Statement ie:
dbkedDefDump(): Starting a non-incident diagnostic dump (flags=0x0, level=3, mask=0x0)
----- Error Stack Dump -----
ORA-30926: unable to get a stable set of rows in the source tables
----- Current SQL Statement for this session (sql_id=dqucusk8avvuh) -----
delete /* KSXM:CLEAN_COL_USAGE *//*+ dynamic_sampling(4) */ from sys.col_usage$ c where ((timestamp < sysdate - 367) or not exists (select /*+ unnest */ 1 from sys.obj$ o where o.obj# = c.obj#)) and c.obj# < :1 and rownum <= :2
----- PL/SQL Stack -----
----- PL/SQL Call Stack -----
object line object
handle number name
0x188f72d410 191 package body SYS.DBMS_STATS_INTERNAL.PURGE_OLD_STATS_CALLOUT
0x188f72d410 10799 package body SYS.DBMS_STATS_INTERNAL.PURGE_STATS_AUX
0x18bcdaa2e8 43466 package body SYS.DBMS_STATS.PURGE_STATS_AUX
0x18bcdaa2e8 47182 package body SYS.DBMS_STATS.GATHER_DATABASE_STATS_JOB_PROC
----- Error Stack Dump -----
ORA-30926: unable to get a stable set of rows in the source tables
----- Current SQL Statement for this session (sql_id=dqucusk8avvuh) -----
delete /* KSXM:CLEAN_COL_USAGE *//*+ dynamic_sampling(4) */ from sys.col_usage$ c where ((timestamp < sysdate - 367) or not exists (select /*+ unnest */ 1 from sys.obj$ o where o.obj# = c.obj#)) and c.obj# < :1 and rownum <= :2
----- PL/SQL Stack -----
----- PL/SQL Call Stack -----
object line object
handle number name
0x188f72d410 191 package body SYS.DBMS_STATS_INTERNAL.PURGE_OLD_STATS_CALLOUT
0x188f72d410 10799 package body SYS.DBMS_STATS_INTERNAL.PURGE_STATS_AUX
0x18bcdaa2e8 43466 package body SYS.DBMS_STATS.PURGE_STATS_AUX
0x18bcdaa2e8 47182 package body SYS.DBMS_STATS.GATHER_DATABASE_STATS_JOB_PROC
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 |