Dbms_metadata.get_ddl('USER','<username>') Does Not Return A Password Value (Doc ID 1529478.1)

Last updated on NOVEMBER 03, 2015

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.2 to 11.2.0.4 [Release 11.2]
Information in this document applies to any platform.

Symptoms

If you are using DBMS_METADATA and when you try to generate the DDL for a user using GET_DDL, you will notice the hashed password value is missing, for example, even when user SCOTT has been granted the SELECT_CATALOG role:

 

SQL> connect scott/tiger
Connected.
SQL> select dbms_metadata.get_ddl('USER','SYSTEM') from dual;

DBMS_METADATA.GET_DDL('USER','SYSTEM')
--------------------------------------------------------------------------------

   ALTER USER "SYSTEM"
      TEMPORARY TABLESPACE "TEMP"

 

 

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