How to Compile Sys invalid objects

Dear,
We have found one invalid object in our database which owner is SYS.
How i compile this objects it's OBJECT_TYPE is package_body.
Please suggest me if any..
Wting
Raj

hello.
I run this script, but sys's objects again to be with erros:
OWNER     OBJECT_NAME
SYS     ALL_WORKSPACES
SYS     DBA_OUTLINES
SYS     DBA_OUTLINE_HINTS
SYS     DBA_WORKSPACES
SYS     DBA_WORKSPACE_SESSIONS
SYS     KU$_OUTLINE_VIEW
SYS     LOGOFF_PROC
SYS     LT
SYS     LTADM
SYS     LTDDL
SYS     LTDTRG
SYS     LTPRIV
SYS     LTRIC
SYS     LTUTIL
SYS     LT_CTX_PKG
SYS     NO_VM_CREATE
SYS     NO_VM_CREATE_PROC
SYS     NO_VM_DROP
SYS     NO_VM_DROP_PROC
SYS     OUTLN_PKG
SYS     OWM_DDL_PKG
SYS     OWM_MIG_PKG
SYS     OWM_REPUTIL
SYS     SYS_LOGOFF
SYS     UD_TRIGS
SYS     USER_OUTLINES
SYS     USER_OUTLINE_HINTS
SYS     USER_WORKSPACES
SYS     WM$WORKSPACE_SESSIONS_VIEW
SYS     WM_DDL_UTIL
SYS     WM_INSTALLATION
MDSYS     ALL_GEOMETRY_COLUMNS
MDSYS     ALL_SDO_GEOM_METADATA
MDSYS     ALL_SDO_INDEX_INFO
MDSYS     ALL_SDO_INDEX_METADATA
MDSYS     ALL_SDO_LRS_METADATA
MDSYS     ALL_SDO_MAPS
MDSYS     ALL_SDO_STYLES
MDSYS     ALL_SDO_THEMES
MDSYS     DBA_GEOMETRY_COLUMNS
MDSYS     DBA_SDO_GEOM_METADATA
MDSYS     DBA_SDO_INDEX_INFO
MDSYS     DBA_SDO_INDEX_METADATA
MDSYS     DBA_SDO_LRS_METADATA
MDSYS     DBA_SDO_MAPS
MDSYS     DBA_SDO_STYLES
MDSYS     DBA_SDO_THEMES
MDSYS     GEODETIC_SRIDS
MDSYS     MD2
MDSYS     SDO_CATALOG
MDSYS     SDO_GEOM_TRIG_DEL1
MDSYS     SDO_GEOM_TRIG_INS1
MDSYS     SDO_GEOM_TRIG_UPD1
MDSYS     SDO_LRS_TRIG_DEL
MDSYS     SDO_LRS_TRIG_INS
MDSYS     SDO_LRS_TRIG_UPD
MDSYS     SDO_META
MDSYS     SDO_MIGRATE
MDSYS     SDO_RELATEMASK_TABLE
MDSYS     SDO_RELATE_MASK
MDSYS     TRANSFORM_MAP
MDSYS     USER_GEOMETRY_COLUMNS
MDSYS     USER_SDO_GEOM_METADATA
MDSYS     USER_SDO_INDEX_INFO
MDSYS     USER_SDO_INDEX_METADATA
MDSYS     USER_SDO_LRS_METADATA
MDSYS     USER_SDO_MAPS
MDSYS     USER_SDO_STYLES
MDSYS     USER_SDO_THEMES
Can I help you? thanks.
Oracle9i Enterprise Edition Release 9.2.0.2.0 - Production

Similar Messages

  • 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.

  • 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

  • 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/

  • REUSE SETTINGS supresses error messages when compiling an invalid object

    Hello,
    my test:
    Create a table and a packaged procedure referencing the table. Then drop the table and recompile the package:
    CREATE TABLE x (
        y     NUMBER
    CREATE OR REPLACE PACKAGE y
    AS
    PROCEDURE z;
    END y;
    SHOW ERRORS
    CREATE OR REPLACE PACKAGE BODY y
    AS
    PROCEDURE z
    IS
      v_count PLS_INTEGER;
    BEGIN
      SELECT COUNT(*)
      INTO v_count
      FROM x;
    END z;
    END y;
    SHOW ERRORS
    DROP TABLE x;
    PROMPT 1.Compile package
    ALTER PACKAGE y COMPILE;
    SHOW ERRORS
    PROMPT 2.Compile package body
    ALTER PACKAGE y COMPILE BODY;
    SHOW ERRORS
    PROMPT 3.Compile package with "REUSE SETTINGS"
    ALTER PACKAGE y COMPILE REUSE SETTINGS;
    SHOW ERRORS
    PROMPT 4.Compile package body with "REUSE SETTINGS"
    ALTER PACKAGE y COMPILE BODY REUSE SETTINGS;
    SHOW ERRORS
    SELECT object_name
          ,object_type
    FROM   user_objects
    WHERE  status = 'INVALID';
    --DROP PACKAGE y;Partly unexpected output
    Tabelle wurde erstellt.
    Package wurde erstellt.
    Keine Fehler.
    Package Body wurde erstellt.
    Keine Fehler.
    Tabelle wurde gelöscht.
    1.Compile package
    Warnung: Paket wurde mit Kompilierungsfehlern geõndert.
    Keine Fehler.
    2.Compile package body
    Warnung: Paketrumpf wurde mit Kompilierungsfehlern geõndert.
    Fehler bei PACKAGE BODY Y:
    LINE/COL ERROR
    8/3      PL/SQL: SQL Statement ignored
    10/8     PL/SQL: ORA-04044: procedure, function, package, or type is not
             allowed here
    3.Compile package with "REUSE SETTINGS"
    Warnung: Paket wurde mit Kompilierungsfehlern geõndert.
    Keine Fehler.
    4.Compile package body with "REUSE SETTINGS"
    Warnung: Paketrumpf wurde mit Kompilierungsfehlern geõndert.
    Keine Fehler.
    OBJECT_NAME     OBJECT_TYPE
    Y               PACKAGE BODY
    1 Zeile wurde ausgewõhlt.It says
    - Table created
    - Package created
    - Package body created
    - Table dropped
    - Package header compiled with errors (why?)
    - Package body compiled with errors (shown error is expected)
    - Package header compiled with errors (again why?)
    - Package body compiled with errors (no errors shown)
    So why is the header compiled with errors, when the object is valid.
    And why is no error shown for COMPILE REUSE SETTINGS when there are errors for the body?
    I use REUSE SETTINGS when recompiling invalid objects that were compiled for debug with
    ALTER PACKAGE abc COMPILE PLSQL_DEBUG = TRUE REUSE SETTINGSRegards
    Marcus
    Version:
    SQL*Plus: Release 10.2.0.1.0 - Production on Di Jan 27 12:45:20 2009
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options

    Hi,
    From SQL Reference Manual [REUSE SETTINGS|http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_1007.htm#BGBGEIGD]:
    Specify REUSE SETTINGS to prevent Oracle from dropping and reacquiring compiler switch settings. With this clause, Oracle preserves the existing settings and uses them for the recompilation of any parameters for which values are not specified elsewhere in this statement.
    For backward compatibility, Oracle Database sets the persistently stored value of the PLSQL_COMPILER_FLAGS initialization parameter to reflect the values of the PLSQL_CODE_TYPE and PLSQL_DEBUG parameters that result from this statement.
    Regards,

  • How to access sys owned objects for role based web user?

    Hi,
    we have tables and packages etc owned by test schema user, and we access the applications using mod pl/sql though DAD. we created a webuser role and granted the execute privillages to webuser role. we have some packages that we access sys owned such as dbms_random, which test user has execute privillage. how i can get these privillages to webuser? I dont like to give webuser execute privillages over web. any other thoughts and insights would appreciated.
    Thanks for the help!

    use invokers rights instead of definers rights and you won't need 'direct' grants anymore.
    create or replace procedure foo authid current_user is
    begin
    dbms_random....
    end;
    Sybrand Bakker
    Senior Oracle DBA

  • How to compile HTMLDB_SITE_ADMIN_PRIVS invalid package body?

    Hi,
    I am trying to grant HTMLDB Administrator privilege to assign the other Oracle default schemas to workspaces by executing the following procedure.
    SQL> EXEC HTMLDB_SITE_ADMIN_PRIVS.UNRESTRICT_SCHEMA(p_schema => 'SYSTEM');
    However, the package body is corrupted. As the package body is wrapped, I cannot compile it manually.
    FLOWS_020000@PROD> ALTER PACKAGE HTMLDB_SITE_ADMIN_PRIVS COMPILE BODY;
    Warning: Package Body altered with compilation errors.
    FLOWS_020000@pPROD> SHOW ERRORS;
    Errors for PACKAGE BODY HTMLDB_SITE_ADMIN_PRIVS:
    LINE/COL ERROR
    0/0 PLS-00753: malformed or corrupted wrapped unit
    I'd greatly appreciate if you can provide any suggestion or advice for me to compile or reload this wrapped package body.
    Thanks,
    Deborah

    Hi,
    I am trying to grant HTMLDB Administrator privilege to assign the other Oracle default schemas to workspaces by executing the following procedure.
    SQL> EXEC HTMLDB_SITE_ADMIN_PRIVS.UNRESTRICT_SCHEMA(p_schema => 'SYSTEM');
    However, the package body is corrupted. As the package body is wrapped, I cannot compile it manually.
    FLOWS_020000@PROD> ALTER PACKAGE HTMLDB_SITE_ADMIN_PRIVS COMPILE BODY;
    Warning: Package Body altered with compilation errors.
    FLOWS_020000@pPROD> SHOW ERRORS;
    Errors for PACKAGE BODY HTMLDB_SITE_ADMIN_PRIVS:
    LINE/COL ERROR
    0/0 PLS-00753: malformed or corrupted wrapped unit
    I'd greatly appreciate if you can provide any suggestion or advice for me to compile or reload this wrapped package body.
    Thanks,
    Deborah

  • FFP INVALID OBJECTS

    Hi,
    How to compile FFP INVALID OBJECTS in Oracle EBS R12.1.3
    Totally i have 230 FFP invalid Objects..
    Kindly do the needfull..
    Regards
    Vel

    Hi, Welcome to OTN form,
    Please check Oracle support id :  Invalid FFP Objects (Doc ID 1331911.1)
    Thank you

  • R12.1.3 : Adadmin hangs while compiling invalid objects

    Dear All ,
    Recently we have upgraded 11i to R12.1.3, from the base upgrade we have 2 custom invalid object..(its default).
    if the invalid objects increase we use to compile with adadmin to compiling those invalid objects. but while compiling this adadmin window hangs down those objects are compiled.
    can anyone tell me what might be the problem., how to resolve this ?
    Kindly help me
    by putty i ran this adadmin utility
    Our OS version is OEL 4.5
    Upgraded Ebiz application version is R12.1.3
    Regards
    Hameed

    Dear Hussein,
    I didnt found any errors in database log file and in Adadmin utility log file.
    No, i dint tried to relink using adrelink.sh..
    i am going by your given metalink ID, and let u know in few hours
    Regards
    Hameed

  • Unable to compile invalid objects  post R12.1.1to R12.1.3 upgrades

    Hi Experts,
    Kindly note that post upgrade from R12.1.1 to R12.1.3.
    I am unable to compile the below invalid objects.
    APPS     PACKAGE BODY     BIS_TARGET_LEVEL_PVT
    APPS     PACKAGE BODY     MSC_CL_PULL
    APPS     PACKAGE BODY     RLM_MANAGE_DEMAND_SV
    APPS     PACKAGE BODY     RLM_RD_SV
    APPS     PACKAGE BODY     RLM_EXTINTERFACE_SV
    APPS     PACKAGE BODY     CSC_ACTION_ASSEMBLER_PVT_W
    APPS     PACKAGE BODY     ASO_OPP_QTE_PUB
    APPS     PACKAGE BODY     ISC_EDW_BOOK_SUM1_F_C
    APPS     PACKAGE BODY     OPI_EDW_OPMINV_DAILY_STAT_F_C
    APPS     PACKAGE BODY     ASO_SECURITY_INT
    APPS     PACKAGE BODY     ASO_QUOTE_PUB_W
    APPS     PACKAGE BODY     ASO_QUOTE_HEADERS_PVT
    Please advise.
    Mohammed Abdul Muqeet

    Kindly note that post upgrade from R12.1.1 to R12.1.3.
    I am unable to compile the below invalid objects.
    APPS     PACKAGE BODY     BIS_TARGET_LEVEL_PVT
    APPS     PACKAGE BODY     MSC_CL_PULL
    APPS     PACKAGE BODY     RLM_MANAGE_DEMAND_SV
    APPS     PACKAGE BODY     RLM_RD_SV
    APPS     PACKAGE BODY     RLM_EXTINTERFACE_SV
    APPS     PACKAGE BODY     CSC_ACTION_ASSEMBLER_PVT_W
    APPS     PACKAGE BODY     ASO_OPP_QTE_PUB
    APPS     PACKAGE BODY     ISC_EDW_BOOK_SUM1_F_C
    APPS     PACKAGE BODY     OPI_EDW_OPMINV_DAILY_STAT_F_C
    APPS     PACKAGE BODY     ASO_SECURITY_INT
    APPS     PACKAGE BODY     ASO_QUOTE_PUB_W
    APPS     PACKAGE BODY     ASO_QUOTE_HEADERS_PVTWhat is the error you get when you compile those invalid objects manually?
    Please see these docs.
    ASO Invalid Objects in 12.1.3 [ID 1235496.1]
    How To Resolve RLM Invalids [ID 1450159.1]
    R12: Contact Center: Package CSC_ACTION_ASSEMBLER_PVT_W Invalid [ID 1126155.1]
    BIS_TARGET_LEVEL_PVT is Invalid After Upgrade to EBS 12.1.3 [ID 1364996.1]
    Thanks,
    Hussein

  • 10.2.0.4, Spatial and invalid objects

    We don't use spatial. We have no plans to use spatial. We do use Intermedia, badly.
    When I upgraded a database from 10.2.0.3 to 10.2.0.4, everything went OK, except that one object in the MDSYS schema (I can't remember its name, but it was something like SDO_GEOMETRY) was rendered 'invalid' in dba_objects afterwards.
    I tried to manually re-compile it. It produced errors like 'table doesn't exist'. And I got to thinking that this was a Spatial object that was invalid because none of the other Spatial components was installed. I needed the invalid status to go away because my boss has a query that spots invalid objects and hassles me if any exist, and my attempts to say 'this one doesn't matter' weren't working.
    So I used dbca to add Spatial to the database. (Added a tick to the spatial selector on the database options page). The addition went well, and at the end of it... zero invalid objects.
    Problem solved, sort of. Now I have a new problem: when I ran dbca again to UNinstall Spatial, the tick against the Spatial option is greyed out and it cannot be de-selected and hence removed from my database.
    And so my questions. How do you remove the Spatial stuff? Will removing it break Intermedia? Is there a better way to fix the 'invalid MDSYS object' problem caused by the 10.2.0.4 upgrade in the first place, because I have 8 other database to upgrade in the coming days? And, if the simplest thing to do is to just leave all the Spatial objects in the database, will we be in breach of our license, because we certainly haven't paid to use this feature, but we equally certainly have no use for it?

    I would guess that most questions asked here could have been resolved by 'searching on Metalink first'. According to your standards and rules, then, that makes this place mostly redundant. Perhaps we should just shut the place down?
    No, I'll tell you what: if you find your time being wasted, perhaps you could just not bother replying instead of pronouncing on high how those so much less exalted than yourself should behave and do things. You could have provided a metalink document number without the accompanying attitude, and then you would have my thanks and appreciation. But, for being a pompous a-s-s, you get neither.
    Here's a clue. Classic Metalink. Search for '10.2.0.4 spatial errors after upgrade', All Sources. Your precious document appears only 16th in the resulting list. Yeah, I could wade through 15 irrelevant documents before stumbling over the correct one, but I figure upgrading to 10.2.0.4 can't be that rare; somebody will have encountered the problem before; quickest way to a solution is therefore probably to post here. Not, I would have thought, an entirely unreasonable train of thought, though obviously it is in your particular corner of the universe.
    Besides which, whilst that document tells me how to fix the invalid objects without installing Spatial, which will certainly prove useful for all my other database upgrades, it doesn't tell me (and neither did you) how you uninstall Spatial after having installed it with dbca. That's not asking you to fill in the gaps, by the way: I wouldn't want to waste any more of your precious time.
    I'm just pointing out that your "answer", as well as being pompous and arrogant, also proves itself to be deficient.

  • Invalid object after applying fa patch

    Dear all,
    Just now I had applied patch for FA & Generate message files from Generate Applications Files menu. How do I know that there are any invalid objects for FA after applying patch in order for me to run Compile APPS schema from adadmin to compile the invalid objects. What is the example for the invalid object message? What is the effect if I run Compile APPS schema eventhough there are no invalid object occur? Please advices.

    HI,
    Below is my last message after compiling the APPS Schema
    ======================================
    There are now 1 jobs remaining (current phase=pc_errchk):
    0 running, 1 ready to run and 0 waiting.
    Assigned: file aderrchk.sql on worker 1 for product ad username APPLSYS.Spawned Process 29807
    Completed: file aderrchk.sql on worker 1 for product ad username APPLSYS.
    Done compiling APPS schema(s) in parallel.
    Telling workers to quit...
    All workers have quit.
    Dropping FND_INSTALL_PROCESSES table...
    FND_INSTALL_PROCESSES table dropped.
    Dropping AD_DEFERRED_JOBS table...
    AD_DEFERRED_JOBS table dropped.
    Please check your log files for errors that may have occurred
    while compiling invalid objects.
    Be sure to look at the log file(s) for the parallel worker(s) which ran
    adpcpcln.pls and aderrchk.sql. These scripts display compilation errors
    and list objects which are still invalid.
    sqlplus -s APPS/***** @/test/oracle/testappl/ad/11.5.0/admin/sql/adinvrst.pls *****
    Spawned Process 29850
    Review the messages above, then press [Return] to continue.
    ===========================================
    I had run select owner, object_type, object_name from dba_objects where status = 'INVALID' order by 1,2; once again to look for an INVALID object but the INVALID object still appear.
    Please advice. Do I need to run compile APPS Schema once again?

  • 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/

  • How to compile a procedure from Sql*Plus?

    Dear friends,
    I couldnt find the way how to compile my invalid procedure through sql*Plus.
    I know this is very awkward,but I m in need of that command only.
    Thanks
    Ritesh Sharma

    Pls check it --
    SQL>
    SQL>
    SQL> @C:\RND\Oracle\Function\a.sql;
    11  /
    Function created.
    SQL>
    SQL>
    SQL> start C:\RND\Oracle\Function\a.sql;
    11  /
    Function created.
    SQL> Regards.
    Satyaki De.

  • 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

Maybe you are looking for