PLS-00753: malformed or corrupted wrapped unit on SYS packages

Hello All,
I tried to run an export today and received this error on the SYS.DBMS_AQADM_SYS package body. I tried dropping and recreating through the catalog.sql, catexp.sql, and catproc.sql scripts but the package body was recreated with the same errors. I have done exports on this instance before and it seemed to cause this problem today at random. Now several other sys packages are going invalid as a result and when I try to run an export I get the error:
UDE-00008: operation generated ORACLE error 4063
ORA-04063: package body "SYS.KUPV$FT_INT" has errors
ORA-06508: PL/SQL : could not find the program unit being called: "SYS.KUPV$FT_INT"
ORA-06512: at "SYS.DBMS_DATAPUMP", line 2742
ORA-04063: package body "SYS.KUPV$FT_INT" has errors
ORA-06508: PL/SQL : could not find the program unit being called: "SYS.KUPV$FT_INT"
ORA-06512: at "SYS.DBMS_DATAPUMP", line 3712
ORA-06512: at line 1
Does anyone know what could cause this or how to fix it?
Thanks,
Sean

it appears that my sys and apex_flows schema are now hosed. apex stopped working so I restarted the machine - now when I try to start Oracle it gets all the way to "database mounted" before cancelling with the "ORA-01092: ORACLE instance terminated. Disconnection forced"
does this mean that my instance is hosed? I can restore from a backup but would lose some serious development time if this occurred.

Similar Messages

  • PLS-00753: malformed or corrupted wrapped unit

    Hi,
    I performed a full database import.
    But there are couple of packages which shows invalid.
    I copied these 2 packages from the source and ran it in the target database. Still these packages are not becoming valid.
    The error message is:
    SQL> sho errors
    Errors for PACKAGE BODY MEMOIP.MARQUE:
    LINE/COL ERROR
    0/0 PLS-00753: malformed or corrupted wrapped unit
    any idea what should be done to solve this error? Please suggest!
    Thanks!

    The only practical workaround is to reinstall the corrupted object from a valid source file.
    -- Or (maybe) --
    Get "wrapped" DDL (packages) from source db (or dump file) and try to execute (never tried it myself).
    :p
    PS: Did you check for any errors in the import log? What does it say about those packages?
    Edited by: LKBrwn_DBA on Aug 16, 2010 12:52 PM

  • PLS-00753: malformed or corrupted wrapped unit; Import and Export issues

    I'm new to oracle, please help me with below...
    After a full import as follows:
    imp username/password FILE=dump_file.dmp log=logFile.log ignore=y full=y &
    I face two issues and they are:
    1. I find that a partitioned table is missing. Verifying with the other team(who did the export), i found that they gave a full export. Hence shouldn't all objects of the user be exported?
    What could be the reason for it?
    2. Also there is package which is wrapped, and compiling it gives me this error-
    PLS-00753: malformed or corrupted wrapped unit
    How do i find the reason behind and rectify the same?
    M using Oracle 10g.
    Thanks in advance....
    Edited by: Shruthi PR on Aug 31, 2012 12:08 AM

    You can do one more thing if they're not willing to give you export logs/responding slowly.
    You can use the option show=y which will show the structure of the objects in the data dump. But remember this will take time; If your dump is very huge, you have to think twice before using this option.
    If you don't have metalink access, see the snap here
    +*<Moderator edit - deleted contents of MOS Doc - pl do NOT post contents of MOS Docs - this is a violation of your Support agreement>*+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • "PLS-00753: malformed or corrupted wrapped unit"  weird behaviour

    Hello,
    I would be grateful if anyone can lend any assistance. I have a compiled package (compiled with the 10g wrap).
    When I try to run it in using an ODP.NET (11) connection, the command executes fine, but the "PLS-00753: malformed or corrupted wrapped unit" error shows in USER_ERRORS for the package, even after a recompile.
    Here is a code snippet showing what I'm doing
    Oracle.DataAccess.Client.OracleConnection conn = new Oracle.DataAccess.Client.OracleConnection();
    conn.ConnectionString = // valid connection string here
    conn.Open();
    FileStream fs = new FileStream("package.plb", FileMode.Open, FileAccess.Read);
    StreamReader sr = new StreamReader(fs);
    string contents = sr.ReadToEnd();
    OracleCommand cmd = new OracleCommand(contents, conn);
    cmd.ExecuteNonQuery();
    However, if I copy the text from the file, and run it in using PL-SQL Developer or SQLPlus, there are no problems.
    I have tried messing around with various character encodings, but to no avail. The codepage of my Oracle instance is WE8MSWIN1252.
    Thanks for reading.
    Stephen.
    Edited by: [email protected] on 24-Feb-2009 09:14

    I have encountered this behaviour but have not been able to find a solution. This only happens if the last character of the wrapped code is at the end of a line. If the wrapped text ends anywhere else on the line, the issue does not arise.
    Is there anyway around this? The oracle wrap utility doesn't provide any control over how the wrapped text is produced it seems.
    Edited by: user4840164 on 07-Apr-2009 09:51

  • WKSYS. Packages error PLS-00753

    After full import:
    impdp DIRECTORY=DATAPUMP_IMPORT DUMPFILE=orcl.dmp FULL=y LOGFILE=import.log
    wksys. has many package bodies that import with error PLS-00753 malformed or currupted wrapped unit..
    how do I fix this.. what is WKSYS is it part of apex?

    Dear Merlin128,
    There may be invalid objects on the database. What you may do is you can run the utlrp.sql script under the $ORACLE_HOME/rdbms/admin folder and see if you had any invalid objects that has been validated with the script.
    Oracle Error :: PLS-00753
    malformed or corrupted wrapped unit
    Cause
    The format of the wrapped unit being compiled is not understood by the compiler. This may be because the unit was edited or modified after it was wrapped.
    Action
    Rewrap the unit.IF the problem persists, rewarp the unit that has been affected.
    http://www.dba-oracle.com/t_wrap_utility.htm
    Hope That Helps.
    Ogan

  • SQL Developer database copy corrupts wrapped PL/SQL

    SQL Developer 3.0.04.34, database 11.2.0.2.2
    Database copy brings over the wrapped pl/sql DDL, but somehow corrupts the code and will not compile.
    It must be recreated from source plb file.
    expdp / impdp does not have this problem.
    This would appear to be a bug.
    Wayne Linton

    user4792902 wrote:
    Also it looks like the SQL Developer loads all the Data from sources Schema for each table in memory and copies to destination Schema.Yes
    Any idea how to over come that...Don't use it, use the database's IMPDP/EXPDP tools for copying large quantities of data or whole schemas or databases.
    Also adding the Filter or selection like the Database Export functionality in Database Copy will really be helpful in this kind of situation. The Developer team has any plans?Probably not right now, but you can request this at the SQL Developer Exchange though, so other users can vote and add weight for possible future implementation.
    Regards,
    K.

  • My iphone is corrupted. Can somebody help me to fix it??????pls, My iphone is corrupted. Can somebody help me to fix it??????pls

    pls help me         

    You say it is corrupted but give absolutely no clue how you know this.  A little detail would go a long way.

  • Help on ORA-06550 & PLS-00363 Error while running a procedure from a packag

    Greeting All,
    I ran the following procedure from a package on a command line in sqlplus:
    SQL> exec QUALITY_ASSURANCE.COPY_SW_RESOURCES(2009,2010,9508);Where '2009' is the old fiscal year, '2010' is the new fiscal year and '9508' is the error code passed from the calling program. But, I received the following error messages:
    ERROR at line 1:
    ORA-06550: line 1, column 53:
    PLS-00363: expression '9508' cannot be used as an assignment target
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Any thoughts, suggestions and/or advice to resolve these errors.
    Thanks in advance.

    Orchid wrote:
    Justin,
    Thanks for your response and information. Yes, Theoa was correct the 3rd parameter is an OUT variable, and it is a numeric field. The procedure was called by a form as follows:
    QUALITY_ASSURANCE.COPY_SW_RESOURCES(:BLK_CONTROL.FROMFY,:BLK_CONTROL.TOFY,V_ERR);But the form does not work so I am trying to isolate the problem by running the procedure by itself in sqlplus to make sure there is no problem with the procedure.
    Yesterday, I was able to run the procedure in Toad for Oracle to a successful completion by providing the 3 parameters: (2009, 2010, null). Just wonder why I cannot run the same procedure with the same parameters on a command line in sqlplus as follows:
    exec QUALITY_ASSURANCE.COPY_SW_RESOURCES(2009,2010,null);So, if I understand your suggestion correctly, in order to run the procedure with the 3 parameter successfully in sqlplus,
    I have to declare the 3rd parameter in PL/SQL. That is to create a PL/SQL file as suggested and run the file, correct? CORRECT!

  • Handling unit output and packaging

    Hi All,
      How to configure packaging and how to see the output of this?
    How to see the handling unit output?
    My Client's Business scenario is:
    The finished product to be packed in pallets, pallets to be packed in container and container in truck.
    4 qts of finished product to be packed in 1 pallet, 2 pallets to be packed in 1 container and 1 container to be packed in truck. How to configure this?
    And also my client wants to see the packing list output and also the handling unit output.
    So how to to configure this.
    Please guide me.
    Reward points for helpful answer.
    Regards
    Ashis

    Hi,
    Sometime back Allabaqsh Patil has forwarded me this material for my question on packaging. I did it and it worked well.
    You can follow the same procedure and do it. It will work for you. The details are given below.
    hi,
    before creating the packaging material you have to go to:
    IMG-Logistics Execution-Shipping -Packing.
    1. Define packaging material types- it can be anything like boxes crates, etc. in this you have to maintain the output determination procedure, output type, plant determination, packaging material category, generate delivery items, number assignment. you can copy from standard also.
    2. Then go to define material group for packaging materials - here you maintain the four digit code and the description. Actually, this group is nothing but similar products which require similar packing products. For Ex. Nokia Phones all types they are basically packed first into a polythene bag. So here nokia phones can become a material group for packaging materials and polythene bag can become the packaging material type which can include different sizes and types of polythene bags.
    3. Define Allowed Packaging Materials - Here you assign the shipping group for packaging materials to the packaging material type. This is related to your mterial master data of the packaging material which you create.
    4. Now go to MM01 to create a packaging material. use material type as Packaging material then inside the system will take the item category group as VERP. Then in the Basic Data1 screen you have the material group for packaging material (MGPM). Slect the proper one. Now in the Sales:General/ Plant screen you have to maintain data regarding the packaging. you select the MGPM same as the basic data 1 screen, then select the packaging material type, the allowed pkh weight, allowed pkg volume. This is important because if the weight of your finished item is 2 KG and in the allowed pkg weight you enter only 1.5 KG, then while you carry out the packing process in delivery, the system will give you error," packaging weight exceeded." The assignment in the IMG creen for Define allowed packaging materials should be same as u mention in the material master. Then save your material master for packaging material.
    5. VA01 create the order, save it.
    6. VL01N enter shipping point, go to edit - pack- you will face a screen with 2 parts. In the top part you select your packaging material in which you want to pack your finished item, enter the system will assign a number to that material. Now select the Material in the top part and the finished one in the lower part and click on the Icon Pack. Here one thing has to be taken care of. Suppose if you want to pack only one finished item in one packaging material, then in the lower part of the screen you have a field for partial quantity here you chnge it to 1. system will prompt quantity changed. now you select the material in the top part and the one in the lower part and click on the PER PART. QTY ICON. In this way the system will pack only one finished item in a single packaging material. Packing is done go back, select the picking and do the PGI. save the delivery and create the invoice.
    HANDLING UNITS.
    Basically handling units come into picture when you want to carry out multi level packing. suppose you want to pack Nokia phone first into a polythene bag, then this polythene bag is again packed in to box. like that. then this box will become a handling unit. For this go to :
    IMG - Logistics General - Handling Unit Mangement - Basics.
    1. In basics you do the same thing as you did in the packing in logistics execution. like you create the packaging material type, then MGPm and their assignment.
    2. Then go to External Identification - and maintain the number ranges forthe handling units that you want and assign the same to your pckaging material type.
    3. Now that you have done everything, create the order, save it, in VL01N, enter shipping point, go to edit - pack - do the same thing as i ahve told you in the step no. 6 (above). now after doing select the PACK HUs TAB . NOW IN THIS SCREEN IN THE TOP PART YOU WILL SEE THE ALREADY PACKED MATERIAL. In that same part again select your next packaging material that is BOX. enter the system will assign the number to the BOX.
    4. Now select the material which you have just entered and the materials which were already packed in the lower part of the screen and click on the ICON PACK.
    This is what I know about the packing process and the handling unit. you have many things in the handling unit management whichcan be very useful for automatic packing.
    HOPE I AHVE ANSWERED YOUR QUERY.
    PLEASE REWARD VALUABLE POINTS IF SOLUTION FOUND USEFUL.

  • Corrupted icons in my Sys Pref window

    How do I fix it? The icons are jumbled up and no text below them even.

    Delete the file user/Library/Preferences/com.apple.systempreferences.plist.
    Sometimes preference files (.plist) become corrupt. The OS recreates preference files as needed, so trashing them is safe.
    Hope this helps...

  • How to get a list of WRAPPED procedures, functions and packages?

    We have over 1000 stored procs, functions and packages.
    We want to find out which ones are WRAPPED and which ones are not.
    How to do it using 1 SQL statement.
    I tried USER_OBJECTS, USER_SOURCE but there is no column indicating that that procedure is wrapped.
    Also no data dictionary view on this: SELECT * FROM dict WHERE table_name LIKE '%WRAP%'; returns 0 rows.
    Any help on this would be greatly appreciated.
    Edited by: Channa on Feb 19, 2010 3:38 AM

    Thanks Max for the SQL. This gave the solution BUT u have to do a small correction.
    SQL> select name,
    2 decode(sum(decode(instr(upper(text),'WRAPPED'),1,1,0)),0,'NOT WRAPPED','WRAPPED') wrapped
    3 from user_source
    4 group by name;
    will give only NOT WRAPPED ones. This is becuase instr(upper(text),'WRAPPED') will NOT return 1 if WRAPPED is found but a number greater than 1.
    So U have to do this to get both wrapped and unwrapped.
    SQL> select name,
    2 decode(sum(decode(instr(upper(text),'WRAPPED'), *0,0,1* )),0,'NOT WRAPPED','WRAPPED') wrapped
    3 from user_source
    4 group by name;
    Edited by: Channa on Feb 21, 2010 9:38 PM

  • How to user 'wrap' to encapsulation my package?

    I can't find some document about how to use this command in
    linux,somebody help me??
    null

    ssr wrote:
    has any one come across this type of situation ?Yep. Been there and still are there. We have the same issue with our RuleGen product. It all boils down to that when IP protection has to be secured you must do it by legal rather than technological measures.
    now there is no code security , since the clients will unwrap the source and do modifications as they like and the software companies are in total loss
    There is one alternative: use PRAGMA INTERFACE(C, ...);
    Not a nice one, since it requires you to abandon PL/SQL and (re)write all code in a 3GL. But it's the one Oracle is using for their internal code.

  • Browsing wrapped packages

    Not a big issue, but I noticed a "nice to have" feature with wrapped PL/SQL packages. When browsing packages owned by a schema I clicked to expand the body of one that was wrapped. Instead of giving me a warning that the body was unviewable or some such thing it seems that SQLDeveloper tried to parse the encrypted text. This resulted in a list of error messages in the treeview.
    Again, not a big deal.
    SQL Developer 1.0.0.14.67

    I had problem with wrapped packages under SQL Developer version     1.5.1.54.40.
    I had one big package body which was wrapped fine with oracle wrap utility.
    I decided to open that packgae body in sql developer just to check is everything compliled OK and when recompling it gave error:
    Error(1): PLS-00753: malformed or corrupted wrapped unit
    Other smaller packages , didn't made this message after recomplinig so only thing I can say is that sql developer isn't safe for recompling wrapped packages, speccialy ones with huge number of lines in body.
    Somehow it truncate wrapped code and recompling take that truncated version of wrapped code in considearation.

  • Question for experts/ wrapping - data pump

    Hello All,
    In am using ORACLE 10.2.0.4.0
    i have an issue while export / import wrapped procedures:
    I have some procedures / packages that are wrapped and when i do export for their related schema and then import it to the database, i got the below error
    Compilation errors for PROCEDURE PROC_NAME
    Error: PLS-00753: malformed or corrupted wrapped unit
    Line: 1
    Text: CREATE OR REPLACE PROCEDURE "PROC_NAME" wrapped
    After i did many tests on this scenario i Noted that:
    This error is not appearing on all procedures, there are some that will be corrupted after the import and some will not be corrupted.
    After i did the normal import export, i found that the character set of the imp/exp is different then the one of the database, so i changed the character set of the database to be the same as the one used by the import, i redo my tests and i found that this solved the issue of normal imp/exp, so now and if i am doing normal exp/imp the recompilation of procedures will not fail after the normal old import. but at this stage the imp/exp character set has changed again.
    The character set of my db was : AR8MSWIN1256 and when i did exp/imp it was for exp /imp AR8ISO8859P6, so i changed the one of my db to AR8ISO8859P6 , after changing the database character set to AR8ISO8859P6 the recompilation was working fine for the normal exp / imp, but now the character set for import/ export changed to AR8MSWIN1256 !! why ?
    The Data pump export import was not solved even after changing the character set of the database, the procedures were imported with errors and it was fixed after recompiling it.
    My issue that i have too many clients and i am not able always to change the character set of the database because i may face ERROR "ORA-12712: new character set must be a superset of old character set"
    Hope the above description is clear,
    Any suggestions or ideas to solve the issue of wrapped procedures with expdp/impdp? can i force certain character set for the expdp/impdp ? knowing that with release 10.2.0.1.0 the expdp/impdp is totally not working with the wrapped procedures

    Any ideas?

  • Bug with deploying wrapped code?

    I have an app I am releasing with packaged code that I have wrapped. If I replace the install script packaged code with a wrapped version I get errors:
    Error at line 0: PLS-00753: malformed or corrupted wrapped unit
    If I run this script in SQL*Plus it works fine!
    APEX 3.0 on 10g Enterprise Edition Release 10.2.0.1.0
    Phil

    Hi Phil,
    Did you use the correct version of the wrap utility? With multiple ora-homes you may have accidentally wrapped your code with a different version than the database you are compiling it in.
    Also the wrap utililty has difficulty with some sql-constructs. You may want to try to wrap with the parameter:
    wrap iname=.. oname=.. edebug=wrap_new_sql
    Rene

Maybe you are looking for