Upgrade to 12.1 fails with ORA-01830 date format picture ends before converting entire input string ORA-06512: at "SYS.XS_OBJECT_MIGRATION" (Doc ID 1958876.1)

Last updated on MARCH 22, 2017

Applies to:

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

Symptoms

1.  XDB component is installed and valid and there are no invalid objects in XDB schema.

2.  The database pre-upgrade checks pass without any error.

3.  Upgrade to 12.1.0.x from 11.2.0.x fails with following error.

ORA-01830: date format picture ends before converting entire input string
ORA-06512: at "SYS.XS_OBJECT_MIGRATION", line 167
ORA-06512: at line 28

 4. Following is the output in catuppst script

Oracle XML Database
   ORA-31018: Error deleting XML document ORA-00942: table or view does not exist
ORA-06512: at "XDB.DBMS_XDB_REPOS", line 355
ORA-06512: at line 165
   ORA-00942: table or view does not exist ORA-06512: at "XDB.DBMS_XDB_REPOS",line 355
ORA-06512: at line 165
   ORA-06512: at "XDB.DBMS_XDB_REPOS", line 355 ORA-06512: at line 165
   ORA-06512: at line 165

 Oracle XML Database                     INVALID      12.1.0.2.0  00:01:19

Changes

 Database being upgraded to 12.1.0.x

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