Extracting PROFILE DDL

  • From: Herring Dave - dherri <david.herring@xxxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Fri, 3 Dec 2004 08:22:40 -0600

Folks,
 

Anyone know how to extract the DDL for recreating the default profile using
dbms_metadata?  The following works for all other profiles except the
default one:

 

SELECT dbms_metadata.get_ddl('PROFILE',profile)

  FROM dba_profiles

 WHERE profile != 'DEFAULT';

 

When running dbms_metadata against the default profile I get the following
error:

 

ERROR:

ORA-31603: object "DEFAULT" of type PROFILE not found in schema "SYS"

ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105

ORA-06512: at "SYS.DBMS_METADATA", line 628

ORA-06512: at "SYS.DBMS_METADATA", line 1221

ORA-06512: at line 1

 

I thought perhaps the default profile was created under a privileged user,
but as you can see from the error, extracting even as "sys" I get this
error.

 

Dave

 



**********************************************************************
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.



--
//www.freelists.org/webpage/oracle-l

Other related posts:

  • » Extracting PROFILE DDL