Bug 6269507 - After DataPump Export and Import The Package Name In DBA_SOURCE Changes From Lower To Upper Case (Doc ID 778836.1)

Last updated on NOVEMBER 28, 2016

Applies to:

Oracle Server - Enterprise Edition - Version: 11.1.0.7 and later   [Release: 11.1 and later ]
Information in this document applies to any platform.
Oracle Server Enterprise Edition - Version: 11.1.0.7

Symptoms

After performing DataPump export/import (expdp and impdp) the package name in DBA_SOURCE changes from lower to upper case and contains double quotes.

For example: 

create procedure My_Test as
begin
  null;
end;
/

Procedure is created. 

select text from dba_source where name = 'MY_TEST' order by line;

TEXT
-----------------------------------------------------------------------
procedure My_Test as
begin
  null;
end; 

DBA_OBJECTS shows: 

select object_name, object_type
from   dba_objects
where  upper (object_name)='MY_TEST';

OBJECT_NAME                     OBJECT_TYPE
------------------------------- -------------------
MY_TEST                         PROCEDURE

Expdp and impdp internally use the package DBMS_METADATA which generates this behavior: 

select dbms_metadata.get_ddl ('PROCEDURE', 'MY_TEST') from dual;

DBMS_METADATA.GET_DDL('PROCEDURE','MY_TEST')
-----------------------------------------------------------------------
CREATE OR REPLACE PROCEDURE "SYS"."MY_TEST" as
begin
  null;
end;

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