管理存储过程和函数
1.列出当前用户的子程序
SQL>col object_name format a20 ----设置列名为object_name的列的宽度是20;
SQL>select object_name,created,status from user_objects where
object_type in('PROCEDURE','FUNCTION');
2.列出子程序的源代码
SQL>select text from user_source;
3.列出子程序编译错误
show errors procedure proc_testinout
4.列出对数据库表的依赖
select name,type from user_dependencies where referenced_name='EMP';
1.列出当前用户的子程序
SQL>col object_name format a20 ----设置列名为object_name的列的宽度是20;
SQL>select object_name,created,status from user_objects where
object_type in('PROCEDURE','FUNCTION');
2.列出子程序的源代码
SQL>select text from user_source;
3.列出子程序编译错误
show errors procedure proc_testinout
4.列出对数据库表的依赖
select name,type from user_dependencies where referenced_name='EMP';