PL/SQL复习十一 管理子程序
查询用户对象:
SQL> select * from user_objects;
查询子程序源码:
SQL> select text from user_source where name='GET_INFO';
列出子程序编译错误:
SQL> show errors procedure get_user;
列出对象依赖关系:
SQL> select name, type from user_dependencies;
查询无效状态的依赖关系:
SQL> select object_name, object_type from user_objects where status = 'invalid';
重新编译子程序:
SQL> alter procedure out_time compile;
SQL> alter function GET_SAL compile;
?