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

Last updated on NOVEMBER 28, 2016

Applies to:

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

Symptoms

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). 

Changes

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
as
begin
null;
end;

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

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