一个用户下面所有的存储过程:
如果有DBA权限
select * from DBA_objects where object_type='PROCEDURE' and owner='user_name'
否则就all_objects
一个表空间下所有的存储过程:
这个应该没有意义
Oracle中用sql查询获取数据库的所有触发器,所有存储过程,所有视图,所有表
Select object_name From user_objects Where object_type='TRIGGER'; --所有触发器
Select object_name From user_objects Where object_type='PROCEDURE'; --所有存储过程
Select object_name From user_objects Where object_type='VIEW'; --所有视图
Select object_name From user_objects Where object_type='TABLE'; --所有表
select * from all_objects where object_type = 'PROCEDURE' AND OWNER = ''----用户
select * from DBA_objects where object_type='PROCEDURE' and owner='user_name'