My Oracle Support Banner

dbms_metadata.get_ddl No Longer Returns Password For Database Link (Doc ID 1684122.1)

Last updated on FEBRUARY 27, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

 NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner. 

In 11.2.0.4 and 12c, DBMS_METADATA.GET_DDL no longer retrieves the encrypted password.


In 11.2.0.4

SELECT DBMS_METADATA.GET_DDL('DB_LINK',DB_LINK,OWNER) from dba_db_links;
DBMS_METADATA.GET_DDL('DB_LINK',DB_LINK,OWNER)
--------------------------------------------------------------------------------

  CREATE PUBLIC DATABASE LINK "PROD.WORLD"
  CONNECT TO "TEST_USER" IDENTIFIED BY VALUES ':1' 
  USING 'TESTDB'

In 11.2.0.3


SELECT DBMS_METADATA.GET_DDL('DB_LINK',DB_LINK,OWNER) from dba_db_links;

DBMS_METADATA.GET_DDL('DB_LINK',DB_LINK,OWNER)
--------------------------------------------------------------------------------

  CREATE PUBLIC DATABASE LINK "PROD.WORLD"
  CONNECT TO "TEST_USER" IDENTIFIED BY VALUES '058956F705CC61442C51ABGHB609AE2DB12089624251CED53CC'  USING 'TESTDB'

So in 11.2.0.4, the extracted DDL can no longer be used to re-create the database objects containing password.
 

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References


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