SELECT * FROM USER_SOURCE
OR
SELECT
OBJ.OWNER,
OBJ.OBJECT_TYPE,
OBJ.OBJECT_NAME,
DBMS_METADATA.GET_DDL(DECODE(OBJ.OBJECT_TYPE,'MATERIALIZED VIEW','MATERIALIZED_VIEW',OBJ.OBJECT_TYPE), OBJ.OBJECT_NAME , OBJ.OWNER )
FROM
DBA_OBJECTS OBJ
WHERE
OBJ.OBJECT_TYPE IN (
'INDEX',
'MATERIALIZED VIEW',
'PACKAGE' ,
'FUNCTION',
'TABLE',
'TRIGGER',
'VIEW',
'SEQUENCE'
)
No comments:
Post a Comment
Thanks for making a comment.