CURSOR to recompile all INVALID objects

Ok, I know I'm using the atler-compile pre-defined trigger here, and I'm cool with that.
I'm creating an anonymous block to recompile all INVALID objects. I've come up with a basic CURSOR to pull all INVALID objects into the cursor, and then using the alter_compile trigger to recomipile them.
However, I can't figure out how to call them all into the trigger...One of the inputs for the alter_compile trigger is the name of the object...hwo can I get around that?
DECLARE
CURSOR compile_cur
  IS
   SELECT object_name, status
    FROM user_objects
     WHERE status='INVALID';
BEGIN
FOR rec_cur IN compile_cur LOOP
  DBMS_DDL.ALTER_COMPILE('PROCEDURE', 'SYSTEM','BB_JOBTEST');
END LOOP;
END;
/

You can issue a single statement to compile all triggers, procedures, packages, functions in the schema.
SQL> EXEC DBMS_UTILITY.compile_schema(schema => 'Schema_Name');
This will compile all the objects regardless of it's current status.
Shailender Mehta

Similar Messages

  • Recompile all invalid objects in live database

    Hi Expers,
    Just need a clarification on recompiling all invalid objects in production database when the systems is busy.
    i thought of recompile all the invalid objects using utlrp.sql script in my production database since some of few synonyms were invalid after application patch script been implemented last weekeend.
    we have identifed the invalid objects now, i thought to run the utlrp.sql, what will be the consequences.
    Regards,
    Salai

    Hi Hemanth,
    I'd reserve utlrp.sql for upgrades, downgrades and patchsets. I do agree 101% with above point, I a not denying on that.
    If you really have a large number of invalid objects, you might choose to compile a few "selected" objects every hour instead of running a single-shot "compile all invalid objects". Rare but a possible requirement.I came across such requirement during early days of career during pushing product enhancement to production and we would have get to know the things and number of objects which would go invalid as we use to carry out testing on test databases.
    I agree completely utlrp.sql is suggested and should opt for.
    - Pavan Kumar N

  • How to recompile all invalid objects of APPS?

    Dear all:
    How to recompile all invalid objects of APPS? my environment is ORACLE 9.2.0.5 32bit.
    Regards
    Terry

    varun4dba wrote:
    hi Terry,
    did you tried adadmin?
    thanks.Do you mean:
    Compile/Reload Database Objects
    1. Compile APPS schema
    2. Compile menu information
    3. Recreate grants and synonyms for APPS schema
    4. Compile flexfield data in AOL tables
    5. Reload JAR files to database
    6. Return to Main Menu

  • Shell script to validate all invalid objects?

    Hello DBA's.
    New to DBA ing and so seek your help.. I am using oracle Oracle9i Release on a Solaris box.
    I need a shell script that will check all invalid objects on a DB and would validate it by running utlrp.sql. I know i can do this manually but i am asked to automate the process..
    Kindly suggest where i can find a shell script or share this script with me.. it would be much appreciated.
    Regards!

    OK, this is possible, and here is one way entirely within SQL*Plus where it will try once more to recompile invalid objects, please note that this (top one) will work only on 11g or greater, and only getting around to testing this properly now:
    #!/bin/ksh
    . $HOME/.profile
    export ORACLE_SID=<your_SID>
    sqlplus '/ as sysdba' << EOF
    set serveroutput on
    set pagesize 1000
    @${ORACLE_HOME}/rdbms/admin/utlrp.sql
    begin
    for cur  in (select do.owner || '.' || do.object_name module, object_type from dba_objects do join obj$ o on (do.object_id = o.obj#) where o.status = 5)
    loop
    begin
    execute immediate 'alter ' || cur.object_type || ' ' || cur.module  || ' compile';
    exception when others then continue;
    end;
    end loop;
    end;
    spool <path_and_filename_of_your_Invalid_Objects_output_file>
    select do.owner || '.' || do.object_name from dba_objects do join obj$ o on (do.object_id = o.obj#) where o.status = 5;
    spool off
    quit
    EOF
    exit $?For < 11g:
    #!/bin/ksh
    . $HOME/.profile
    export ORACLE_SID=<your_SID>
    sqlplus '/ as sysdba' << EOF
    set serveroutput on
    set pagesize 0
    set heading off
    set termout off
    set feedback off
    @${ORACLE_HOME}/rdbms/admin/utlrp.sql
    spool /tmp/recompile.sql
    begin
    for cur  in (select do.owner || '.' || do.object_name module, object_type from dba_objects do join obj$ o on (do.object_id = o.obj#) where o.status = 5)
    loop
    dbms_output.put_line( 'alter ' || cur.object_type || ' ' || cur.module || ' compile;');
    end loop;
    end;
    spool off
    @/tmp/recompile.sql
    !rm /tmp/recompile.sql
    set heading on
    set termout on
    set pagesize 1000
    spool <path_and_filename_of_your_Invalid_Objects_output_file>
    select do.owner || '.' || do.object_name from dba_objects do join obj$ o on (do.object_id = o.obj#) where o.status = 5;
    spool off
    quit
    EOF
    exit $?Edited by: SeánMacGC on Apr 29, 2009 1:12 PM

  • How to compile all invalid objects in SQL Developer

    Hi
    I am used to PL\SQL Developer and currently I am testing SQL Developer (version 2.1). I have question where can I find in SQL Developer functionality (or how to invoke those functions) like:
    1 ) To list all invalid objects and then compile them.
    2) Invoke window similar to “Command window” in PL\Sql Developer
    Thanks for help
    Groxy

    Could I please revive this and ask how do I use UTL_RECOMP?
    Also, I could not find a description of the icons in SQL Developer. Some procedures are shown with a green plus sign (I am guessing here since I can't make out what it is) on them and the ones that I right-click and compile have this green go away. Can you explain?
    Thanks a lot.

  • To compile all invalid objects

    how we can compile all invalid objects? is there any sample plsql code?

    dbms_utility.compile_schema('shema_name');Please note that from Oracle 9i onwards this does not work. It compiles objects in alphabetical order rather than reverse dependency order, so you may end up with more objects uncompiled than you started with. This change occurred due to the introduction of Java (boo! hiss!) which allows circular dependencies.
    Since then, the only safe way to compile objects is to use the %ORACLE_HOME%\rdbms\admin\utlirp.sql script (which requires sysdba access).
    This has been packaged up in 10gR2 as UTL_RECOMP.
    Thereby proving that searching is easy but finding the right answer is difficult.
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • Finding Invalid objects in schema

    Dear All,
    How to find all invalid objects in an paticular schema
    Regards,
    Raju

    Hello Raju
    SQL> select object_type,count(*) from user_objects where status = 'INVALID'
    2 group by object_type;
    OBJECT_TYPE COUNT(*)
    PACKAGE BODY 4
    PROCEDURE 61
    VIEW 3
    next, as sys
    exec dbms_utility.compile_schema( 'ACCOUNTS' );
    PL/SQL procedure successfully completed.
    then,
    connect accounts
    SQL> select object_type,count(*) from user_objects where status = 'INVALID'
    group by object_type;
    OBJECT_TYPE COUNT(*)
    PACKAGE BODY 1
    PROCEDURE 182
    VIEW 3
    try this
    Ravi
    http://dbaoraclefaqs.blogspot.com/

  • Is it ok to apply patch with invalid Objects?--Urgent

    hello,
    DB: 10.1.0.3.0
    Patch: P4751926
    OS: Linux
    I have seven invlaid objects.
    Is it ok to apply patch with invalid Objects?
    sys.LEAF_CATEGORY_TYP------------------------------------TYPE BODY
    sys.CUSTOMER_TYP----------------------------------------------TYPE
    sys.CATALOG_TYP-------------------------------------------------TYPE BODY
    sys.COMPOSITE_CATEGORY_TYP-------------------------TYPE BODY
    sys.DBMS_STATS---------------------------------------------------PACKAGE BODY
    sys.DBMS_STATS_INTERNAL--------------------------------- PACKAGE BODY
    PUBLIC.DBMS_XDBUTIL_INT------------------------------------SYNONYM
    DN

    did u try to recompile the invalid objects with the utlrp.sql script? (the script is under, <oracle_home>/rdbms/admin
    your dbms_stats is invalid, and that package is needed for getting the statistics so better to have it valid than invalid.

  • INVALID 상태의 OBJECT를 RECOMPILE하는 PROCEDURE

    제품 : ORACLE SERVER
    작성날짜 : 2002-04-18
    INVALID 상태의 OBJECT를 RECOMPILE하는 PROCEDURE
    ===============================================
    Purpose
    Import를 하거나 DDL 작업을 하고 나서 procedure 나 package등의
    pl/sql object가 invalid로 빠지는 경우가 있다. 이런 object들을
    찾아서 recompile해주는 procedure를 소개한다.
    Explanation
    이 procedure는 User 내의 모든 Invalid 상태의 procedure, function,
    package 등의 Object 들을 Recompile한다. Compile에러가 발생하는 경우
    dbms_output package를 이용하여 화면에 display해 주게 되므로 실행하기
    전에 set serveroutput on 을 반드시 실행한다.
    Invalid된 object가 많은 경우라면 compile에러의 확인을 위해 spool을
    받는 것이 좋다.
    CREATE OR REPLACE PROCEDURE RecompileInvalid IS
    CURSOR getlist IS SELECT object_type, object_name FROM
    user_objects WHERE status = 'INVALID' AND
    object_type IN ('PROCEDURE', 'FUNCTION', 'PACKAGE',
    'PACKAGE BODY', 'TRIGGER' );
    schemaname VARCHAR2(100);
    CURSOR geterr ( objname VARCHAR2, objtype VARCHAR2 ) IS
    SELECT text, line, position FROM user_errors WHERE
    name = objname AND type = objtype;
    BEGIN
    SELECT username INTO schemaname FROM user_users;
    FOR getlistrec IN getlist LOOP
    dbms_output.put_line( 'attempting compile on ' ||
    getlistrec.object_name );
    dbms_ddl.alter_compile( getlistrec.object_type,
    schemaname, getlistrec.object_name );
    END LOOP;
    FOR getlistrec IN getlist LOOP
    dbms_output.put_line( '---ERROR---' );
    dbms_output.put_line( 'compile failed on ' ||
    getlistrec.object_name );
    FOR geterrrec IN geterr( getlistrec.object_name,
    getlistrec.object_type ) LOOP
    dbms_output.put_line( 'line: ' || geterrrec.line ||
    ' col: ' || geterrrec.position );
    dbms_output.put_line( substr( geterrrec.text, 1, 100 ));
    END LOOP;
    END LOOP;
    END;
    Example
    SQL> spool Compile.log
    SQL> set serveroutput on
    SQL> exec recompileinvalid;
    attempting compile on CRYPTIT
    attempting compile on CRYPTIT
    attempting compile on DECRYPT
    attempting compile on ENCRYPT
    attempting compile on SYNC_IM_INDEX
    PL/SQL procedure successfully completed.
    SQL> spool off

    우연의 일치인지 저도 어제 rac 기술지원을 나왔는데..
    통계정보를 수집하려고하니 dbms_stats가 invalid되어 있더군요.
    compile 명령을 하려다가 다른 패키지도 invalid되어있기도해서
    utlrp.sql을 수행했습니다.
    물론 백업 후 restart한 후에 세션 모두 클리어시키고 수행했습니다.
    그런데 한번 해서 안되는 경우도 있으니 invalid object의 결과를 보고
    utlrp.sql을 여러번 더 수행하면 해결됩니다.
    ## invalidobj.sql
    doc
    invalid 된 object에 대한 출력
    col owner format a20
    col object_name format a30
    select owner, object_name, OBJECT_TYPE,CREATED,LAST_DDL_TIME, STATUS
    from dba_objects where status<>'VALID';
    글 수정:
    민천사 (민연홍)
    그런데 중요한 것은.. 이것이 open상태에서 수행되더라도
    오라클에서는 그냥 수행해도 문제없다고 하더라도..
    제 개인적인 의견으로는 서비스 중에 수행해서는 절대 안된다고
    생각합니다. 서비스에 어떠한 영향이 갈지도 모르니까요. 문제가
    발생하면 그건 이 작업을 수행한 DBA탓 이겠죠. 장애보고서 써야하고
    골치가 아픕니다.
    저같은 경우에는 백업을 2copy를 하는데 미디어(테이프장치)를
    서로 다른 미디어를 써서 2copy를 해야 작업 시작하겠다고 했고
    그렇게 했습니다. 또한 세션을 모두 클리어시킨 후에 작업했구요.
    장애에 대한 강박관념이라고 할지 모르겠지만 지금까지 본 봐로는
    이렇게 꼼꼼하게 챙기지 않고 장애가 난다면 업계에 오래에 머무르기
    힘들 것 같다는 생각이 들더군요..~
    제가 장애에 너무 민감해서 말씀드리는 것이지 충고를 하는 것은 아닙니다.
    오해가 없으시길 바랍니다.

  • Compile Invalid Objects

    Hi friends,
    how do i compile all the invalid objects in one time ???
    thanks,
    Raj

    Hi,
    Here's what I do when I need to recompile a user's schema. Don't say it's bullet proof, but so far it has worked for me. I use it after each deployment to a schema.
    procedure recompile_schema
    is
       l_type   user_objects.object_type%type;
       l_name   user_objects.object_name%type;
       l_stat   user_objects.status%type;
       compile_error exception;
       pragma exception_init(compile_error, -24344);
       cursor dep_cur
       is
              select object_id
                from (select o1.object_id
                            ,o1.object_name
                            ,o1.object_type
                            ,o1.status
                            ,d1.referenced_name
                            ,d1.referenced_type
                            ,case
                                when exists (select null
                                               from user_dependencies d2
                                              where d2.referenced_name = d1.name
                                                and d2.referenced_type = d1.type)
                                then
                                   1
                                else
                                   0
                             end
                                is_referenced
                        from user_dependencies d1, user_objects o1
                       where o1.object_type in
                                   ('PACKAGE'
                                   ,'PROCEDURE'
                                   ,'FUNCTION'
                                   ,'PACKAGE BODY'
                                   ,'VIEW'
                                   ,'MATERIALIZED VIEW'
                                   ,'TRIGGER'
                                   ,'SYNONYM')
                         and d1.name = o1.object_name
                         and d1.type = o1.object_type)
               where is_referenced = 1
          start with is_referenced = 0
          connect by object_name = prior referenced_name
                 and object_type = prior referenced_type
            group by object_id
            order by max(level) desc, object_id;
       procedure do_compile(pi_object_type   in user_objects.object_type%type
                           ,pi_object_name   in user_objects.object_name%type)
       is
       begin
          --dbms_output.put_line('Compiling: ' || pi_object_name);
          if pi_object_type = 'PACKAGE BODY'
          then
             exe('ALTER PACKAGE ' || pi_object_name || ' COMPILE BODY');
          else
             exe('ALTER ' || pi_object_type || ' ' || pi_object_name || ' COMPILE');
          end if;
       exception
          when compile_error
          then
             dbms_output.put_line(sqlerrm);
       end do_compile;
    begin
       dbms_output.put_line('recompiling invalid objects in schema ' || user);
       -- loop through all objects in order of dependancy.
       for rec in dep_cur
       loop
          -- select the objects attributes (type, name and status).
          select object_type, object_name, status
            into l_type, l_name, l_stat
            from user_objects
           where object_id = rec.object_id;
          -- if the object is invalid, recompile it.
          if l_stat = 'INVALID'
          then
             dbms_output.put_line('Compiling(1): ' || l_name);
             do_compile(l_type, l_name);
          end if;
       end loop;
       -- Recompile all remaining INVALID OBJECTS (all those without dependencies).
       for rec
       in (select object_type, object_name
             from user_objects
            where status = 'INVALID'
              and object_type in
                        ('PACKAGE'
                        ,'PROCEDURE'
                        ,'FUNCTION'
                        ,'TRIGGER'
                        ,'PACKAGE BODY'
                        ,'VIEW'
                        ,'MATERIALIZED VIEW'
                        ,'TRIGGER'
                        ,'SYNONYM'))
       loop
          dbms_output.put_line('Compiling(2): ' || rec.object_name);
          do_compile(rec.object_type, rec.object_name);
       end loop;
    end recompile_schema;Regards
    Peter

  • Invalid objects in APEX Schemas after import.

    Hi,
    After importing the APEX_040100 user in the database I got several invalid objects that are causing APEX not to work.
    I gave up to compile them. After using all kind of tricks such as compile one schema at a time or compile all of them using the utlprp.sql script
    or using EXEC DBMS_DDL.alter_compile('PACKAGE', 'MY_SCHEMA', 'MY_PACKAGE');
    or one object art a time using command sililar to:
    ALTER PACKAGE my_package COMPILE;
    ALTER PACKAGE my_package COMPILE BODY;
    ALTER PROCEDURE my_procedure COMPILE;
    ALTER FUNCTION my_function COMPILE;
    ALTER TRIGGER my_trigger COMPILE;
    ALTER VIEW my_view COMPILE;
    I can't find any documentation to show how to recompile them properly.
    So I am asking:
    1. How can we recompile all objects in APEX?
    2. How can we re-install APEX?
    3. How can we revert to previous version if both have problems?
    Thanks
    Yannis
    Here is the list of invalid objects:
    APEX_040100     PACKAGE     WWV_FLOW_DYNAMIC_EXEC     INVALID
    APEX_040100     PACKAGE     WWV_FLOW_LOAD_DATA     INVALID
    APEX_040100     PACKAGE     WWV_FLOW_SAMPLE_APP     INVALID
    APEX_040100     PACKAGE     WWV_FLOW_UTILITIES     INVALID
    APEX_040100     PACKAGE BODY     APEXWS     INVALID
    APEX_040100     PACKAGE BODY     HTMLDB_UTIL     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_4000_UI     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_ADMIN_API     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_ADVISOR     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_AJAX     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_API     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_APPLICATION_INSTALL     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_ASFCOOKIE     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_AUDIT     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_AUTHENTICATION     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_AUTHENTICATION_ENGINE     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_AUTHORIZATION     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_BUILDER     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_BUTTON     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_CALENDAR3     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_CALENDAR_AJAX     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_CHECK     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_COLLECTION     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_CONDITIONS     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_COPY_PAGE     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_CREATE_APP_FROM_QUERY     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_CREATE_MODEL_APP     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_CSS_API_PRIVATE     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_CUSTOM_AUTH     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_CUSTOM_AUTH_STD     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_DATALOAD_XML     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_DATA_QUICK_FLOW     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_DATA_UPLOAD     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_DICTIONARY     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_DISP_PAGE_PLUGS     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_DML     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_DOWNLOAD     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_DRAG_LAYOUT     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_DYNAMIC_EXEC     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_ERROR     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_F4000_P4150     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_F4000_PLUGINS     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_F4000_UTIL     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_FILE_MGR     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_FLASH_CHART     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_FLASH_CHART2     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_FLASH_CHART5     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_FLASH_CHART5_UTIL     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_FLASH_CHART_UTIL     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_FND_DEVELOPER_API     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_FND_USER_API     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_FORMS     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_FORM_CONTROL     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_GENERATE_DDL     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_GENERATE_TABLE_API     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_GENERIC_ATTR     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_GEN_API2     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_HINT     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_HTML_API_PRIVATE     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_IMP_PARSER     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_INSTALL_WIZARD     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_INSTANCE_ADMIN     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_ITEM     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_JAVASCRIPT     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_JOB     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_LANG     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_LDAP     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_LIST     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_LOAD_DATA     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_LOAD_EXCEL_DATA     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_LOGIN     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_MAIL     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_META_DATA     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_META_UTIL     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_MODEL_API     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_NATIVE_AUTHENTICATION     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_NATIVE_DYNAMIC_ACTION     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_NATIVE_ITEM     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_PAGE_CACHE_API     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_PLSQL_EDITOR     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_PLSQL_JOB     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_PLUGIN_ENGINE     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_PLUGIN_F4000     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_PLUGIN_UTIL     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_PPR_UTIL     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_PRINT_UTIL     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_PROCESS     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_PROCESS_UTILITY     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_PROVISION     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_PROVISIONING     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_QUERY_API     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_REGEXP     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_REGION_LAYOUT     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_RENDER_QUERY     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_RENDER_SHORTCUT     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_REST     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_SAMPLE_APP     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_SC_TRANSACTIONS     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_SECURITY     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_SERIES_ATTR     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_SESSION     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_SESSION_MON     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_SVG     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_SW_API     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_SW_PAGE_CALLS     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_SW_PARSER     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_SW_SCRIPT     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_SW_UTIL     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_TABLE_DRILL     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_TAB_MGR     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_TEAM     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_TEAM_GEN_API     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_TEMPLATES_UTIL     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_THEME_FILES     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_THEME_MANAGER     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_TREE     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_TREE_REGION     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_UPGRADE     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_UPGRADE_APP     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_UTILITIES     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_VALIDATION     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WEBSERVICES_API     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WEB_SERVICES     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WIZARD_API     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WIZ_CONFIRM     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WORKSHEET     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WORKSHEET_AJAX     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WORKSHEET_API     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WORKSHEET_DIALOGUE     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WORKSHEET_EXPR     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WORKSHEET_FORM     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WORKSHEET_STANDARD     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WORKSPACE_REPORTS     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WS_API     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WS_ATTACHMENT     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WS_DIALOG     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WS_EXPORT     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WS_FLASH_CHART     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WS_FORM     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WS_GEOCODE     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WS_IMPORT     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WS_IMPORT_API     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WS_SECURITY     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WS_SETUP     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WS_STICKIES     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WS_UI     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_WS_WEBPAGE     INVALID
    APEX_040100     PACKAGE BODY     WWV_FLOW_XLIFF     INVALID
    APEX_040100     PACKAGE BODY     WWV_META_CLEANUP     INVALID
    APEX_040100     PACKAGE BODY     WWV_MIG_ACC_LOAD     INVALID
    APEX_040100     PACKAGE BODY     WWV_MIG_FRMMENU_LOAD_XML     INVALID
    APEX_040100     PACKAGE BODY     WWV_MIG_FRM_LOAD_XML     INVALID
    APEX_040100     PACKAGE BODY     WWV_MIG_FRM_OLB_LOAD_XML     INVALID
    APEX_040100     PACKAGE BODY     WWV_MIG_FRM_UPDATE_APX_APP     INVALID
    APEX_040100     PACKAGE BODY     WWV_MIG_FRM_UTILITIES     INVALID
    APEX_040100     PACKAGE BODY     WWV_MIG_RPT_LOAD_XML     INVALID
    APEX_040100     PACKAGE BODY     WWV_RENDER_CALENDAR2     INVALID
    APEX_040100     PACKAGE BODY     WWV_RENDER_CHART2     INVALID
    APEX_040100     PACKAGE BODY     WWV_RENDER_REPORT3     INVALID
    APEX_040100     PROCEDURE     APEX_ADMIN     INVALID
    APEX_040100     PROCEDURE     F     INVALID
    APEX_040100     PROCEDURE     HTMLDB_ADMIN     INVALID
    APEX_040100     PROCEDURE     WS     INVALID
    APEX_040100     SYNONYM     APEX_COLLECTIONS     INVALID
    APEX_040100     SYNONYM     HTMLDB_COLLECTIONS     INVALID
    APEX_040100     TRIGGER     WWV_FLOW_FEEDBACK_T1     INVALID
    APEX_040100     VIEW     WWV_FLOW_ADVISOR_RESULT     INVALID
    APEX_040100     VIEW     WWV_FLOW_COLLECTIONS     INVALID
    APEX_040100     VIEW     WWV_FLOW_SEARCH_RESULT     INVALID
    APEX_040100     VIEW     WWV_MULTI_COMPONENT_EXPORT     INVALID

    yannisr wrote:
    Hi,
    After importing the APEX_040100 user in the database I got several invalid objects that are causing APEX not to work.Hi,
    You mean you did export APEX_040100 schema from one database and import it to another database?
    There is also public synonyms and if I recall correct some objects are in SYS schema that belongs to Apex and are needed.
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • Problem with ORA-24372 invalid object for describe

    I have unresolved problem with oracle message: ORA-24372 invalid object for describe. There is the client-server application which installed on users PCs. Client application is program on Delphi 7 that installed on several users PCs which works with Oracle DB 10g server (clients on users side 8.1.7) by means ODAC 5.7. Each user by means this application works with data on Oracle server. Each group of users uses its own schema. Each of this schema has grants to select data and execute procs in the main schema. During the time of operation I modified and compiled some procs in the main schema. As the result I found some depended Invalid objects in main schema. I recompiled them. There is no invalid objects in all schemas. But when I starts application in one user place (he uses for example schema X1) I see oracle message: ORA-24372 invalid object for describe. Other users in group which uses schema X1 works without this problem. There is finite aggregate of users of schema Х1 which has this message but some users of schema Х1 has no problem. All users has identical software and there is no any invalid objects in schemas! I try to start application on my PC using schema X1 and finds ORA-24372 then I try to start application on neighbors PC and it is all ok! It happened after I recompiled main schema in the time of users operation. What should I do to resolve this problem? Where to find the source of the problem: in client or in server?

    To Mr. Sven Weller
    The purpose of creation X1 (X2, Х3…) was restriction of users to access objects in the Main Schema. X1 has no any objects except function that returns her name for internal purposes. X1 has many synonyms for objects in the Main schema. There is no invalid objects in X1!

  • Invalid objects found in Repository

    I am installing grid control 11.1 to redhat 5.2, with repository database of 11.2 locate on the same host. At step 7 of 13 connect to database, I provided the host, port, service and sys password and clicked Next, and I got a simple error messageInvalid objects found in Repository. Re-compile the objects using:
    $ORACLE_HOME/sysman/admin/emdrep/sql/core/latest/admin/admin_recompile_invalid.sql
    <EM_REPOS_USER>.Ther is no other clues given. I checked the script admin_recompile_invalid.sql, it is pretty simple, just goes though all_objects and dba_synonyms for any invalide obejct for the <EM_REPOS_USER> user. If find, recompile. I am not sure what user is <EM_REPOS_USER> but the two queries returns nothing in my database for any/all users. The script should just pass and doing nothing.
    What could be wrong?
    Where I can find more info?

    Did you try recompiling invalid objects using utlrp.sql
    Also check invalid objects using :
    select count(*) from dba_objects where status<>'VALID';
    Regards
    Rajesh

  • Invalid object /produres/funtions/triggers/Views/synonyms/

    Can any body forward me the SQL/PLSQL command to check Invalid object /produres/funtions/triggers/Views/synonyms/ and any other invalid object in the db, & what is recommended to deal with that invalid objects. Either i should recompile /Rebuild / Or delete it .
    & How i can do all this work in EM DB control?
    Need help.

    I would not worry much about invalid objects since Oracle will take care of it on next invocation.Up to a point. Oracle will recompile them if they are inmvoked locally. This does not work if they are invoked remotely (say from a distributed transaction or a clinet/server application).
    Also I think it pays to be curious. Why are these objects invalid? At the vey least it suggests to me that soembody has done a release without checking that the database is in a valid state. There is also the possiblility that the objects are in an invalid state because they won't compile. Now that's something we want to know now rather than when some user calls to complain that the application won't work.
    In short, accepting the presence of invalid objects in the database because Oracle will compile them when it next needs them is just living with broken windows, and that's bad practice.
    Cheers, APC

  • Invalid objects in sys user

    Hi all,
    I have lots of invalid objects in sys user. while trying to recompile i got the following error
    ORA-20001: Cannot recompile SYS objects
    ORA-06512: at "SYS.DBMS_UTILITY", line 321.
    Then i tried to recompile it using sql>cd $ORACLE_HOME/rdbms/admin/ utlrp.sql and utlprp.sql but i didnt find any difference.
    My database version is oracle10g. can any one help me for this.
    Thanks

    1.http://www.oracle-base.com/articles/misc/RecompilingInvalidSchemaObjects.php
    2.http://www.dbapool.com/dbscripts/script_32.html
    Hth
    Girish Sharma

Maybe you are looking for