ORA-31605, LPX-407 WHEN EXECUTING IMPDP AND DBMS_METADATA.GET_DDL

(Doc ID 1072351.1)

Last updated on APRIL 24, 2017

Applies to:

Oracle Server - Enterprise Edition - Version 10.2.0.3 to 10.2.0.3 [Release 10.2]
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 a_user default tablespace users temporary tablespace temp;
grant connect, resource to a_user;

connect a_user/a_user

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

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