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,

Similar Messages

  • Error message when compiling book "file is corrupt" referring to a photo.  Or "cannot find original photo".  Can you use photos that have been "edited" out of "Book Mode"?

    Error message when compiling book "file is corrupt" referring to a photo.  Or "cannot find original photo".  Can you use photos that have been "edited" out of "Book Mode"?

    I did copy it to my desktop, but it still won't let me open it.  I think the file on the disc might be corrupt or something like that though the cd itself checks out fine as far as viruses go.  I was able to verify the disc, but that's about it.  My husband tried it on his iMac and we have the same issue.  It's unzipping the folder, but won't let us open the folder on both the Mac Book Pro or the iMac by double clicking, going to file/open or right clicking.  It just keeps saying the same message as I posted above.  I think I'm just going to have the client put the pictures on either a memory card or a USB memory stick so she won't have to compress the files for zipping purposes.  It's been too frustrating trying to open this folder on this cd she gave me.  She said she created/zipped the cd on her Mac Book Pro but it sure won't open on mine.

  • Strange error message when compiling an IPA ("multiple L$start$ labels found at same address in...")

    I get this message when compiling an IPA with AIR 3.6:
    ld: warning: multiple L$start$ labels found at same address in __ZN9NetStream12DispatchProcEP10NativeInfo at offset 0x06C0
    Googling a bit, it seems it's an error message from this C++ class:
    http://opensource.apple.com/source/ld64/ld64-133.3/src/ld/LinkEdit.hpp
    So I suppose it's a bug in the AIR for iOS compiler. Any clues about why am I getting that warning message?

    I've been getting this message for quite a while, but I think a fix will soon be needed. I got the following message from Apple:
    ==============
    Dear developer,
    We have discovered one or more issues with your recent delivery for "Quazar". Your delivery was successful, but you may wish to correct the following issues in your next delivery:
    Non-PIE Binary - The executable 'Quazar.app' is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables.
    ===============================================

  • Error message when compiling invalid packages and procedures

    Hi.
    I have a routine for copying certain data from a production database to a test database. To do this I disable constraints and triggers, truncate tables, copy tables and enable triggers and constraints again.
    Now several of my functions, procedures and packages are made invalid and marked with a red cross. In SQL Developer I can compile invalid functions, procedures and packages. When I compile functions it works fine, but when compiling procedures and packages I get the following error message:
    An error was encountered performing the requested operation:
    ORA-00904: "ATTRIBUTE": Invalid identifier
    Vendor code 904
    When I click OK on this message I get a confirmation saying:
    Packages have been compiled with #0.CNT# errors.
    I had this error in both the previous and the new version. Is this a bug or is there a way to come around it? When I copy and modify the SQL generated to perform this task and run it in SQL Plus it works fine.
    I use Windows 2000 5.00.2195 Service Pack 4, SQL Developer version 1.2.1, Oracle 9.2.0.8.0 and Java version 1.5.0_11
    Message was edited by:
    SvSig

    i have now upgraded to Java 1.6 update 2. I still get basically the same error, but it is presented a little bit differently:
    An error was encountered performing the requested operation:
    ORA-00904: "ATTRIBUTE": invalid identifier
    00904. 00000 - "%s: invalid identifier"
    *Cause:
    *Action:
    Vendor code 904
    Are there other possible error causes than the operating system version and the database version?
    We are going to install an Oracle 10 test database in a couple of weeks, so then I will find out whether the database version is the problem.

  • Error message when compiling oracle 11g reports

    Hello Team
    When we are trying to compile a oracle 11g report we are getting the below message.
    "Could not read report properties"
    But compile status of the report is Success and we are able to run the report in our environment.
    Could you please advise us how to fix the above error message?
    Thanks ,
    Salaithenagan J

    Hello,
    How do you compile the Reports ? Do you use rwconverter.sh in ORACLE_INSTANCE/config/reports/bin ?
    If yes , could you copy the content of this script in this thread ?
    Regards

  • Error message when compiling WinHelp 2000

    Hello,
    I'm working a project in RoboHelp X5 using WinHelp 2000 to
    create context-sensitive help. I have been working on this project
    for about a week now, and just this afternoon started getting an
    error whenever I attempted to compile. The error pop-up reads:
    "hpj2hlp
    The WinHelp Wizard encountered an unexpected error when
    attempting to generate WinHelp."
    Is anyone else familiar with this error message? How can it
    be fixed?
    Thanks!

    Kathryn,
    The two or so times I got that kind of message, they turned
    out to be due to corrupted .rtf files. The solution that I found
    and applied successfully was to delete all of the .rtf files from
    my project folder in Windows Explorer (not in the RH environment),
    open the project, make a minor change to the default .doc file
    (simply add a space, then delete it), click the Save All button in
    the RH Explorer pane, then the button for compiling and generating
    the WinHelp file - doing all that forced RH to regenerate the .rtf
    files for all of the .doc files (the source files), and the
    regenerated .rtf files were "clean" - the project compiled nicely
    and resulted in a good WinHelp file. I hope the same works for you.
    Good luck!

  • Error message when compiling

    Hello
    I am totally new to Java, but very fascinated. My first attempts however have failed and I do not know why:
    When compiling like:
    javac SystemInfo.java
    I get following Error Message:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
    My OS is Windows XP and I am pretty sure that I have set the path-variable correct (just followed the instructions of the book and had no problems).
    Could anyone help me with this problem, please?
    Thanks a lot
    mazarata

    Thanks a lot. The info, I have found about the error message is:
    If you see the error message "java.lang.NoClassDefFoundError: com/sun/tools/javac/Main" when you distribute an application, the JAVA_HOME variable is pointing to a J2SE JRE directory, not a J2SE SDK directory, as it should be. This module requires the JAVA_HOME variable to point to a J2SE SDK directory to resolve all library JAR file references.
    Well, I guess I folllow your advice and re-install Java, as I have not distributed any application.
    Thanks for your help
    mazarata

  • Error Message - when compiling WebHelp

    When created WebHelp excluding a condition build tag brings
    up an "RoboHelp HTML Application has encountered a problem and
    needs to cllose. We are sorry for hte inconvenience. I have two
    single source layouts one for the full help and one that I am
    trying to compile excluding a Conditional Build Tag and the error
    message keeps popping up.
    Using RoboHelp 6. What can I do to resolve the issue?

    See Snippets on my site. It's covered there and there is a
    solution.

  • Getting a "Return" error message when compiling

    I have the following code below that works when I don't use any methods.
    When I insert the side method(), I always get an error message "missing return statement".
    I can't figure out what I am doing wrong.
    It runs fine as it is but I am trying to modify it by using separate methods (just to learn how to use and call methods).
    I am trying to replace what I have in the main method in separate method called "side".
    Here is the code
    import javax.swing.*;
    public class Round
    private String output = "";
        //message error occurs when this method is added;   
       public String side()
             for (int row  = 1; row <=5 ; row ++)
               if (row == 1 || row == 5)
                return output += "      * *  \n"; 
        public static void main(String args[])
            String output = "";
      //the for loop (before the else) is copied into the side method. 
             for (int row  = 1; row <=5 ; row ++)
               if (row == 1 || row == 5)
                 output += "      * *  \n"; 
               else
                 if (row == 2 || row ==4)
                 output += " *           * \n"; 
               else                     
                 output += "*              *\n";
            JOptionPane.showMessageDialog(null,output); 
            System.exit(0);
    }Thanks for your help.

    I did as you suggested and still get the same results.
    I also tried using on one return statement after the for loop but still got an error message.
    Do you know how I can fix this?
    thanks
         public String side()
             for (int row  = 1; row <=5 ; row ++)
               if (row == 1 || row == 5)
                return output += "      * *  \n"; 
               else
                 if (row == 2 || row ==4)
                 return output += " *           * \n"; 
               else                     
                return output += "*              *\n";
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error message when searching for an object link within EasyDMS

    Hello,
    I have a problem with the easydms system. Everything works fine except searching in the object links. When I want to define an object link and I don't know the name of the object I try to find it with the help of the search function within easydms (within the object links).
    But the search always delivers an error message:
    "Missing authorization check to display master data"
    Does anybody now what to do?
    Thank you for your help.
    Best regards,
    Markus Sigl

    Hi Markus,
    When you try to do this the  BAPI 'BAPI_HELPVALUES_GET' is used. There are some authorization checks that are being performed for the object. These authorizations are maintained in the table BAPIF4T.
    For the above said test data, you are trying to get the help values for
    the relevant field (e.g. EBELN: po_number).However,in table BAPIF4T the corresponding authorization for the data element ebeln is not maintained. And so you are getting this error.
    So, when you maintain the below record in the table BAPIF4T,you will
    have the corresponding authorization and you will not get the error
    anymore.
    sample entry:
    Object type - ' '
    Object type component - ' '
    BAPIF4T-DTEL - 'EBELN'
    BAPIF4T-FNAM - 'PLM_HELPVALUES_AUTHCHECK'
    Best regards,
    Christoph

  • Error message when saving .fm file

    I just upgraded my FrameMaker program to 7.2.
    When I try to save my work, the following message appears on-screen:
    An internal error occurred while writing imported graphics in this document.  The file has been saved, but has lost some image data.  Please report this error to Adobe Technical Support.
    My file has NOT been saved, none of the changes I've made have been saved.  I cannot save this file under a different name, either.  And the automated files that are generated by the program as &quot;back-up&quot; files are useless.
    HELP!!!

    Upgraded to 7.2..... Good that you didn't rush into it. ;-  )
    Anyway, that's the standard error message when a file contains objects imported using an OLE link AND you are running XP SP3.
    SP3 implemented security fixes that essentially broke OLE within Frame (and a number of other applications).
    So if your document(s) contain OLE links, you're likely to have to convert them to imported-by-reference graphics if they're graphic files or do some other type of conversion if they're tables or PPT slides.
    Art

  • Windows Easy transfer , ERROR message when trying to copy settings to Win 8 PC

    I have a new hp-TouchSmart Envy 23. It has 2TB drive.
    I want to use Windows Easy Transfer to move all my settings and data from the Windows 7 machine to the new hp-TouchSmart (my older PC is hp desktop is model # m9177c and has Win 7 OS)  .
    I have used easy transfer many times and I am reasonably experienced user .
    I just cannot transfer my settings and data to my new PC. I have therefore copies all my data to the hp-TouchSmart . However I need to use Windows easy transfer to move all my settings. I have a very large number of settings , macros and much else that would take a very large amount of time to re-type.
    I get an ERROR message when I want to transfer my settings. It says I don’t have enough disk space. The file I want to transfer is only 10.5 GB (after I removed all my data). The new machine has 2TB and yet I keep getting this error.
    I have tried every possible way of transferring the settings , including : external drive; flash drive; direct wire ; easy transfer cable etc. I keep getting the same ERR message .
    I am sure Easy transfer must allow transfer from Win 7 to Win 8. BUT HOW? 
    PLEASE do help. I would really appreciate very much .
    THANK YOU
    Adam 

    This thread may be useful. 
    Windows Easy Transfer will transfer from one drive to the other to mirror the original drive.  What I suspect is happening is that the program is grabbing the D drive (recovery partition on most systems) and trying to transfer it to the new system which should also have a D drive.  If that is happening,t hen that error will be thrown.
    Try using the advanced options and view the report to see what exactly is happening and triggering the message.
    Let me know what happens. 
    The document in the thread is for a previous version of Windows, but you can search for Easy Transfer Reports from the Start screen in Windows 8.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • I've had an iWeb site running for 4 months and I publish a monthly newsletter. Since August I've been unable to republish. The test connection under FTP settings works but I get an error message when I try to upload newsletter. Am I missing something mis

    I've had an iWeb site running for 4 months and I publish a monthly newsletter. Since August I've been unable to republish. The test connection under FTP settings works but I get an error message when I try to upload newsletter. Am I missing something?

    Where are you hosting the site a what are you using to upload the site files to the server?
    OT

  • Received this error message when starting iTunes and reinstalling does not resolve it:  The registry settings used by iTunes drivers for importing and burning CDs and DVDs is missing.

    Received this error message when starting iTunes and reinstalling does not resolve it:  The registry settings used by iTunes drivers for importing and burning CDs and DVDs is missing...
    Can I uninstall existing iTunes without losing my media library?  and then install fresh to fix this problem?

    Hi there kweitkamp,
    You may find the troubleshooting steps in the article below helpful.
    iTunes for Windows: "Registry settings" warning when opening iTunes
    http://support.apple.com/kb/TS3299
    -Griff W. 

  • Since I installed Nero 2104 I get an error message when I try to start iTunes: registry settings changed probably due to other cd/dvd burning program please reinstall iTunes, which I've done using repair option but the problem persists...?

    Since I installed Nero 2014 I get an error message when I start iTunes that registry settings for importing and burning cds/dvds have changed probably due to other burning software installed please reinstall iTunes, which I've done using 'repair' option, but the problem persists. I have been able to import cds to iTunes since I installed Nero, but it won't anymore. Does anyone recognize this problem and have a solution? Thanks for any help. Using Windows 7.

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes
    If you're still getting the error message (especially when you plug in the Touch), I'd check for a device filter confusion on the PC. (They can affect the connection of USB devices to a PC, as well as burning and importing CDs.) For that one, see:
    iTunes for Windows: Troubleshooting CD issues caused by device filters

Maybe you are looking for

  • Hyperlink to a non-pdf file

    I have a number of pdf files as pages in an ASP.NET website.<br />I want to include hyperlinks to other pages that are not pdf files.<br />I get the message "Could not open the file <file name>" which means that acrobat tries to open the file and not

  • Converting a java string to a date.

    I am working on extending an EO and I have a situation where I must convert a string to a date before passing it to a method. The string is in the format "DD-MON-YYYY". I am using the following code and get an error "incompatible types: found: java.u

  • How do I get a java game from my pc to my mobile - I have a wire!

    I hava a sony ericsson t610 and I have a wire that connects my phone to my computer but the standard sony ericsson software does allow you to send games to the phone. Is there and software I could get to do this?

  • Lpksetup /u

    RE : Uninstalling language packs in order to speed up the process of installing 10049 I am on 10041. When I ran Lpksetup /u, I get this instead........... I was supposed to get this, but I didn't...........

  • OC4J Instance Start

    HI Gentlemen, Again I have a severe problem when starting OC4J: Error starting HTTP Server: Address in use: JVM_Bind. (9i under XP) A couple of hours before it was not so! I added port number 8888 to LISTENER as an address, so it uses both 1521 and 8