call PL/SQL procedure from javascript

Hello!

How can I call PL/SQL procedure from JavaScript code?


Thank you!

Nihad

Nihad,

What APEX version do you use? Dynamic actions in 4.0 make is much easier than it was in previous versions of APEX...

Kind regards
Dan

Tags: Database

Similar Questions

  • How to call the stored procedure from javascript? (Google suggest, AJAX)

    Hi I want to set up a text field so that it behaves like [Google Suggest | http://www.google.com/webhp?complete=1 & hl = en].

    I read this post .

    Now, I installed everything according to this document. But it simply doesn't. And I don't know why.

    I think that problems can fall into the following three categories:
    1. the text field and the page invoking the appropriate javascript?
    2 - is the JavaScript call the stored procedure?
    3. the stored procedure correctly returns the result formatted?

    I'm assertive for 1 and 3, but I'm not sure 2. Because I don't know how if a stored procedure has been called? Is there a PL/SQL statement that I can query in SQL * more?

    Also, I would like to know how to debug AJAX in the APEX. It involves a lot of things.

    Finally, I used APEX 3.2 and Oracle XE. I can't find file dads.conf or marvel.conf. Is ' / apex / "the virtual directory for APEX?

    Thank you very much!

    Buffalo,

    I managed to make it work on XE with APEX 3.2!
    It took more time than expected because my XE installation was still on an earlier version of the Apex and I had put it first...

    But that's what I did:
    -in the ac.js file, I changed the path ' / apex / "and I added the ac.js file to my candidacy as a static file. So as you did.
    -J' copied my request to the XE and copied my procedure on the schema that is related to my request
    -J' gave to run anonymous rights my procedure

    Now at first, it did not work...
    Then I suddenly remembered something: If you want to run a procedure through the pl/sql gateway in the XE, XE please how it is.
    Do you this by changing the APEX_030200.wwv_flow_epg_include_mod_local function!

    This is the code for the function changed for my example:

    CREATE OR REPLACE function APEX_030200.wwv_flow_epg_include_mod_local(
        procedure_name in varchar2)
    return boolean
    is
    begin
        --return false; -- remove this statement when you modify this function
        --
        -- Administrator note: the procedure_name input parameter may be in the format:
        --
        --    procedure
        --    schema.procedure
        --    package.procedure
        --    schema.package.procedure
        --
        -- If the expected input parameter is a procedure name only, the IN list code shown below
        -- can be modified to itemize the expected procedure names. Otherwise you must parse the
        -- procedure_name parameter and replace the simple code below with code that will evaluate
        -- all of the cases listed above.
        --
        if upper(procedure_name) in (
              'MATTHIASH.INCSEARCH') then
            return TRUE;
        else
            return FALSE;
        end if;
    end wwv_flow_epg_include_mod_local;
    /
    

    After that, the AJAX function worked as expected...

    HTH
    Matthias Hoys

    Published by: mhoys on August 13, 2009 15:24

  • Call a procedure from javascript

    Hello

    I would like to help on the following please.

    I have a JavaScript in page region 'function and Global Variable declaration ':
    function openUrl(pUrl) {
      window.open(pUrl,"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=1024, height=768");
    }
    In the same page one have a number of standard reports. A number of columns in each of these reports sets a link. The binding for all the columns settings are defined as follows:
    Target: URL
    URL: javascript:openUrl('http://#SERVERNAME#:9704/xmlpserver/Publications/Dock_Report.xdo?_xpf=&_xpt=0&_xdo=%2FPublications%2FDock_Report.xdo&_xmode=4&_paramsID_USU=#ID_USU#&_paramsIDCR=#IDCR#&_paramsIDCU=#IDCU#&_xt=DPol_Layout&_xf=pdf&_xautorun=true');
    As you see, the user of the application, click on the link on the column of the report and a popup is generated showing the report. It all works very well.

    My requirement is to call a procedure from the augments that are included in the column link that was clicked by the user of the application.
    #ID_USU#
    #IDCR#
    #IDCU#
    My question is how to achieve this as the url is inside a call to javascript?

    Can I use the Javascritp set in the page to extract the details, and then use javascript to call a procedure?

    Any help, pointers, ideas, everything is welcome.

    Request Express 4.0.2.00.07

    Thank you

    Published by: zooid on 4 April 2013 22:47

    Have you seen this javascript API? http://docs.Oracle.com/CD/E17556_01/doc/apirefs.40/e15519/javascript_api.htm#BGBJHEHG

    It has very convenient function: apex.submit (pOptions);

    Specify the target URL as:

    JavaScript:rowClick('#ID_USU#',_'#IDCRM#',_'#IDCU#');

    Then add a function to your page somewhere:

    function rowClick(idUsu, idcrm idcu){
    
      openUrl(/*url*/);
      apex.submit({request: "SOME_REQUEST_VALUE", set: {Px_ID_USU: idUsu, Px_IDCRM: idcrm, Px_IDCU: idcu}});
    
    }
    

    (Where you have page elements for each of the items that you want to set.

    Then you can have a process of PL/SQL page, under condition of request = expression 1, term 1 = SOME_REQUEST_VALUE

    And do you want to ;-)

  • Several lines back from DBAdapter call PL/SQL procedure

    Oracle XE 10g Express Edition
    JDeveloper 11.1.1.2.0
    WebLogic Server 11g

    Guys,

    I have an Orders table, I need to ask, and pass back from the corresponding lines that meet certain criteria (e.g. status = 'OPEN').

    However, rather than to create a DBAdapter using one Type of operation to "perform an operation on a Table / Select", I need to use a Type of operation of "call a stored procedure or function.

    So I need the procedure to return all matching rows, rather than on a single line.

    I looked to declare parameters of return of the procedure of the following types:

    SAVE - is good because it allows me to return the items to the line with their correct data types, but does not satisfy my needs because it only supports the return of a single line.

    VARRAY - good because it can contain multiple line items, but not good because it supports only a single line of return and also because all the elements of the VARRAY must be of the same data type.

    TABLE - good because it can contain as many lines, but bad, because each line can contain only two elements: the index and the data element.

    I think I first set a RECORD (to contain a line) and then define a TABLE with the data element constituting the RECORD, but I found very picky JDeveloper indeed when it comes to data "non-standard" types in the DBAdapter.

    My apologies if I'm missing something obvious, but someone can suggest a way to do this?

    Thanks in advance.

    Published by: user2541290 on February 17, 2010 02:48

    Hi, I was able to create processes that seems to work. My platform is one, but different, but I don't think it's important for your question.

    Here is the PL/SQL code. Just make the adapter Db to call the stored procedure and it returns all the lines!

    Be aware of the possible limitations how manyrows could return in a select! This can have a serious impact on performance.

    Success.
    Jos Baan

    CREATE or REPLACE PACKAGE lab2_multiple_rows IS

    -Author: 801455
    -Creation: 2010-02-18 08:05:52
    -Objective:

    -Public type declarations
    TYPE rrows IS RECORD)
    mutdat DATE,
    HEB VARCHAR2 (20));
    TYPE the trows IS rrows INDEX TABLE DIRECTORY.
    -Statements of public constants

    -The public variable declarations

    -Declarations of function and public procedure
    FUNCTION retrows RETURN trows;

    END lab2_multiple_rows;

    CREATE OR REPLACE PACKAGE BODY lab2_multiple_rows

    -Private type declarations

    -Declarations of private constants

    -Private variable declarations

    -Function and procedure implementations
    FUNCTION retrows trows IS BACK
    lrows trows;
    Directory lidx: = 1;
    BEGIN
    TO rsql IN (SELECT t.* FROM t ORDER BY t.mutdat jba_transactions)
    LOOP
    lrows (lidx) .mutdat: = rsql.mutdat;
    lrows (lidx) .opmerking: = rsql.opmerking;
    lidx: = lidx + 1;
    END LOOP;
    Return (lrows);
    END;

    BEGIN
    -Initialization
    NULL;
    END lab2_multiple_rows;

    Published by: Baan, Jos on February 18, 2010 08:53

  • How to call stunts c ++ function from javascript

    Hello

    Is it possible to call stunts c ++ functions of javascript cascading bb10 without use of qml files. This is a very important part of my application.

    Where runs JavaScript code?

    If it is in Web mode, then the docs document something where you can call "navigator.cascades.postMessage ()" JavaScript and the other side (which could be C++) watch the messageReceived() signal.

    If this isn't in a WebView, where is it if not in QML?

  • How to call pl/sql procedures stored since AMImpl

    Hi, I worked with regular procs which of output params and primitive types like number, Varchar2 etc.

    But how to pass values of procs of pl/sql that contains custom data types, such as VARCHAR2_TABLE_100, you will find the definition below.

    create or replace

    TYPE 'VARCHAR2_TABLE_100' is the table of varchar2 (100)

    How to pass values for the parameter entry if type is of the above type, suspicion or the thought is appreciated.

    Thank you.

    I tried to use registeroutparameter(10,Types.ARRAY,"VARCHAR2_TABLE_100");

    But I get a number of entries or incorrect exception types. I thought it's because the output variable does not properly.

    Try it with the fully qualified name ('YOURSCHEMA.) VARCHAR2_TABLE_100')

    Also note that the index in jdbc start from 1 (not 0) and if you have the first parameter plsql function's return value of function.

    For example, if you have the plsql function: "function somettype return of some_func (p_param to varchar2_table_100);

    to enter p_param you need something like: stmt.registerOutParameter (2, OracleTypes.ARRAY, "SCHEMA. VARCHAR2_TABLE_100')

    Dario

  • The call PLSQL stored procedure from the HTML form Submit button

    Hello

    I'm having a little difficulty with the appellant a stored procedure using a html form button. Here is the code I have right now...
    HTP.PRINT('<form action=ZWGKERCF.P_confdelete>');
    HTP.PRINT('<input type=''submit'' value='' Yes '' onClick=''document.getElementById("mypopup").style.display="none"''>');
    HTP.PRINT('</form></div>');
    Here's the question - I need to find a way to pass variables to this stored procedure, so he knows what data to operate on. This stored procedure removes the data in a specific database record and I have to pass three variables to this procedure to run.

    Allows to call class_number, term, conf will impact these three variables and the data will be deleted and the person will see a confirmation screen once the deletion request completed.

    So ideally I would want: ZWGKERCF. P_confdelete (class_number, term, conf), then the stored procedure would deal with the rest!

    Seems simple enough, but I don't know how to make this happen... My thoughts were:

    Transmit data to this (the three areas that I need) html form in hidden variables. Then somehow pass them using the POST method to the procedure and read using GET?

    Can someone clarify what the best way to do it? I feel that its little something miss me you - but I would really like an idea expertise :-)

    Thank you very much in advance!

    -Jeff

    >
    ...

    I would like to assign a variable, the duration, the conf crn all variables in this procedure and then act on them accordingly.

    But you already have it in a variable. If you want you can assign the value again to another variable.

    example of

    PROCEDURE P_confdelete(CRN NUMBER,TERM NUMBER, CONF VARCHAR2)
       IS
          v_crn number(38);
          v_term number(38);
          v_conf varchar2(1000);
    
      BEGIN
           HTP.PRINT('test1 '||crn||'/'||term||'/'||conf); 
    
          v_crn := crn;
          v_term := term;
          v_conf := conf;
    
          HTP.PRINT('test2 '||v_crn||'/'||v_term||'/'||v_conf); 
    
    END P_confdelete;
    
  • call a pl/sql stored procedure from a report link

    Hi all:

    I have a report with a link in a column, which you take to another page and passes the values to this page, but also need to link, run a stored procedure before you go to the other page.

    In the Forum, I found a case similar to this one, but none of the examples is clear to me that I'm doing this. It seems that the target of the link must be URL, and also I have to call the stored procedure with a javascript function.

    My questions are:
    -Is the best way to do what I need?
    -How should be the syntax of the link that takes me to another page and run the "procedure".
    -How and where I put the "javascript" function to execute the "stored procedure".


    BDD: Oracle 11 g
    Apex 4.1 version


    Best regards

    Gerard

    Hello

    Change the link to call an apex.submit procedure. (javascript).

    Edit:

    I created a basic example.

    Region 1 (just so that you can see the value ready):

    Select: P27_HIDDEN item_Value
    of the double

    Region 2:

    rownum SELECT id, dbms_random.string ('U', 12) sss
    of the double
    connect by level<=>

    element attributes for ID:

    Target: URL
    URL: javascript:apex.submit ({request: 'NAVIGATE', value: {'P27_HIDDEN': #ID #}});

    (P27_HIDDEN is just a hidden item I created)

    http://Apex.Oracle.com/pls/Apex/f?p=54920:27

    Edit2:

    In your case, then you can only have a page based on conditions request = expression1, expression1: NAVIGATE... then a branch of the page to go to the desired page, also with the same conditions

    Edit3:

    I'm not sure what examples you're talking about, that you provide no link; but you mention calling the stored procedure of javascript, so would probably involve some AJAX, but is not necessary IMO.

  • [BC] Call a stored procedure taking parameters of table

    Hello!

    I currently have a request of the OIC that makes thousands of calls per second stored procedure. The stored procedure runs a business logic that I want my client application to stay informed.  I want to reduce the cat of the database and instead to call the stored procedure from thousands of times per second, call the procedure (for example) once per second, but with values of one mile.

    I used OCIBindArrayOfStruct successfully to perform inserts bulk, where my OCI application executes a () INSERT INTO using the function "iters" and it might be possible to do something similar with the stored procedure, but I want to do something slightly different, because the procedure stored something like this:

    * If a specific condition is set, call a secondary stored procedure

    * If another special condition is set, insert a row into a table of some

    I so wanted to do was to pass a table (or a series of tables) in the stored procedure, then the stored procedure to use optimal methods that are available, such as FORALL, to perform each of the tasks, the more effectively.

    So I thought to create a type, such as a TABLE OF VARCHAR2, or a VARRAY and possessing of the parameters for the stored procedure based on this type, something like:

    create or replace TYPE 'NTT_VARCHAR2' AS TABLE OF VARCHAR2 (32700);

    create or replace FUNCTION bulk_process_values)

    p_error_message OUT NOCOPY VARCHAR2,

    p_module_context_name OUT NOCOPY VARCHAR2,

    p_sql_error OUT NOCOPY VARCHAR2,

    p_count in NUMBERS

    p_non_array_var_1 IN VARCHAR2,

    p_non_array_var_2 IN VARCHAR2,

    p_array_var_1 IN NTT_VARCHAR2,

    p_array_var_2 IN NTT_VARCHAR2,

    p_array_var_3 IN NTT_VARCHAR2

    < etc. for all the variables in table >)

    RETURN NUMBER

    .. .but I am struggling to find an example of how call the procedure "bulk_process_values" stored, and even if I use a TABLE OF VARCHAR2 or a VARRAY as a parameter type.

    I searched the Internet and found this: OIC - how to bind an array to a stored procedure? - and binding table of the structs (OCIBindArrayOfStruct) sample code

    - but they take different approaches and a bit confused (the second example spoke of OTT).

    I think that the first approach is more likely to be the solution I need - but I can't help thinking - it is a bunch of stuff to move if it does not end up significantly improve performance!

    My questions are:

    * Moves to a call-SP-thousands-of-times-per-second to call-SP-fewer-times-but-with-array-parameters sensitive?

    * Should the table or VARRAY, TABLE OF VARCHAR2 parameters or something else?

    * Should I use for my case OTT?

    Samples I found are both very old - and the second example indicators that the optimal approach evolves with the OCI versions - I'm on 11.2, what is the optimal approach these days?

    * < added later > why is there no official useful example?

    Thank you very much

    Much appreciated. https://community.oracle.com/message/4528528#4528528 has actually worked, with VARRAY, with a proof of concept. Now I just need to shake a little and then get my PL/SQL for optimal PC experts. I think I was really discouraged by the lack of official documents, with the Community (Paradise) is the only way to get real results.

    Thank you JJ.

    I intend me to use the binding enforcement of the table and the table and avoid N back and forth, but I do not then get the opportunity to do something clever in the PL/SQL.

    In the PL/SQL, there is no logic occurring - I don't call the same SP tons of times, but then I want to be able to use PL/SQL optimizations such as FORALL, BULK COLLECT, reduce the number of validations and others.  There is a commit after each SP run, because otherwise the nature of demand means that the application hangs occur; However, there is a way (I think) be smart on the part that is likely to deadlock (making a shape on the Bay First, then applying the updates in the order sorted and then failed to get a blocking theoretically), and then FORALL insert for the second part of the stored procedure.

    I guess I may apply the single return, passing a table (to a commit in the SP)-which will reduce back and forth, so gain in performance, but it will not reduce the number of validations that I do - and Oracle said that commits too frequent is not good for performance. I already have code in my framework that does - by making a simple INSERT INTO.

    Good to hear that OTT is not explicitly required - and VARRAY resembles the approach to try first.

  • Internal error: catalog view incompatible when calling a stored procedure

    Hello

    I use JDeveloper 11.1.1.4

    When you call a stored procedure from AppModuleImpl, I get this error internal error: inconsistent display catalog

    I'll call the stored procedure of this way

    String lErrCode;

    String lErrMsg;

    Result of an integer;

    ARRAY inputArray = null;

    Table STRUCT that can be passed to a PLSQL PROCEDURE

    inputArray =

    JdbcSqlMapper.preparePlSqlArrayUsingVOAttrbs (conn, recordType,

    view, rm);

    OracleCallableStatement st =

    (OracleCallableStatement) conn.prepareCall ("{?}") = call ("+

    procedureName +.

    "(?,?,?))}");

    st.registerOutParameter (1, Types.INTEGER);

    st.setObject (2, inputArray, OracleTypes.ARRAY);

    st.registerOutParameter (2, OracleTypes.ARRAY,

    recordType.getTableType ());

    st.registerOutParameter (3, Types.VARCHAR);

    st.registerOutParameter (4, Types.VARCHAR);

    St.Execute ();

    I checked the subsidies for this package to all users. All users with grants to this package.

    I don't know where I start to debug this issue.

    Kindly help.

    Thank you and best regards,

    John.

    Have yo uchecked the right of the types of data used (at least the TABLE) to the user (referred to Pokusak blog: JPublisher - incompatible catalog display)?

    Timo

  • Call the Javascript htmldb_delete_message PL/SQL procedure

    Hi guys,.

    I am a novice when it comes to JavaScript; I've written a PL/SQL procedure that removes multiple records based on a primary key:

    PROCEDURE clear_alterations (p_eco IN VARCHAR2)
    IS
    BEGIN
    DELETE FROM xxmel_apex_eco_alterations
    WHERE the eco = p_eco;
    END clear_alterations;

    I can run it directly from a normal button, but I want the pop htmldb_delete_message dialog box to confirm whether to delete or not. When the user clicks "OK" I want the file to delete and cancel, do nothing.

    I have managed to get the confirmation box appears, but cannot see how to call the PLSQL based on the OK"" button.

    Any help would be great,
    Thank you
    Chris

    Hello

    Set your target URL button

    javascript:confirmDelete('Delete record?','DELETE_REC');
    

    Then create processes that call your procedure and define the process conditional request DELETE_REC

    Kind regards
    Jari

  • A simple way to call PL/SQL from javascript?

    Hello
    I have a page with 2 fields and a button. In both areas, the user put 2 different customer numbers and when they click the button must call a PL/SQL procedure that will merge the customer News #1 in the #2 client.
    I would like to show the user a before confirmation dialog box accepts eventually merge the two clients.

    How can I do?

    Thanks in advance...

    AJAX is fine if you don't need to refresh the page, but if you just need a simple process you can build as simply a page process runs under condition based on a certain application (such as FUSION). Then have your button call the javascript and call doSubmit in it - as follows:

    
    

    You put the code above in the header, and then set the redirect URL on your button to call:

    javascript:merge();
    
  • ORA-900 sql not valid reporting error while calling the optimize_index pl/sql procedure


    Hi Experts,

    I'm on Oracle 11.2.0.3 on Linux and I have installed in my database Oracle text. I want to configure annex dbms_job to optimize my oracle text index. So first, I created a pl/sql procedure to optimize indexes. It gives me error ORA-900, but the sql even if I run in sqlplus works very well! Can you please help me the question is to find:

    Here is the procedure:

    (Either incidentally CTXAPP role has been granted in the schema where these Oracle text indexes are created and where the below procedure to optimize the index is running.)

    CREATE OR REPLACE PROCEDURE optimize_ora_txt_indexes_debug
    IS
       CURSOR cur_context_indexes
       IS
            SELECT index_name
              FROM user_indexes
             WHERE index_type = 'DOMAIN'
        AND ROWNUM<2  
        ORDER BY INDEX_NAME;
       v_user         VARCHAR2 (30);
       v_pod          VARCHAR2 (30);
       v_start_time   TIMESTAMP;
       v_end_time     TIMESTAMP;
       v_elapsed      VARCHAR2 (40);
       v_msg   VARCHAR2 (1000);
       v_error_code      NUMBER;
       v_error_msg   VARCHAR2 (1000);
       v_sql VARCHAR2 (1000);
    BEGIN
    
       FOR c IN cur_context_indexes
       LOOP
          BEGIN
            v_sql:= 'ctx_ddl.optimize_index (idx_name =>'||chr(39)|| c.index_name||chr(39)||', optlevel => '||chr(39)||'FULL'||chr(39)||')';
            dbms_output.put_line(v_sql);
            execute immediate v_sql;
          EXCEPTION
             WHEN OTHERS
             THEN
                v_error_code := SQLCODE;
                v_error_msg := SQLERRM;
                v_msg :=
                      'Error while optimizing the index '
                   || c.index_name
                   || ' '
                   || TO_CHAR (v_error_code)
                   || ' '
                   || v_error_msg;
                DBMS_OUTPUT.put_line (v_msg);
    
          END;
       END LOOP;
    
    EXCEPTION
       WHEN OTHERS
       THEN
          v_error_code := SQLCODE;
          v_error_msg := SQLERRM;
          v_msg :=
                'Error while in the optimize index procedure'
             || ' '
             || TO_CHAR (v_error_code)
             || ' '
             || v_error_msg;
          DBMS_OUTPUT.put_line (v_msg);
    
    END optimize_ora_txt_indexes_debug;
    /
    
     --the procedure compiles successfully. 
     Now when I run it , I get the error:
    SQL>exec optimize_ora_txt_indexes_debug;
    ctx_ddl.optimize_index (idx_name =>'ACCESS_CLNT_IDX04', optlevel => 'FULL')
    Error while optimizing the index ACCESS_CLNT_IDX04 -900 ORA-00900: invalid SQL
    statement
    
    
     --When I run the same command from sqlplus as execute statement , it works fine:
    SQL>exec ctx_ddl.optimize_index (idx_name =>'ACCESS_CLNT_IDX04', optlevel => 'FULL');
    PL/SQL procedure successfully completed.
     
     
    
    
    

    If everything runs from sqlplus, but fails in plsql... I'll be very grateful for pointers solve the problem.

    Thanks,

    OrauserN

    Hello

    It is a problem of pl/sql syntax. A call with EXEC is the same using BEGIN... Code of... END of block;

    SO, you need to include a beginning and an end to your call:

     v_sql:= 'BEGIN ctx_ddl.optimize_index (idx_name =>'||chr(39)|| c.index_name||chr(39)||', optlevel => '||chr(39)||'FULL'||chr(39)||'); END;';
    

    That's all.

    Herald tiomela

    http://htendam.WordPress.com

  • Calling a procedure from a form of Oracle database

    Hello

    I have a question, we will be calling the procedure from a form of Oracle, and through that we can spend as input values from 1000 to this procedure and that we must return values back to the Oracle form also. Here the damaged take two or more parameters. Please advice.

    To receive the input values, we have the input parameter of the procedure as a type object, so that we can receive several parameter values.

    Thanks and greetings
    Srinivas

    user2626293 wrote:
    Hi François,

    Thanks for your response, please suggest me as to how we can achieve the passage of the parameters that can contain multiple values, by a call to the procedure of the form of the Oracle database

    Hi Srinivas,

    Here is an example of how...

    CREATE OR REPLACE PROCEDURE P_GET_SAL (P_EMPID NUMBER, P_SAL OUT NUMBER)
    
    IS
    
    BEGIN
    
         SELECT SALARY
         INTO P_SAL
         FROM EMPLOYEE
         WHERE EMPLOYEE_ID=P_EMPID;
    
    END;
    
    SQL> VAR G_SAL NUMBER;
    
    SQL> EXEC P_GET_SAL(100,:G_SAL);
    
    PL/SQL procedure successfully completed.
    
    SQL> PRINT G_SAL;
    
     G_SAL
    
    ----------
    
          2300
    

    Hope this helps

    Hamid

    If someone answer is useful or appropriate, please mark accordingly. *

  • How to call sql loader control file with in the pl/sql procedure

    Hi friends,

    I am doing a project in relation to the transfer data using queues. In the queue, I'll get a data delimited by tabs in the form of CLOB variable/message. I don't want to keep this dat in the oracle table.
    During the updating of the data in the table.

    1. don't want to write data to a file. (You want to access directly after the specific queue).

    2. as the data is in the form of delimited by tabs, I want to use sql loader concept.

    How can I call the ctrl charger sql file with in my pl/sql procedure. When I searched, most forums recommending the external procedure or a Java program.

    Please guide me on this issue. My preferrence is pl sql, but don't know the external procedure. If no other way, I'll try Java.

    I'm using oracle 9.2.0.8.0.

    Thanks in advance,
    Vimal...

    Or SQL * Loader, or external tables are designed to read data from a CLOB stored in the database. They both work on files stored on the file system. If you don't want the data to be written to a file, you have to roll your own parsing code. It is certainly possible. But it will be much less effective than SQL * Loader or external tables. And it is likely to lead to a little more code.

    The simplest possible thing that might work would be to use something like Tom Kyte string tokenization package to read a line in the CLOB, divide the component parts and save the different chips in a significant collection (i.e. an object type or a record type that matches the table definition). Of course, you need manage things like the conversion of strings to numbers or dates, rejecting the lines, writing to log files, etc.

    Justin

Maybe you are looking for

  • Take a Verizon iPhone outspoken

    I have an iPhone 6 s more on Verizon right now and I'm trying to take outspoken and use Verizon's network. But when I try to go through the process of my straight talk phone registration, he says it is not compatible with byop there service. I don't

  • clear the bios password on presario cq62

    The code lock on the screen is99202430can you help me please

  • Update camera?

    I just got a sort of update to camera but couldn't find a changelog. Can you clarify what jappenend (except different UI) Thanks PenOne

  • In C:/users, I can't change the name

    When I got to my PC I am entered the half of my name and clicked then accidentally enter if now my entire file 'Users' is only half of my name - how to change this (Windows 7)? Thank you

  • MI computador no zip

    Tengo amigos is a problema don't con mi PC, al end todas las labores en INICIO - APAGAR mi PC of apago y "APAGANDO EQUIPO" is is pensando y no zip, el Círculo Québec is mueve cuando zip girar already y no zip.Tengo wont WINDOWS 7 HOME PREMIUM.Gracias