DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Table missing?

  1. #1
    Join Date
    Mar 2001
    Posts
    23

    Table missing?

    I tried to run the following statement to recompile any invalid objects in the proper order:
    --------------------------------------------------------------------
    select
    decode( OBJECT_TYPE, 'PACKAGE BODY',
    'alter package ' || OWNER||'.'||OBJECT_NAME || ' compile body;',
    'alter ' || OBJECT_TYPE || ' ' || OWNER||'.'||OBJECT_NAME || ' compile;' )
    from
    dba_objects a,
    sys.order_object_by_dependency b
    where
    A.OBJECT_ID = B.OBJECT_ID(+) and
    STATUS = 'INVALID' and
    OBJECT_TYPE in ( 'PACKAGE BODY', 'PACKAGE', 'FUNCTION', 'PROCEDURE',
    'TRIGGER', 'VIEW' )
    order by
    DLEVEL DESC,
    OBJECT_TYPE,
    OBJECT_NAME;
    --------------------------------------------------------------------
    However, in SQLPLUS it's telling me that the sys.order_object_by_dependency table doesn't exist, how can I create this table?

    Thanks

  2. #2
    Join Date
    Nov 2002
    Location
    New Delhi, INDIA
    Posts
    1,796
    Since 8.1.6.2, this view does not exist anymore.
    cause: Bug:895238

    The original query for order_object_by_dependency is:

    select max(level), object_id from public_dependency
    connect by object_id = prior referenced_object_id
    group by object_id;

    However, if there are JAVA objects in the database, this query will fail with ORA-1436.

    HTH
    Amar
    Last edited by adewri; 01-23-2003 at 01:39 PM.
    Amar
    "There is a difference between knowing the path and walking the path."

    Amar's Blog  Get Firefox!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width