Home » Developer & Programmer » Forms » exec_sql restriction 11g2? (oracle plsql- 11g2)
exec_sql restriction 11g2? [message #529159] Fri, 28 October 2011 23:10 Go to next message
mahnazzz
Messages: 98
Registered: July 2011
Location: Iran
Member
Hi. I run following code in 10g successfully but with ora-24333 error in 11g2. would please help me.
begin

       v_PRS_STR:=  'begin  insert into hrs_prsntemp  select 1 a,1 b from dual; commit; end;';
 
        V_connection_id := EXEC_SQL.DEFAULT_CONNECTION;
        V_cursorID      := EXEC_SQL.OPEN_CURSOR(V_connection_id);
        begin
        EXEC_SQL.PARSE(V_connection_id,V_cursorID,v_PRS_STR, exec_sql.V7);    
        
        V_nIgn := EXEC_SQL.EXECUTE(V_connection_id,V_cursorID);
        
        EXCEPTION
            when EXEC_SQL.Package_Error	then 
                P_ErrorCode:=exec_sql.last_error_code(V_connection_id);
                V_sqlerrm:=exec_sql.last_error_mesg(V_connection_id);
                
        END;     
        IF vRAISE_ERROR THEN
            MESSAGE(V_sqlerrm);
            RAISE FORM_TRIGGER_FAILURE;
        END IF;

        EXEC_SQL.CLOSE_CURSOR    (V_connection_id,V_cursorID);
        EXEC_SQL.CLOSE_CONNECTION(V_connection_id);    
      
END;  
Re: exec_sql restriction 11g2? [message #529161 is a reply to message #529159] Fri, 28 October 2011 23:16 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
bcm@bcm-laptop:~/Downloads$ oerr ora 24333
24333, 00000, "zero iteration count"
// *Cause:  An iteration count of zero was specified for the statement
// *Action: Specify the number of times this statement must be executed
Re: exec_sql restriction 11g2? [message #529174 is a reply to message #529161] Sat, 29 October 2011 05:43 Go to previous message
mahnazzz
Messages: 98
Registered: July 2011
Location: Iran
Member
Is there restriction on exec_sql in 11g.2. as I mentioned before on 10g this syntax does not have error.
Previous Topic: forms 6i compatible issue with Win XP
Next Topic: Print Report output to local printer on button click in form
Goto Forum:
  


Current Time: Thu Sep 12 18:47:17 CDT 2024