在Oracle中如何查询一个表空间下所有的存储过程啊或者是一个用户下面所有的存储过程

2025-03-22 21:55:37
推荐回答(4个)
回答1:

一个用户下面所有的存储过程:
如果有DBA权限
select * from DBA_objects where object_type='PROCEDURE' and owner='user_name'
否则就all_objects
一个表空间下所有的存储过程:
这个应该没有意义

回答2:

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'; --所有表

回答3:

select * from all_objects where object_type = 'PROCEDURE' AND OWNER = ''----用户

回答4:

select * from DBA_objects where object_type='PROCEDURE' and owner='user_name'