How to run four procedures, in order, by using anonymous block

Hello

I am trying to run four procedures, in order, by using anonymous block. If one of the procedure fails remaining should get executed. How can I achieve this?
For example:
BEGIN
PROC1;
Proc2; -Suppose that Proc2 will fail, it should not affect the execution of Proc3 and proc 4
Proc3;
Proc 4;
END;

Thank you!

Hello

Maybe this can help you:

BEGIN
  begin
    Proc1;
  exception
    when others then
      dbms_output.put_line('proc1 ' || sqlcode || ' ' || sqlerrm);
  end;
  begin
    Proc2;
  exception
    when others then
      dbms_output.put_line('proc2 ' || sqlcode || ' ' || sqlerrm);
  end;
  begin
    Proc3;
  exception
    when others then
      dbms_output.put_line('proc3 ' || sqlcode || ' ' || sqlerrm);
  end;
  begin
    Proc4;
  exception
    when others then
      dbms_output.put_line('proc4 ' || sqlcode || ' ' || sqlerrm);
  end;
END;

In your case, it may be useful if your procedures have their own exception handlers, so they never fail. But then you need a sort of exception information that is displayed.

concerning
Kay

Tags: Database

Similar Questions

  • How to run a procedure with refcursor to more

    an entry is User_id = CMSH_USER; p_Ot-num =-9999; p_ppst_flag = 'P' and I want to take the trace by running this procedure, and any1 help me, how to run this procedure below and how to use these 5 on refcursor...
     procedure Pr_get_mny(p_ot_Num      IN NUMBER,
                                     p_User_Id      IN VARCHAR2,
                                     p_Ppst_Flag IN VARCHAR2,
                                     Ref_Cur        OUT Ref_Cursor,
                                     CUR_OPT        OUT Ref_Cursor,
                                     CUR_TAXRATE    OUT Ref_Cursor,
                                     CUR_TAXHOLD    OUT Ref_Cursor,
                                     CUR_PENDGAACNT OUT Ref_Cursor
                                     ) IS

    If the goal is to Test, the best tool is SQL

    var ref_cur refcursor
    var cur_opt refcursor
    var cur_taxrate refcursor
    var cur_taxhold refcursor
    var cur_pendgaacnt refcursor 
    
    exec pr_get_mny(-9999,'CMSH_USER','P',:ref_cur,:cur_opt,:cur_taxrate,:cur_taxhold,:cur_pendgaacnt)
    
    print ref_cur
    print cur_opt
    print cur_taxrate
    print cur_taxhold
    print cur_pendgaacnt
    
  • How to run a procedure with parameters in pl/sql collections?

    I created a procedure with parameter from the collection. Can somone help me how to run a procedure in passing the parameters in the collection.
    Package and how to create is successful. But I get the error message when executing the procedure.

    ORA-06550: line 3, column 19:
    PLS-00222: no function with name 'T_TAB' does exist in this scope

    I gave the example of code here. Can someone please help me solve this problem.

    -Spec package

    create or replace package pkg_dist is

    TABLE index IS THE NUMBER of t_tab_num TYPE of PLS_INTEGER;


    procedure prc_test (a t_tab_num IN,
    b IN t_tab_num,
    c IN OUT t_tab_num);
    end pkg_dist;

    -Package body

    create or replace package body is pkg_dist

    procedure prc_test (a t_tab_num IN,
    b IN t_tab_num,
    c IN OUT t_tab_num) is


    Start


    IF (a (16) = 0) then
    (16) c: = 0;
    c (17): = 0;
    c (18): = 0;
    end if;
    c (15): = (14)-(15)-a (16);
    (16) c: = b (16) /b (17);
    c (17): = 50;
    (18) c: = a (16) * 2;

    end prc_test;
    end pkg_dist;

    -executeing procedure

    declare
    TABLE index IS THE NUMBER of t_tab TYPE of PLS_INTEGER;
    x t_tab: = t_tab (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16);
    y t_tab: = t_tab (0,10,15,20,25,30,35,40,45,50,60,75,100,125,150,200,250,500);
    z t_tab;
    BEGIN
    pkg_dist.prc_test (x, y, z);
    dbms_output.put_line (z (18));
    END;

    Error:
    --------------------------------------------------------------------------------
    ORA-06550: line 3, column 19:
    PLS-00222: no function with name 'T_TAB' does exist in this scope

    My suggestion would be:

    CREATE OR REPLACE PACKAGE pkg_dist IS
    
       PROCEDURE prc_test (a IN SYS.odcinumberlist, b IN SYS.odcinumberlist, c IN OUT SYS.odcinumberlist);
    END pkg_dist;
    
    CREATE OR REPLACE PACKAGE BODY pkg_dist IS
       PROCEDURE prc_test (a IN SYS.odcinumberlist, b IN SYS.odcinumberlist, c IN OUT SYS.odcinumberlist) IS
       BEGIN
          IF (a (16) = 0) THEN
             c (16) := 0;
             c (17) := 0;
             c (18) := 0;
          END IF;
    
          c (15) := a (14) + a (15) + a (16);
          c (16) := b (16) / b (17);
          c (17) := 50;
          c (18) := a (16) * 2;
       END prc_test;
    END pkg_dist;
    /
    
    DECLARE
       x   SYS.odcinumberlist;
       y   SYS.odcinumberlist;
       z   SYS.odcinumberlist;
    BEGIN
       x := sys.odcinumberlist (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16);
       y := sys.odcinumberlist (0,10,15,20,25,30,35,40,45,50,60,75,100,125,150,200,250,500);
       z := sys.odcinumberlist (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
       pkg_dist.prc_test (x, y, z);
       DBMS_OUTPUT.put_line (z (18));
    END;
    /
    

    See you soon,.
    Manik.

  • How to run a procedure with the object as OUTPUT parameter

    Hello

    I have a procedure and it composed of 2 parameters, there is an input parameter and it's some ID (NUMBER datatype) and 2nd parameter is an output parameter and it an object type. I want to run this procedure, but not able to do the same thing. Can someone please suggest me how to run a procedure that got the object as output parameter.

    Thank you very much in advance for your support.

    Example:

    SQL> create or replace type t_obj as object (ename varchar2(10), deptno number);
      2  /
    
    Type created.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  create or replace procedure myproc (p_empno in number, obj out t_obj) is
      2  begin
      3    select t_obj(ename, deptno)
      4    into obj
      5    from emp
      6    where empno = p_empno;
      7* end;
    SQL> /
    
    Procedure created.
    
    SQL> set serverout on
    SQL> declare
      2    v_obj t_obj;
      3  begin
      4    myproc(7788, v_obj);
      5    dbms_output.put_line(v_obj.ename||','||v_obj.deptno);
      6  end;
      7  /
    SCOTT,20
    
    PL/SQL procedure successfully completed.
    
  • I try to use windows excel for windows vista and am asked for a product key. How can I find out what order to use the product?

    I try to use windows excel for windows vista and asks me to enter a product key. I am the sole owner of the computer but have no installation CD for recharge Excel. How can I find out what order to use the product? From now the product doesn't let me do anything. Help, please!

    Hello

    Did you pay for Office (including Excel) in a packaging separated when you bought your computer?

    Office is not included with your purchase of computer for free.

    Most new computers come with a trial version of Office that lets 'x' number of days usuage.

    After this test times out, you will have to buy Office.

    And the product key on the computer case or laptop for the operating system, not for the desktop Suite.

    Here is the link for the Microsoft Store to Office products:

    http://www.microsoftstore.com/store/msstore/HTML/pbPage.Office_Category_Page?ICID=Home_4up_1_OfficeCatPage

    And you might be interested in the free Open Office Suite of Office Applications.

    http://www.OpenOffice.org/

    For any other question about Office, please repost in the Office Forums:

    http://answers.Microsoft.com/en-us/Office

    See you soon.

  • How to run packages in the order of the sequences/ODI11g

    Hello
    I developed 10 package and I want to run these packages in order, one by one.
    When 1 package done that should start automatically 2 package when it finished then should start 3 package and package of 10.


    Concerning
    Sher

    Hello

    Generate a script for each of the 10 package.
    Then create another packet saying MAIN_PACKAGE
    Place 1 package scenario then the scenario of the 2nd package and so not until the 10th scenario package
    Join 1e-2e from line OK and will continue a 10th.

    When you run the whole package your child MAIN_PACKAGE (package1, package2,... package10) will be executed in a sequence provided no child package fails. In the case of any breach your execution stop there only.

    Thank you
    Fati

  • How to run a procedure created dynamically with out parameter

    Hi guys,.

    a friend I need to run a procedure whose name will change dynamically and this procedure is with 2 out parameter. I need to capture the value of these 2 output settings, here I m giving my code too...

    declare
    int v_emp_id: = 100013;
    p_reg_off varchar (5): = "R";
    int p_user_id: = 6;
    v_status varchar (200);
    v_message varchar (200);
    v_Formula varchar (100);
    int v_number: = 1;

    Start
    v_Formula: = 'call testsp_ | v_number | ' ('| v_emp_id |', "'| p_reg_off |") «, » || p_user_id | v_status, v_message)';
    DBMS_OUTPUT. Put_line (v_Formula);
    immediately run v_Formula;
    end;


    and my procedure structure is like this


    CREATE OR REPLACE PROCEDURE testsp_1
    (
    p_emp_id INT,
    p_reg_off TANK,
    p_user_id INT,
    p_status OUT NOCOPY INT,
    p_message OUT NOCOPY VARCHAR2
    )
    AS
    Start
    end;

    Please help me...

    Hello

    You must use the "USING" clause to execute dynamic sql with parameter out.

    Example: http://download-west.oracle.com/docs/cd/B28359_01/appdev.111/b28370/dynamic.htm

    Arun-

  • How to run an interface or a package using SDK API

    I know how to run the scenarios generated from the interfaces or packages by using the following methods of SDK:

    Invoker RemoteRuntimeAgentInvoker = new RemoteRuntimeAgentInvoker (pAgentUrl, IVsWebBrowserUser, Ppassword)
    invoker.invokeStartScenario (pScenName, pScenVersion, pVariables, pKeywords, pContextCode, pLogLevel, pSessionName, pSynchronous, pWorkRepName);

    But I want to know if I can directly invoke a running interface/package using the API of the SDK and don't generate their scripts?

    Anyone know it and could you tell me the methods? Appreciate for your help.

    In my view, ODI SDK currently does not offer any method to run the interface or package. Although you can stop/resume a session, but cannot start a new session, so I guess that you can run manually or hand over the package and interfaces scenario for build and run through the SDK package.

  • Error in procedure Stoerd, but working in anonymous block.

    declare
    CUR cursor is
    Select 'Edit'. Object_type | » '|| Object_name | ' Compile ' Invalid_Obj, Object_Type, Object_Name
    From Dba_Objects has
    Where A.Owner = 'Dataload' and A.Status = 'Invalid';
    Begin
    For I In news
    Loop
    Begin
    Immediately run I.Invalid_Obj;
    Exception
    While others then
    NULL; - Dbms_Output.Put_Line (Sqlerrm |': ' |) I.Object_Type |' '|| I.Object_Name);
    End;
    End loop;
    Exception
    While others then
    NULL; - Dbms_Output.put_line (SQLERRM);
    End;

    Above anonymous block execute successfully.

    but when I create as stored procedure then, it gives the error as
    There is no such thing as Dba_Objects.

    Please, suggest what I do for the stored procedure?

    Published by: Nilesh hole on June 2, 2010 12:00 AM

    If you don't have any rights sys you that should

    (a) request the administrator to run utlrp (preferably, as this always runs compilation in the right order)
    (b) do not use dba_objects but user_objects, assuming that you are connected as a LOADING

    In a normal situation, this should not be necessary, so you should always question why you even want to do (and are reinventing the wheel). The dbms_utility package also has a COMPILE_SCHEMA procedure.

    -----------
    Sybrand Bakker
    Senior Oracle DBA

  • How to run a procedure of APEX?

    Good night

    I have created a process to read a flat file and stores it in a database, I've tried for SQL console and it worked very well, so I created an application that calls the procedure of the button, but not agree, it must be

    file_browse: select the file to load...

    Source
    Process [Download Source]
    -------------------------------------------------- -------------------------------------------------- ---------
    Declare
    Start
    Proc_Read_File (: P5_LECTURA_ARCHIVOS)
    end;
    -------------------------------------------------- -------------------------------------------------- ---------

    UTL_FILE procedure works, to do something?

    I appreciate your attention and offered cooperation


    This is the process:



    DECLARE
    utl_file.file_type v1.
    VARCHAR2 (2048) v2;
    number now; -Cuenta el total of characters...
    CAR1 number; -Cuenta the del character position 1
    car2 number; -Cuenta the del character position 1
    number of tot_comas; -Contador comas
    ACUM NUMBER;
    CADEN VARCHAR2 (200);
    NUMBER OF TOTAL_CAR;
    POS_1 NUMBER;
    POS_2 NUMBER;
    Number of rest;
    Number of Cont_Filas;
    cod_archivo varchar2 (70);
    -Declaracion las columns
    col_1 aaa_p_hisfac_alc. Type of SUSCRIPTOR %;
    col_2 aaa_p_hisfac_alc. Type of NUM_CONTRATO %;
    col_3 aaa_p_hisfac_alc. Type of COD_DANE_DPTO %;
    col_4 aaa_p_hisfac_alc. Type of COD_DANE_MPIO %;
    col_5 aaa_p_hisfac_alc. Type of ZONA_IGAC %;
    col_6 aaa_p_hisfac_alc. Type of SECTOR_IGAC %;
    col_7 aaa_p_hisfac_alc. Type of MANZANA_VEREDA %;
    col_8 aaa_p_hisfac_alc. Type of NUM_PREDIO %;
    col_9 aaa_p_hisfac_alc. Type of CONDICION_PREDIO %;
    COL_10 aaa_p_hisfac_alc. Type of DIRECCION_PREDIO %;
    Col_11 Aaa_P_Hisfac_Alc.Num_Factura%Type;
    Col_12 aaa_p_hisfac_alc. Type of FECHA_EXPEDICION_FACTU %;
    Col_13 aaa_p_hisfac_alc. Type of FECHA_INICIO_PERIODO %;
    col_14 aaa_p_hisfac_alc. Type of DIAS_FACTURADOS %;
    col_15 aaa_p_hisfac_alc. Type of COD_CLASE_USO %;
    col_16 aaa_p_hisfac_alc. Type of UNID_MULTIUSUARIOS_RESIDENCIAL %;
    col_17 aaa_p_hisfac_alc. Type of UNID_MULTIUSARIO_NORESIDENCIAL %;
    col_18 aaa_p_hisfac_alc. Type of HOGAR_COMUNITARIO %;
    col_19 aaa_p_hisfac_alc. Type of USUA_FACTURADO_AFORO %;
    col_20 aaa_p_hisfac_alc. Type of USUA_CON_CARACTERIZACION %;
    col_21 aaa_p_hisfac_alc. Type of CARGO_FIJO %;
    col_22 aaa_p_hisfac_alc. Type of CARGO_VERTIMENTO_BASICO %;
    col_23 aaa_p_hisfac_alc. Type of CARGO_VERTIMENTO_COMPL %;
    col_24 aaa_p_hisfac_alc. Type of CARGO_VERTIMENTO_SUNTUARIO %;
    col_25 aaa_p_hisfac_alc. Type of CMT_COSTO_MEDIO_RETRIBUTIVA %;
    col_26 aaa_p_hisfac_alc. Type of VERTIMENTO_PERIODO_M3%;
    col_27 aaa_p_hisfac_alc. Type of VLR_FACTURADO_VERTIDO %;
    col_28 aaa_p_hisfac_alc. Type of VLR_SUBSIDIO %;
    col_29 aaa_p_hisfac_alc. Type of VLR_CONTRIBUCCION %;
    col_30 aaa_p_hisfac_alc. Type of FACTOR_SUBS_CONTR_CARGO_FIJO %;
    col_31 aaa_p_hisfac_alc. Type of FACTOR_SUBS_CONTR_VERTIMIENTO %;
    col_32 aaa_p_hisfac_alc. Type of CARGOS_CONEXION %;
    col_33 aaa_p_hisfac_alc. Type of PAGO_ANTICIPADO_SERVICIO %;
    col_34 aaa_p_hisfac_alc. Type of DIAS_MORA %;
    col_35 aaa_p_hisfac_alc. Type of VALOR_MORA %;
    col_36 aaa_p_hisfac_alc. Type of INTERESES_MORA %;
    col_37 aaa_p_hisfac_alc. Type of OTROS_COBROS %;
    col_38 aaa_p_hisfac_alc. Type of CAUSAL_REFACTURACION %;
    col_39 aaa_p_hisfac_alc. Type of NUM_FACTURA_REFACTURACION %;
    col_40 aaa_p_hisfac_alc. Type of VALOR_TOTAL_FACTURADO %;
    col_41 aaa_p_hisfac_alc. Type of PAGOS_PERIODO_FACTURADO %;

    Start
    V1: = Utl_File.Fopen ('PUBLIC_ACCESS', 'sui_facturacion_alcantarillado_15085_2011_01_76845_00A.csv', 'R', 32767);
    Cont_Filas: = 1;
    insert into a values (seq_aaa_p_archivos_leidos.nextval, 'sui_facturacion_alcantarillado_15085_2011_01_76845_00A.csv', sysdate, user) aaa_p_archivos_leidos;
    loop
    Begin

    UTL_FILE.get_line (v1, v2);
    -dbms_output.put_line ('El contenido're: ' | v2);

    -cuenta los characters...
    Select length (v2)
    in cont
    Double;
    dbms_output.put_line ('Total characters: ': suite);

    Select count (instr (v2, ','))
    in tot_comas
    Double;
    tot_comas: = 1;
    ACUM: = 1;
    Pos_1: = 0;
    While ACUM < = 41
    LOOP
    Select instr (V2, ',', 1, ACUM) PRUEBA
    IN POS_2
    FROM DUAL;
    dbms_output.put_line ('-> POSITION TOTAL 1' |) POS_1);
    dbms_output.put_line (' POSITION TOTAL 2-> ' |) POS_2);
    REST: = (POS_2-POS_1)-1;

    SUBSTR (,(POS_1+1), REST V2) SELECT PRUEBA2
    BY CADEN
    FROM DUAL;
    dbms_output.put_line (' CADENA SELECCIONADA-> ' |) CADEN);

    -Expressions, variable values of las Br...

    If Cont_Filas = 1 Then
    Dbms_Output.put_line (' no pasa nada...');
    On the other
    If acum = 1 then
    Col_1: = Caden;
    Elsif Acum = 2 Then
    Col_2: = Caden;
    Elsif Acum = 3 Then
    col_3: = CADEN;
    Elsif Acum = 4 Then
    col_4: = CADEN;
    Elsif Acum = 5 Then
    col_5: = CADEN;
    Elsif acum = 6 then
    col_6: = CADEN;
    Elsif acum = 7 then
    col_7: = CADEN;
    Elsif acum = 8 then
    col_8: = CADEN;
    Elsif Acum = 9 Then
    Col_9: = Caden;
    Elsif acum = 10 then
    Col_10: = Caden;
    Elsif acum = 11 then
    Col_11: = Caden;
    Elsif Acum = 12 Then
    Col_12: = Caden;
    Elsif Acum = 13 then
    Col_13: = Caden;
    Elsif Acum = 14 then
    Col_14: = Caden;
    Elsif Acum = 15 then
    col_15: = CADEN;
    Elsif Acum = 16 then
    Col_16: = Caden;
    Elsif acum = 17 then
    Col_17: = Caden;
    Elsif acum = 18 then
    Col_18: = Caden;
    Elsif Acum = 19 then
    Col_19: = Caden;
    Elsif Acum = 20 then
    Col_20: = Caden;
    Elsif acum = 21 then
    Col_21: = Caden;
    Elsif Acum = 22 then
    Col_22: = Caden;
    Elsif Acum = 23 then
    Col_23: = Caden;
    Elsif Acum = 24 then
    Col_24: = Caden;
    Elsif Acum = 25 then
    Col_25: = Caden;
    Elsif Acum = 26 then
    Col_26: = Caden;
    Elsif Acum = 27 then
    Col_27: = Caden;
    Elsif Acum = 28 then
    Col_28: = Caden;
    Elsif Acum = 29 then
    Col_29: = Caden;
    Elsif Acum = 30 then
    Col_30: = Caden;
    Elsif Acum = 31 then
    Col_31: = Caden;
    Elsif Acum = 32 then
    Col_32: = Caden;
    Elsif Acum = 33 then
    col_33: = CADEN;
    Elsif Acum = 34 then
    Col_34: = Caden;
    Elsif Acum = 35 then
    Col_35: = Caden;
    Elsif Acum = 36 then
    Col_36: = Caden;
    Elsif Acum = 37 then
    Col_37: = Caden;
    Elsif Acum = 38 then
    Col_38: = Caden;
    Elsif Acum = 39 then
    Col_39: = Caden;
    Elsif Acum = 40 then
    Col_40: = Caden;
    Elsif acum = 41 then
    Col_41: = Caden;
    -trae el Código del archivo...
    Select Id_Archivo
    In Cod_Archivo
    Of Aaa_P_Archivos_Leidos
    Where number = "sui_facturacion_alcantarillado_15085_2011_01_76845_00A.csv";

    -inserta fila acquired the playback...
    insert into aaa_p_hisfac_alc (ID_AAA_HISFAC, SUSCRIPTOR, NUM_CONTRATO, COD_DANE_DPTO, COD_DANE_MPIO, ZONA_IGAC, SECTOR_IGAC, MANZANA_VEREDA,
    NUM_PREDIO, CONDICION_PREDIO, DIRECCION_PREDIO, NUM_FACTURA, FECHA_EXPEDICION_FACTU, FECHA_INICIO_PERIODO, DIAS_FACTURADOS,
    COD_CLASE_USO, UNID_MULTIUSUARIOS_RESIDENCIAL, UNID_MULTIUSARIO_NORESIDENCIAL, HOGAR_COMUNITARIO, USUA_FACTURADO_AFORO, USUA_CON_CARACTERIZACION,
    CARGO_FIJO, CARGO_VERTIMENTO_BASICO, CARGO_VERTIMENTO_COMPL, CARGO_VERTIMENTO_SUNTUARIO, CMT_COSTO_MEDIO_RETRIBUTIVA, VERTIMENTO_PERIODO_M3,
    VLR_FACTURADO_VERTIDO, VLR_SUBSIDIO, VLR_CONTRIBUCCION, FACTOR_SUBS_CONTR_CARGO_FIJO, FACTOR_SUBS_CONTR_VERTIMIENTO, CARGOS_CONEXION, PAGO_ANTICIPADO_SERVICIO,
    Dias_Mora, Valor_Mora, Intereses_Mora, Otros_Cobros, Causal_Refacturacion, Num_Factura_Refacturacion, Valor_Total_Facturado, Pagos_Periodo_Facturado, Cod_Archivo)
    Values (Seq_Aaa_P_Hisfac_Alc.nextval, col_1, col_2, col_3, col_4, col_5, col_6, col_7, col_8, col_9, col_10, col_11, col_12, col_13, col_14,
    Col_15, Col_16, Col_17, Col_18, Col_19, Col_20, Col_21, Col_22, Col_23, Col_24, Col_25, Col_26, Col_27,
    col_28, col_29, col_30, col_31, col_32, col_33, col_34, col_35, col_36, col_37, col_38, col_39, col_40, col_41, Cod_Archivo);
    End If;
    end if;
    ACUM: = NOW + 1;
    Pos_1: = Pos_2;
    Tot_Comas: = Tot_Comas + 1;

    End loop;
    cont_filas: = cont_filas + 1;
    Dbms_Output.put_line (' contains United Nations total: ' |) Tot_Comas | «comas...» ») ;
    Dbms_Output.put_line (' contains United Nations total: ' | cont_filas |) "filas");

    exception
    When no_data_found then
    "exit";
    end;
    dbms_output.put_line ('-'); -LINEA SALTO
    dbms_output.put_line ('-'); -LINEA SALTO
    end loop;
    dbms_output.put_line ('-->'); -LINEA SALTO
    dbms_output.put_line ('-' | cont); -LINEA SALTO

    Dbms_Output.put_line (' the value of the columna es 2 ' | col_1);
    UTL_FILE.fclose (v1);
    exception
    while others then
    dbms_output.put_line (SQLERRM);
    end;
    /


    and permissions already due...

    I appreciate your attention and offered cooperation
    Reynel Salazar Martinez+.

    There are discussions here of the past showing how to upload a CSV (comma-delimited file) to an existing table... Here's an example blog which may help: http://oraexplorer.com/2007/11/apex-to-upload-text-file-and-write-into/

    Thank you

    Tony Miller
    Webster, TX

    Follow your passion; the rest will take care of itself.

    JMS

    If you answer this question, please mark the thread as closed and give points where won...

  • How to run a procedure ODI of a shell command?

    Hello

    Is it possible to perform the procedure ODI of a shell command? How?

    I would like to invoke the execution of the second another batch processing procedure, we have tips.

    Thank you.

    You can create the scenario of the ODI procedure and call this scenario using the startscen at the command prompt,
    before that make sure that you odiparams file is updated.

  • How to run a procedure?

    Hello:

    I am trying to execute this procedure with HR:

    CREATE or REPLACE PROCEDURE proc_depto_1 (new_dept_name IN VARCHAR2, dept_id in NUMBER)
    AS
    BEGIN
    UPDATE services
    SET department_name = new_dept_name
    WHERE department_id = dept_id;
    END;

    The procedure has been created successfully = 'created Procedure '.

    I tried proc_depto_1 EXECUTE ('wow', 90) and it does not work with the page interface web oracle 10g express edition but it works perfectly with the sql command line.

    Could someone tell me the statement for execution of the procedure in the web page tool or how to configure it to work?

    Thank you very much

    Published by: user12229399 on 18-ene-2010 04:42

    To try:

    BEGIN
    proc_depto_1 ('wow', 90);
    END;

  • How to run a procedure of SQL commands

    I tried in many ways, for example:

    RUN POPULATE_HIERARCHY (121121);

    but I get the error: ORA-00900: invalid SQL statement.
    BEGIN
      POPULATE_HIERARCHY(121121);
    END;
    
  • How to run the procedure which parameter is in a single query

    Hi all

    Here's sinario

    create or repalce procedure proc1 (number, number xyz, sys_refcursor Prefcur abc)
    as
    Start
    ...
    ......
    ... do something...


    end;

    front end, all paramertes came as string...

    'proc1 (1,5,Prefcursor).


    now what I do is that I created an another procedure that accept this string as parameter.

    create or replace procedure proc2 (Vpstring varchar2, Prefcursor to sys_refcursor)
    as
    Start

    execute Vpstring;

    end;



    but it gives me error


    Please help me solve this problem.

    any help appriciated

    It looks like a very strange requirement for me.

    Try like this.

    SQL> create or replace procedure p1(a1 number, a2 number, a3 out sys_refcursor)
      2  as
      3  begin
      4     open a3 for select * from dual where a1 = a2;
      5  end;
      6  /
    
    Procedure created.
    
    SQL> create or replace procedure p2(str varchar2, rc out sys_refcursor)
      2  as
      3     lstr varchar2(100);
      4  begin
      5     lstr := 'BEGIN ' || substr(str,1,instr(str,',',1,2))||':1);' ||' END;';
      6
      7     execute immediate lstr using rc;
      8  end;
      9  /
    
    Procedure created.
    
    SQL> var rc refcursor
    SQL> exec p2('p1(1,1,rc)',:rc)
    
    PL/SQL procedure successfully completed.
    
    SQL> print rc
    
    D
    -
    X
    
    SQL> exec p2('p1(1,2,rc)',:rc)
    
    PL/SQL procedure successfully completed.
    
    SQL> print rc
    
    no rows selected
    
    SQL>
    

    Thank you
    Knani.

  • How to run two 'County of buffered edge' using two different counters at the same time?

    Hello

    I try to use two counters at the same time count the TTL pulses for a fixed period (lets say 10 ms). I have the card PCI-6251 and PCI-6601. I am currently using PCI 6601 as counters and running a self updated the ' stamped edge County - reset.VI. Here, I have attached my VI.

    Now, during the execution of this VI, I get an error saying "error-200251 occurred at Task.vi:4 DAQmx Start" and the possible reasons are, "measures: no USB or DMA channels in loose ends are available.»

    Either stop other tasks which might be using these resources or are considering changing your mechanism for transfer of data to the interruptions if supported.

    Device: Dev2

    Task name: _unnamedTask<80>. »

    What I realized is I'm trying to use two buffers for two meters with ten samples each and this is probably not allowed. I don't know how to solve this out and bad looking for your suggestions.

    Thanks in advance.

    Hi all

    I found a solution too. This is the VI updated the "County of edge stamped" which can simultaneously run two entries-meter using a single source of door and it also uses the DMA and interrupts to save two pads.

    Have a nice weekend.

Maybe you are looking for

  • Films/movies, TV Shows/TV programs

    When I upgraded to OS X Sierra or a related iTunes update, he has changed the user interface and now I have some TV programs instead of TV shows and movies instead of movies. I'm in Australia. Is there a way to change it back? TIA

  • Satellite S50D - A - 10 L - Low FPS while playing CS GO

    Hi all The other day (Toshiba Satellite S50D - A - 10 L), I bought a Toshiba laptop and my fps where the game is not very high. I looked online to see what the problem might be and discovered that laptops use sometimes the graphics card shipped inste

  • Movies transferred to Mac will not play audio

    I have some videos from my laptop that I saved on my desktop Mac. They had audio on the laptop but now I noticed there is no option for sound on the Mac, but the videos play without a hitch. Now this is not a huge problem except that my laptop recent

  • HP Touchsmart 15 video green screen

    Hello! I have a HP touchsmart 15, is fairly recent. two weeks and the operating system is windows 8. Then maybe after a day or two, there was a green screen appearing instead of the video. I used to be able to restart the computer and would be fine f

  • HP bluetooth mouse z8000 is not matching with elitebook

    I have a HP elitebook 8540W running windows 7 Enterprise SP1 and bluetooth 2.1 + EDR. Currently, I buy a HP bluetooth mouse Z8000.  I can't pair the mouse with my elitebook 8540W.  The Z8000 running bluetooth low energy. Is there anyway to make the m