I want to pass String array to Stored procedure .

ArrayDescriptor claim = ArrayDescriptor.createDescriptor("POOJA.VARCHAR_TBL" , conn);
String test[] = {"an","jk"};
ARRAY a = new ARRAY(claim,conn,test);
cstmt.setArray(noOfParms,a);
It gives class cast exception at ArrayDescriptor .. Dont know why ?
Need an urgent help ...

ArrayBinding feature is for bulk operation where a SP or SQL statement executes ArrayBindCount time in one server round trip. Each execution uses the nth element in the parameter (array) and execute the SP or SQL statement.
This is done internally in the database, and not related to the SP or SQL statement at all.
The PL/SQL Associative array support might be the feature that you're looking for.
Please take a look from our Doc on these topics for further information. Also take a look in the ODP.NET dissucssion forum's samples section.
Thanks
Martha

Similar Messages

  • Example of passing String Array from java to C using JNI

    hi all
    i searched net for passing string array from java to C but i dont get anything relevent
    i have
    class stu
    int rollno
    string name
    String [] sub
    i want to pass all as String array from java to C and access it C side

    1. Code it as though it were being passed to another method written in java.
    2. Redefine the method implementation to say "native".
    3. Run jnih to generate a C ".h" file. You will see that the string array
    is passed into C as a jobject, which can be cast to a JNI array.
    4. Write the C code to implement the method and meet the interface
    in the generated .h file.

  • Passing multidimensional array to plsql procedure

    hi ,
    is there any way to pass a two dimensional array of different data types to plsql procedure as a parameter?
    In other words, is it possible to pass a set or records or a datatable as a single parameter to plsql procedure?
    Because I am using a dataset selected with odp.net in my client and I am modifying the data in different datatables contained in the dataset.At the moment, the modified datatables are saved by seperating each column as a sepearate array and passing each column array as a seperate parameter to a stored procedure. But, I would like to change it in a way to pass each datatable as a single parameter to the stored procedure.
    I would appreciate any solution/suggestion/hint in regard to this problem
    thanks in advance,
    Prabhakar.

    If your Java array is of a base type (String, int, etc.) and you are using the OCI driver, you can use OracleCallableStatement.setPlSqlTable(). (I'm doing this from memory so the method name may be slightly different.)
    The method takes a Java array and converts it to a PL/SQL table before passing it to the stored procedure.

  • Passing data from Oracle stored procedures to Java

    We're going to write a new web interface for a big system based on Oracle database. All business rules are already coded in PL/SQL stored procedures and we'd like to reuse as much code as possible. We'll write some new stored procedures that will combine the existing business rules and return the final result dataset.
    We want to do this on the database level to avoid java-db round trips. The interface layer will be written in Java (we'd like to use GWT), so we need a way of passing data from Oracle stored procedures to Java service side. The data can be e.g. a set of properties of a specific item or a list of items fulfilling certain criteria. Would anyone recommend a preferable way of doing this?
    We're considering one of the 2 following scenarios:
    passing objects and lists of objects (DB object types defined on the schema level)
    passing a sys_refcursor
    We verified that both approaches are "doable", the question is more about design decision, best practice, possible maintenance problems, flexibility, etc.
    I'd appreciate any hints.

    user1754151 wrote:
    We're going to write a new web interface for a big system based on Oracle database. All business rules are already coded in PL/SQL stored procedures and we'd like to reuse as much code as possible. We'll write some new stored procedures that will combine the existing business rules and return the final result dataset.
    We want to do this on the database level to avoid java-db round trips. The interface layer will be written in Java (we'd like to use GWT), so we need a way of passing data from Oracle stored procedures to Java service side. The data can be e.g. a set of properties of a specific item or a list of items fulfilling certain criteria. Would anyone recommend a preferable way of doing this?
    We're considering one of the 2 following scenarios:
    passing objects and lists of objects (DB object types defined on the schema level)
    passing a sys_refcursor
    We verified that both approaches are "doable", the question is more about design decision, best practice, possible maintenance problems, flexibility, etc.
    I'd appreciate any hints.If logic is already written in DB, and the only concern is of passing the result to java service side, and also from point of maintenance problem and flexibility i would suggest to use the sys_refcursor.
    The reason if Down the line any thing changes then you only need to change the arguments of sys_refcursor in DB and as well as java side, and it is much easier and less efforts compare to using and changes required for Types and Objects on DB and java side.
    The design and best practise keeps changing based on our requirement and exisiting design. But by looking at your current senario and design, i personally suggest to go with sys_refcursor.

  • Is it possible to receive a String[] back into stored procedure?

    Hi,
    Is it possible to return String [] into plsql procedure?
    I have a class :
    class CreditCard {
    public static String cc (String args []) []
    throws
    SQLException, ClassNotFoundException
    I load it into the database and then create a plsql procedure:
    CREATE OR REPLACE PROCEDURE check_credit(
    card_number IN          VARCHAR2,
    exp_month IN          VARCHAR2,
    exp_year      IN          VARCHAR2,
    flag1      OUT varchar2,
    flag2          OUT varchar2)
    AS LANGUAGE JAVA
    NAME 'CreditCard.cc(java.lang.String[]) return java.lang.String[]';
    trying to compile it gives me:
    20/1 PLS-00311: the declaration of "CreditCard.cc(java.lang.String[])
    return java.lang.String[]" is incomplete or malformed
    Is it possible to receive a String[] back into stored procedure?
    Thanks
    Leonid

    I don't think you can use a String Array directly, you have to use an oracle.sql.ARRAY.
    You use the oracle.sql.ARRAY parameter in Java as an OUT parameter in the stored procedure. You need to use an ArrayDescriptor which requires a corresponding Oracle Nested Table type.
    Try something like the following:
    First the Nested Table Type:
         CREATE OR REPLACE TYPE
         TBL_STRINGS AS TABLE OF VARCHAR2(999);
    Then the Java method:
    public static void getStrings(oracle.sql.ARRAY[] theStrings) //has to be an array of oracle.sql.ARRAY's as we use it as an OUT parameter
    try
         //get a connection
         Connection conn = DriverManager.getConnection("jdbc:default:connection:");
         String [] colours = new String []{"RED", "GREEN", "GOLD"};
    ArrayDescriptor desc = ArrayDescriptor.createDescriptor("TBL_STRINGS", conn);
    theStrings[0] = new oracle.sql.ARRAY(desc, conn, colours);
         conn.close();
    catch (SQLException sqle)
              //report error
    Then the call spec:
         PROCEDURE GET_STRINGS(p_the_strings     OUT     TBL_STRINGS)
         AS LANGUAGE JAVA
         NAME 'mypackage.MyClass.getStrings(oracle.sql.ARRAY[])';

  • How to pass parameter from 1 stored procedure to another stored procedure inside crystal report

    Hi
    I have several stored procedure in my Crystal Report. I am wondering if it is possible for me to pass a parameter to one of the stored procedure and to use the result of that stored procedure E.g. CustomerCode. To another 2 stored procedure to generate the report dynamically?
    I have 3 stored procedure
    The 1st one is used to gather information and process the calculation
    another 2 stored procedure is used for generate the graph and both of them required to take 2 parameters. The 1st stored procedure will require 1 parameter (E.G. Reference Code) and will return a set of information including the data that could be use on the other 2 stored procedures.
    After I added these 2 stored procedure, it requires me to pass 3 parameters to the report. I would like to know if I could only pass the Reference Code for stored procedure 1 and use it to retrieve the information for the other 2 parameter?
    Thanks in advance
    Chi

    Hi Chi
    To pass parameter from 1 stored procedure to another stored procedure, you will have to create sub report. In your case you will have to create 2 sub reports for 2nd and 3rd stored procedure and link those sub reports with the main report using Reference Code field in order to pass the values.
    After creating the report when you will refresh the report, it will ask 4 parameters, one parameter for main report, one for the first subreport and two for second subreport to fetch the data correctly.
    Regards
    Poonam Thorat.

  • Trying to pass array to stored procedure in a loop using bind variable

    All,
    I'm having trouble figuring out if I can do the following:
    I have a stored procedure as follows:
    create procedure enque_f826_utility_q (inpayload IN f826_utility_payload, msgid out RAW) is
    enqopt dbms_aq.enqueue_options_t;
    mprop dbms_aq.message_properties_t;
    begin
    dbms_aq.enqueue(queue_name=>'f826_utility_queue',
    enqueue_options=>enqopt,
    message_properties=>mprop,
    payload=>inpayload,
    msgid=>msgid);
    end;
    The above compiles cleanly.
    The first parameter "inpayload" a database type something like the following:
    create or replace type f826_utility_payload as object
    2 (
    3 YEAR NUMBER(4,0),
    4 MONTH NUMBER(2,0),
    83 MUSTHAVE CHAR(1)
    84 );
    I'd like to call the stored procedure enque_f826_utility_q in a loop passing to it
    each time, new values in the inpayload parameter.
    My questions are:
    First, I'm not sure in php, how to construct the first parameter which is a database type.
    Can I just make an associative array variable with the keys of the array the same as the columns of the database type shown above and then pass that array to the stored procedure?
    Second, is it possible to parse a statement that calls the enque_f826_utility_q procedure using bind variables and then execute the call to the stored procedure in a loop passing new bind variables each time?
    I've tried something like the following but it's not working:
    $conn = oci_pconnect (....);
    $stmt = "select * from f826_utility";
    $stid = oci_parse($conn, $sqlstmt);
    $r = oci_execute($stid, OCI_DEFAULT);
    $row = array();
    $msgid = "";
    $enqstmt = "call enque_f826_utility_q(:RID,:MID)";
    $enqstid = oci_parse($conn, $sqlstmt);
    oci_bind_by_name($enqstid, ":RID", $row); /* line 57 */
    oci_bind_by_name($enqstid, ":MID", $msgid);
    while ($row = oci_fetch_array($stid, OCI_RETURN_NULLS+OCI_ASSOC))
    ++$rowcnt;
    if (! oci_execute($enqstid)) /* line 65 */
    echo "Error";
    exit;
    When I run this, I get the following:
    PHP Notice: Array to string conversion in C:\Temp\enqueue_f826_utility.php on l
    ine 57
    Entering loop to process records from F826_UTIITY table
    PHP Notice: Array to string conversion in C:\Temp\enqueue_f826_utility.php on l
    ine 65
    PHP Warning: oci_execute(): ORA-06553: PLS-306: wrong number or types of argume
    nts in call to 'ENQUE_F826_UTILITY_Q' in C:\Temp\enqueue_f826_utility.php on lin
    e 65
    PHP Notice: Undefined variable: msgnum in C:\Temp\enqueue_f826_utility.php on l
    ine 68
    Error during oci_execute of statement select * from F826_UTILITY
    Exiting!

    Thanks for the reply.
    I took a look at this article. What it appears to describe is
    a calling a stored procedure that takes a collection type which is an array.
    Does anyone from Oracle know if I can pass other database type definitions to a stored procedure from PHP?
    I have a type defined in my database similar to the following which is not
    an array but a record of various fields. This type corresponds to a payload
    of an advanced queue payload type. I have a stored procedure which will take as it's input, a payload type of this structure and then enqueue it to a queue.
    So I want to be able to pass a database type similar to the following type definition from within PHP. Can anyone from Oracle verify whether or not this is possible?
    create or replace type f826_utility_payload as object
    YEAR NUMBER(4,0),
    MONTH NUMBER(2,0),
    UTILITY_ID NUMBER(10,0),
    SUBMIT_FAIL_BY VARCHAR2(30),
    MUSTHAVE CHAR(1)
    );

  • Pass String Array to Another JSP

    Hi,
    I want to pass a string array to a nother JSP. Could any one pls tell me whether this is possible in JSP,then how. If it's impossible how can i full fill my task.
    Thanks,
    Dumindu.

    Depends on how you are navigating from one jsp to the other.
    For ex: if you are using a forward
    in jsp1
    sthinglike
    String[] strArray = new String[]{"val1","val2","val3"};
    request.setAttribute("arrayatt",strArray);in jsp it can be retrieved as
    String[] ret = (String[])(request.getAttribute("arrayatt"));
    Hope that helps

  • How  to Pass String array from Java to PL/SQL  and this use in CURSOR

    hi,
    I cant understand how to pass Array String as Input Parameter to the Procedure and this array use in Cursor for where condition like where SYMPTOM in( ** Array String **).
    This array containing like (SYMPTOM ) to be returned from the java to the
    pl/sql (I am not querying the database to retrieve the information).
    I cannot find an example on this. I will give the PL/SQL block
    create or replace procedure DISEASE_DTL<*** String Array ***> as
    v_SYMPTOM number(5);
    CURSOR C1 is
    select distinct a.DISEASE_NAME from SYMPTOM_DISEASE_RD a
    where ltrim(rtrim(a.SYMPTOM)) in ('Fever','COUGH','Headache','Rash') ------- ***** Here use this array element(like n1,n2,n3,n4,n5..) ******
    group by a.DISEASE_NAME having count(a.DISEASE_NAME) > 3 ----------- ***** 3 is no of array element - 1 (i.e( n - 1))*****
    order by a.DISEASE_NAME ;
    begin
    for C1rec IN C1 loop
    select count(distinct(A.SYMPTOM)) into v_SYMPTOM from SYMPTOM_DISEASE_RD a where A.DISEASE_NAME = C1rec.DISEASE_NAME;
    insert into TEMP_DISEASE_DTLS_SYMPTOM_RD
    values (SL_ID_SEQ.nextval,
    C1rec.DISEASE_NAME,
    (4/v_SYMPTOM), --------**** 4 is no of array element (n)************
    (1-(4/v_SYMPTOM)));
    end loop;
    commit;
    end DISEASE_DTL;
    Please give the proper solution and step ..
    Thanking you,
    Asish

    I've haven't properly read through your code but here's an artificial example based on a sql collection of object types - you don't need that, you just need a type table of varchar2 rather than a type table of oracle object type:
    http://orastory.wordpress.com/2007/05/01/upscaling-your-jdbc-app/

  • Pass String Array to DLL

    Hi,
     I m trying to pass a String Array to a DLL, but I can't found the type for the  "Char *heihei[ ]"
    Here I attached the screenshot here. Hopefully some expert here can help me to solve out this thing. Thanks a lot in advance.
    DLL input:
    int __stdcall RunDLLUI (char * pszMainPath, char * pszFileName, int * nArrayErrorRow, char * pszArrayErrorCol[], int nNumOfErrors, int nOffsetError);          
    Please refer to the pictures attached. Thanks again for your time.
    Attachments:
    code.JPG ‏29 KB
    front.JPG ‏40 KB
    DataType.JPG ‏49 KB

    You should post your LabVIEW question to the LabVIEW board.

  • Problem when passing string array in sessions showing null value

    i am trying to pass a string array but it is showing me the null value
    i think the the problem is seem to be in session.settAttribute("subject['"+i+"']",subject) in 2.login_action.jsp
    or in String sub1=(String) session.getAttribute("subject[0]"); in 3.user_home.jsp
    i have following three pages
    1.login.html
    2.login_action.jsp
    3.user_home.html
    1.login.html
    <html>
    <body>
    <form method="post" action="login_action.jsp">
    Username<input type="text" name="username"></input>
    <br>
    Password<input type="password" name="password"></input>
    <input type="submit" value="login"></input>
    </form>
    </body>
    </html>
    2.login_action.jsp
    <%@ page contentType="text/html"%>
    <%@ page import="java.sql.*" %>
    <%!
    String user,pwd;
    String subject[]=new String[10];
    int i,totalsubject;
    %>
    <%
    try
    user=request.getParameter("username");
    pwd=request.getParameter("password");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:ods","scott","tiger");
    PreparedStatement ps = con.prepareStatement("select password from users where username='"+user+"'");
    ResultSet rs = ps.executeQuery();
    if(rs.next())
    if(rs.getString("password").equals(pwd))
    session.setAttribute("username",user);
    PreparedStatement ps2 = con.prepareStatement("select subject_id from allot_teachers where staff_id='"+user+"'");
                        ResultSet rs2 = ps2.executeQuery();          
                             while(rs2.next())
                             i=0;
                             subject[i]=rs2.getString(1);
    // if i display here the subjects in out.println(subject[i]) it is working fine
    // but in next redirected page it is showing null
                             session.setAttribute("subject['"+i+"']",subject[i]);
                             //out.println(subject[i]);
                             i++;
    response.sendRedirect("user_home.jsp");
    else
    out.println("error invalid username or password");
    else
    out.println("error invalid username or password");
    con.close();
    catch(Exception e)
    out.println(e);
    %>
    3. user_home.jsp
    <%@ page contentType="text/html"%>
    <%@ page import="java.sql.*" %>
    <html>
    <%
    String user,pwd,cat,cat1;
    String username=(String) session.getAttribute("username");
    if(username==null)
    response.sendRedirect("login.html");
    //just tried for first two subjects
    String sub1=(String) session.getAttribute("subject[0]");
    String sub2=(String) session.getAttribute("subject[1]");
    //here it is printing null
    out.println(sub1);
    //here it is printing null
    out.println(sub2);
    %>
    <form method="post" action="logout.jsp">
    <input type="submit" value="Logout"></input>
    </form>
    </html>
    Cheers & Regards
    sweety

    The name in getAttributre doesnt match the name in setAttribute.
    Note "subject[0]" is a string containing 10 chars, "subject" is a string containing 7 chars.
    Here is your code:
    session.setAttribute("subject",subject);
    String sub1=(String) session.getAttribute("subject[0]");

  • Using comma seperated String in a Stored Procedure, in a "IN" keyword

    Hello,
    I am stuck trying to figure out the best way to pass an array of Ids into a stored procedure, and evaluate then in a SELECT WHERE statement. e.g. I have:
    possibleIds VARCHAR2(50);
    BEGIN
    SELECT blah FROM foobar
    WHERE foobar.id IN (possibleIds);
    Where possibleIds looks like "10,11,12,30,101"...
    Is this possible somehow? The above fails because possibleIds is evaluated as a VARCHAR2, and is not "concatenated" to the SQL statement.
    Thanks for the help!

    The split function Scott used is some variant on one of the solutions posted in the Ask Tom link I posted. More specifically, it is probably a variant on either one of the pipelined function solutions, or one based on splitting the string into a SQL table of objects.
    Look at Tom's original response to the question for a working solution. If you have a reasonably new version of Oracle, then you may also want to look at the modificataion/modernization later in the thread which can be found here
    HTH
    John

  • Pass literal to Java Stored Procedure?

    The standard Java SP call spec is of the form: (assume a PLSQL package spec properly declares publicProc)
    CREATE OR REPLACE PACKAGE BODY JavaSP AS
    PROCEDURE publicProc(param1 IN VARCHAR2) AS LANGUAGE JAVA NAME 'package1.Class1.method1(java.lang.String)';
    END;
    If I want to pass a value to the Java SP vs passing a parameter that's passed to me by the caller (say I want to invoke the Java method with the string "TEST" passed as a literal value from the package, but don't want the PLSQL caller to know/care what I'm passing to the Java method), is there a way that I can do something like the following? (ie, where I pass the literal value "TEST" as a param to the Java method instead of passing a param that is passed via PLSQL by the caller...)
    CREATE OR REPLACE PACKAGE BODY JavaSP AS
    privateVar VARCHAR2(20) := "TEST";
    PROCEDURE publicProc(param1 IN VARCHAR2) AS LANGUAGE JAVA NAME 'package1.Class1.method1(privateVar)';
    END;
    Clearly, this is an illegal/improper call spec and won't compile, but it hopefully illustrates what I'm trying to accomplish.
    My work-around to this has always been the following:
    CREATE OR REPLACE PACKAGE BODY JavaSP AS
    privateVar VARCHAR2(20) := 'TEST';
    PROCEDURE privateProc(param1 IN VARCHAR2) AS LANGUAGE JAVA NAME 'package1.Class1.method1(privateVar)';
    PROCEDURE publicProc AS
    BEGIN
    privateProc(privateVar);
    END;
    END;
    But it'd be interesting/nice to be able to pass the value directly vs "double-wrapping" the Java SP.
    Any thoughts??
    Thanks,
    Jim

    Oracle provides several ways of passing objects to and from java to Oracle Stored Procedure.
    One way is to directly create oracle.sql.STRUCT object and pass array of values to this object. Another way is to implement java.sql.SQLData or oracle.sql.ORAData interfaces in your class and pass this class to setObject function.
    It is all well described in manual in chapter "Working with Oracle Object Types", there is also a lot of examples in this chapter and on the web.
    http://download-uk.oracle.com/docs/cd/B19306_01/java.102/b14355/oraoot.htm - Working with Oracle Object Types
    Some of the examples:
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/advanced/ObjectOracleSample/Readme.html
    http://javaalmanac.com/egs/java.sql/InsertObjectOraclePreparedStatement.html

  • How pass progressive in a stored procedure

    Hi,
    I've 3 procedures:
    procedure EXEC_STOR_A;
    procedure EXEC_STOR_B (SERV_IN VARCHAR2, NAME_IN VARCHAR2);
    procedure EXEC_STOR_C (SERV_IN VARCHAR2, NAME_IN VARCHAR2);
    and I've created one stored procedure that run the 3 procedures simultaneously
    CREATE OR REPLACE PROCEDURE EXEC_MORE_PROC
    IS
    ERR_MSG VARCHAR2(300);
    ERR_NUM NUMBER;
    PROG NUMBER;
    BEGIN
    EXEC_STOR_A;
    EXEC_STOR_B ('OC', 'MY_STOR_B'));
    EXEC_STOR_C ('OC', 'MY_STOR_C'));
    EXCEPTION
    WHEN OTHERS THEN
         err_msg:= SUBSTR(SQLERRM, 1, 300);
         err_num:= SQLCODE;
         INSERT INTO REP_MESS (proc_name, err_code, err_msg, err_date)
    VALUES ('EXEC_MORE_PROC', err_num, err_msg, sysdate);
    COMMIT;
    END;
    EXEC_STOR_B and EXEC_STOR_C insert the value NAME_IN in the tables MY_TAB_B, MY_TAB_C and progressive starting from 0:
    CREATE TABLE MY_TAB_B (
    ID VARCHAR2 (12),
    NAME VARCHAR2 (32)
    PROGRESSIVE NUMBER);
    CREATE TABLE MY_TAB_B (
    ID VARCHAR2 (12),
    NAME VARCHAR2 (32)
    PROGRESSIVE NUMBER);
    for example when I execute the proc EXEC_MORE_PROC the first time I get (in MY_TAB_B):
    ID.........NAME........PROGRESSIVE
    1.........MY_STOR_B.........0
    10........MY_STOR_B.........0
    88........MY_STOR_B.........0
    99........MY_STOR_B.........0
    when I execute the proc EXEC_MORE_PROC the second time I get (in MY_TAB_B):
    ID.........NAME........PROGRESSIVE
    1.........MY_STOR_B.........1
    10........MY_STOR_B.........1
    88........MY_STOR_B.........1
    99........MY_STOR_B.........1
    Now I'd like to create my stored procedure, inserting into column NAME the value NAME_IN + progressive:
    for example when I execute the proc EXEC_MORE_PROC the first time I get (in MY_TAB_B):
    ID.........NAME..........PROGRESSIVE
    1.........MY_STOR_B_0.........0
    10........MY_STOR_B_0.........0
    88........MY_STOR_B_0.........0
    99........MY_STOR_B_0.........0
    when I execute the proc EXEC_MORE_PROC the second time I get (in MY_TAB_B):
    ID.........NAME..........PROGRESSIVE
    1.........MY_STOR_B_1.........1
    10........MY_STOR_B_1.........1
    88........MY_STOR_B_1.........1
    99........MY_STOR_B_1.........1
    How can I pass varchar2+number in my stored procedure??
    Thanks in advance!!

    and I've created one stored procedure that run the 3
    procedures simultaneouslyActually, you've create one procedure that runs the three procedures sequentially. If you want parallelism, you would have to do something like spawning three background jobs via DBMS_JOB.
    w I'd like to create my stored procedure, inserting
    into column NAME the value NAME_IN + progressive:
    How can I pass varchar2+number in my stored
    procedure??This looks to be the only question you're asking. The answer would seem to be to add a numeric parameter to the stored procedure(s). If the question is how to concatenate a number to a string, that's just
    <<string>> := <<string>> || to_char(<<number>>)Justin

  • Passing parameters to oracle stored procedure in business objects universe

    Hello,
    Wanted to create a web intelligence usind oracle stored procedure.
    Create the  following SP
    create or replace procedure proc_name1
        proc_freq in number,
        proc_cur1 in out sys_refcursor
    as
    begin
        INSERT INTO
                cc    VALUES
                ( 'Frequency Value = ' || proc_freq, SYSDATE) ;
        COMMIT ;   
        --daily
            if(proc_freq = 2) then
            open proc_cur1 for SELECT
                        EVENT_DATE
                    FROM rqm_mapsigng_dly_stats;
            end if;
    end;
    tried using the above SP in universe, it is needed to pass the parameter for proc_freq, when i pass value 2 , in oracle it is passed as 0(is being traced in rqm_checkpoint  table)
    Hence the table cannot be inserted in the universe.
    Can anyone tell why the value is not being passed correctly

    I believe when you're doing it with an insert, you're saying "execute this insert statement a bunch of times, here's all the values in advance", which is different than passing an array to a stored procedure where you want it to execute once.
    Oracle's ODBC driver doesnt support Associative Arrays (aka index-by tables).
    Hope it helps,
    Greg

Maybe you are looking for

  • Images not showing up in preview

    I have a web site that I'm working on that has a simple problem (I'm sure) but it is frustrating. The web site is in it's own folder on the server named public_html. The thing is, the pages look fine when I view them in Dreamweaver and when I upload

  • Transitions between external swf

    I borrowed some code to create menu transition swfs in which as a button is pushed, it will look to see if the current swf is at midframe and if so, play the exiting animation of that swf and then load and play the intor for the swf for that button s

  • SRM Supplier Self Registration(ROS)

    Hi All, Does SRM supplier self-registration(SRM-ROS) work well with all email applications? Meaning does is work well with computer based and web-based email applications? With computer based email applications, does SRM-ROS only work with outlook, o

  • Converting .MTS files to .MOV files

    I'm converting .MTS files from my new Sony AVCHD camcorder to .MOV files with a software called VoltaicHD. It works well but it takes for ever to transfer large amounts of footage. Anyone aware of a way to batch convert these files? Also, am I loosin

  • New to multithreading, would like some advice

    Hi guys, I currently have a project which runs in single thread mode but im thinking of implementing multi threading and im wondering if its actually worth doing. Within the project i have a group of objects held in a hash map, when any of the object