SQL> select   *   from   all_source   a   where   a.type='PACKAGE'   and   a.name='name';no rows selected这是什么问题呢?

解决方案 »

  1.   

    a.name='name'
    红色部分的值有没有大写?
      

  2.   

    select text from user_source where upper(name)=upper('name');select  *  from  all_source  a  where  a.type='PACKAGE'  and  a.name='NAME';
    还都是空
      

  3.   

    2种可能
    1  该包确实存在,但你无权访问。所以all_source里没有,试试dba_source。
    2 该包不存在。
      

  4.   

    dba_source :ORA-00942: table or view does not exist该包通过pl/sql developer可以看到
      

  5.   

    袄,你没有权限访问dba_source。用SYSDBA查查dba_source
      

  6.   

    请问怎么用SYSDBA查查dba_source?
      

  7.   

    你有SYS用户吗?简单点,以它登录数据库,查看dba_source
      

  8.   

      su - sys
    $ sqlplus /nologsu: sqlplus:  not found.
      

  9.   

    [oracle@ehtdb1 /home/oracle]$whoami
    oracle
    [oracle@ehtdb1 /home/oracle]$sqlplus / as sysdbaSQL*Plus: Release 10.2.0.4.0 - Production on Fri Jan 8 13:40:27 2010Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> select * from dba_source
      2  where rownum<=10;OWNER                          NAME                           TYPE
    ------------------------------ ------------------------------ ------------
      

  10.   


    如果有足够的权限,可以直接用dbms_metadata.get_ddl来查看
      

  11.   

    http://blog.csdn.net/inthirties/archive/2009/09/17/4562219.aspx