(SD 1.5.4.59.40) Compilation with coment - success with compilation error

Hi!
If I run this script:
create table t(n number);
create or replace
TRIGGER t1
-- Coment wiсh work!
BEFORE UPDATE ON t
REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW
DECLARE
past_due EXCEPTION;
begin
if 1 = 1 then
raise_application_error(-20001, 'First trigger!' , TRUE);
end if;
end t1;
+/+
create or replace
-- Coment with error
TRIGGER t2
BEFORE UPDATE ON t
REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW
DECLARE
past_due EXCEPTION;
begin
if 1 <> 1 then
raise_application_error(-20001, 'Second trigger!' , TRUE);
end if;
end;
+/+
Result:
+SQL Command: create or replace --+
Failed: ORA-24344: success with compilation error
+24344. 00000 - "success with compilation error"+
*Cause:    A sql/plsql compilation error occurred.+
*Action:   Return OCI_SUCCESS_WITH_INFO along with the error code+
anonymous block completed
trigger text in SLD Developer:
create or replace TRIGGER t2
BEFORE UPDATE ON t
REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW
DECLARE
past_due EXCEPTION

It looks to me like there is a bug in the logic that determines if the current statement is SQL (terminated by ";") or PL/SQL (terminated by "/") - putting the comment before the object type you are creating is causing SQL Developer to assume it is SQL and it stops the statement at the first ";".
The same thing happens if you try to create a package with a comment between the "create or replace" and the "package", for example:
create or replace
-- comment
package xxx_pkg
i number;
j number;
end;
/creates a package with the following source, executing as a statement (so long as the cursor is between the create and the first ";"):
package xxx_pkg
i numbertheFurryOne

Similar Messages

  • ITunes is no longer syncing to Apple TV.  I have been using my Apple TV Gen 1 for 3 years with good success.  For reasons unknown to me, iTunes no longer syncs with my Apple TV.  It says/looks like it's syncing but never gets through the first song.

    iTunes sees the Apple TV as a device.  I have it set to manual sync.  I have it set to sync my entire library (I have only 10 CDs in my library).  It says it is syncing.  The wheel goes round and round.  The song it is syncing is listed.  The number of songs that are to by synced is listed.  but it never gets through syncing the song.  I have also set it to sync my photos, but never gets to them.  I seem to have a good wireless connection to my Apple TV.  I am able to talk between my PC and my Apple TV, but now it won't sync.  Note:  I have been playing music on my Apple TV for 3 years with good success (with hundreds of songs), but it no longer seems to work like it did. Thanks.

    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first. Networks that have inherent issues can be seen to work differently with different versions of the same software. You might also try moving the Apple TV away from other electrical equipment.

  • Private nullref symbol in 5.6 but not with 5.5 C++ compiler

    We try to use the libmtmalloc.so library with our project using LD_PRELOAD_32 environment variable:
    export LD_PRELOAD_32=/usr/lib/libmtmalloc.so.1This library provides advanced memory management and memory debugging features.
    We have two Solaris machines named ‘earth2’ and ‘mars’. ‘earth2’ has “CC: Sun C++ 5.6” compiler, while ‘mars’ has an older version “CC: Sun C++ 5.5”.
    If we build our application on ‘earth2’ and load it with libmtmalloc.so library, it crashes inside heap memory management functions invoked from std::basic_string methods. The same application built on ‘mars’ machine runs without problems. It seems that the reason of the crash is a visibility of std::basic_string::__nullref symbol generated differently by each version of compiler. The following little code sample demonstrates the problem
    main.cpp
    =======
    #include <string>
    int main()
           std::string strA = "";
           std::string strB = "aaa";
           strA = strB;
          return 0;
    }If we build this sample on both machines, we can see that each compiler provides a different visibility of std::basic_string::__nullref symbol.
    On ‘earth2’ machine
    ===============
    hsbld33BM@earth2 $ CC -V
    CC: Sun C++ 5.6 2004/07/15
    hsbld33BM@earth2 $ CC -v main.cpp
    hsbld33BM@earth2 $ elfdump -s -C a.out | grep nullref
    [3] 0x00021720 0x00000030 OBJT WEAK D 0 .data std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__nullref
    [13] 0x00021718 0x00000004 OBJT WEAK D 0 .data std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__i_ctl___nullref
    [56] 0x00021720 0x00000030 OBJT WEAK D 0 .data std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__nullref
    [66] 0x00021718 0x00000004 OBJT WEAK D 0 .data std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__i_ctl___nullref
    On ‘mars’ machine
    ==============
    hsbld33BM@mars $ CC –V
    CC: Sun C++ 5.5 2003/03/12
    hsbld33BM@mars $ CC -v main.cpp
    ### command line files and options (expanded):
    ### -v main.cpp
    ### CC: Note: NLSPATH = /opt/SUNWspro/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/SUNWspro/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
    /opt/SUNWspro/prod/bin/ccfe -y-o -ymain.o -y-fbe -y/opt/SUNWspro/prod/bin/fbe -y-xarch=generic -y-verbose -O0 -ptf /tmp/29641%1.%2 -ptx /opt/SUNWspro/prod/bin/CC -ptk "-v -xs " -D__SunOS_5_9 -D__SUNPRO_CC=0x550 -Dunix -Dsun -Dsparc -D__sparc -D__unix -D__sun -D__BUILTIN_VA_ARG_INCR -D__SVR4 -D__SUNPRO_CC_COMPAT=5 -xdbggen=no%dwarf2+stabs -y-s -xdbggen=incl -y-xmemalign=4s -I-xbuiltin -xldscope=global -instlib=/opt/SUNWspro/prod/lib/libCstd.a -I/opt/SUNWspro/prod/include/CC/Cstd -I/opt/SUNWspro/prod/include/CC -I/opt/SUNWspro/prod/include/CC/rw7 -I/opt/SUNWspro/prod/include/cc -D__SUN_PREFETCH -xcomdat -y-comdat main.cpp -s /tmp/ccfe.29641.0.s >&/tmp/ccfe.29641.1.err
    rm /tmp/ccfe.29641.0.s
    ### CC: Note: LD_LIBRARY_PATH = (null)
    ### CC: Note: LD_RUN_PATH = (null)
    ### CC: Note: LD_OPTIONS = (null)
    /usr/ccs/bin/ld -u __1cH__CimplKcplus_init6F_v_ -zld32=-S/opt/SUNWspro/prod/lib/libldstab_ws.so -zld64=-S/opt/SUNWspro/prod/lib/v9/libldstab_ws.so -zld32=-S/opt/SUNWspro/prod/lib/libCCexcept.so.1 -zld64=-S/opt/SUNWspro/prod/lib/v9/libCCexcept.so.1 -R/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib -o a.out /opt/SUNWspro/prod/lib/crti.o /opt/SUNWspro/prod/lib/CCrti.o /opt/SUNWspro/prod/lib/crt1.o /opt/SUNWspro/prod/lib/values-xa.o -Y P,/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib:/opt/SUNWspro/prod/lib/rw7:/opt/SUNWspro/prod/lib:/usr/ccs/lib:/usr/lib main.o -lCstd -lCrun -lm -lw -lc /opt/SUNWspro/prod/lib/CCrtn.o /opt/SUNWspro/prod/lib/crtn.o >&/tmp/ld.29641.2.err
    rm main.o
    rm /tmp/ccfe.29641.1.err
    rm /tmp/ld.29641.2.err
    hsbld33BM@mars $ elfdump -s -C a.out | grep nullref
    [25] 0x00021300 0x00000030 OBJT GLOB D 0 .bss std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__nullref
    [92] 0x00021300 0x00000030 OBJT GLOB D 0 .bss std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__nullref
    We want to be able to use the libmtmalloc.so with newer compiler version. Please advise what we should do in order to achieve this goal.

    Those old compiler versions probably still have several bugs relating to the string class. Both are End Of Life. No support will be available for C++ 5.5 after this year, and all support ends for C++ 5.6 next year.
    The best solution would be to upgrade to a supported release. If you need to build or run on Solaris 8 (which is also End Of Life), get Sun Studio 11, which is free.
    [http://developers.sun.com/sunstudio/products/previous/11/index.jsp]
    If you don't need to build or run on anything earlier than Solaris 9, get Sun Studio 12, which is also free.
    [http://developers.sun.com/sunstudio/]
    "Free" means there is no license fee, no charge for downloading or use, nor for the distribution of applications created with Sun Studio.
    Next, whatever compilers you wind up using, be sure to get all the current patches. At a minimum, get the patches for the C compiler, C++ compiler, the compiler "back end" (sometimes called "common components"), and the C++ runtime library. You can get all patches here:
    [http://developers.sun.com/sunstudio/downloads/patches/index.jsp]
    The updated C++ runtime libraries need to be installed on the build system and on all target systems.
    You should also be sure that your build processes do not contribute to the problem:
    1. The C++ runtime libraries must be linked dynamically (the .so versions). Static linking can cause program failures when the application consists of other shared (dynamic) libraries, or when you run on a system different from the compilation system.
    2. When you build on one version of Solaris, the application can run on later versions of Solaris, but not on earlier versions.
    3. When you create a binary (.o, .a, .so) using one compiler version, it can be linked into a program created by a later compiler verison, but not into a program created by an earlier compiler version. (Note: the compiler version installed on a computer should not matter, since in a properly-constructed program, there is no runtime dependency on the installed compiler.)
    Information about supported compilers and interactions are listed in the Support Matrix:
    [http://developers.sun.com/sunstudio/support/matrix/index.jsp]

  • Studio 12: C compiler generates bad code with -m64 -KPIC -xO2

    Hello,
    after upgrading my Solaris 10/x64 machine from Studio 11 to Studio 12 some problems were fixed, but others came up; like this one:
    I have a code snippet that obviously causes the C compiler to generate wrong code if compiled with options -m64 -KPIC -xO2. If any of these options are missing, it runs fine. Here's the example code:
    #include <stdio.h>
    #include <strings.h>
    static int do_something() { return 0; }
    static int foo() {
        fprintf(stderr, "\n!! BUG: BAD CODE! unexpected function call foo()!\n\n");
        return 222;
    static int bar() {
        fprintf(stdout, "\nOK: bar() called\n\n");
        return 0;
    static const struct {
        const char* name;
        int (*func)();
        int flag;
    } tab[] = {
        { "foo",  &foo,  0 },
        { "bar",  &bar,  0 },
        { 0, 0, 0 }
    int main(int argc, const char** argv) {
        int i;
        for (i=0; tab.name; i++) {
    if( strcmp(tab[i].name, "bar") == 0 ) {
    if(tab[i].flag) {   /* not reached */
    if(!do_something()) {
    return 2;
    return (*tab[i].func)();
    return 1; /* not reached */
    Many lines seem to be bogus, but they are actually needed to reproduce the problem.
    This is what happens:# cc -m64 -KPIC -xO2 bug.c && ./a.out ; echo $?
    !! BUG: BAD CODE! unexpected function call foo()!
    222
    If I compile with debugging information (-g), I get expected behavior, which is:# cc -m64 -KPIC -g bug.c && ./a.out ; echo $?
    OK: bar() called
    0
    While creating the test case I've also seen SIGSEGV at runtime in the bug case - which is probably due to a wrong calculated function address for jmp (just guessing).
    Does anyone know if this is a known bug?
    Any help is appreciated.
    The rest of this posting is information about my system and Studio 12 patch level:# uname -a
    SunOS v20 5.10 Generic_137112-08 i86pc i386 i86pc
    # /usr/SUNWspro/bin/version
    Machine hardware: i86pc
    OS version: 5.10
    Processor type: i386
    Hardware: i86pc
    The following components are installed on your system:
    Sun Studio 12
    Sun Studio 12 C Compiler
    Sun Studio 12 C++ Compiler
    Sun Studio 12 Tools.h++ 7.1
    Sun Studio 12 C++ Standard 64-bit Class Library
    Sun Studio 12 Garbage Collector
    Sun Studio 12 Fortran 95
    Sun Studio 12 Debugging Tools (including dbx)
    Sun Studio 12 IDE
    Sun Studio 12 Debugger GUI
    Sun Studio 12 Performance Analyzer (including collect, ...)
    Sun Studio 12 X-Designer
    Sun Studio 12 VIM editor
    Sun Studio 12 XEmacs editor
    Sun Studio 12 Performance Library
    Sun Studio 12 LockLint
    Sun Studio 12 Building Software (including dmake)
    Sun Studio 12 Documentation Set
    Sun Studio 12 /usr symbolic links and GNOME menu item
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/cc": Sun C 5.9 SunOS_i386 Patch 124868-07 2008/10/07
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/CC": Sun C++ 5.9 SunOS_i386 Patch 124864-08 2008/10/16
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/f90": Sun Fortran 95 8.3 SunOS_i386 Patch 127002-04 2008/04/16
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/dbx": Sun Dbx Debugger 7.6 SunOS_i386 Patch 124873-06 2008/08/20
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/analyzer": Sun Analyzer 7.6 SunOS_i386 Patch 126996-04 2008/09/03
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/dmake": Sun Distributed Make 7.8 SunOS_i386 Patch 126504-01 2007/07/19

    I'm watching Bug ID: [6774287|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6774287] for quite a while and it seems to be fixed some time ago (State: 8-Fix Available, bug). Does anybody know if the fix made it in some officially available SunStudio 12 C compiler (backend) patch already? I'm using this SS12 patch-level meanwhile:
    # /usr/SUNWspro/bin/version
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/cc": Sun C 5.9 SunOS_i386 Patch 124868-08 2008/11/25
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/CC": Sun C++ 5.9 SunOS_i386 Patch 124864-09 2008/12/16
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/f90": Sun Fortran 95 8.3 SunOS_i386 Patch 127002-05 2008/10/21
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/dbx": Sun Dbx Debugger 7.6 SunOS_i386 Patch 124873-06 2008/08/20
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/analyzer": Sun Analyzer 7.6 SunOS_i386 Patch 126996-04 2008/09/03
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/dmake": Sun Distributed Make 7.8 SunOS_i386 Patch 126504-01 2007/07/19

  • Getting an strange error in "PluginPrefix.pch" while compiling a plugin code with InDesign CS4 SDK.

    Hi everybody,
    Currently trying to compile/build the existing Plugin code (C++) with InDesign CS4 SDK on my Mac OS X 10.5 machine but getting following strange errors.
      /Volumes/MAC Extended/Inbetween Extended/Visual Studio/Adobe InDesign CS4 SDK/source/precomp/gcc/PluginPrefix.pch:26:27: error: MemoryStatics.h: No such file or directory
      /Volumes/MAC Extended/Inbetween Extended/Visual Studio/Adobe InDesign CS4 SDK/source/precomp/gcc/PluginPrefix.pch:39:30: error: PluginBuildFlags.h: No such file or directory
      /Volumes/MAC Extended/Inbetween Extended/Visual Studio/Adobe InDesign CS4 SDK/source/precomp/gcc/PluginPrefix.pch:40:28: error: AnsiBasedTypes.h: No such file or directory
      /Volumes/MAC Extended/Inbetween Extended/Visual Studio/Adobe InDesign CS4 SDK/source/precomp/gcc/PluginPrefix.pch:41:26: error: ShukHeaders.cp: No such file or directory
    Though above mentioned files are present at the following directory
    /Volumes/../../../Adobe InDesign CS4 SDK/source/precomp/common/
    Note : However initially I did not find “MemoryStatics.h” and “AnsiBasedTypes.h” files in the installed SDK directory. I have downloaded them from the net and copied those into the above mentioned directory.
    I am not much familiar with Mac OS environment and compiling/building C++ code with Xcode. Can anyone help me to resolve this issue (might be very trivial and related to Xcode project configuration) ?

    Thanks for the quick response,
    Yes, current build settings include path shortcuts as mentioned below and it also contains “$(CS_SDK_PATH)/source/public/includes” path in HEADER_SEARCH_PATHS settings.  But still I am getting the same error: MemoryStatics.h: No such file or directory
    CS_SDK_PATH= /Volumes/MAC Extended/Inbetween Extended/Visual Studio/Adobe InDesign CS4 SDK
    CS_SDK_PRJ_PATH=/Volumes/MAC Extended/Inbetween Extended/Visual Studio/InBetweenDev/Projects/InBetweenCS/IBClientPluginCS3/prjCS4/mac
    Just for clarification : my Plugin code /project files are not inside the InDesign SDK (build/mac/prj). All the plugin project is outside of the InDesign SDK directory. Thus above mentioned CS_SDK_PATH and CS_SDK_PRJ_PATH are completely different.
    Is it expected that the plugin code/project files should be inside the InDesign SDK/build/mac/prj  directory only ? or is it okay if we put it in the completely another directory structure and modify the  SDK_PRJ_PATH accordingly (as in my case) ?
    Please let me know if you want me to elaborate the situation further.

  • Error with import of new compiled java package

    Hi,
    in order to change some code in the java classes of the packages stored in the VV2-Content, 1.0 of SAP -> http://sap.com/xi/ISU-IDEX-GE/VV2 -> Mapping Objects -> Imported Archive, I exported all packages in this folder, extracted them, decompiled some classes (using jad), in which I would like to change some code, and imported these classes associated with other exported packages in a new project of eclipse. after changing the code and successfully compiling these java classes (with no error), I exported the ".class" from eclipse, replaced the old ".class" in the packages with the newly compiled ones(in a zip file) and at the end imported the changed packages (in zip files) in the folder "Imported Archive". After saving and activating the change, I sent an IDOC from R3 system to the XI system for test. In the monitor of the XI system, there was an error, which is
    "Inkompatible Versionen von Klassen (Linkage Error)" (in English "incompatible versions of classes (linkage error)"). Can anyone tell me, how I can do with this error? Thanks.

    Vishal,
    thanks for your reply. Actually I did change some code in the decompilied class "XEdixml2EdiConverter". I think this class does nothing with mapping(transformation), but it converts the tranformed edixml to final edifact. Can I test it in the repository as you said?
    regards
    Bin

  • The MOF Compiler could not connect with the WMI server

    I am trying to add node2 to SQL  cluster (2008)  However, I kept running into errors with the following error message:
    "The MOF Compiler could not connect with the WMI Server. This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual error such as the failure of the WMI Server to start".
    I checked on the WMI services, they are started and running.renamed the WMI repository.  but nothing worked .
    Any idea what settings I need to change in order to ensure a successful instalation and add node 2 to sql cluster.

    Hi,
    Did SQL Server failed during installation and you somehow brought services online. Or it failed and next time you executed it succeeded IMO this error pops up because of remnants of failed installation on Node 1. With cluster specially if Installation on
    node 1 fails you should uninstall completely and remove all files related to SQL Server and then proceed.
    Have a look at below connect,see workaround and information posted by MS
    https://connect.microsoft.com/SQLServer/feedback/details/356258/the-mof-compiler-could-not-connect-with-the-wmi-server
    If above still not helps please post complete setup log file
    %Program files%\Microsoft sql server\100\Setup bootstrap\Log\ folder.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • "success with compilation error" ?

    Hopefully someone can shed light on this. Here is the sample code...
    SQL> create or replace procedure pr_TEST
    2 as
    3 begin
    4 execute immediate 'create or replace trigger tr_test after insert or update or delete on test
    for each row declare v_row test%rowtype; v_col1 varchar(32); v_col2 varchar(32); v_work varchar(32)
    ; begin insert into test values (v_col1, v_col2) ;end; /';
    5
    6 end;
    7 /
    Procedure created.
    SQL> exec pr_test;
    ERROR:
    ORA-24344: success with compilation error
    ORA-06512: at "ROOT.PR_TEST", line 4
    ORA-06512: at line 1
    Have you ever heard of an ORA-24344 ? Any suggestions on what to correct ?
    thx in advance,
    RP.

    You don't want the slash at the end of the string:
    sql>create or replace procedure pr_test
      2  as
      3  begin
      4   execute immediate 'create or replace trigger tr_test after insert or update or delete on test
      5  for each row declare v_row test%rowtype; v_col1 varchar(32); v_col2 varchar(32); v_work varchar
    (32);
      6   begin insert into test values (v_col1, v_col2) ;end;';  -- no slash here at end
      7  end;
      8  /
    Procedure created.

  • ORA-24344: Success with compilation error.

    Hi, i got the following error notification mail when the DB job [runs only once in a day at 1 AM] tries to execute the following procedure.
    The mail reads like this ----
    "Condition Raised in: toll_partitions.recompile_invalid_objects
    Short Desc: ORA-24344
    Long Desc: ORA-24344: Success with compilation error.
    Cause: Trigger creation did not successfully complete.
    Solution: Check trigger status for all triggers created in this schema and find out which error caused the failure by querying the user_errors table for the named trigger and Trigger type.
    --- end of mail ----
    === This is the procedure =====
    PROCEDURE recompile_invalid_objects IS
    -- Declare variables
    v_ins_str VARCHAR2(2000);
    cursor_handle NUMBER;
    execute_feedback NUMBER;
    v_unix_str VARCHAR2(200);
         v_object_cnt NUMBER := 0;
         -- Declare cursor objects
         CURSOR curs_obj IS
    SELECT decode( OBJECT_TYPE, 'PACKAGE BODY',
    'ALTER PACKAGE ' || OWNER||'.'||OBJECT_NAME || ' COMPILE BODY',
    'ALTER ' || OBJECT_TYPE || ' ' || OWNER||'.'||OBJECT_NAME || ' COMPILE' )
                   "COMP_OBJECT"
    FROM dba_objects
    WHERE STATUS = 'INVALID'
    AND OBJECT_TYPE IN ( 'PACKAGE BODY', 'PACKAGE', 'FUNCTION', 'PROCEDURE',
              'TRIGGER', 'VIEW' )
    AND OWNER = USER
              AND OBJECT_NAME NOT LIKE 'TOAD_PROFILER'
    ORDER BY OWNER, OBJECT_TYPE, OBJECT_NAME;
    BEGIN
         -- Set Package/Procedure Name for email notification.
         vFacility := cProcName || '.recompile_invalid_objects';
    -- Select invalid object count
    BEGIN
         SELECT count(*)
              INTO v_object_cnt
              FROM dba_objects
    WHERE STATUS = 'INVALID'
    AND OBJECT_TYPE IN ( 'PACKAGE BODY', 'PACKAGE', 'FUNCTION', 'PROCEDURE',
              'TRIGGER', 'VIEW' )
    AND OWNER = USER
                   AND OBJECT_NAME NOT LIKE 'TOAD_PROFILER'
    ORDER BY OWNER, OBJECT_TYPE, OBJECT_NAME;
              -- Recompile invalid objects
              IF v_object_cnt > 0 THEN
              FOR i in curs_obj
                   LOOP
                   v_ins_str := i.COMP_OBJECT;
                        cursor_handle := DBMS_SQL.OPEN_CURSOR;
    DBMS_SQL.PARSE(cursor_handle,
         v_ins_str,
                   DBMS_SQL.V7);
    execute_feedback := DBMS_SQL.EXECUTE(cursor_handle);          
    DBMS_SQL.CLOSE_CURSOR(cursor_handle);
    COMMIT;
                   END LOOP;
              END IF;
    END;
    EXCEPTION
         WHEN OTHERS THEN
         -- Log error condition and generate email notification if needed.
    toll_handle.error_condition(vFacility, toll_handle.get_ora_desc(sqlerrm),vErrorID);
         END recompile_invalid_objects;
    ==== end of procedure ====
    I got '0' count when I ran the invalid object count to see the invalid objects. I ran the following code ..and it gave me 0 value.
    SELECT count(*)
              FROM dba_objects
    WHERE STATUS = 'INVALID'
    AND OBJECT_TYPE IN ( 'PACKAGE BODY', 'PACKAGE', 'FUNCTION', 'PROCEDURE',
              'TRIGGER', 'VIEW' )
    AND OWNER = USER
                   AND OBJECT_NAME NOT LIKE 'TOAD_PROFILER'
    ORDER BY OWNER, OBJECT_TYPE, OBJECT_NAME;
    --- end of query ---
    The count 0 means, there are no invalid objects. But it throws daily the same error notification mail at 1 AM[the time job runs]. I compiled the procedure and it reports no errors. I checked the status of the triggers and all are valid and enabled. Please suggest me. Any help in this regard will be of great help to me. Thanks in advance...

    Just some hints. I'm not sure if they help solving your problem.
    1) Don't COMMIT inside a cursor.
    2) Instead of DBMS_SQL you could use DBMS_DDL.ALTER_COMPILE, also see here: http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96612/d_ddl2.htm#1000604
    3) Check if there are other jobs running during the recompile. Maybe you run into some conflicts.
    4) Output the statement that creates the error. It looks like you could try to put this into your exception handler: toll_handle.error_condition(vFacility, v_ins_str,vErrorID);

  • SQL 2012 installation Error-The MOF compiler could not connect with the WMI server

    Hi all,
      I am getting below error while installing SQL 2012 Dev edition in Win 8.1 Pro.
    I am facing lot of issues while installing SQL 2012 in Win 8.1 Pro.Any other steps we need to take to install SQL 2012 in Win 8.1.
    Thanks in advance. 

    Installation:
    Installation for SQL Server 2012
    Hardware and Software Requirements for Installing SQL Server 2012
    Installing the .NET Framework 3.5 on Windows 8 or 8.1
    About "The MOF compiler could not connected with the WMI server" error message:
      Please, verify the Windows Management Instrumentation has status "started" and is set with Startup Type "Automatic". (Alberto Morillo, SQLCoffee.com).
    José Diz     Belo Horizonte, MG - Brasil

  • MS SQL Server 2008 not getting installed properly - MOF compiler could not connect with the WMI server

    I am trying to install SQL Server 2008 in my local machine. However, I kept running into errors with the following error message:
    "The MOF Compiler could not connect with the WMI Server. This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual error such
    as the failure of the WMI Server to start".
    I also ran "rundll32 wbemupgd, UpgradeRepository" to rebuild WMI repository, it doesn't help either. I got the same error message. 
    Any ideas what settings I need to change in order to ensure a successful installation of SQL Server 2008?

    "The MOF Compiler could not connect with the WMI Server. This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual error such
    as the failure of the WMI Server to start".
    I also ran "rundll32 wbemupgd, UpgradeRepository" to rebuild WMI repository, it doesn't help either. I got the same error message. 
    Any ideas what settings I need to change in order to ensure a successful installation of SQL Server 2008?
    can you check below two links.Make sure previous failed installation is removed completely.
    http://connect.microsoft.com/SQLServer/feedback/details/356258/the-mof-compiler-could-not-connect-with-the-wmi-server#
    Solution given by Connect MS is:
    Possibly the issue was caused by uninstalling from add-remove programs - at any rate, using aaron bertrand's suggestion below fixed the issue. Also of note - I used the local admin for the install.
    http://sqlblog.com/blogs/aaron_bertrand/archive/2009/02/20/the-xp-sp3-msxml6-sp2-sql-server-debacle.aspx
    yes - remove msxml6 and any other half installed portion of sql 2008 and REBOOT and install sql
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Request to check this error, success with compilation

    Iam tried to modified the code such that the second set of procedure call the first set but it is again giving this vague error again . Can any one resolve this issue.THANKS
    declare
    X varchar2(8000);
    begin
    for i in 1..5 loop
    execute immediate
    'create or replace procedure prc_'||to_char(i,'fm0000')
    || ' is begin null; end;' ;
    X:='prc_'||to_char(i,'fm0000')||';';
    end loop;
    for i in 5..10 loop
    execute immediate
    'create or replace procedure prc_'||to_char(i,'fm0000')
    || ' is begin'||X|| 'end;' ;
    end loop;
    end;
    ORA-24344: success with compilation error
    ORA-06512: at line 11

    This is what you are trying to do:
    test@ORA10G>
    test@ORA10G> --
    test@ORA10G> declare
      2    X varchar2(8000);
      3  begin
      4    for i in 1..5 loop
      5      dbms_output.put_line('create or replace procedure prc_'||to_char(i,'fm0000')|| ' is begin null; end;') ;
      6  --    execute immediate 'create or replace procedure prc_'||to_char(i,'fm0000')|| ' is begin null; end;' ;
      7      X:='prc_'||to_char(i,'fm0000')||';';
      8    end loop;
      9    for i in 5..10 loop
    10      dbms_output.put_line('create or replace procedure prc_'||to_char(i,'fm0000')|| ' is begin'||X|| 'end;') ;
    11  --    execute immediate 'create or replace procedure prc_'||to_char(i,'fm0000')|| ' is begin'||X|| 'end;' ;
    12    end loop;
    13  end;
    14  /
    create or replace procedure prc_0001 is begin null; end;
    create or replace procedure prc_0002 is begin null; end;
    create or replace procedure prc_0003 is begin null; end;
    create or replace procedure prc_0004 is begin null; end;
    create or replace procedure prc_0005 is begin null; end;
    create or replace procedure prc_0005 is beginprc_0005;end;
    create or replace procedure prc_0006 is beginprc_0005;end;
    create or replace procedure prc_0007 is beginprc_0005;end;
    create or replace procedure prc_0008 is beginprc_0005;end;
    create or replace procedure prc_0009 is beginprc_0005;end;
    create or replace procedure prc_0010 is beginprc_0005;end;
    PL/SQL procedure successfully completed.
    test@ORA10G>
    test@ORA10G>Put a space after BEGIN and before END.
    pratz

  • How to compile a java file with specified jdk version in a program???

    hi,
    if we want to compile a program in another program with a particular
    jdk version as an option, how to do that,plz reply and with example.

    Hi,
    To compile from a program, read this (I've never tried, but I think it
    will work):
    http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Compiler.html
    To get the jre version:
    System.getProperty("java.version");
    To get the vm version:
    System.getProperty("java.vm.version");
    Other properties at:
    http://java.sun.com/j2se/1.4.1/docs/api/java/lang/System.html
    Hope it helps,
    ANeto

  • How to compile and creat JAR with native function

    Hi there,
    I wrote some native function for J2ME. But it seems like using J2ME wireless Toolkits, we can not compile native function. Is it right?
    Is anyone knowing how to compile and make JAR with J2MEWTK or command line?
    Thanks,
    Merry Christmas!!

    [zack327],
    JNI like or native interfaces APIs is not supported in the CLDC/MID Profile 1.0 specification. If you have J2ME code that includes JNI code, the J2MEWTK tool will not compile successfully for you.
    To package the compiled code to a MIDlet suite .jar file, use the 'Package' command in the J2MEWTK toolkit. It is found on the top menu bar 'Project' option as item on the dropdown list.
    To package the MIDlets into a MIDlet suite .jar file from the command line, you can execute the usual jar file command:
    jar cf MyMIDletSuite.jar Midlet.class
    You will also need to create a MIDlet .jad Application Descriptor file as well.
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • ORA-24344: success with compilation error While creating workspace

    Hi,
    We had an instance with db 9.2.0.5 and HTML DB 1.56.
    First we upgraded database to to 10.1.0.4.Then we upgraded HTML DB to 1.6.1(Upgraded html db 1.5 to 1.6, Then applied patch 1.6.1 patch - 4173133)
    Logged to the HTML DB as an administrator for creating application developer's workspace. I have got the error "ORA-24344: success with compilation error" while creating the workspace.
    We are able to create the workspace successfully on HTML DB 1.5.
    Any help is highly appreciated.
    Thanks, Venkanna

    Venkanna - Do you think the workspace creation was at least partly successful? I mean, can you login to it, can you see anything about it in the admin app, etc.? It would be useful to get a list of invalid objects in the new workspace's schema. If there are none, then get a list of invalid objects in FLOWS_010600.
    Scott

Maybe you are looking for

  • How can I pass a path to the FileReference upload function?

    i don't understand how can i upload a file from the browse function after you've selected a file. since FileReference.name returns only the filename w/extension and not the path, how can i work around this? i understand the security implications with

  • How do I reset an inbuilt iPad app. i.e. App Store?

    How do I reset the "app store" app as I keep getting notifcation of an update when there isn't one?

  • Deploying Office 365 Pro Plus from a network share?

    I have setup a network share to install to a number of users, who I have applied licensing to and have created a script to run the setup with the xml configuration file. The install runs completely fine, installs the 365 Pro Plus, but when the user g

  • No ocijdbc10 in java.library.path - can not figure out

    I am using Eclipse 3.2 and connecting to an Oracle 10g server. All of my projects were working just fine. BUT, I needed to move the java code and directories from one server to another becuase the other server was retiring. I recreated all my project

  • Ultiboard 11 - New design layout challenges

    Hello again NI team, We have just recently started designing new PCBs using Ultiboard 11.0.1, and we've run into several challenges with the software, on issues ranging from setting up Global Preferences, to basic trace routing. Below are some of the