Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Extracting PROFILE DDL
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
-- http://www.freelists.org/webpage/oracle-lReceived on Fri Dec 03 2004 - 08:22:27 CST
![]() |
![]() |