Forms_DDL

Hello experts,              I am using Oracle fusion middleware 11.1.2 (oracle forms 11g) at windows 7.
I am trying to execute a query in oracle forms but unable.I have to store the query result into a integer type variable.
The Sql is:
select REGISTRATIONID  from (select registrationid ,dense_rank() over(order by REGISTRATIONID asc) ranking from TBL_REGISTRATION where ADMITTED=0)where ranking=1;
--this query gives a registration ID(a numeric value) in sql developer but not in oracle forms.
For this I have tried it with oracle forms but i think over clause flash some problem in oracle forms. Plesae give me solution. thank you regards aaditya .

Yes you are correct Aaditya dense_rank not supported by forms.
Try this
SQL>
create view tbl_reg_vu as
select registrationid ,dense_rank() over(order by REGISTRATIONID asc) ranking
from TBL_REGISTRATION where ADMITTED=0
View created.
SQL> select * from tbl_reg;
REGISTRATIONID   RANKING
             9         1
            10         2
            10         2
            25         3
            47         4
           500         5
6 rows selected.
In your forms change the statement as follows,
select REGISTRATIONID into REG from tbl_reg_vu where ranking=1;
I hope this will help you.

Similar Messages

  • How to give security to prevent using oracle forms "FORMS_DDL"  In Database

    How to prevent user to use FORMS_DDL in program or security in database to prevent this in Database level
    Thanks in Advance.

    user to use FORMS_DDLHuh? Your users write forms-modules? There is no way to "forbid" the use of FORMS_DDL. What about defining a rule for your developers that they are not allowed to do so. Then you could write a little JDAPI-program whichs "scans" new modules if FORMS_DDL is used.

  • FORMS_DDL with select into

    Hi,
    Here my code for un dynamic query in ORACLE FORMS
    ls_query:=' select count(*) into '     ||     pkg_hist.pkg_count_pdt ||' from      FN_WAVE_PROD_HIER_DETAIL where PROD_HIER_ID='||:b_produit.PROD_HIER_ID      ||' and division ='|| :b_produit.division || pkg_and_clause ;
    Forms_ddl ( ls_query );
    /* Where pkg_and_clause contains the dynamic statement
    and pkg_hist.pkg_count_pdt is a package variable
    I got the following error : ORA-24374: define not done before fetch or execute and fetch
    Does this code can works ?
    regards
    Edited by: Totem92 on 3 août 2011 07:57

    This forum is about C programming in general, and about using the Studio C compiler. Your question is about Oracle database programming. I suggest you try a database forum here:
    http://forums.oracle.com/

  • Date format in Forms_DDL

    DECLARE
    FROM_DT DATE := :CONTROL.FDT;
    TO_DT DATE := :CONTROL.TDT ;
    BEGIN
    FORMS_DDL('
    CREATE OR REPLACE VIEW abc_COST AS
    (SELECT OC.PJECT, OC.acode F_NO ,
    DECODE(OC.RECPT_DATE,NULL,OC.LOG_DATE,OC.RECPT_DATE) dt,
    DECODE(CCM.C_CODE,32,(NVL(OC.AMOUNT,0)),0) SCOST,
    DECODE(CCM.C_CODE,214,(NVL(OC.AMOUNT,0)),0) RCOSTS ,
    DECODE(CCM.C_CODE,32,0,214,0,(NVL(OC.AMOUNT,0))) OTHER
    FROM OTHER_COSTS OC, CAMAST LCM, C_MATR CCM
    WHERE PJECT = ''abc'' AND
    TO_CHAR(DECODE(OC.RECPT_DATE,NULL,OC.LOG_DATE,OC.RECPT_DATE),''DD/MM/YYYY'') BETWEEN '''|| TO_CHAR(FROM_DT,'DD/MM/YYYY') ||''' AND '''|| TO_CHAR(TO_DT ,'DD/MM/YYYY' )||''' AND
    OC.LPO_ID = LCM.LPO_ID AND
    LCM.CT_CODE = CCM.CT_CODE
    here example if i give FDT value is '10/10/1994' and TDT value is '11/10/1994' the query pics all day and month of 10 and 11 .
    between 2 date below year 2000 is not working.
    can anybody help me.

    Most likely reason is that you have time stamp on the date field on DB. When you enter 2000 its interpreted as 2000 00:00:00
    where as if you select
    to_char(field_name,'YYYY HH24:MI:SS')
    should have hours , minute and sec attached to it.
    In pre-query use following code
    copy( '# between to_date('''| |to_char(trunc(:date_field),'MM/DD/YYYY') | |''',''MM/DD/YYYY'') and to_date('''| | to_char(trunc(:date_field+1),'MM/DD/YYYY')| |''',''MM/DD/YYYY'')', 'date_field');
    Let us know if it works.

  • Forms_DDL with Select

    Hi there,
    I would just like to know if it would be possible to pass a Select statement to forms_ddl? Since I need to use a variable in the 'From' clause, I was wondering if forms_ddl could be used?
    thnx

    If you needed the answer that urgently you should have just tried it for yourself. Then you would have discovered that:
    (1) we can put a SELECT statement in a FORMS_DDL call and have it execute successfully;
    (2) that's useless to us because, as Steve points out, FORMS_DDL is a procedure and can't return any values.
    So you would have had your answer quicker and got the warm inner glow that comes from figuring something out for yourself.
    Cheers, APC

  • Using Forms_DDL getting error ORA-24374-Any Ideas?

    Hi all,
    I am getting the following error
    ORA-24374: define not done before fetch or execute and fetch
    I am using the forms_ddl built-in and believe that it has something to do with this. I have looked up the error and there is no docs on it. If anyone has information about this error or a possible route I can go about it would be greatly appricitated.
    Thanks
    Sean
    null

    ORA-24374 define not done before fetch or execute and fetch
    Cause: The application did not define output variables for data being fetched before issuing a fetch call or invoking a fetch by specifying a non-zero row count in an execute call.
    Action: Issue OCI define calls for the columns to be fetched.
    null

  • Varchar2 variable in Forms_DDL

    hi
    I need to refer to a varchar2 variable within a forms_ddl call e.g
    declare
    myvar varchar2(10) ;
    begin
    forms_ddl ('create or replace view myview as
    select * from emp where job = myvar');
    end;
    how do I make forms_ddl know the value in myvar? I have tried -- job = ' ||myvar||''); and I get ORA-936 missing expression.
    anybody know the solution please help. NB I dont want to hardcode the value of myvar!
    Mbachi

    Hello
    Probably, you are missing quotations. If the "JOB" is a varchar2 column, then make it
    forms_ddl('create or replace view myview as select * from emp where job = '||''''||myvar||'''');
    This should work, if you still get some problems then get back to me at [email protected]
    Regards,
    Asif Momen.

  • Calling Package Function dynamically using Forms_DDL

    I am trying to write a validation trigger which will validate entries within a text field. It will call a packaged function based on an entry within the Rule form field. As the data within the text field will vary (sometimes numeric, date, text etc), the validation function will also vary accordingly. Example details are shown below (this example will force the entry of a Y or an N):
    FORM FIELDS
    ARG_DEFAULT1 X (This is the parameter to be submitted to the function)
    RULE1 VAL_CHK_0001 (Function to be called).
    FUNCTION CODE
    FUNCTION VAL_CHK_0001 (P1 VARCHAR2) RETURN NUMBER IS
    SQL_RESULT NUMBER;
    ALERT_ID ALERT;
    ALERT_OK NUMBER;
    BEGIN
    IF UPPER(P1) NOT IN ('Y', 'N') THEN
    :GLOBAL.MSG := 'You must enter either "Y" for Yes or "N" for No - please re-enter';
    SQL_RESULT := '1';
    ALERT_ID := FIND_ALERT('VAL_ERROR_ALT');
    SET_ALERT_PROPERTY(ALERT_ID, TITLE, 'Validation Error');
    SET_ALERT_PROPERTY(ALERT_ID, ALERT_MESSAGE_TEXT, :global.msg);
    ALERT_OK := SHOW_ALERT(ALERT_ID);
    RAISE FORM_TRIGGER_FAILURE;
    RETURN SQL_RESULT;
    ELSE
    SQL_RESULT := '0';
    RETURN SQL_RESULT;
    END IF;
    END VAL_CHK_0001;
    VALIDATION TRIGGER CODE (CURRENT)
    DECLARE
    PKG_RUN VARCHAR2(200);
    BEGIN
    IF :PARAMETER_BK.RULE1 IS NOT NULL THEN
    PKG_RUN := ENV_VALIDATE_PKG.VAL_CHK_0001(:PARAMETER_BK.ARG_DEFAULT1)):
    FORMS_DDL(PKG_RUN);
    END IF;
    END;
    When the Rule1 field data is hard coded in (as shown above), it all runs fine and the Alert box is displayed as expected.
    I need the function name to refer to the rule1 parameter (and not a specific value) as shown below:
    PKG_RUN := 'ENV_VALIDATE_PKG.'||:PARAMETER_BK.RULE1||'('||:PARAMETER_BK.ARG_DEFAULT1||')';
    The form compiles without any errors but when the trigger runs, it completely ignores the Forms_ddl call and does nothing.
    I have hunted through this forum, Metalink, Ask Tom etc and have had no success in finding any solution. I have followed the instructions within NOTE:1017160.6 (How to programmatically call a procedure or function using Oracle Forms) which has got me this far. Nothing that I have read so far has suggested that what I am attempting to do is impossible.
    We are using Oracle Forms 10G with an Oracle 9.0.4 database.
    Any suggestions or advice will be greatly received!
    Thanks

    Like the others have said, Forms_DDL is a one-way street. You can only pass values to it, nothing can be returned. But you could probably get Forms_DDL to work if you wrote your validations as stored procedures that had only IN parameters. Then if the edit ran ok, just terminate normally, but if there is an edit error, to a Raise_application_error.
    Then you could use Forms_DDL to call the procedure, and check for Form_Success after the call. If it failed, you might be able to retrieve the error message from the Raise_application_error by checking SQLERRM. But that is completely untested, so I do not know whether it would work.
    The more sure method would be to call a package procedure on the database that calls Execute_Immediate, and then returns the result back to the calling form.
    Now a little advice: For generic routines such as this, pass dates and numbers as text, and you could cut down on the number of procedures you need to create and use.
    And last note: Do NOT define numeric variables, like SQL_Result, and then set the value using quotes. You are forcing the PL/SQL process to convert text to number. Always set numeric values like this:
    SQL_Result := 1;
    Now the question I am almost afraid to ask: What problem are you solving by creating these generic edit routines? I am wondering if you could just as easily write simple edit processes faster. ...the only way to completely parameterize editing would be to call a process on the database for each column value, passing the column name and value.

  • FORMS_DDL NOT WORKING

    Dear All,
    I am using forms_DDl to create view but its not working my code is
    1)     SELECT TO_CHAR(MAX(ACNT_DOC_DT),'MM/YYYY') INTO P_MONTH FROM GS_ACNT_DOC;
    2)          M_VIEW:='CREATE OR REPLACE VIEW V_DATA_AS_OF_MONTH(DEPT_NAME,REG_DEPT_CODE,PREM,SI,COMM,CLAIMS) AS SELECT DEPT_NAME,REG_DEPT_CODE,SUM(NVL(REG_GROSS_LC_PREM,0)),SUM(NVL(REG_LC_SI,0)),SUM(NVL(REG_BRK_LC_COMM,0)),(SELECT SUM(DECODE(ACNT_DOC_FLAG,''D'',NVL(ACNT_LC_AMT,0),-NVL(ACNT_LC_AMT,0))) FROM GS_ACNT_DOC WHERE ACNT_DEPT_CODE=OUTER.REG_DEPT_CODE
    AND ACNT_INT_ENT_YN=''Y'' AND ACNT_DOC_TYPE=''L'' AND TO_CHAR(ACNT_DOC_DT,''MM/YYYY'') = '''||P_MONTH||''') FROM GS_REGISTER OUTER,GM_DEPARTMENT
    WHERE TO_CHAR(REG_APPRV_DT,''MM/YYYY'') ='''|| P_MONTH||''' AND REG_DEPT_CODE=DEPT_CODE
    GROUP BY REG_DEPT_CODE,DEPT_NAME;';
    3) FORMS_DDL(M_VIEW);
    Please help me out......
    thaks

    Hello
    1.) OK, but where's the problem here?!?
    2.)
    GROUP BY REG_DEPT_CODE,DEPT_NAME*;*';remove the semicolon from your SQL Statement
    If it "doesn't work" (well my coffee cup doesn't work too, and guess what: the problem is it's empty but if I don't tell you what's not working you will never know) after that you could try to create your view in SQL*Plus and see what errors it throws.
    And why do you want to create this view dynamically? Just create it once in SQL*Plus and select from it afterwards.
    cheers
    P.S.: DDL like create or replace view do not need a commit but will issue an implicit commit (all transactions done before your call to forms_ddl will be commited).

  • Updated records using Dynamic FORMS_DDL

    Hello everybody:
    I need help for you guys. I'm working with Form9i and created a push button that when I press it, it should be updated some record depending of some conditions. I read that with dynamics FORMS_DDL, I can able to perform it, but when I put the below code in the “WHEN-BUTTON-PRESSED” trigger I get an “Error” that meaning that the forms was not success. Please, somebody tell me where is the error. Thanks.
    if (:CONTROL_BTN.CHK_FINAL = 'N') then
         forms_ddl('update aapt_checklists
                                            set achk_reviewed_date = ' || :CONTROL_BTN.DATE_LETTER ||
    ' where achk_item in (select achk_item
                                            from aapt_checklists, aapt_reviews
                             where ' || :global.where_updated ||
    ' and achk_reviewed_date is null
    and achk_1st_notification_date is null
    and arev_seq = achk_arev_seq)     
    and achk_1st_notification_date is null
    and achk_reviewed_date is null');
    end if;
    if (form_success) then
         message('OK');
    else     
    message('Error');
    end if;

    You don't need dynamic SQL for that. Here is what you can do (Note the new v_fmt variable, and the update SQL below):
    DECLARE
      def_where varchar2(500) := NULL;
      v_month varchar2(2)   := :CONTROL_BLOCK.Q_MONTH;
      v_day   varchar2(2)   := :CONTROL_BLOCK.Q_DAY;
      v_year  varchar2(4)   := :CONTROL_BLOCK.Q_YEAR;
      v_fmt   varchar2(10);
      v_date varchar2(20) := NULL;
    PROCEDURE check_date (in_date IN varchar2) IS
      al_id     Alert;
      al_button Number;
      temp_date date := NULL;
    BEGIN
      temp_date := to_date(in_date, 'MM/DD/YYYY');
    EXCEPTION
      when others then
        al_id := Find_Alert('CFG_ERROR');
        Set_Alert_Property(al_id, alert_message_text, 'You have selected an Invalid Date');
        al_button := Show_Alert( al_id );
        raise FORM_TRIGGER_FAILURE;
    END;
    BEGIN
      -- Criteria entered as MM/DD/YYYY
      if (v_month <> '00') and (v_day <> '00') and (v_year <> '0000') then
        v_date := v_month||'/'||v_day||'/'||v_year;
        v_fmt  := 'MM/DD/YYYY';
        check_date (v_date);
      -- Criteria entered as MM/DD
      elsif (v_month <> '00') and (v_day <> '00') and (v_year = '0000') then
        v_date := v_month||'/'||v_day;
        v_fmt  := 'MM/DD';
        check_date (v_date||'/'||'2000'); -- Hardcoded 2000 to check all possible MM/DD combos including Leap Year
        def_where := ' to_char(arev_appl_received_date, ''MM/DD'') = ''' || v_date || '''';
      -- Criteria entered as MM/YYYY
      elsif (v_month <> '00') and (v_day = '00') and (v_year <> '0000') then
        v_date := v_month||'/'||v_year;
        v_fmt  := 'MM/YYYY';
        def_where := ' to_char(arev_appl_received_date, ''MM/YYYY'') = ''' || v_date || '''';
      -- Criteria entered as MM
      elsif (v_month <> '00') and (v_day = '00') and (v_year = '0000') then
        v_date := v_month;
        v_fmt  := 'MM';
        def_where := ' to_char(arev_appl_received_date, ''MM'') = ''' || v_date || '''';
      -- Criteria entered as DD/YYYY
      elsif (v_month = '00') and (v_day <> '00') and (v_year <> '0000') then
        v_date := v_day||'/'||v_year;
        v_fmt  := 'DD/YYYY';
        def_where := ' to_char(arev_appl_received_date, ''DD/YYYY'') = ''' || v_date || '''';
      -- Criteria entered as DD
      elsif (v_month = '00') and (v_day <> '00') and (v_year = '0000') then
        v_date := v_day;
        v_fmt  := 'DD';
        def_where := ' to_char(arev_appl_received_date, ''DD'') = ''' || v_date || '''';
      -- Criteria entered as YYYY
      elsif (v_month = '00') and (v_day = '00') and (v_year <> '0000') then
        v_date := v_year;
        v_fmt  := 'YYYY';
        def_where := ' to_char(arev_appl_received_date, ''YYYY'') = ''' || v_date || '''';
      end if;
      update aapt_checklists
        set achk_reviewed_date = :CONTROL_BTN.DATE_LETTER
        where achk_item in
        in (select achk_item
                from aapt_checklists, aapt_reviews
                where to_char(arev_appl_received_date,v_fmt) = v_date
                    and achk_reviewed_date is null
                    and achk_1st_notification_date is null
                    and arev_seq = achk_arev_seq)
            and achk_1st_notification_date is null
            and achk_reviewed_date is null;
      --Condition for updated records in aapt.checklists table
      :global.where_updated := def_where;
      --Only when "INCOMPLETE - NEED ADD'L INFO" Status is selected
      def_where := def_where || ' and arev_status = 1427';
    END;

  • Forms_ddl not work

    hello and hi
    me have a text file name 12.txt which contain that type of data
    insert into yarn_booking_master values ('000083','17-DEC-92','1042','0','0','0','PARTY','CNF','X','X','POWER','22-FEB-08','POWER','23-FEB-08','N','X','X','0','X','N');
    me write in trigger
    TextFile := text_io.fopen (:FileName, 'R');
    Text_IO.Get_Line(12,vline); --vline  is variable varchar2(30000)        
    Forms_DDL( 'vline' );
    Forms_DDL( 'Commit ' );
    but no data insert into tbale

    Please bve aware that FORMS_DDL is a call that was intended to be used for DDL calls. Inserts are not DDL, they are DML. There is a substantial difference between the two when it comes to commits. DDL calls automatically commits themselves. DMLs of course don't automatically commits.
    Inserts should be done from client or db side PLSQL and them a commit should be issued from that same code. If you must send DML SQL code to the database from a text file, use something like SQL*Plus or some other command line tool and include the commit in the SQL.

  • Changing password using forms_ddl not working

    All,
    I am building a custom logon screen that is similar to Metalink Document 30860.1. The form works fine until it encounters error "ORA-28001 password expired". When this occurs the user is moved to a different block (CHNG_PSSWRD) to change their password.
    In the OK button on this block I use the forms_ddl command to alter the user's password, then logout and log back in using the new password. This is where the application fails. The forms_ddl built-in returns form_faliure=false however, the password does not change and when the code attempts to logon the user back on the form encounters error ORA:1017. I can verify this by logging into SQL*PLUS, the password is still expired.
    Here is the relevant code:
    When-Button-Pressed (Item Level, on LOGON_BLOCK.BUTTON_CONNECT)
    DECLARE
         v_connectResults varchar2(20);
    BEGIN
         v_connectResults := connect_to;
    IF v_connectResults = 'YES' THEN
    leave(TRUE);
    END IF;
    :global.logon_tries := TO_NUMBER(:global.logon_tries) - 1;
    IF TO_NUMBER(:global.logon_tries) = '0' THEN
    leave(FALSE);
    END IF;
    IF v_connectResults = 'EXPIRED_PASSWORD' THEN
         msg_popup(dbms_error_text,'E',FALSE);
    go_block('CHNG_PSSWRD');
    END IF;
    END;
    FUNCTION connect_to RETURN VARCHAR2 IS
    BEGIN
    IF :logon_block.username IS NULL THEN
    BELL;
    END IF;
    LOGON(:logon_block.username,
    :logon_block.password||'@'||:logon_block.connect, FALSE);
    IF FORM_SUCCESS THEN
    RETURN 'YES';
    ELSIF dbms_error_code = -28001 then
         RETURN 'EXPIRED_PASSWORD';
    ELSE
         msg_popup(dbms_error_text,'E',FALSE);
    RETURN 'NO';
    END IF;
    END;
    PROCEDURE leave(p_status BOOLEAN DEFAULT TRUE) IS
    BEGIN
    IF p_status THEN
    :global.logged_on := 'TRUE';
    ELSE
    :global.logged_on := 'FALSE';
    END IF;
    EXIT_FORM;
    END;
    This procedure is called by the OK button on CHNG_PSSWRD block
    PROCEDURE change_password (p_passWrd in varchar2)
    IS
    v_un varchar2(60) := get_application_property(username);
    v_cs varchar2(60):= get_application_property(connect_string);
    statement varchar2(100);
    begin
    -- build the alter user statement for changing the password
    statement := 'alter user ' ||v_un ||' identified by ' || p_passWrd;
    -- print the contents of statement & connect string for testing purposes
    msg_popup(statement || ' connect string: ' || v_cs,'I',FALSE);
         -- execute the alter user statement
    forms_ddl(statement);
    -- if RDBMS does not accept password, display database error message
    if FORM_FAILURE then
         msg_popup(DBMS_ERROR_TEXT,'E',TRUE);
    else
         -- password was accepted, log user back in with new password
         logout;
         if FORM_FAILURE then
              msg_popup(DBMS_ERROR_TEXT,'F',TRUE);
         end if;
         logon(v_un,p_passWrd ||'@'||v_cs,FALSE);
         -- Display error message if login fails
         if FORM_FAILURE then
              msg_popup(DBMS_ERROR_TEXT,'F',TRUE);
         else
         msg_popup('Your Password has been changed.','I',True);
         end if;
    end if;
    end;
    This code executes on the form that runs the custom logon form
    On-Logon (Form Level)
    CALL_FORM('co_f_logon', NO_HIDE);
    IF :global.logged_on != 'TRUE' THEN
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    What am I doing wrong?
    thanks for you help in advance
    Jim C

    This approach may not be the safest, as having a special account able to change other users passwords can bring important security considerations.
    For example, suppose the user and password of that special account are "hard coded" in your application. That means you will not be able to change that password often. So, it will bee too easy to use a brute-force attac, to guess this password. After that, you could simply change the password of any user you want, and impersonate it. Of course, there are many other considerations to think of, but I'm sure you get the idea by now.
    A much better approach could be to write a little program that receives username, old password, new password and connection as parameters, and uses the Oracle OCI API to change the password. Then you could simply call this little program from your application when needed, providing the right parameters, to do the trick.
    I found a good sample of this in metalink note 52718.1, Handling Expired Passwords from within Forms (V4.5/5.0)
    In this note, you'll find a little pro-c code to do just that. There is also another note (124970.1) with a little more complicated sample made in Java.
    (you may need to select All Sources on metalink to find it, as they have been archived and are no longer presented if you search only the knowledge base).
    hope this helps.
    Eng. Gabriel Rosales Aymerich, M.Sc.
    Senior DBA
    Mercado de Valores de Costa Rica

  • Using forms_ddl in forms

    hi all
    we want to use FORMS_DDL for executing each n every DDL and DML commands in forms.
    is it true that forms_ddl decrease the processing time??
    kindly help
    thanks

    Forms_ddl() is generally used to provide DDL commands. DML can be simply done in a PL/SQL block.
    Francois

  • Forms_ddl giving the problem?

    hi all
    i am using the following codes for creating passwords but its not working with profile when i remove profile then it works plz give me some clues
    here is the code
    forms_ddl('create user '||:user||' identified by '||:pass ||
    'PROFILE passlock ');
    sarah

    hi sir
    sir during compilation its not giving error,its not firing @@ all when i remove profile passlock then it works but with profile passlock its not working.
    here is the full codes:
    BEGIN
    forms_ddl('create user '||:user||' identified by '||:pass ||
    'PROFILE passlock ');
    forms_ddl('grant connect,myrole to '||:USER);
    if form_success then
         message('User created Successfully');
         end if;
    if not form_success then
         message('User Not created Please Enter User Name and Password');
         end if;
    END;
    when i press button its giving me the last message"'User Not created Please Enter User Name and Password'"
    sarah

  • FORMS_DDL  Exception

    Hi All
    If there any way to Haddle exception on FORMS_DDL errors.
    Regards
    Lakmal

    All I know of is to check Form_success.
    <p>If you really want to use dynamic sql AND view the exception text, you need to use the Forms Exec_SQL package.
    <p>Search this forum for topic "Doubt in dynamic Sql"

  • Forms_ddl instruction causes strange error

    Hello friends at www.oracle.com ,
    here I have a program where 2 cursor loops (c1, declared with for update clause, and c3) are needed.
    If, after cursor c3 finds data, an update instruction is used where current of c1, I can't commit this updated data with forms_ddl ('commit') because a strange error, "fetch out of sequence", is raised.
    If I call forms_ddl ('commit') outside both loops, it works, but it doesn't save all data that was updated.
    How can I solve this problem?
    Thanks, and best regards,
    Franklin Gonçalves Jr.

    Hello Hernan,
    thanks for your answer. Now my problem is: how can I immediately save data that was updated with a cursor opened with where current of? Do you know a workaround?
    If there's a way for me to instruct Forms to immediately update data - that means, I wouldn't create a transaction for each delete, insert or update -, please let me know. In the actual situation, Forms isn't saving anything.
    Best regards,
    Franklin Gonçalves Jr.

Maybe you are looking for

  • Error while starting Oracle Management server service

    Hi all, We are about to administer our database using Oracle Enterprise manager. For that we have configured OEM in a Test PC and tried to connect our database. First i have logged in to OEM Console with Sysman login id using the default password "oe

  • Issue with message mapping.

    HI All, I am working on a JDBC-XI-RFC scenario. I have two data types, two message types and two message interfaces. now, i have created the message mapping and mapped the fields of both sender and reciever message types. To test with sample data now

  • Restful Webservice custom connector

    Hi All, I would like to know the best practice to create custom connector for Restful web service methods.Currently we are following simple java code which connects to service provider and pass the JSON object and perform the required actions. Is it

  • Front row - black screen with audio

    I recently installed Leopard on my old iBook. When i start Front row, I can see the menus , trailer list, movie list etc., but when i play anything, the screen goes blank, i can see a progress bar moving(which auto-hides), and audio is also OK, but t

  • TS3742 Glitch in the system?

    For the part, Kernel panic symptoms in OS X Mountain Lion, I have seen that message before, but i'm not on Mountain Lion. I'm on 10.7.5!