Oracle collection

Is it possible to call a PL/SQL procedure from Java with a PL/SQL table as a parameter?
thanx

Don't think so.... seem to remember this caused us a problem a while ago.
Our solution was to use Oracle collection types instead.

Similar Messages

  • How to use oracle collection type with JDBC?

    I try to use oracle collection type in java program. So I made some package and java program, however Java program was not found "package.collectiontype"(JDBC_ERP_IF_TEST.NUM_ARRAY) . please, show me how to use this.
    Java Version : Java 1.4
    JDBC Driver : Oracle Oci Driver
    DB: Oracle 9i
    No 1. Package
    ===========================================
    create or replace package JDBC_ERP_IF_TEST AS
    type NUM_ARRAY is table of number;
    procedure JDBC_ERP_IF_ARRAY_TEST(P_NUM_ARRAY IN NUM_ARRAY, ERR_NO OUT NUMBER, ERR_TEXT OUT VARCHAR2);
    procedure TEST(ABC IN NUMBER);
    END JDBC_ERP_IF_TEST;
    ==================================================
    No 2. Package Body
    ===============================================
    CREATE OR REPLACE package BODY JDBC_ERP_IF_TEST is
    procedure JDBC_ERP_IF_ARRAY_TEST(p_num_array IN NUM_ARRAY,
    ERR_NO OUT NUMBER,
    ERR_TEXT OUT VARCHAR2) is
    begin
    ERR_NO := 0;
    ERR_TEXT := '';
    dbms_output.enable;
    for i in 1 .. p_num_array.count() loop
    dbms_output.put_line(p_num_array(i));
    insert into emp (empno) values (p_num_array(i));
    commit;
    end loop;
    EXCEPTION
    WHEN OTHERS THEN
    ERR_NO := SQLCODE;
    ERR_TEXT := ERR_TEXT ||
    ' IN JDBC INTERFACE TEST FOR ORACLE ERP OPEN API..';
    ROLLBACK;
    RETURN;
    end JDBC_ERP_IF_ARRAY_TEST;
    procedure TEST(ABC IN NUMBER) IS
    begin
    insert into emp(empno) values (ABC);
    commit;
    end TEST;
    end JDBC_ERP_IF_TEST;
    ===============================================
    NO 3. Java Program
    ===============================================
    ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor("JDBC_ERP_IF_TEST.NUM_ARRAY", getConnection());
    ARRAY array = new ARRAY(descriptor, getConnection(), arrs);
    cstmt = getConnection().prepareCall(LQueryFactory.getInstance().get("Meta/Basic/testJdbcErpArrayIf").getSql());
    cstmt.setArray(1, array);
    cstmt.registerOutParameter(2, Types.INTEGER);
    cstmt.registerOutParameter(3, Types.VARCHAR);
    ====================================================
    couldn't find this phase => JDBC_ERP_IF_TEST.NUM_ARRAY
    what can i do for this package and program? please help me..

    Something like this:
    create or replace type t_record as  object (
    id number,
    no number
    CREATE or replace type t_table AS TABLE OF t_record;
    set serveroutput on
    declare
      v_table t_table := t_table();
      v_t1 t_table := t_table();
    begin
      v_table.extend(1);
      v_table(1).ID := 1;
      v_table(1).No := 10;
      v_table.extend(1);
      v_table(2).ID := 2;
      v_table(2).ID := 20;
      SELEC t_record (ID,NO) BULK COLLECT INTO v_t1
      from TableA
      FROM TABLEA
      WHERE ID IN (select t.ID from table(v_Table) t);
      for i in 1..v_t1.count loop
        dbms_output.put_line(v_t1(i).ID);
        dbms_output.put_line(v_t1(i).No);
      end loop;
    end;
    /Untested!
    P;
    Edited by: bluefrog on Mar 5, 2010 5:08 PM

  • How to convert Oracle Collection(Objects) to XML dynamically?

    Dear members,
    As a requirement I need to pass the collection of values(typically a object or a table type) to a procedure and generate a XML file on the fly basing on these collection values.I am not sure how to do it.Can anyone please guide me on that?
    Thanks

    Hi,
    depending on how often/how complex the programming job is:
    --- complex Xml structure, lots of changes: Have a look at [Oracle XML DB Developers Guide|http://download-west.oracle.com/docs/cd/B28359_01/appdev.111/b28369/toc.htm], chapter 3: Using Oracle XML DB
    --- simple:
    Here's a quick sample for generating Xml from SQL collection types. Works (at least) >= 10g.
    create type xxp_foo_type as object (
    a number
    instantiable
    create type xxp_foo_tab as table of xxp_foo_type
    declare
    v_table xxp_foo_tab := xxp_foo_tab();
    v_xml xmltype;
    begin
    v_table.extend(2);
    v_table(1) := xxp_foo_type( 1 );
    v_table(2) := xxp_foo_type( 2 );
    select xmlelement( "MyXml",
    xmlagg(
    xmlelement( "SomeValue", t.a )
    into v_xml
    from table( v_table ) t
    dbms_output.put_line( v_xml.getStringVal() );
    end;

  • Outputting data in an Oracle Collection

    I would like some advice on the easiest way to output the data in my collection given the code I have below. An example would be GREATLY appreciated.
    DECLARE
    TYPE refresh_file_t IS TABLE OF test.loading_dock%ROWTYPE ;
    demo refresh_file_t ;
    BEGIN
    SELECT * BULK COLLECT INTO demo FROM test.loading_dock ;
    END ;

    Here is what I'm trying to do. I assign my data to my collection. Then I try to loop through the collection and use put_line to view it.
    For simplicity reasons, I am limiting my data to only one record. Here is my code and my error below...thanks for your help!
    CODE
    DECLARE
    TYPE refresh_file_t IS TABLE OF test.refresh_loading_dock%ROWTYPE ;
    demographic refresh_file_t ;
    v_count INTEGER ;
    BEGIN
    SELECT * BULK COLLECT
    INTO demographic
    FROM test.refresh_loading_dock
    WHERE ROWNUM = 1 ;
    v_count := demographic.FIRST ;
    WHILE (v_count IS NOT NULL)
    LOOP
    dbms_output.put_line(demographic(v_count)) ;
    v_count := demographic.NEXT(v_count) ;
    END LOOP ;
    END ;
    ERROR
    ORA-06550: line 14, column 9:
    PLS-00306: wrong number or types of arguments in call to 'PUT_LINE'
    ORA-06550: line 14, column 9:
    PL/SQL: Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause: Usually a PL/SQL compilation error.
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Oracle Collections

    Hi,
    We have a requirement to build a procedure:
    The procedure should be capable of the following:
    I procedure will accept certain input parameters (Example: 4 Input parameteres).
    The input varables should be capable of holding more than one value.
    The procedure will also have a cursor based on some table, and this select will accept the above input parameters and will fetch the data.
    If they send the input parameters in bulk how do i receive them and will pass to my cursors select.
    Please help me with this, its very urgent.
    Please let me know incase of any clarifications.
    Thanks and Regards
    Srinivas

    You have not specified how you will use the input parameters in the where clause. So i make my
    assumption that the input parameters will be applied at the each column in row level. Said that
    you dont have to have 4 input parameters you can create a object list instead.
    Below is an example to demonstrate how to do it.
    following is my employee table
    SQL> select * from emp;
         EMPNO ENAME  JOB              MGR HIREDATE         SAL        COM     DEPTNO
          7369 SMITH  CLERK           7902 17-DEC-80        800          0         20
          7499 ALLEN  SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD   SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES  MANAGER         7839 02-APR-81       2975          0         20
          7654 MARTIN SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE  MANAGER         7839 01-MAY-81       2850          0         30
          7782 CLARK  MANAGER         7839 09-JUN-81       2450          0         10
          7788 SCOTT  ANALYST         7566 19-APR-87       3000          0         20
          7839 KING   PRESIDENT            17-NOV-81       5000          0         10
          7844 TURNER SALESMAN        7698 08-SEP-81       1500          0         30
          7876 ADAMS  CLERK           7788 23-MAY-87       1100          0         20
    11 rows selected.I create a object type and corrosponding table type for the object
    SQL> create or replace type emp_obj as object(job varchar2(20), deptno integer);
      2  /
    Type created.
    SQL> create or replace type emp_obj_list as table of emp_obj
      2  /
    Type created.Following is the procedure that gets one input parameter which is of the table type and apply that in the
    where clause of the select statement of the cursor.
    SQL> create or replace procedure print_employee_detail
      2  (
      3    pEmpList emp_obj_list
      4  )
      5  as
      6     cursor c_emp
      7     is
      8     select empno, ename, job, mgr, hiredate, sal, deptno
      9       from emp
    10      where (job, deptno) in (
    11                                select job, deptno
    12                             from table(pempList)
    13                             );
    14  begin
    15     for i in c_emp
    16     loop
    17        dbms_output.put_line(rpad(i.empno, 10)||rpad(i.ename, 20)||rpad(i.job, 20)||rpad(i.mgr, 10)||rpad(i.hiredate, 10)||rpad(i.sal, 10)||rpad(i.deptno, 10));
    18     end loop;
    19* end;
    SQL> /
    Procedure created.
    SQL> set serveroutput on
    SQL>
    SQL> exec print_employee_detail(emp_obj_list(emp_obj('MANAGER', 10), emp_obj('MANAGER', 30)))
    7782      CLARK               MANAGER             7839      09-JUN-81 2450      10
    7698      BLAKE               MANAGER             7839      01-MAY-81 2850      30
    PL/SQL procedure successfully completed.

  • New with oracle collection

    All,
    Can any one help me in finding the difference between the below two types
    create or replace type typ_custadd as object
    (house_no number,
    floor_number number,
    street_number number,
    city varchar2(30),
    pin_code number
    create or replace type typ_custadd as record
    (house_no number,
    floor_number number,
    street_number number,
    city varchar2(30),
    pin_code number
    Regards
    Sikander

    When you declare a type in PL/SQL, such as the record type in your example, it is only usable from PL/SQL.
    If it is declared locally to a procedure or function, then it can only be used within that subprogram;
    if it is declared in a package body it can only be used within that package;
    if it is declared in a package header it can be used by any PL/SQL code that has execute access to the package.
    In no way can it be referenced in SQL statements, even ones embedded in the PL/SQL code.
    When you create an object type, or other schema-level type definitions such as nested tables,
    it is usable within both SQL and PL/SQL.

  • Passing collection parameters from/to Oracle 8i stored procedure to/from Weblogic java program

    Environment- Oracle DB 8.1.7 (Sun) - JDBC OCI 8.1.7 - Application Server (WebLogic 6.0 or 6.1)QuestionHow to pass oracle collection data types from PL/SQL stored procedures to Weblogic java program as in/out stored procedures parameters. I am hitting oracle error 2006 unidentified data type trying to pass the following data types:-o java.sql.Structo java.sql.Arrayo oracle.sql.STRUCTo oracle.sql.ARRAYo oracle.jdbc2.Structo oracle.jdbc2.Arrayo any class implemented oracle.jdbc2.SQLData or oracle.sql.CustomDatumInformationAbout PL/SQL stored procedure limitation which only affects the out argument types of stored procedures calledusing Java on the client side. Whether Java methods cannot have IN arguments of Oracle 8 object or collection type meaning that Java methods used to implement stored procedures cannot have arguments of the following types:o java.sql.Structo java.sql.Arrayo oracle.sql.STRUCTo oracle.sql.ARRAYo oracle.jdbc2.Structo oracle.jdbc2.Arrayo any class implemented oracle.jdbc2.SQLData or oracle.sql.CustomDatum

    this is becoming a mejor problem for me.And are you storing it as a blob?
    Oracle doesn't take varchars that big.
    And isn't LONG a deprecated field type for Oracle?
    From the Oracle docs......
    http://download-west.oracle.com/docs/cd/B13789_01/server.101/b10759/sql_elements001.htm#sthref164
    Oracle strongly recommends that you convert LONG RAW columns to binary LOB (BLOB) columns. LOB columns are subject to far fewer restrictions than LONG columns. See TO_LOB for more information.

  • Issue with use of collection type attibutes of oracle custom objects in BC4

    Hi There,
    Just see the simulation, it seems to be an issue with BC4J/OC4j when we have an attribute in the view object mapped to a database column that is of type collection of custom oracle objects.
    1-     I have a oracle type Quantity that is defined to contain 2 numbers
    2-     I have a oracle collection QuantityList that is a collection of Quantity objects.
    3-     I have a table defined as :
    CREATE TABLE ANU_TEST_QUANTITYLIST
      ID        NUMBER,
      USR_DATA  QUANTITYLIST
    NESTED TABLE USR_DATA STORE AS ANU_QUANTITYLIST;4-     Now I try to select the id and usr_data column of this table through the VAnuTestQuantityList view.
    5-     It throws the following exception:
    ## Detail 0 ##
    java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)

    I try using the "Business components from tables" wizard to create a new EO, VO, and AM related to the ANU_TEST_QUANTITYLIST and it works fine for me. You'll see that JDeveloper creates you a custom Quantitylist domain object as part of this process.
    If you are making programmatic use of the oracle.sql.STRUCT then you will see this error in three-tier.
    Use the oracle.jbo.domain.Struct instead.

  • Oracle Designer Collection problem

    Hi all,
    this is my first post in this forum, but I've been using it a lot and I'd like to thank everyone that have always helped me through their posts.
    Now I have come to a problem to which I can't find a solution...
    My problem is the following:
    My goal is to import a data model. To do this I have to create certain objects in Oracle Designer, prior to importing the model itself. The reason for this is that if this certain object isn't created, the import itself fails on a given table.
    More objectively, the object I'm trying to create in the "Server model" in the "Oracle Collection Type" is a VARRAY of 999999 elements of RAW(2000).
    When I try to create this object, I get the following error:
    Message
    RME-00209: Current activity has outstanding violations
    Cause
    Could not 'commit' the data because of outstanding
    data integrity violations.
    Action
    Examine violations, fix the invalid data, and try again.
    Message
    RME-00224: Failed to close activity
    Cause
    Could not close ('commit') an activity.
    Action
    Examine other reported errors for specific details.
    Message
    CDA-00500: Invalid format type <RAW>
    Cause
    The specified format type is not valid.
    Action
    Refer to the format type rules in the Designer Meta-model and
    API documentation.
    This error is on Designer 9.0.2.10 and on Oracle 9.2.0.7 database
    If I try the same thing on Designer 10.1.2.4 and on Oracle 10.2.0.1, I get the following:
    Message
    RME-00020: Internal API error - ORA-06502: PL/SQL: erro numérico ou de valor : o buffer da cadeia de caracteres é demasiado pequeno
    Cause
    The API has detected an internal inconsistency.
    Action
    Check the detail of the associated Oracle Server error message
    (ORA-xxxxx) and resolve it.
    Message
    RME-00011: Operation 'close' on ACTIVITY has failed
    Cause
    An API operation request has failed for some reason.
    Action
    Examine other reported errors for specific details.
    Message
    RME-00222: Failed to dispatch operation to Repository
    Cause
    Requested operation failed because of other errors.
    Action
    Examine other reported errors for specific details.
    Message
    RME-00224: Failed to close activity
    Cause
    Could not close ('commit') an activity.
    Action
    Examine other reported errors for specific details.
    Message
    CDA-00500: Invalid format type <RAW>
    Cause
    The specified format type is not valid.
    Action
    Refer to the format type rules in the Designer Meta-model and
    API documentation.
    If anyone could shed some light on this, it would be much appreciated.
    Best regards to all of you,
    Filipe

    Hi Michael. Thank you for your reply.
    Nevertheless, I think that what you say is not correct since I can create a VARRAY of NUMBER datatype; the only thing I can't create is a VARRAY of RAW datatype.
    Can you, or anyone, comment on this?
    Thank you.
    Regards,
    Filipe
    Message was edited by:
    Filipe

  • Pass a Collection of multi-column records from JAVA to Plsql

    Hi,
    I need to pass a Collection of multi-column records(say Employee Id, Employee Name and Employee Address) from a JAVA application to an Oracle package/stored procedure
    for data processing and updates.
    I initially thought of using a pl/sql table as an input parameter, but then I came to know that a pl/sql table can have ONLY one column and an index (can be a String in
    the case of an Associative Array). Please let me know if my understanding is wrong here.
    I then thought of using a PL/SQL table with a RECORD type as an element. But, I came across a documentation that says that, Oracle JDBC does not support RAW, DATE, and PL/SQL RECORD as element types.
    Could you please let me know how I can pass multi-column records from JAVA to an Oracle Stored procedure as an input parameter? Millions of rows would be sent by the JAVA program to the Oracle Stored procedure.
    Any help will be highly appreciated.
    Regards,
    Sunil.

    There are several examples in the " Working with Oracle Collections" from the "JDBC Developer's Guide and Reference". You can either use a Map to create Java objects that are created with the Oracle objects data or the generic oracle.sql.STRUCT interface.
    http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96654/oraarr.htm#1047581
    http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96654/oraoot.htm#1039477

  • On making call to Oracle procedures from Java, Value becomes null on oracle

    We are using some user defined Oracle data types in my Java/J2EE application
    and some of them are Oracle collections(ex. VARRAY).
    We are making a call to Procedures/Functions from Java, there are some
    parameters of user defined data types declared in the
    procedures/functions, from java the values are properly setting to these
    user defined data type parameters and sending to Procedures.
    We are not getting any exception at Java side and Oracle side and values
    are becoming blank/null at oracle procedure side for the parameters of
    user defined data types.
    But when do the count of collection of user defined data type then it is
    properly giving the size of collection(VARRAY).
    When we are trying to read the values from the collection(VARRAY) it is
    giving blank/null value and there is no exception.
    Please let me know if you have any suggestion on this?

    user7671994 wrote:
    When we are trying to read the values from the collection(VARRAY) it is
    giving blank/null value and there is no exception.If you are talking about VARCHAR2 parameters of the objects - then you should add orai18n.jar to classpath.

  • Dyanamic sampling and statistics collection

    HI all,
    im a newbie and i have a question. please correct me if im wrong too.
    The documentation I studied specifies that Dyanmic sampling collects the statistics of the objects. im not sure during query execution or while an auto job.
    i also read that starting from 10g , Oracle collects stats for objects as a job (using dbms_stats package). the job is scheduled for new or stale objects , running between 10 pm and 6 am.
    if oracle already runs a job for collecting stats what is dynamic sampling good for.
    Please fill me in . can some body also explaing the query optimizer components.
    thanks in advance.
    Dev

    Assume stats are collected every day at 02:00. Beginning at 08:00 users start making changes. By 11:45 the stats may not bear a close relationship to what was collected the previous morning.
    I thought the explanation in the docs was clear. What doc are you reading (please post the link).

  • How to disable automatic statistics collections on tables

    Hi
    I am using Oracle 10g and we have few tables which are frequently truncated and news rows added to it. Oracle automatically analyzes the table by some means which collects statistics of the table but at the wrong time(when the table is empty). This makes my query to do a full table scan rather using indexes since the statistics was collected when the table was empty.Could any one please let me know how to disable the automatic statistics collection feature of Oracle?
    Cheers
    Anantha PV

    Hi
    I am using Oracle 10g and we have few tables which
    are frequently truncated and news rows added to it.
    Oracle automatically analyzes the table by some means
    which collects statistics of the table but at the
    wrong time(when the table is empty). This makes my
    query to do a full table scan rather using indexes
    since the statistics was collected when the table was
    empty.Could any one please let me know how to disable
    the automatic statistics collection feature of
    Oracle?
    First of all I think it's important that you understand why Oracle collects statistics on these tables: Because it considers the statistics of the object to be missing or stale. So if you just disable the statistics gathering on these tables then you won't have statistics at all or outdated statistics.
    So as said by the previous posts you should gather the statistics manually yourself anyway. If you do so right after loading the data into the truncated table, you don't need to disable the automatic statistics gathering as it only processes objects that are stale or don't have statistics at all.
    If you still think that you need to disable it there are several ways to accomplish it:
    As already mentioned, for particular objects you can lock the statistics using DBMS_STATS.LOCK_TABLE_STATS, or for a complete schema using DBMS_STATS.LOCK_SCHEMA_STATS. Then these statistics won't be touched by the automatic gathering job. You still can gather statistics using the FORCE=>true option of the GATHER__STATS procedures.
    If you want to change the automatic gathering job that it only gathers statistics on objects owned by Oracle (data dictionary, AWR etc.), then you can do so by calling DBMS_STATS.SET_PARAM('AUTOSTATS_TARGET', 'ORACLE'). This is the recommended method.
    If you disable the schedule job as mentioned in the documentation by calling DBMS_SCHEDULER.DISABLE('GATHER_STATS_JOB') then no statistics at all will be gathered automatically, causing your data dictionary statistics to be become stale over time, which could lead to suboptimal performance of queries on the data dictionary.
    All this applies to Oracle 10.2, some of the features mentioned might not be available in Oracle 10.1 (as you haven't mentioned your version of 10g).
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle:
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Increase Scope of Custom variables in Oracle JVM

    We on our project are facing the following problem, any suggestions to work around this would be appreciated :
    We our using Oracle 9i JVM for development
    Our Sample problem flow is as follows :
    A package PKG1 has three procedures PROC1/PROC2/PROC3
    A java class JC1 is invoked by a procedure PROC1 - JC1 is running under oracle JVM.
    JC1 does the task of mapping a custom user defined java object to an oracle collection and invokes a procedure PROC2 (we are using thin client connection object in JAVA by means of simple JDBC calls to connect to the database.) which takes the oracle collection as input parameter and does processing over it.
    A procedure PROC3 does the task of calling PROC1 and then tries to access global variables defined in the package set by PROC2 , which comes out as a failed operation throwing the error as:
         ORA-06531: Reference to uninitialized collection
    The reason for the above behavior is : In the parent oracle session invoked by PROC1 the class JC1 opens another child database session for PROC2 and thus values set in the child thread are not visible to the parent.
    Required support: Is there a means for setting up of some property in ORACLE or Java which can enforce the JAVA CLASS to use its parent / invoking oracle session or if there is any other approach to overcome the above situation.

    Anand,
    I believe the Java in the Oracle Database forum is more appropriate for your question.
    You said:
    The reason for the above behavior is the parent oracle session opens
    another child database session
    How do you do this? And why? And what evidence makes you certain that this is the problem?
    Good Luck,
    Avi.

  • Issue in passing Oracle User Defined Types to PL SQL from Websphere Applica

    HI,
    I am facing an issue when trying to pass Oracle collection object(User Defined Types) from Java to PL SQL. The issue happens inside J2EE application which is running inside Websphere Application Server 6.x. My database is Oracle 10g and i am using ojdbc1.4.jar as thin driver.
    The issue is that when i pass the Oracle Object from java side, the attribute values of the collection objects at the Oracle PL SQL side is coming as empty. I have tried the same java code in a standalone application and it works fine. The issue happens only when the application is running inside WAS.
    Anybody has any idea how to pass Oracle User Defined Types from WAS 6.x server to Oracle PL SQL?

    Andy Bowes wrote:
    Hi
    I am using WebLogic 8.14 & Oracle 9i with thin JDBC driver.
    Our application needs to perform the same DB operation for every item in a Java Collection. I cannot acheive the required performance using the standard Prepare & Execute loop and so I am looking to push the whole collection to Oracle in a single invocation of a Stored Procedure and then loop on the database.
    Summary of Approach:
    In the Oracle database, we have defined a Object Type :
    CREATE OR REPLACE
    TYPE MYTYPE AS OBJECT
    TxnId VARCHAR2(40),
    Target VARCHAR2(20),
    Source VARCHAR2(20),
    Param1 VARCHAR2(2048),
    Param2 VARCHAR2(2048),
    Param3 VARCHAR2(2048),
    Param4 VARCHAR2(2048),
    Param5 VARCHAR2(2048),
    and we have defined a collection of these as:
    CREATE OR REPLACE
    TYPE MYTYPE_COLLECTION AS VARRAY (100) OF MYTYPE
    There is a stored procedure which takes one of these collections as an input parameter and I need to invoke these from within my code.
    I am having major problems when I attempt to get the ArrayDescriptor etc to allow me to create an Array to pass to the stored procedure. I think this is because the underlying Oracle connection is wrapped by WebLogic.
    Has anyone managed to pass an array to an Oracle Stored procedure on a pooled DB connection?
    Thanks
    AndyHi. Here's what I suggest: First please get the JDBC you want to work in a
    small standalone program that uses the Oracle thin driver directly. Once
    that works, show me the JDBC code, and I will see what translation if
    any is needed to make it work with WLS. Will your code be running in
    WebLogic, or in an external client talking to WebLogic?
    Also, have you tried the executeBatch() methods to see if you can
    get the performance you want via batches?
    Joe

Maybe you are looking for

  • Performance tuning

    Hi guys! I'll be always in favour to you if u could really help me this out.The program displays all the Sales order(RMA's) who's series starts with number 6 in our company ie for Return Manufacturing Authoriazation.What ever the orders which are ret

  • Error starting the MDM server in client system

    Hi MDM Experts, I am new to MDM and we have just installed MDM 5.5 on our system. We are able to 'Mount the Repository' via the MDM Console on the client side but when we try to 'Start MDM Server', we encounter the error below: "Error starting MDM se

  • How to open a PDF with Acrobat 5?

    I'm trying to open a pdf. I get an error message saying file is damaged and can't be opened but I have no problem opening  it with Adobe ReaderX. What is wrong? Thanks!

  • Debugging PL/SQL Packages

    We have been searching for an effective debugging tool for PL/SQL but have come up short. The issue that we have encountered is that no tool that we have attempted to use will show global package variables. Does anyone know of a product or methodolog

  • Reg: Cannot Importing B2mml XSD's successfully into PI External defnitions

    Hi! PI Team, I would like to know one interesting topic about B2MML structures. Here as per my requirement we are trying to integrate MES application with ECC by means of PI 7.1. For that I received List of XSD's with B2MML Strucutures.  on ECC side