12c : DB Upgrade Fails with Errors "ORA-01422: exact fetch returns more than requested number of rows"

(Doc ID 2080793.1)

Last updated on NOVEMBER 09, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

Database upgrade to 12.1.0.2 fails with below errors:

Component Current Version Elapsed Time
Name Status Number HH:MM:SS

Oracle Server
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at line 24
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at line 25
Oracle Server INVALID 12.1.0.2.0 01:22:21

 

Database upgrade to 12.2.0.1  fails with below errors:

11:46:59  23   select length into type_name_len from DBA_TYPE_ATTRS where
11:46:59  24    TYPE_NAME='KU$_SCHEMAOBJ_T' and
11:46:59  25    ATTR_NAME='TYPE_NAME';
11:46:59  26   use_new_cols := ku$$column_exists('OBJ$','DFLCOLLID') or ku$$mig_final;
11:46:59  27  
..
..
11:46:59 155   cre_view('ku$_edition_schemaobj_view','schemaobj_t', objcom || edobj_tail);
11:46:59 156  end;
11:46:59 157  /
declare
*
ERROR at line 1:
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at line 23

 

 

 

Changes

 

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