SOLVED

ORA-20002: Version Of Statistics Table SCOTT.STATS Is Too Old

Asked by OracleDba12 viewsoracle

ORA-20002: Version Of Statistics Table SCOTT.STATS Is Too Old

#oracle#error

Solutions(1)

Accepted Solution
1
2
3
4
5
6
7
8
9
10
11
12
13
If we are importing stats table from higher version to lower version, then before importing in the database, we need to upgrade the stats table.

UPGRADE STATS TABLE:

SQL> EXECUTE DBMS_STATS.UPGRADE_STAT_TABLE('ABC','STAT_TEST');

PL/SQL procedure successfully completed.

Now do the import:

exec dbms_stats.import_table_stats(ownname=>'ABC', tabname=>'TEST', stattab=>'STAT_TEST', cascade=>true);

PL/SQL procedure successfully completed.
OracleDba

Post Your Solution