ORA-01422 While running dbms_stats.copy_table_stats (Doc ID 1292269.1)

Last updated on FEBRUARY 07, 2011

Applies to:

Oracle Server - Enterprise Edition - Version: 11.1.0.7 and later   [Release: 11.1 and later ]
Information in this document applies to any platform.

Symptoms

When executing dbms_stats.copy_table_stats, it throws out the following error message:


begin
dbms_stats.copy_table_stats(ownname => 'USERNAME'
,tabname => 'TABLE_NAME'
,srcpartname => 'SOURCE PART NAME'
,dstpartname => 'TARGET PART NAME');
end;
/

ERROR at line 1:
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 215
ORA-06512: at "SYS.DBMS_STATS", line 22121
ORA-06512: at line 2


Cause

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