ORACLE user_objects 表

[b]1. OBJECT_TYPE[/b]
select distinct(o.OBJECT_TYPE) from user_objects o

[img]http://dl.iteye.com/upload/attachment/0064/5563/17cf9c01-76e0-353e-a3ce-a85762003a45.png[/img]

[b]2.具体[/b]
select dbms_metadata.get_ddl('SEQUENCE',u.object_name) from user_objects u where object_type='SEQUENCE'
select dbms_metadata.get_ddl('PROCEDURE',u.object_name) from user_objects u where object_type='PROCEDURE'
select dbms_metadata.get_ddl('PACKAGE',u.object_name) from user_objects u where object_type='PACKAGE'
select dbms_metadata.get_ddl('TRIGGER',u.object_name) from user_objects u where object_type='TRIGGER'
select dbms_metadata.get_ddl('TABLE',u.object_name) from user_objects u where object_type='TABLE'
select dbms_metadata.get_ddl('INDEX',u.object_name) from user_objects u where object_type='INDEX'

[img]http://dl.iteye.com/upload/attachment/0064/5566/2596a7b2-bc86-3099-8c0e-eb920cd7ed0e.png[/img]

你可能感兴趣的:(oracle,数据库)