Issue with IN parameter of Oracle Procedure returning two RefCursors...

Hi all,
I'm having a nightmare with an Oracle procedure that takes one input parameter and returns two RefCursors as outputs. I recently got help in this forum getting a procedure to work that took no inputs but returned two refcursors and that's still working fine. So, for my current issue I have a procedure defined as follows:
PROCEDURE getQueueInfo(domainKey char, importQueues OUT ODPNet.refcur, exportQueues OUT ODPNet.refcur) IS
  BEGIN
    OPEN importQueues FOR SELECT
    source_key, source_applid,
    import_status(source_key) as status,
    time_added, time_processed
    FROM wm_import_source_header
    WHERE source_id = domainKey
    ORDER BY source_key DESC;
    OPEN exportQueues FOR SELECT
    h.source_key, d.source_applid,
    export_status(h.source_key) as status,
    d.source_wire_code, d.destination_wire_code, h.time_added,
    h.time_transmitted
    FROM wm_export_source_header h, wm_export_source_data d
    WHERE h.source_key = d.source_key
      and d.source_id = domainKey
    ORDER BY h.source_key DESC;
  END getQueueInfo;This is defined within a package called ODPNet as with my previous procedure and all works fine (I can execute within Oracle SQL Developer and it returns the expected results). Within my .NET application my code is as follows:
            try
                using (OracleConnection conn = new OracleConnection(connString))
                using (OracleCommand comm = new OracleCommand())
                    comm.CommandText = "ODPNet.getQueueInfo";
                    comm.CommandType = CommandType.StoredProcedure;
                    comm.Connection = conn;
                    OracleParameter domainKey = new OracleParameter();
                    OracleParameter importQueues = new OracleParameter();
                    OracleParameter exportQueues = new OracleParameter();
                    domainKey.OracleDbType = OracleDbType.Char;
                    importQueues.OracleDbType = OracleDbType.RefCursor;
                    exportQueues.OracleDbType = OracleDbType.RefCursor;
                    domainKey.Value = "UKBD72";
                    domainKey.Direction = ParameterDirection.Input;
                    importQueues.Direction = ParameterDirection.Output;
                    exportQueues.Direction = ParameterDirection.Output;
                    comm.Parameters.Add(domainKey);
                    comm.Parameters.Add(importQueues);
                    comm.Parameters.Add(exportQueues);
                    conn.Open();
                    comm.ExecuteNonQuery();
                    OracleDataReader dr1 = ((OracleRefCursor)importQueues.Value).GetDataReader();
                    OracleDataReader dr2 = ((OracleRefCursor)exportQueues.Value).GetDataReader();
                    if (dr1.HasRows)
                        while (dr1.Read())
                            result6 += dr1["source_applid"].ToString() + "<br>";
                    else
                        result6 += "No Rows";
                    if (dr2.HasRows)
                        while (dr2.Read())
                            result7 += dr2["source_applid"].ToString() + "<br>";
                    else
                        result7 += "No Rows";
            catch (Exception ex)
                result6 = ex.ToString();
            }The value I want to submit as the IN parameter of the procedure is "UKBD72". but I'm really not sure how to apply this and then return my two refcursors into separate datareaders (except for the input parameter stuff the code above is exactly what I did with the other procedure that returned two ref cursors and still works fine). When I run this code I get no errors, I just get told that each DataReader has no rows returned, which shouldn't be right.
Any help with this would be hugely appreciated.
Cheers,
Seb

Sorry folks, after staring at this over and over, eventually going to sleep and coming back to it with some fresh eyes I realised I was just being a complete idiot - I was feeding the procedure different data in the .NET app than I was when testing in Oracle SQL Developer. Low and behold once I gave it the right data it worked!
Silly me...

Similar Messages

  • Oracle Procedure returning more number of records

    Hi,
    I have created an Oracle Procedure which is supposed to fetch a record as per the input parameter passed.
    The core query in the procedure is as below -
    SELECT DISTINCT col1 FROM my_tab WHERE col2 = 'Input parameter'
    Few of the input parms (col2) has more number of records (col1) and so the procedure gives an error like -
    'ORA-01422: exact fetch returns more than requested number of rows'
    Could you please let me know how can I modify the procedure so that it would return more number of records as the case may be?
    Thank you!

    It still gives me the same error when it encounters more than one output.Yes, I'm sure it does.
    But we can't tell you how to fix it because we don't know what you want.
    What's the purpose of the procedure?
    Is it to "spell check" the name of an intermediary? If so, you'll need to figure out what to do when you have more then one person with the same name.
    You can add AND ROWNUM = 1. Or perhaps you can trap the too_many_rows exception.
    Your procedure doesn't return anything (no out variables). Is that correct?
    Or is the purpose of the procedure to return the ID of the matching name?

  • Bind variable with search parameter in Oracle BI Publisher 10

    Search list for a search parameter in Oracle BI EE works fine when the query doesn't contain a bind variable (parameter identifier). But when a bind variable is introduced in the constraint of search list query, it keeps on searching endlessly. For example,
    -- this doesn't work
    select col1
    from table
    where table.col2 = :I_param_bind_var
    -- this works
    select col1
    from table
    where table.col2 = 'xyz'
    Using such bind variable in the list of values for menu parameters works fine. Is it an issue regarding publisher or am I missing something?
    Edited by: 933296 on Aug 21, 2012 1:38 AM

    <?param@begin:Show_Location;'Yes';'string';'Yes,No'?>
    it will give the Parameter Show_Loactaion with drop down Yes and No.
    and to display <?$Show_Location?>
    <?param@begin:dept;'PAY'?>
    <?$dept?>

  • Issue with dns service in Oracle 6.4

    Hi. I have tried to do everything like here setting hostname,domainname and static IP address but it did not help me and i still have issue with resolving DNS names.
    [root@node1 etc]# ping 192.168.226.128
    PING 192.168.226.128 (192.168.226.128) 56(84) bytes of data.
    64 bytes from 192.168.226.128: icmp_seq=1 ttl=64 time=0.049 ms
    64 bytes from 192.168.226.128: icmp_seq=2 ttl=64 time=0.053 ms
    64 bytes from 192.168.226.128: icmp_seq=3 ttl=64 time=0.068 ms
    ^C
    --- 192.168.226.128 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2320ms
    rtt min/avg/max/mdev = 0.049/0.056/0.068/0.011 ms
    [root@node1 etc]# nslookup 192.168.226.128
    Server:         192.168.226.2
    Address:        192.168.226.2#53
    ** server can't find 128.226.168.192.in-addr.arpa.: NXDOMAIN
    [root@node1 etc]# nslookup node1.node.com
    Server:         192.168.226.2
    Address:        192.168.226.2#53
    Non-authoritative answer:
    *** Can't find node1.node.com: No answer
    [root@node1 etc]# nslookup node1
    Server:         192.168.226.2
    Address:        192.168.226.2#53
    Non-authoritative answer:
    *** Can't find node1: No answer
    [root@node1 etc]# nslookup node.com
    Server:         192.168.226.2
    Address:        192.168.226.2#53
    Non-authoritative answer:
    *** Can't find node.com: No answer
    Meanwhile:
    [root@node1 etc]# nslookup oracle.com
    Server:         192.168.226.2
    Address:        192.168.226.2#53
    Non-authoritative answer:
    Name:   oracle.com
    Address: 137.254.120.50
    [root@node1 etc]#
    my resolv.conf file is:
    [root@node1 etc]# cat /etc/resolv.conf
    # Generated by NetworkManager
    domain localdomain
    search localdomain node.com
    nameserver 192.168.226.2
    [root@node1 etc]#
    and
    [root@node1 etc]# cat /etc/hosts
    127.0.0.1   localhost.localdomain localhost
    192.168.226.128  node1.node.com node1
    [root@node1 etc]#
    [root@node1 etc]# hostname -a
    node1
    [root@node1 etc]# hostname -d
    node.com
    [root@node1 etc]# hostname
    node1.node.com
    DNS configuration RGhost — файлообменник
    [root@node1 etc]# rpm -q bind
    package bind is not installed
    but:
    [root@node1 etc]# rpm -q  bind-utils
    bind-utils-9.8.2-0.17.rc1.0.2.el6.x86_64
    and:
    [root@node1 etc]# ps -ef | grep -i bind
    rpc       1947     1  0 Dec21 ?        00:00:00 rpcbind
    nobody    2831     1  0 Dec21 ?        00:00:00 /usr/sbin/dnsmasq --strict-order --local=// --domain-needed --pid-file=/var/run/libvirt/network/default.pid --conf-file= --except-interface lo --bind-interfaces --listen-address 192.168.122.1 --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-leasefile=/var/lib/libvirt/dnsmasq/default.leases --dhcp-lease-max=253 --dhcp-no-override --dhcp-hostsfile=/var/lib/libvirt/dnsmasq/default.hostsfile --addn-hosts=/var/lib/libvirt/dnsmasq/default.addnhosts
    root      8237 19846  0 04:18 pts/2    00:00:00 grep -i bind
    so i can not understand why dns is not able to resolve ip or whole name for mentioned hostname?

    As I understand it..
    nslookup does a Name Server Lookup - which means asking the DNS to resolve a hostname to an IP address. Which it only can do if it has that hostname/IP mapping.
    In your case, that hostname/IP mapping only exists in /etc/hosts - not in the DNS. Thus the DNS cannot resolve it.

  • Urgent :- Issue with deploying application in Oracle Application server

    Hello All,
    Hope all of you are doing good ! I am facing an issue relating to deploying applications using the Enterprise manager. When i deploy the war file using Deploy WAR file option in the OEM, i get the following error -
    Failed to deploy web application "gCube". Failed to deploy web application "gCube". . The configuration files for this OracleAS 10G instance are inconsistent with the
    configuration stored in the repository. In order to protect the repository,
    no further configuration or deployment operations are allowed until the problem with the configuration on the filesystem is resolved. This condition arises when a prior operation was unsuccessful. The exception associated with this failed operation is:
    {0}
    . Please also check the logs located at
    ORACLE_HOME/dcm/logs to determine why DCM was unsuccessful in updating
    the configuration files on disk. Some possible causes are:
    * permissions on files
    * file contention issues on Windows NT
    * internal Oracle error
    After resolving the problem that prevented DCM from updating the configuration
    files, you may use the dcmctl resyncInstance command to resolve the problem.
    Alternatively, you can stop and then restart the active dcmctl or EMD
    process and resyncInstance will automatically be performed.
    Root Cause: invalid stream header
    Resolution: . invalid stream header
    Please could you throw some light on this issue and also provide a resolution to fix this issue at the earliest ?
    Your help in this , will be greatly appreciated.
    Thanks and Regards,
    Ramanan.

    Hello All,
    Could anyone assist me with a fix for the problem ?
    Would appreciate it greatly.
    Thanks.

  • Unable to pass parameter in oracle procedure through unix shell script

    Hi Experts,
    I have oracle procedure where in I have to pass the value of procedure parameter through unix script.
    Follwoing is the sample procedure which i tried to exceute from the unix.
    Procedure:
    create or replace procedure OWNER.PRC_TESTING_OWNER(OWNER IN VARCHAR2) AS
    sql_stmt varchar2(1000) := NULL;
    v_count number := 0;
    v_owner varchar2(100) := owner;
    begin
    sql_stmt:='select count(1) from '||v_owner||'.EMP@infodb where rownum<=10';
    execute immediate sql_stmt into v_count;
    DBMS_OUTPUT.PUT_LINE(sql_stmt);
    DBMS_OUTPUT.PUT_LINE(v_count);
    END;The script which I used is:
    Unix
    #!/bin/ksh
    parm=$1
    echo start
    sqlplus -s scott@DEV/tiger <<EOF >>result_1.txt
    set serveroutput on;
    select '$parm' from dual;
    exec owner.PRC_TESTING_OWNER('$parm');
    EOFThe script is working fine that is i am able to pass to parameter value through unix shell script. :)
    But if I want to pass the value of the owner in cursor , I am unable to pass this value through unix.
    Following the procedure which i am trying to implement.
    create or replace procedure OWNER.PRC_TESTING_OWNER(OWNER IN VARCHAR2) IS
    v_owner varchar2(100) := owner;
    CURSOR main_cur IS 
      select
      i.ROWID  rid ,
      emp_name,
      deptid
      from v_owner.employee;
    CURSOR subset_cur(c_deptid NUMBER ) IS
        SELECT *
          FROM v_owner.DEPT d
          where  d.dept_id=c_deptid;
    --##main loop     
    FOR i IN main_cur LOOP
          FOR j IN subset_cur(i.deptid) LOOP     
    BEGIN
    insert into v_owner.RESULT_TABLE
    END;
    END LOOP;
    END LOOP;How can i pass parameter value of the stored procedure through unix script(that is "owner" in this case), when these parameter value is
    used in cursor? :(
    Can anybody help me regarding the same?
    Thanks in Advance !! :D

    It's not the parameter in the cursor that is the problem, it's that you are trying to use static SQL for something that won't be known until run time (the owner of the table).
    You would need to use something like ...
    declare
       l_owner        varchar2(30) := 'SCOTT';
       l_ref_cursor   sys_refcursor;  
       type l_ename_tab is table of scott.emp.ename%type;
       l_ename_array  l_ename_tab;
    begin
       open l_ref_cursor for
          'select ename
          from ' || l_owner || '.emp';
       loop
          fetch l_ref_cursor bulk collect into l_ename_array limit 10;
          exit when l_ename_array.COUNT = 0;
          for x in 1 .. l_ename_array.count
          loop
             dbms_output.put_line(l_ename_array(x));
          end loop;
       end loop;
       close l_ref_cursor;
    end;
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.01

  • Performance issue with Crystal when upgrading Oracle to 11g

    Dear,
    I am facing performance issue in crystal report and oracle 11g as below:
    In ther report server, I have created a ODBC for connect to another Oracle 11g server. also in report server I have created and published a folder to content all of my crystal report. These report can connect to oracle 11g server via ODBC.
    and I have a tomcat server to run my application in my application I refer to report folder in report server.
    This way can work with SQL server and oracle 9 or 10g but it facing performance issue in oracle 11g.
    please let me know the root cause.
    Notes: report server, tomcate server are win 32bit, but oracle is in win 64bit, and i have upgraded DataDirect connect ODBC version 6.1 but the issue can not resolve.
    Please help me to solve it.
    Thanks so much,
    Anh

    Hi Anh,
    Use a third party ODBC test tool now. SQL Plus will be using the Native Oracle client so you can't compare performance.
    Download our old tool called SQLCON: https://smpdl.sap-ag.de/~sapidp/012002523100006252882008E/sqlcon32.zip
    Connect and then click on the SQL tab and paste in the SQL from the report and time that test.
    I believe the issue is because the Oracle client is 64 bit, you should install the 32 bit Oracle Client. If using the 64 bit client then the client must thunk ( convert 64 bit data to 32 bit data format ) which is going to take more time.
    If you can use OLE DB or using the Oracle Server driver ( native driver ) should be faster. ODBC puts another layer on top of the Oracle client so it too takes time to communicate between the layers.
    Thank you
    Don

  • Performance Issue with PAY_BALANCE_VALUES_V View in Oracle R12

    Dear all ,
      We have recently upgraded from 11i(11.5.10.2) to R12(12.1.3). We are facing one Issue with slow performance of the queries where PAY_BALANCE_VALUES_V is used. We have so many reports & logic in Payroll which uses this View.
    In 11i this works fine, however in R12 it takes very long time. There are no configuration changes we have done from 11i to R12.
    Is there any way to optimize the performance or alternate way to retrieve the Balances Data in Payroll ?
    Any heads up would be highly Appreciated.
    Thanks,
    Razi

    Hi Razi,
    The balance related performance issue is written in the following note.
    Note:1494344.1 UK Payslip Generation - Self Service Program Takes Much Time To Complete (Performance Issue)
    This issue was fixed in HR_PF.B RUP6 or patch:14376786. Did you apply this patch? If not, I suggest you apply it.
    Also, HR_PF.B RUP6 has some balance related performance issues.
    If you already have applied HR_PF.B RUP6, I suggest you log a SR with SQL trace.
    Thanks,
    Hideki

  • Issues with user creation in Oracle 10g

    ear All,
    After logon to database with sysdba user i created one user by following query:
    CREATE USER BI_USER
    IDENTIFIED BY VALUES '0CE8A6E883EE4E19'
    DEFAULT TABLESPACE BI_USER
    TEMPORARY TABLESPACE TEMP1
    PROFILE DEFAULT
    ACCOUNT UNLOCK;
    After creating this i have given following privledges to it:
    GRANT RESOURCE TO BI_USER;
    GRANT CONNECT TO BI_USER;
    GRANT SCHEDULER_ADMIN TO BI_USER;
    GRANT DBA TO BI_USER;
    GRANT SELECT_CATALOG_ROLE TO BI_USER;
    GRANT GLOBAL QUERY REWRITE TO BI_USER;
    GRANT ANALYZE ANY TO BI_USER;
    GRANT EXECUTE ANY PROCEDURE TO BI_USER;
    GRANT CREATE SEQUENCE TO BI_USER;
    GRANT CREATE SYNONYM TO BI_USER;
    GRANT EXECUTE ANY PROGRAM TO BI_USER;
    GRANT SELECT ANY DICTIONARY TO BI_USER;
    GRANT DROP ANY VIEW TO BI_USER;
    GRANT CREATE DIMENSION TO BI_USER;
    GRANT DROP ANY TYPE TO BI_USER;
    GRANT CREATE ANY DIRECTORY TO BI_USER;
    GRANT ALTER ANY MATERIALIZED VIEW TO BI_USER;
    GRANT CREATE MATERIALIZED VIEW TO BI_USER;
    GRANT UNLIMITED TABLESPACE TO BI_USER;
    BEGIN
    SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    PRIVILEGE => SYS.DBMS_RULE_ADM.EXECUTE_ANY_RULE,
    GRANTEE => 'BI_USER',
    GRANT_OPTION => FALSE);
    END;
    GRANT EXECUTE ANY TYPE TO BI_USER;
    GRANT CREATE ANY MATERIALIZED VIEW TO BI_USER;
    GRANT CREATE TRIGGER TO BI_USER;
    GRANT CREATE ANY TABLE TO BI_USER;
    GRANT CREATE TABLE TO BI_USER;
    BEGIN
    SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    PRIVILEGE => SYS.DBMS_RULE_ADM.EXECUTE_ANY_RULE_SET,
    GRANTEE => 'BI_USER',
    GRANT_OPTION => FALSE);
    END;
    GRANT CREATE TYPE TO BI_USER;
    GRANT DROP ANY INDEX TO BI_USER;
    GRANT SELECT ANY TABLE TO BI_USER;
    GRANT CREATE JOB TO BI_USER;
    GRANT QUERY REWRITE TO BI_USER;
    GRANT CREATE VIEW TO BI_USER;
    GRANT CREATE SESSION TO BI_USER;
    GRANT EXECUTE ANY CLASS TO BI_USER;
    BEGIN
    SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    PRIVILEGE => SYS.DBMS_RULE_ADM.EXECUTE_ANY_EVALUATION_CONTEXT,
    GRANTEE => 'BI_USER',
    GRANT_OPTION => FALSE);
    END;
    GRANT CREATE INDEXTYPE TO BI_USER;
    GRANT CREATE DATABASE LINK TO BI_USER;
    GRANT ALTER SESSION TO BI_USER;
    GRANT DROP ANY DIRECTORY TO BI_USER;
    GRANT CREATE PROCEDURE TO BI_USER;
    GRANT DROP ANY SYNONYM TO BI_USER;
    GRANT DROP ANY TABLE TO BI_USER;
    Now following are the issues i am facing:
    1). After all this when i logon to this user through toad it is successful but through SQL it says invalid username and password
    2). Whenever i create a table it is created in SYS schema not in the user schema for creating it in user schema i have to right username.tablename also in select statement.
    Can any body help me in this.

    2). Whenever i create a table it is created in SYS schema not in the user schema for creating it in user schema i have to right username.tablename also in select statement.
    <code>
    sqlplus scott/tiger
    Connected.
    SQL> desc t
    Name                         Null? Type
    TESTCOL                         VARCHAR2(10)
    SQL> select * from t;
    TESTCOL
    1
    2
    3 new
    SQL> conn / as sysdba
    Connected.
    SQL> sho user
    USER is "SYS"
    SQL> select * from scott.t
    2 ;
    TESTCOL
    1
    2
    3 new
    SQL> create table scott.t_copy as select * from scott.t;
    Table created.
    SQL> conn scott/tiger
    Connected.
    SQL> select * from t_copy;
    TESTCOL
    1
    2
    3 new
    <code>
    1). After all this when i logon to this user through toad it is successful
    but through SQL it says invalid username and password
    <code>
    $ echo $ORACLE_SID
    orcl
    $ tnsping orcl
    TNS Ping Utility for Linux: Version 10.2.0.2.0 - Production on 27-AUG-2009 14:38:34
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    /home/oracle/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
    OK
    $ sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Aug 27 14:38:42 2009
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> sho user
    USER is "SCOTT"
    SQL> select * from t_copy;
    TESTCOL
    1
    2
    3 new
    <code>
    please tell the syntax how you connect through sqlplus

  • Issues with different versions of Oracle.DataAccess.dll

    I have a .net web service application which references version 10.2.0.100 of Oracle.DataAccess.dll. A client has setup Oracle 10g database on the server, but I think the server has a patch set installed so it appears that the versions of Oracle.DataAccess.dll in my web service and on the database server do not match. When I issue a query via the web service on my local machine using my oracle 10g client, the web method returns the correct data. If I issue the same query using the same .net web service on the clients database server, I get the following error: Oracle.DataAccess.Client.OracleException: ORA-00923: FROM keyword not found where expected. There's nothing wrong with the query syntax, I can run the same query from SQL Plus on the database server and get the correct data. Could it be a compatibility issue between the Oracle.DataAccess.dll referenced in my web service application and the file on the sever. I'm not sure what else to look for, any advice is greatly appreciate, and I can answer any questions if needed.
    Thanks,
    NA

    I would not expect an ORA-923 if your the Oracle client was not installed properly. I would expect an exception or a crash.
    You can run an ODP.NET trace to find out what query is getting the ORA-923 by doing the following:
    1) Shutdown web server on the machine that runs the webservice (middle tier),
    2) In windows registry, on the machine that runs the webservice (middle tier), change registry value \\HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\ODP.NET\4.112.1.1\TraceLevel to 1
    3) Reproduce the ORA-923 only
    4) shutdown webserver
    5) Undo the registry value (set it back to 0)
    6) In the generated file (c:\odpnet2.0.trc) do a search for "923", hopefully you can find it. Just before that error, you should see the SQL that was executed. This will obviously not be what you expect and will hopefully point you to the cause of the problem.

  • Issue with java.lang.ClassCastException: oracle.sql.StructDescriptor

    Hi ,
    I'm creating a dbadapter for a custom API written in APPS schema -
    TYPE MISIPM_LOB IS RECORD (
    FILE_ID IPM_LOBS.FILE_ID%TYPE,
    FILE_NAME IPM_LOBS.LOB_NAME%TYPE );
    TYPE MISIPM_LOB_LIST IS TABLE OF MISIPM_LOB;
    PROCEDURE GET_FILE_ID_DETAILS(
    P_SOURCE_SYSTEM IN VARCHAR2,
    p_entity_value IN VARCHAR2,
    p_entity_code IN VARCHAR2,
    P_ORG_ID IN NUMBER,
    P_MISIPM_FILES_LIST OUT MISIPM_LOB_LIST,
    P_ERRCODE OUT VARCHAR2,
    P_ERRMESSAGE OUT VARCHAR2);
    From JDeveloper, there is a wrapper package is getting created and the compilation/deployment of this composite is also without any error.
    But when I run the composite, I'm surprisingly getting the below error -
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'GetAttachmentMetaData' failed due to: Interaction processing error. Error while processing the execution of the APPS.BPEL_GETATTACHMENTMETADATA1.XX_DELIVER_BLOB$GET_FILE_ API interaction. An error occurred while processing the interaction for invoking the APPS.BPEL_GETATTACHMENTMETADATA1.XX_DELIVER_BLOB$GET_FILE_ API. Cause: java.lang.ClassCastException: oracle.sql.StructDescriptor Check to ensure that the XML containing parameter data matches the parameter definitions in the XSD. This exception is considered not retriable, likely due to a modelling mistake. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    I recreated the adapter multiple times within the composite and also tried to create a separate composite and all the cases the error message received was same. There two more similar procedure call's in the composite and all rest of them are working fine.
    I can call the wrapper from sql script separately.
    Verified that the XSD generated and the wrapper package parameters are matching as well.
    Did anyone face the same issue or any explanation/help is much appreciated.
    Regards,
    Debanjan

    Hi Vijay,
    I have checked the number of parameters as well.
    <element name="InputParameters">
    <complexType>
    <sequence>
    <element name="P_SOURCE_SYSTEM" type="string" db:index="1" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    <element name="P_ENTITY_VALUE" type="string" db:index="2" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    <element name="P_ENTITY_CODE" type="string" db:index="3" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    <element name="P_ORG_ID" type="decimal" db:index="4" db:type="NUMBER" minOccurs="0" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <element name="OutputParameters">
    <complexType>
    <sequence>
    <element name="P_MISIPM_FILES_LIST" type="db:APPS.XX_DELIVER_X35784324X1X5" db:index="5" db:type="Array" minOccurs="0" nillable="true"/>
    <element name="P_ERRCODE" type="string" db:index="6" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    <element name="P_ERRMESSAGE" type="string" db:index="7" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <complexType name="APPS.XX_DELIVER_X35784324X1X6">
    <sequence>
    <element name="FILE_ID" type="decimal" db:type="NUMBER" minOccurs="0" nillable="true"/>
    <element name="FILE_NAME" db:type="VARCHAR2" minOccurs="0" nillable="true">
    <simpleType>
    <restriction base="string">
    <maxLength value="2000"/>
    </restriction>
    </simpleType>
    </element>
    </sequence>
    </complexType>
    <complexType name="APPS.XX_DELIVER_X35784324X1X5">
    <sequence>
    <element name="P_MISIPM_FILES_LIST_ITEM" type="db:APPS.XX_DELIVER_X35784324X1X6" db:type="Struct" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
    </sequence>
    </complexType>
    Regards,
    Debanjan

  • BPM Studio-Issue with Creating External Resources - Oracle Database RAC

    Hi All,
    This must be an easy fix and hope you guys have an answer to it. I was having no issues connecting to a single instance database as the parameter Host = "xxx.111.200.10" for a SQL Database Oracle 10,11 driver is pointing to a single instance and the SID = "yyyyy". TNS Name entry is as below...
    xyz =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.111.200.10)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = yyyyy)
    However we have upgrade our oracle database and it is in a RAC with load balancing hence the TNS Name entry looks like this.
    xyz =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = abcdh-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = abcdi-vip)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = yyyy.abcd.com)
    Any combination using "xyz", "abcdh-vip" , "abcdi-vip" etc is erroring and I am getting the following error:
    [BEA][Oracle JDBC Driver]Error establishing socket. Unknown host: abcdh-vip
    java.sql.SQLException: [BEA][Oracle JDBC Driver]Error establishing socket. Unknown host: abcdh-vip
         at albpm.jdbc.base.BaseExceptions.createException(Unknown Source)
         at albpm.jdbc.base.BaseExceptions.getException(Unknown Source)
         at albpm.jdbc.oracle.OracleImplConnection.makeConnectionHelper(Unknown Source)
         at albpm.jdbc.oracle.OracleImplConnection.makeConnection(Unknown Source)
         at albpm.jdbc.oracle.OracleImplConnection.connectAndAuthenticate(Unknown Source)
         at albpm.jdbc.oracle.OracleImplConnection.open(Unknown Source)
         at albpm.jdbc.base.BaseConnection.connect(Unknown Source)
         at albpm.jdbc.base.BaseConnection.setupImplConnection(Unknown Source)
         at albpm.jdbc.base.BaseConnection.open(Unknown Source)
         at albpm.jdbc.base.BaseDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.connector.impl.DriverManagerHack.getConnection(DriverManagerHack.java:49)
         at fuego.connector.impl.BaseJDBCConnector.createJDBConnection(BaseJDBCConnector.java:205)
         at fuego.jdbc.FaultTolerantConnection.createConnection(FaultTolerantConnection.java:917)
         at fuego.jdbc.FaultTolerantConnection.getConnection(FaultTolerantConnection.java:871)
         at fuego.jdbc.FaultTolerantConnection.getMetaData(FaultTolerantConnection.java:163)
         at fuego.sqlintrospector.BrowserPanel.populateTree(BrowserPanel.java:220)
         at fuego.ui.wizards.ui.CheckTreeBrowser$1.construct(CheckTreeBrowser.java:63)
         at fuego.ui.SwingWorker$2.run(SwingWorker.java:39)
         at java.lang.Thread.run(Unknown Source)
    Any help would be highly appreciated.
    Regards,

    Hi,
    Sure you've probably tried this but here goes...
    Use the Oracle Driver that comes with Oracle BPM to integrate with RAC.
    To integrate to Oracle RAC, you're typically given something like this by the DBA.
    jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = atwood-vip.int.westgroup.com)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = kenwood-vip.int.westgroup.com)(PORT = 1521)) ) (CONNECT_DATA = (Service_name = bpms_pot_dev.int.westgroup.com) (SERVER = DEDICATED) ) )
    When defining the External Resource for Oracle RAC check the “Advanced” checkbox (not the tab) and insert this text into the “Database” field:
    //atwood-vip.int.westgroup.com:1521;ServiceName=bpms_pot_dev.int.westgroup.com;LoadBalancing=true;AlternateServers=(kenwood-vip.int.westgroup.com:1521)
    Hope this helps,
    Dan

  • Issue with shared folders in oracle linux 6.4

    Hi.
    After installing oracle linux 6.4 in vmware (9 and 10) shared folders still not visible in guest os.
    i see such issue first time. before this i have installed red hat 6.3 and centOS 6.5. via vmware and everything was ok with shared folders.
    but in Linux Oracle i can not see them neither in mnt nor media.
    so is there an issue in oracle 6.4. release? was it fixed in 6.5?
    p.s. i have instlalled vmware tools but problem with shared folders still persists.
    screenshots from my laptop
    RGhost — файлообменник
    RGhost — файлообменник
    RGhost — файлообменник
    RGhost — файлообменник

    e9af1f61-cf4a-46b2-880b-989b0761844e wrote:
    i have moved this messages by mistake https://forums.oracle.com/thread/2613503 to another branch.
    could you return it back, please?
    Moderator reply:
    Nope.
    That is not one of the capabilities of moderator or site administrator functions in the software the runs the site.
    You are stuck with two pieces in this discussion.
    All I'\m able to do is lock that branched piece (which I've done).
    You need to be a bit more careful on what you might choose to click upon.

  • Oracle  procedures returning table type supported in JDBC

    We have many procedures who return table type return. The JDBC callable statment does not support them.However there is no problem with Ref cursors . How to resolve?.

    Please try searching the JDBC discussion forum or try reposting the question in the JDBC forum. The url is:
    http://forums.oracle.com/forums/forum.jsp?forum=99

  • Issues with loadjava utility on oracle database 10.2.0.4.0

    Hi all
    Hoping if this is a known issue, am approaching you here .. We have an oracle database in 10.2.0.4.0 version. This database functionality of Websphere Process Server, a product from IBM. In the course we are expected to load a JAR file for a one schema and it fails for some reason with ORA - 07445 errors. I happen to set out SGA_MAX_SIZE and SGA_TARGET at 1024 MB and JAVA_POOL_SIZE at 768MB to allow this loadjava command to run successfully. I also happen to set the LD_LIBRARY_PATH as $ORACLE_HOME/lib on this solaris 10 machine. Below is the command and the error message we are receiving. Please do advice us if this is a known issue or guide us to any information which might help us resolve this issue while we continue searching for a solution.. Many thanks in advance.
    Regards!
    Sarat
    loadjava -user BPCDB/[email protected]:1521:WPSDB -resolve /opt/IBMProc/WebSphere/ProcServer/lib/bpcodbutil.jar -thin -schema BPCDB
    Error while testing for existence of dbms_java.handleMd5
    No more data to read from socket
    Error while testing for existence of "BPCDB".JAVA$CLASS$MD5$TABLE
    OALL8 is in an inconsistent state
    Error while testing for existence of "BPCDB".JAVA$CLASS$MD5$TABLE
    OALL8 is in an inconsistent state
    Error while creating "BPCDB".JAVA$CLASS$MD5$TABLE
    No more data to read from socket
    Error while getting old MD5 of META-INF/MANIFEST.MF
    Io exception: Broken pipe
    Error while testing for existence of "BPCDB".CREATE$JAVA$LOB$TABLE
    Closed Connection
    Error while testing for existence of "BPCDB".CREATE$JAVA$LOB$TABLE
    Closed Connection
    Error while creating "BPCDB".CREATE$JAVA$LOB$TABLE
    Closed Connection
    Error while getLoadLOB BPCDB
    Closed Connection
    Error while deleting MD5 of META-INF/MANIFEST.MF
    Closed Connection
    Error while getting old MD5 of com/ibm/bpe/observer/dbutil/TimestampUtil
    Closed Connection
    Error while processing com/ibm/bpe/observer/dbutil/TimestampUtil
    Exception java.lang.NullPointerException
    Error while deleting MD5 of META-INF/MANIFEST.MF
    Closed Connection
    Error while getShortFromLongnameStmt
    Closed Connection
    Error while processing class BPCDB.com/ibm/bpe/observer/dbutil/TimestampUtil
    Exception java.lang.NullPointerException
    Error while getShortFromLongnameStmt
    Closed Connection
    Exception in thread "main" java.lang.NullPointerException
    at oracle.aurora.server.tools.loadjava.ClientSchemaObject.getShortname(C
    lientSchemaObject.java:65)
    at oracle.aurora.server.tools.loadjava.ClientSchemaObject.status(ClientS
    chemaObject.java:91)
    at oracle.aurora.server.tools.loadjava.SchemaObject.failure(SchemaObject
    .java:799)
    at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:85
    1)
    at oracle.aurora.server.tools.loadjava.LoadJava.command(LoadJava.java:25
    1)
    at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.jav
    a:103)
    at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.ja
    va:28)
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    ORA-07445 is an untrapped exception, an error, in Oracle's own code.
    Open an SR at metalink and update an RDA along with your description of what happened.

Maybe you are looking for

  • I purchased my membership, can't get my site to launch.

    Muse is asking me to buy a new membership to get 5 sites with Adobe business Catalyst, but I already paid for a membership this year. How do I fix this problem?

  • Any Knowledge In Regard to GarageBand?

    I don't own a MacBook, but do frequent the GarageBand forum here at Apple Discussions quite a bit. Lately, there have been a rash of questions/conflicts/problems in regard to MacBooks/GarageBand. I know I could - or perhaps even should - just refer f

  • Year class: A classification system for Android - any thoughts?

    Facebook posted a few days ago how they no longer look at Android versions but instead look to hardware capabilities when developing their app(s): Year class: A classification system for Android | Engineering Blog | Facebook Code | Facebook A signifi

  • Eliminating + from the post request

    When I send a POST request to the web server, the spaces in the request are replaced by '+'. how do I eliminate this?

  • 2504 WLC Question - Lobby Ambassador Available?

    I was wondering if the 2504 has the lobby ambassador feature available. Customer requires temp username/passwords for guests managed through web gui. I couldn't find conclusive documentation it was included so I figured I'd check here before calling