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

Similar Messages

  • 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);

  • "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" in beginDDL

    Hello,
    I'm facing a really strange problem. When i try to use dbms_wm.beginDDL in one of my versioned tables, i get the error:
    ORA-24344: success with compilation error
    ORA-06512: "WMSYS.LT", line 12178
    ORA-06512: line 2
    I just get the error if i run the procedure from SQLPlus.
    Using PLSQL Developer, for example, I get a normal execution but the LTS table it's not created and the state of the table stays 'VERSIONED'.
    I used this procedure other times in the past and there were no problems.
    Trying to identify the cause of the error, i've tried:
    (1) - run dbms_wm.beginDDL for all the other tables - No Problem
    (2) - verifiy if there were invalid objects - All valid
    (3) - verify the error tables for more details (user_, dba_, user_wm_vt_) - No entries
    (4) - generate a trace file, to search for abnormal executions - Apparently nothing really strange (but obviously I don't know what was supposed to happen)
    Any possible reasons for this to happen?
    Any ideas?
    Some help would be welcome.
    Best regards,
    Pedro Lourenço

    Hi Noel,
    I just found the problem...
    I have a trigger defined on the table that uses a synonym for another user table.
    That synomym was dropped, so the trigger was invalid.
    I didn't notice the problem because the trigger was disabled, so the WM$ procedure wasn't being generated, and there were no "visible errors".
    Recreating the synomyn, the problem was solved.
    Thanks for your help!
    Regards,
    Pedro Lourenço

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

  • 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

  • Got this error 0x4004f00c with MS OFFICE 2013

    HI,
    I have downloaded MS OFFICE 2013 with the help of my school which inc the SN
    I did it in August, yesterday , when  I open ms word, I got this message, need to activate this office, 3 days left .....
    I notice underneath thee is this error : got this error 0x4004f00c with MS OFFICE 2013
    Thanks

    Please repost your inquiry in the more appropriate
    Microsoft Office Community Forum.  Thanks!
    Carey Frisch

  • I have this error -42032 with Itunes on my Computer OS windows 7

    I have this error -42032 with Itunes on my Computer OS windows 7
    when i start Itunes

    iTunes: Advanced iTunes Store troubleshooting - http://support.apple.com/kb/TS3297 > Specific Conditions and Alert Messages: (Mac OS X / Windows) - includes list of iTunes error codes

  • When I open any web page I get this error message with Firefox 4...Javascript Application Uninstall Set

    When I load web pages with Firefox 4, I get this error message
    Javascript Application Uninstall Set

    When I load web pages with Firefox 4, I get this error message
    Javascript Application Uninstall Set

  • Has anyone encountered this error message with Adobe Camera Raw 6.3 Plug-in?

    Ever since I installed the Adobe Camera Raw 6.3 Plug-in for Elements 8 I get the following error message when I launch Editor:
    "The Application or DLL C:\Program Files\Common Files\Adobe\Plug-Ins\Elements 8 \File Formats\Win 64\Camera Raw. 8 bi is not a valid Windows Image. Please check this against your installation diskette" 
    (As I downloaded the plug-in I don't have the option of checking against the installation diskette as the error message suggests.)
    If I click OK on the error message the launch process re-commences and Editor eventually opens and operates effectively.
    Does anyone have a suggestion about how I might remove this error message? Alternatively, do I run a risk by continuing to simply ignore the error message?
    Thanks
    Kinyo Jim

    Delete the camera raw 8bi file from the File Formats folder.
    Download ACR 6.2 and extract the files.
    Drag the camera raw 8bi file from the download extract folder into the File formats folder.
    C:\Program Files\Common Files\Adobe\Plug-Ins\Elements 8\File Formats\
    If you are using a 64-bit edition of Windows, then move the plug-in file from the unzipped download folder by navigating to:
    C:\Program Files (x86)\Common Files\Adobe\Plug-Ins\Elements 8\File Formats\

  • Why this error message with certain texts?

    Why do i get this error message only with certain texts?  I have entered only a ten digit number, have deleted conversations and resent messages and still?

    Oh, the error message is "
    error invalid number please re-send using valid 10 digit mobile number or valid short code."

  • What program caused this error message with a pic of coins and money bag?

    Today I was running the following programs:
    Mail.app
    TextWrangler
    Safari
    iTunes
    I was composing an email when an error message popped up. It was a small self-contained window with an image of coins and a money bag on the left side and text that read:
    An unexpected error has occurred
    (ValueError: invalid literal for float(): N/A)
    There were 2 buttons, "Quit" and "Continue". Continue was highlighted. Software Update then also popped up. I took screenshots of the message and I then opened up the Activity Monitor and took screenshots of all of the processes running. I would post the images, but I don't know if that is possible on this site. I hit the quit button and there seems to be no problems.
    Anyway, I am very curious about what program, process, or plugin, put up this message, especially since I was not running any program related to finance. Does anyone have any ideas??
    Thanks
    Paul

    OK, so you need to have your pics on a web server, then you can show them here. I will give it a shot. Here is the error message:
    And here are the processes that were running:

  • Check this error (urgent)

    hai SDNs..
    i have a problem...
    DATA: lt_doc TYPE tt_doc,
          lt_final TYPE tt_final.
      PERFORM fr_get_data_from_mseg CHANGING lt_doc .
    from this sub routine i am getting values into lt_doc
      perform fr_final_output_data changing lt_final.
    i am using the same lt_doc table in this particular table like:
    loop at lt_doc..
    """" but it is saying undefined lt_doc...
    could you pls help me out.. its urgent..
    waiting for reply...

    Hi RamaKrishna,
                   I think the problem is with <b>SCOPE of VARIABLES</b> so Declare variables at Global scope ie at the begging of the program  then you can access these variables through out your program for all subroutines.
    <b>Before the start-of-selection, declare these variables.</b>
    DATA: lt_doc TYPE tt_doc,
    lt_final TYPE tt_final.
    If your lt_doc is table then you need to specify <b>OCCURS 0</b> clause in the defintion of variables as follows.
    DATA: lt_doc TYPE tt_doc <b>OCCURS 0 WITH HEADER LINE,</b>
    lt_final TYPE tt_final <b>OCCURS 0 WITH HEADER LINE.</b>
    and you need to change in PERFORM to as follows.
    PERFORM fr_get_data_from_mseg <b>CHANGING TABLES lt_doc</b>
    perform fr_final_output_data <b>CHANGING TABLES lt_final.</b>
    Thanks,
    Vinay
    Message was edited by: Vinaykumar G

  • Hlp! sos!!! check this error!!

    2002-08-28 18:03:21 - Ctx() : IOException in R( + /chatservlet + null) - java.net.SocketException: Connection reset by peer: socket write error
         at java.net.SocketOutputStream.socketWrite(Native Method)
         at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
         at org.apache.tomcat.modules.server.Http10.sendHeaders(Http10.java:404)
         at org.apache.tomcat.modules.server.HttpResponse.endHeaders(Http10Interceptor.java:474)
         at org.apache.tomcat.core.OutputBuffer.realWriteBytes(OutputBuffer.java:176)
         at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360)
         at org.apache.tomcat.core.OutputBuffer.flush(OutputBuffer.java:315)
         at org.apache.tomcat.core.OutputBuffer.close(OutputBuffer.java:305)
         at org.apache.tomcat.core.Response.finish(Response.java:271)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:838)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)

    How about the code?

  • Can you explain this error message with MERGE statement

    Here is the code that gives me headache.
    I give you the description of the two tables involved and the error message I get when I run a simple MERGE statement
    SQL> desc employees
    Name Null? Type
    EMPLOYEE_ID NOT NULL NUMBER(6)
    FIRST_NAME VARCHAR2(20)
    LAST_NAME NOT NULL VARCHAR2(25)
    EMAIL NOT NULL VARCHAR2(25)
    PHONE_NUMBER VARCHAR2(20)
    HIRE_DATE NOT NULL DATE
    JOB_ID NOT NULL VARCHAR2(10)
    SALARY NUMBER(8,2)
    COMMISSION_PCT NUMBER(2,2)
    MANAGER_ID NUMBER(6)
    DEPARTMENT_ID NUMBER(4)
    SQL> desc emp2
    Name Null? Type
    EMPLOYEE_ID NOT NULL NUMBER(6)
    FIRST_NAME VARCHAR2(20)
    LAST_NAME VARCHAR2(25)
    1 MERGE INTO emp2 e2
    2 USING employees e
    3 ON (e2.employee_id = e.employee_id)
    4 WHEN MATCHED THEN
    5 UPDATE SET
    6 e2.employee_id = e.employee_id,
    7 e2.last_name = e.last_name,
    8 e2.first_name = e.first_name
    9 WHEN NOT MATCHED THEN
    10 INSERT VALUES
    11 (e.employee_id,
    12 e.last_name,
    13* e.first_name)
    14 /
    ON (e2.employee_id = e.employee_id)
    ERROR at line 3:
    ORA-00904: "E2"."EMPLOYEE_ID": invalid identifier
    Any responce much appreciated

    Hi,
    Columns going to be updated should not be in 'ON clause' , try to delete the line 6 of your query. By the way, there isno sense to update e2.employee_id = e.employee_id when matched, the equality is already verified.
    Nicolas.

Maybe you are looking for

  • Add New Virtual Network Interface to RRAS

    In the past (W2k3), adding an interface to the OS would also cause that interface to be added to RRAS.  I have a server running RRAS and it has multiple VMs running in Hyper-V.  I want to add an isolated VM that has a single port available from the I

  • Library scrolling really annoying slowly

    I've just updated to the newest iTunes and it's just so slow!! The scroll bar on the right hand side that lets me browse my library is on a go slow. Is there anything I can do to speed it up? Or is there any way of getting my old version back? Please

  • Creation of Dunning Leter

    Hi,   explain the steps to create dunning letter?   how should i retrieve the letter from PLD to dunning letter levels?

  • I can't get ichat to work

    I am completely new to mac (always used pc) but now have a mac mini and want to video conference with family in other cities. They are also on mac, but when I send an invitation they click accept but then it shows they decline. When they send an invi

  • Installation will not accept my serisl number

    Installation will not accept my serial number