dbms_xdb.rebuildhierarchicalindex fails with an ORA-01422 (Doc ID 1273254.1)

Last updated on APRIL 16, 2015

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.4 [Release 10.2 to 11.2]
Information in this document applies to any platform.

Symptoms

While rebuilding XDB's hierarchical index with dbms_xdb.rebuildhierarchicalindex, it fails with an ORA-01422.

SQL> execute dbms_xdb.rebuildhierarchicalindex;
BEGIN dbms_xdb.rebuildhierarchicalindex; END;
*
ERROR at line 1:
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "XDB.DBMS_XDB", line 920
ORA-06512: at "XDB.DBMS_XDB", line 931
ORA-06512: at line 1

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