Invalid package bodies in SYS

I have a couple of package bodies that will not compile. One of these is sys.dbms_aqadm_sys which get the error "PLS-00753: malformed or corrupted wrapped unit" when compile is run.
Is there a way to recreate the package bodies since the compile will be work? Does anyone have a better solution?

Do not know how this happened. I am reviewing invalid packages to prepare for a DB upgrade. I do have other databases with the same version.
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production

Similar Messages

  • Unable to recompile invalid package bodies

    Hello,
    Recently, I cloned the EBS installation, and there were a lot of invalid objects. I used the script to recompile them, and they went fine except for some package bodies, that can't be recompiled neither manually via sqlplus, nor sqldeveloper. Tried also via adadmin, there is no way to be recompiled.
    There are 39 packages owned by apps schema as follows:
    SQL> select object_name, object_type, owner, status
    2 from dba_objects where status='INVALID';
    OBJECT_NAME                                                                           OBJECT_TYPE     OWNER               STATUS
    FII_AP_INV_ON_HOLD_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_AP_HOLD_DATA_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_AP_INV_PAYMTS_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_AP_INV_LINES_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_AP_SCH_PAYMTS_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_AR_TRX_DIST_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_PA_COST_F_C                                                                       PACKAGE BODY     APPS               INVALID
    FII_PA_REVENUE_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_PA_UOM_CONV_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_PA_BUDGET_F_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_ASG_CHNG_M_C                                                                      PACKAGE BODY     APPS               INVALID
    OBJECT_NAME                                                                           OBJECT_TYPE     OWNER               STATUS
    EDW_HR_AGE_BAND_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_ASSGNMNT_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_GRADE_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_JOBS_M_C                                                                       PACKAGE BODY     APPS               INVALID
    EDW_HR_SERVICE_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_MVMNT_TYP_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_PERSON_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_POSITION_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_REC_ACT_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_ORGANIZATION_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_PRSN_TYP_M_C                                                                      PACKAGE BODY     APPS               INVALID
    OBJECT_NAME                                                                           OBJECT_TYPE     OWNER               STATUS
    EDW_HR_RQN_VCNCY_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_REASON_M_C                                                                      PACKAGE BODY     APPS               INVALID
    HR_EDW_WRK_CMPSTN_F_C                                                                      PACKAGE BODY     APPS               INVALID
    ISC_EDW_BOOK_SUM1_F_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_MTL_INVENTORY_LOC_M_C                                                                 PACKAGE BODY     APPS               INVALID
    OPI_EDW_COGS_F_C                                                                      PACKAGE BODY     APPS               INVALID
    OPI_EDW_OPM_JOB_RSRC_F_C                                                                 PACKAGE BODY     APPS               INVALID
    OPI_EDW_OPM_JOB_DETAIL_F_C                                                                 PACKAGE BODY     APPS               INVALID
    OPI_EDW_OPMCOGS_F_C                                                                      PACKAGE BODY     APPS               INVALID
    OPI_EDW_OPMINV_DAILY_STAT_F_C                                                                 PACKAGE BODY     APPS               INVALID
    EDW_OPI_OPRN_M_C                                                                      PACKAGE BODY     APPS               INVALID
    OBJECT_NAME                                                                           OBJECT_TYPE     OWNER               STATUS
    EDW_OPI_ACTV_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_OPI_LOT_M_C                                                                       PACKAGE BODY     APPS               INVALID
    EDW_OPI_PRDL_M_C                                                                      PACKAGE BODY     APPS               INVALID
    OPI_EDW_UOM_CONV_F_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_POA_SPLRITEM_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_POA_LN_TYPE_M_C                                                                      PACKAGE BODY     APPS               INVALID
    39 rows selected.
    The compilation errors are all the same.
    SQL> select name, text from user_errors;
    and it gives me this:
    EDW_HR_ASG_CHNG_M_C
    PL/SQL: SQL Statement ignored
    EDW_HR_AGE_BAND_M_C
    PL/SQL: ORA-02083: database name has illegal character '-'
    EDW_HR_AGE_BAND_M_C
    PL/SQL: SQL Statement ignored
    The same errors I get when I try to recompile them in sqldeveloper.
    Please, any Idea how can I solve this?
    I would be grateful If you help me with this one.
    Thanks

    Hi,
    I was also facing similar problem when I applied packages from the code line to local DB.
    You can try to first compile first the package specification and then compile the package body again.
    If still you get the error : PL/SQL: SQL Statement ignored, this means that the package specification and the package body are not in sync (either one of them is an older version). In that case you need to check from the version control of these.
    Regards,
    Rahul

  • Package owner - invalid packages

    Hello guys,
    I have this problem: I have two DB schemes A and B. I modified the code in both schemes. After compilation, many packages were invalidated. So I compiled all invalid packages, no compilation errors, everything ok.
    Now if I run this query in scheme A:
    SELECT *
    FROM ALL_OBJECTS
    WHERE OBJECT_TYPE IN ('PACKAGE', 'PACKAGE BODY')
    AND STATUS = 'INVALID';I get two records.
    The first one shows an invalid package where owner is scheme C - this is ok, because in scheme C is really such invalid package which has granted execute to scheme A.
    The second one shows an invalid package body, where owner is scheme A. But in scheme A, there is no such package. The "invalid" package is in fact in scheme B, it is in fact not invalid and it has no grants at all. So scheme A has no access to that package at all.
    Recompilation of this package in scheme B has no impact on the result. Why is the package marked as invalid and why is scheme A assigned as an owner???
    Now I run exactly same query in scheme B and get one record.
    One package is marked as invalid where owner is scheme B. However this package is in scheme A and scheme A is the owner of this package. Again the package is not invalid and recompilation of that package has no impact... In this case the package has granted execute to scheme B, so scheme B has the access to this package.
    Can anyone help me with this?
    Thanks, Dan

    I found the problem...
    After I did those changes to that packages, I first compiled the bodies to wrong schemes. So the bodies were created without specifications. I didn't see those packages because SQL Developer doesn't display them in such case...
    So I droped them now.

  • Database Diff - Identical package bodies are reported as different

    SQLDeveloper - Version 3.2.10.09
    Package bodies (DDL) on both source and destination database are identical but package body on the source database is marked as "invalid" and package body on destination database is marked as "valid" - then Database Diff reports that package bodies different. (but on panel showing DDL for both compared package bodies there is visible no difference).
    After compiling package body on the source database (no changes in DDL) and when status of that package body changed to "valid" - now Database Diff correctly shows no difference.
    Is that intentional behavior or bug?

    >
    According to the CM team, in the previous (pre-MDAPI) incarnation of CM, status was not compared, and got complaints about that.
    >
    Point taken. Though it seems these days whichever path you take you will get complaints. ;)
    >
    It would be possible to provide the option whether to compare status of objects that have status (PL/SQL objects, triggers, views, indexes) provided MDAPI reports the status, but it's a fairly hefty enhancement.
    >
    I take that to mean that the results do now, and will continue to, take status into account.
    Perhaps my experience is using the functionality differently than what your team is working with.
    I make heavy use of the DBMS_METADATA and DBMS_METADATA_DIFF packages. Much of that functionality operates on CLOBS containing data in either the raw XML or the SXML format.
    So, to me, an XML in a CLOB has no status. So in comparing XML1 in CLOB1 to XML2 in CLOB2 the status that MIGHT have existed on the real object in the real database is irrelevant. I do comparisons between what is in version control and what is from some other source. That other source might have been, or might still be, an object in a database but status is meaningless since DDL in version control has no status. That is why, for my use cases, I wouldn't want to see a comparison fail due to a status issue.
    Oracle® Database PL/SQL Packages and Types Reference
    http://docs.oracle.com/cd/E14072_01/appdev.112/e10577/d_metadiff.htm
    >
    85 DBMS_METADATA_DIFF
    The DBMS_METADATA_DIFF package contains the interfaces for comparing two metadata documents in SXML format. The result of the comparison is an SXML difference document. This document can be converted to other formats using the DBMS_METADATA submit interface and the CONVERT API.
    >
    That is the basis for the comments I was making; that METADATA doesn't necessarily represent an actual object in an actual database.
    Thanks for the links; I will add my vote there.

  • Installation failing due to invalid packages

    During installation of Oracle 10G designer the repository installation fails due to invalid packages. When I examine the packages they are failing to compile based on dependencies on dbms_lock. I am running against a fresh installation of 11g on the database. I verified that the package exists and a public synonym has been created but I cannot see the package from any other user aside from sys. (system cannot see the package).
    Is there anyway I can open up sys.dbms_lock to allow it to be used in compiling these objects?

    How did you create the repository?
    Did you follow the steps of the installation guide?
    In this guide you find the folloiwing statements:
    grant execute on dbms_rls to repos_owner;
    grant execute on dbms_lock to repos_owner;
    grant execute on dbms_pipe to repos_owner;
    grant create table to repos_owner;
    grant create view to repos_owner;
    grant create procedure to repos_owner;
    grant create synonym to repos_owner;
    grant create sequence to repos_owner;
    grant select on sys.v_$nls_parameters to repos_owner with grant option;
    grant select on sys.v_$parameter to repos_owner;
    grant select on dba_rollback_segs to repos_owner;
    grant select on dba_segments to repos_owner;
    grant create any synonym to repos_owner;
    grant drop any synonym to repos_owner;
    In the statement you will see that the dbms_lock package is granted to the repos_owner. (repos_owner is the username of the repository owner, if you installed under a different user use that username)

  • Package load Failed! Invalid package Title, manifest file cannot be found

    Greetings. I am new to UPK and am seeking guidance on an upgrade to 11.1.
    A little background on what we are trying to do:
    We have two machines:
    Windows 2003 machine in domain 'X' | UPK 11.0.0.1.
    Windows 2008 R2 virtual machine in domain 'Y' | UPK 11.0 on the new machine first, install the 11.0.0.1 patch, and then upgrade to 11.1.
    We are using the same database as the old machine. Developer Server is Standard Authentication, Knowledge Center is Windows authentication.
    ==========================================================================================
    So far we have installed 11.1 with the respective database upgrades, but are lost as to how to migrate the old Content Root data. We have copied all the content to the new Content Root, added it to IIS like the old machine, and verified that the UPK database Content Root path is correct and working.
    For the rest of the post, I am remoted into the server from my local workstation, and then using IE to access KCenter on the server's FQDN, not via localhost.
    Since I am green, so I presumed that I would need to import the titles under Manager in KCenter. I zipped each content folder individually (they are named "1", "9", etc), and then attempted to import each zip file.
    NOTE: At this stage sometimes we are prompted to authenticate again. When it does, sometimes the credentials that we know work, get rejected and we are prompted again. This will repeat until we get a 401 and we have to start over. We have verified that the Windows account currently in session with the site is valid and has administrator authority within KC.
    NOTE2: On the first few tries, .NET complained that maxRequestLength was not large enough. I had our servers team increase it on the actual server in order for us to proceed.
    Provided we don't have to authenticate again, or that it actually accepts our credentials, we get to the 30% mark and then receive the error: *"Package load Failed! Invalid package Title, manifest file cannot be found"*
    Does anyone have any wisdom for this process? The title importation section in the deployment manual is not helping, and the administrator from whom I am taking over this software has not had to deal with this before.
    Thank you,
    Ian
    Edited by: 986290 on Feb 5, 2013 10:21 AM

    Hi Marc, thanks for the post,
    I have gone through an extensive troubleshooting process with Oracle, including their development team, in order to fully complete our project setup. As a supplemental bit of information, we also were having connection errors when attempting to publish directly to the knowledge center.
    As far as the context of this post, here is the solution in brief:
    1) Verify that the package being imported was published from the same version of the Developer Client as the Knowledge Center installation's.
    2) Check for database consistency issues. In our case we were using a database that was built in another domain. After numerous attempts with Oracle support on the line to determine the inconsistency, it was decided to completely reinstall and build a new database from scratch in the new domain.
    3) Check application pool identities and access (while we had some inconsistencies here, correcting them did not change the behavior of the import/publish errors)
    In review, a lot of what we had setup was correct. Our primary point of failure, we feel, was using the old database. Technically this should not have been a problem, but Murphy likes to get his way sometimes.
    Cheers,
    Ian

  • When attempting install of iTunes 10.5 for Windows 7 on Parallels 7, I get a message saying,  "A program required to install cannot be run. Contact the package vendor or sys admin" (that's me).  I completely uninstalled the previous iTunes prior to this.

    When attempting install of iTunes 10.5 for Windows 7 on Parallels 7, I get a message saying,  "A program required to install cannot be run. Contact the package vendor or sys admin" (that's me).  I completely uninstalled the previous iTunes prior to this.  Any thoughts?

    Try the following user tip:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • Invalid Package error (limits?) - SQL*Loader

    I seem to have reached a limit on SQL*Loader in 8.1.6 on the number of columns I am trying to load. The table has 97 columns - if I try to specify more than 92 columns I get an invalid package error - it doesn't matter which column I pick. The row width is close to 2K bytes. Does anyone know the max size - and is there a default that can be increased somehow?

    It maybe your BUFFER size.
    Buffer Size = Rows in Array * Max row size
    this is the formula to estimate your BUFFER size for the import.
    Look in your Parameter File for 'INCTYPE' this is the parameter name for Buffer for importing with SQL*Loader.
    Hope this helps.
    Tony

  • Error while installign AIR Application (invalid package signature errorID=5022)

    Hi All,
    I am new to Adobe AIR and facing error while Installing AIR application. This specially happens when in include a folder named "htmls" in the assets directory in my project.
    This folder have lots of html files and others folders. These file names have some special characters as well like ". & - _".
    However I can install the Application when I exclude this folder and everything works fine. Not able to find out the exact problem.
    Looking forward for help !!
    Log contents:
    .airappinstall
    failed while unpackaging: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="invalid package signature" errorID=5022]
    starting cleanup of temporary files
    application installer exiting
    .airinstall
    App installer failed; exit code 7
    begin quitting

    You may have found a bug in the AIR installer or packager. Given that the signature is an XML file, the "&" character seems the most likely culprit.
    The only short-term workaround is to identify which characters cause the problem and avoid using it.
    You should avoid the following characters in any case, since these cannot be used in file names on all platforms:
    Character            Hexcode
    various     0x00 - x1F
    *           x2A
    "           x22
    :           x3A
    >           x3C
    <           x3E
    ?           x3F
    \           x5C
    |           x7C

  • Adobe air invalid package on android 4.2.1

    I have android 4.2.1 on transformer pad tf300t and when I try to update adobe air it says invalid package.

    here's the stack trace from your app.
    E/AndroidRuntime( 2967): FATAL EXCEPTION: main
    E/AndroidRuntime( 2967): java.lang.RuntimeException: Unable to start receiver com.sputnik.wispr.NetworkScanReceiver: java.lang.StringIndexOutOfBoundsException: length=0; index=0
    E/AndroidRuntime( 2967): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2383)
    E/AndroidRuntime( 2967): at android.app.ActivityThread.access$1500(ActivityThread.java:141)
    E/AndroidRuntime( 2967): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1310)
    E/AndroidRuntime( 2967): at android.os.Handler.dispatchMessage(Handler.java:99)
    E/AndroidRuntime( 2967): at android.os.Looper.loop(Looper.java:137)
    E/AndroidRuntime( 2967): at android.app.ActivityThread.main(ActivityThread.java:5039)
    E/AndroidRuntime( 2967): at java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime( 2967): at java.lang.reflect.Method.invoke(Method.java:511)
    E/AndroidRuntime( 2967): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    E/AndroidRuntime( 2967): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    E/AndroidRuntime( 2967): at dalvik.system.NativeStart.main(Native Method)
    E/AndroidRuntime( 2967): Caused by: java.lang.StringIndexOutOfBoundsException: length=0; index=0
    E/AndroidRuntime( 2967): at com.sputnik.wispr.util.WiFiPrioritisation.QuoteSSID(WiFiPrioritisation.java:65)
    E/AndroidRuntime( 2967): at com.sputnik.wispr.util.WiFiPrioritisation.enablePreferredNetwork(WiFiPrioritisation.java:335)
    E/AndroidRuntime( 2967): at com.sputnik.wispr.NetworkScanReceiver.onReceive(NetworkScanReceiver.java:65)
    E/AndroidRuntime( 2967): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2376)
    E/AndroidRuntime( 2967): ... 10 more
    W/ActivityManager( 574): Force finishing activity com.bt.mnie.wispr/.CoreActivity
    W/ActivityManager( 574): Activity pause timeout for ActivityRecord{4293be88 u0 com.bt.mnie.wispr/.CoreActivity}

  • See package bodies

    what privileges need to grant to a user in order for it to view/edit package bodies. currently, it can only see the declarations but not bodies.

    Hi,
    Query all_source (or dba_source) for the text of package bodies. You need DEBUG privileges on the package, or the extremely powerful system privilege CREATE ANY PROCEDURE.
    If all_source displays gibberish, then the package is wrapped, and the source code is not available from the data dictionary. Contact the author or vendor.
    You can't really edit a package. The owner, or someone with the CREATE ANY PROCEDURE privilege can execute a "CREATE OR REPLACE PACKAGE BODY" statement to make changes.

  • Privileges needed to view procedures, triggers, package bodies

    What privileges are needed for a user to view procedures, triggers, package bodies in another schema? I don't want to grant privileges more powerful than needed like 'select ANY'.

    If you want to give somebody access to view only some of objects without giving read/execute access to them probably the best method is to build your own view and give select acces to this view.
    Example:
    create view special_definitions as
      select view_name obj_name, 'VIEW' obj_type text
        from dba_views
       where owner='OTHERSCHEMA'
           and view_name in ('VIEW1', 'VIEW2', ...)
    union all
      select trigger_name,'TRIGGER', trigger_body
        from dba_triggers
       where .....
    grant select on special_definitions to special_user;Bartek

  • Getting invalid packages when installing support for stored java objects

    I am getting invalid packages notices when installing support for stored java objects in Forms 9i that can with the Oracle 9iDS Suite. In the post installation notes it says to locate a few SQL files, PLB files and a JAR file and run them. On executing the SQL package that will install the rest , I am logged in as SYSTEM as the instructions stated, I get an error when it tries to load the PLB files ( which are encrypted from Oracle). Any one else have this problem or know of a solution?
    If you need more information please let me know and I will try to respond promptly.
    Thanks
    Chad Leath

    The PLB package is called ORA_DE_REFLECTION. I forgot to mention this in the previous post.

  • Compile all invalid packages together + connect as sysdba only

    Hi
    I've installed a Ora 10.2, and imported a dump. This dump contained some users, a lot of tables and stored procs.
    My first question: There is an imported user with I can connect as sysdba only. I can't connect as normal... it is problem because there is an application upper the db and I can't tell the applicataion that connect as sysdba. (it is only a sandbox for me...) What should I modify on this user to connect as normal user?
    The second question: The schema (upper) contains lot of invalid packages. I have only the free Toad and I can't compile all of them only step by step... (I don't want do this step by step because there are about 300 packages...). How could I complile all of them e.g. from Sqlplus? Any other solution?
    Thanks in advance!
    Alex

    ok, there is a user e.g. "xxxx"
    I can connect with this user as sysdba only. "CONNECT xxxx/yyyy@db as sysdba". Without "as sysdba" I got "ORA-01017: invalid username/password; logon denied" So I can connect only as sysdba... but this is a simple user so I don't want to connect as sysdba...

  • Invalid package declaration:

    If you read my post a few messages down, I asked how to add a package in NetBeans. Solved (THANKS).
    But now I get this error when I mouseover the items in the package. Can I get an exact walkthrough on what to do to enable a package to work in NetBeans?
    l'll be more specific. I downloaded the jpb package from http://knking.com/books/java/ (Near the bottom)
    NetBeans saves my projects in C:\Documents and Settings\Administrator. So (In accordance with the instructions given in the book) I made the dir. C:\Documents and Settings\Administartor\jpb and inserted 3 .java files in it (SimpleIO.java Convert.java and DrawableFrame.java). From this point, what do I do so that (in netbeans) I can type import jpb.* and not get any errors?
    THANKS AGAIN FOR EVERYONE WHO HELPS

    You must compile these files, and I suggest you to
    create a jar library:
    New project -> General -> Java Class Library
    Copy your sources in it and build project. This will
    generate a .jar in the dist folder in mounted
    filesystem.
    Now add this builded jar in your project library as
    commented before.
    mariOHey there, I'm also a newb facing a similar error...
    I backed up a package by copy - pasting it and now i mounted it. However, when i mouseover any of its classes it says "Invalid package declaration" and i can't solve it....
    pls help
    THX!!!

Maybe you are looking for

  • [CS3][JS] Is there a JS equivalent of AS 'ignore application responses'

    I used 'ignoring application responses' a few times in AppleScript to speed up a script execution. Is there a Javascript equivalent. Curious.

  • Replace all special characters in a String with underscore

    I have a String which contains some special characters even(!,$,@,*....). I need to replace all the special characters with _ in my String. I do have an idea of using String.replace() and analogous forms, but I would be thankful if anyone can suggest

  • SRM shopping cart screen flickers

    Shopping cart screen for SRM flickers and does not load up. No short dump in backend system and no errors in portal log.    This issue get's resolved after restarting the SRM backend system. Same issue and resolution used for eRecruit however not abl

  • Problem with selecting texts

    My iphones note app just started giving me problem today, it crashes everytime i try to select texts same problem occures when i try to select texts in other apps like opera mini and safari can someone pls help me with this i already tried rebooting

  • PXI-5620 "No Device Found"

    I am unable to get my PXI-5620 to do anything besides appear in NI MAX and pass a self test. I have tried running several NI-SCOPE example VIs, and the NI-SCOPE Signal Express VI on the target "TransOsc" but both fail to find the 5620 module (It does