Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dbms_datadump fails with ORA-39117 for a table with user defined type

User_1UBUPJun 27 2014

I have a table which has column of user defined type, I tried to move the table to a different schema,

It worked fine using command line mode, however when I tries to use DBMS_DATAPUMP, it fails with ORA-39117 error, below are the filters I had used.

Database version:11.2.0.3

Command Line Mode:

bin/expdp user1/password1 directory=TEST_DIR1 include=TABLE:\"=\'TEST_TABLE_1\'\",TYPE:\"IN \(\'TEST_TYPE_1\'\)\" reuse_dumpfiles=y dumpfile=TEST.dmp logfile=expdpTEST.log

bin/impdp user1/password1 directory=TEST_DIR1 include=TABLE:\"=\'TEST_TABLE_1\'\",,TYPE:\"IN \(\'TEST_TYPE_1\'\)\" dumpfile=TEST.dmp logfile=impdpTEST.log  remap_schema=USER1:USER2 TRANSFORM=oid:n

With the above command, table movement was successful. But we would like to do the same thing using pl/sql block.

===Export===

DBMS_DATAPUMP.metadata_filter (

         handle   => h1,

         name     => 'NAME_EXPR',

         VALUE    => 'IN(''TEST_TABLE_1'',''TEST_TYPE_1'')'

);

dbms_datapump.metadata_filter(

handle => h1, name => 'INCLUDE_PATH_EXPR', value => 'IN (''TABLE'',''TYPE'')');

===Import===

DBMS_DATAPUMP.metadata_filter (

         handle   => h1,

         name     => 'NAME_EXPR',

         VALUE    => 'IN(''TEST_TABLE_1'',''TEST_TYPE_1'')'

      );

dbms_datapump.metadata_filter(

handle => h1, name => 'INCLUDE_PATH_EXPR', value => 'IN (''TABLE'',''TYPE'')');

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 25 2014
Added on Jun 27 2014
0 comments
731 views