so_damn_insane's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Wednesday, December 7th, 2005

    Time Event
    10:45a
    recompile invalid user objects
    Select 'Alter '
    ||decode(OBJECT_TYPE
    ,'PACKAGE BODY','PACKAGE'
    ,decode(OBJECT_TYPE,'TYPE BODY','TYPE',OBJECT_TYPE))
    ||' '
    ||&OWNER
    ||'."'
    ||OBJECT_NAME
    ||'" COMPILE '
    ||decode(OBJECT_TYPE
    ,'PACKAGE BODY','BODY;'
    ,decode(OBJECT_TYPE,'TYPE BODY','BODY;',';'))
    From USER_OBJECTS
    Where STATUS = 'INVALID'
    and OBJECT_TYPE not in ('JAVA CLASS','JAVA SOURCE');

    vienkārši un eleganti.

    << Previous Day 2005/12/07
    [Calendar]
    Next Day >>

About Sviesta Ciba