My Oracle Support Banner

Package comments are not imported when using impdp schema import (Doc ID 785218.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Server - Enterprise Edition - Version: to
This problem can occur on any platform.
Oracle Server Enterprise Edition - Version: to


Having some wrapped PL/SQL packages which include a comment about the version number :
create or replace procedure /* RCS version: 4.1 */ des_test wrapped

After using export datapump and import datapump, the tag (comment) between the word: procedure and the name of the procedure is gone (the comment is lost). 


Steps to reproduce:
Create an empty schema in two databases (in this example dschafth).
Create a wrapped procedure in this schema in the source database.
Source code for this wrapped source:
create or replace procedure /* RCS version: 4.1 */ des_test

Export the schema:
expdp dschafth@ontw DUMPFILE=DATA_PUMP_DIR:dschafth.dmp LOGFILE=DATA_PUMP_DIR:dschafth.log

Import the schema in the target database:
impdp dschafth@acct DIRECTORY=DATA_PUMP_DIR DUMPFILE=dschafth.dmp SCHEMAS=dschafth

After the import the comment string disappeared:
create or replace PROCEDURE "DES_TEST" wrapped


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

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