My Oracle Support Banner

ORA-31605, LPX-407 WHEN EXECUTING IMPDP AND DBMS_METADATA.GET_DDL (Doc ID 1072351.1)

Last updated on FEBRUARY 27, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.3 to 10.2.0.3 [Release 10.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
IBM z/OS on System z
IMPDP
DBMS_METADATA.GET_DDL

***Checked for relevance on 10-Oct-2011***


Symptoms


For a database created using characterset CL8EBCDIC1025R, the following errors occur when using
dbms_metadata.get_ddl :

connect / as sysdba
create user a_user identified by <PWD> default tablespace users temporary tablespace temp;
grant connect, resource to a_user;

connect a_user/<PWD>

create table a_tab (id number, text varchar2(10));
insert into a_tab values (1, 'Text 1');
commit;

select dbms_metadata.get_ddl ('TABLE', 'A_TAB') from dual;
ERROR:
ORA-06502: PL/SQL: numeric or value error
ORA-31605: the following was returned from LpxXSLProcessXML in routine
kuxIntTransformXtoC:
LPX-407: right square bracket missing in the XSL file
ORA-06512: at "SYS.UTL_XML", line 189
ORA-06512: at "SYS.DBMS_METADATA_INT", line 9462
ORA-06512: at "SYS.DBMS_METADATA", line 1919
ORA-06512: at "SYS.DBMS_METADATA", line 2792
ORA-06512: at "SYS.DBMS_METADATA", line 4333
ORA-06512: at line 1

         
The error is independent of the client characterset in use.
The error does not occur if the database uses character set WE8EBCDIC1047 or UTFE.
The same errors can also occur if the table in question is exported using EXPDP, and an attempt is made to import the resultant export file using IMPDP.

Changes

None

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.