Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Extracting PROFILE DDL

Extracting PROFILE DDL

From: Herring Dave - dherri <david.herring_at_acxiom.com>
Date: Fri, 3 Dec 2004 08:22:40 -0600
Message-ID: <433A07749711884D8032B6A0AB1152620548C05C@conmsx07.corp.acxiom.net>


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.
--
http://www.freelists.org/webpage/oracle-l
Received on Fri Dec 03 2004 - 08:22:27 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US