当前位置: 代码迷 >> SQL >> PL/SQL温习十一 管理子程序
  详细解决方案

PL/SQL温习十一 管理子程序

热度:44   发布时间:2016-05-05 13:58:20.0
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;

?

  相关解决方案