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

Thread: Database Error

  1. #1
    Join Date
    Mar 2001
    Posts
    131

    Angry

    Hello Friends,

    Oracle 8.0.4 OS - Tru64Unix

    Today suddenly an error was reported by users. The error was "database error". When i checked at DB level all Procedures, Functions , some views and Pakages showing "INVALID" status. This had happend in many schema including SYS & SYSTEM.

    To overcome the problem I complied the invalid objects and then it was OK.

    I want to find out the cause of the problem. Can Anyone suggest me what could be the reason of this problem ??

    How come so many objects of database becomes INVALID??

    An urgent Help is solicited.

    Thanks,

    UpeshP

  2. #2
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,684
    If you altered a table, package header, procedure or function all referencing code will be invalidated. Once the code is called it should immediately be revalidated. In some cases, the chain of depencies is so long that you get errors until you compile them. Check what happened on the system before this was done.

    Cheers
    Tim...
    OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
    OCA PL/SQL Developer
    Oracle ACE Director
    My website: oracle-base.com
    My blog: oracle-base.com/blog

  3. #3
    Join Date
    Mar 2001
    Posts
    131
    Hi Tim,

    What i have understood from your reply is, you want to say that any user might have alter the table, package header, procedure or function ?


    My problem is How to find out ? Nothing is there in trace file.

    Thanks

  4. #4
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,684
    Check out the LAST_DDL_TIME column on the DBA_OBJECTS view. This might give you some ideas.

    Cheers
    Tim...
    OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
    OCA PL/SQL Developer
    Oracle ACE Director
    My website: oracle-base.com
    My blog: oracle-base.com/blog

  5. #5
    Join Date
    Mar 2002
    Posts
    301
    Hi,

    Unless you turn on tracing(in the userlevel) or audit the activities of the database, you don't have much options for finding the user activity.

    As Tim said you will have to look at last_ddl_time for getting some idea.

    HTH.
    Vijay.
    Say No To Plastics

  6. #6
    Join Date
    Mar 2001
    Posts
    131
    Thanks,

    Tim, Vijay for solution.

    Any one want to comment more on this problem ??

    UpeshP

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