在字典user_source中有过程或包或触发器的源码
user_objects 中应当都有啊。
未编译的是什么意思,编译错误的???

解决方案 »

  1.   

    SELECT TEXT  FROM ALL_SOURCE WHERE OWNER='TEMP' AND NAME='P_name';
      

  2.   

    SQL> select text from all_source where owner='SCOTT' and name='TESTSE' and type='PROCEDURE';或在DBA Studio的图形界面中也可以看到对象创建的原码。
      

  3.   

    U r living in stone age , Althougth you can fetch all these information from data dictionary table . Why not just use OEM->Schema Manager or 3rd party tools like PL/SQL devekoper , TOAD(it's free in www.quest.com) etc.
      

  4.   

    建议用plsql develop,我觉得这个工具挺好用的
      

  5.   

    select text from user_source where name= Procedurename and type = 'PROCEDURE' order by line;
      

  6.   

    多谢各位,另外TRIGGER怎么查出来啊?每个procedure的状态(enable还是disable的)我怎么知道?我就是想做一个类似于TOAD这样的软件,当然功能不可能有那么多。上面的方法只能得到procedure和function,不知trigger怎么才能得到?
      

  7.   

    user_triggers只列出了trigger的声明部分,实际的内容并没有,怎么找他的内容?多谢了!