SOA DB Adapter - Calling procedure returning PL/SQL types

Hi All,
We have a Scenario where we are calling a Procedure from a SOA Composite using normal DB Adapter 'Call Procedure'.
This procedure is simply querying data from DB and returning a Oracle DB Object.
Since, the procedure returns a PL/SQL type which cannot be handled directly in SOA. So SOA creates a Wrapper Procedure on top of it.
This wrapper procedure is basically used to convert, during procedure calls, PL/SQL types to SQL and vice-versa.
The above said is a standard functionality provided by Oracle.
Now:
We are facing a peculiar issue while calling the procedure. Many of the Procedure calls return the expected result many are failing due to error - 'NO DATA FOUND'.
Out of 100 calls, 34 failed. All the 100 calls have same input, implies that we should expect the same output.
We also confirmed that there were no other changes done in DB at that time.
We generated the DB trace and found that for the failed calls we don't get anything in trace.
That implies the call doesn't even reaches the DB.
We tried shutting down and starting back our Weblogic datasource. Issue got resolved, all calls start executing successfully!!!
But again after executing 1000-2000 calls, we again face the same issue. Calls with same input start failing with - 'NO DATA FOUND'.
We certainly know that its an issue with caching on Weblogic level. But not yet able to prove it.
We suspect that this caching is done at JDBC level in JPublisher component... Not Sure!!!
We have done enough RnD to rule out anything on DB or SOA side. Its on Weblogic.
Anybody out there has any idea on how this Weblogic caching is done and how we can control it?
--Inder                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Are you in a clustered environment and using coherence?
You can try to clear cache as mentioned below
soa_server1->System MBean Browser->Application Defined MBeans->oracle.mds.lcm->Server: soa_server1->Application: soa-infra->MDSAppRuntime->MDSAppRuntime->Operations tab->clearCache
You may also find this article useful
http://www.oracle.com/technetwork/articles/soa/data-tier-caching-for-soa-101753.html
Edited by: user5433411 on Apr 25, 2013 3:37 AM

Similar Messages

  • Call procedure via dynamic sql

    Dear Oracle experts,
    I try to call several stored procedures from several packages within the function below.
    These stored procedures all own a procedure returning a version string.
    I would like to write a function which gets a schemaname (for the schema which contains the package), and a packagename which calls a procedure within that package (all packages have a procedure called sp_packageversion which returns a versionstring) and returns the received versionstring.
    But my codes doesn't work because the dynamic sql doesn't call the procedure.
    What am I doing the wrong way ?
    function func_GetPackageVersion(prm_ecs_Schemaname varchar2, prm_objectname user_procedures.object_name%type
    ) return varchar2 is
    sqlstmt varchar2(100);
    objectversion varchar2(50);
    begin
    sqlstmt := prm_ecs_Schemaname || '.' || prm_objectname || '.sp_packageversion(objectversion)';
    execute immediate sqlstmt;
    return objectversion;
    end func_GetECSPackageVersion;
    Hope someone can help.
    Best regards,
    Daniel

    test@ora>
    test@ora>
    test@ora> --
    test@ora> -- the package
    test@ora> --
    test@ora> create or replace package my_pkg
      2  as
      3    procedure sp_packageversion (objectversion out varchar2);
      4  end;
      5  /
    Package created.
    test@ora>
    test@ora> create or replace package body my_pkg
      2  as
      3    procedure sp_packageversion (objectversion out varchar2)
      4    is
      5    begin
      6      objectversion := 'VERSION IS 10.1.2.3';
      7    end;
      8  end;
      9  /
    Package body created.
    test@ora>
    test@ora> --
    test@ora> -- the function
    test@ora> --
    test@ora> create or replace function func_GetPackageVersion (
      2    prm_ecs_Schemaname varchar2,
      3    prm_objectname     user_procedures.object_name%type
      4  )
      5  return varchar2
      6  is
      7    sqlstmt varchar2(4000);
      8    objectversion varchar2(50);
      9  begin
    10    execute immediate 'BEGIN '|| prm_ecs_Schemaname ||'.' || prm_objectname || '.sp_packageversion(:x); END; ' USING OUT objectversion;
    11    return objectversion;
    12  end;
    13  /
    Function created.
    test@ora>
    test@ora> --
    test@ora> -- anonymous pl/sql block for the function
    test@ora> --
    test@ora> declare
      2    p_ecs_Schemaname  varchar2(30) := 'TEST';
      3    p_objectname      user_procedures.object_name%type := 'MY_PKG';
      4    v_return_str      varchar2(32767);
      5  begin
      6    v_return_str := func_GetPackageVersion (p_ecs_Schemaname, p_objectname);
      7    dbms_output.put_line(v_return_str);
      8  end;
      9  /
    VERSION IS 10.1.2.3
    PL/SQL procedure successfully completed.
    test@ora>
    test@ora>
    test@ora>HTH
    isotope

  • Call procedure with MS SQL from linked Oracle server

    I have a procedure on a remote server that I can call from SQL*PLUS
    set serveroutput on
    declare rez varchar2(99); msg varchar2(99); begin radar.test('AL25',rez,msg); dbms_output.put_line('Rez='||rez);
    dbms_output.put_line('Msg='||msg);
    end;
    it gives me the neccessary result.
    But I need to call the same procedure with MS SQL from a linked Oracle server, I'm trying to do it through openquery for a while, but no success yet.
    Can someone tell me what is the right syntax for that query in OPENQUERY?

    Have you tried configuring Oracle Heterogenous Services/ Transparent Gateway? This would let you link Oracle to SQL Server via a database link which should solve your problem.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com

  • Calling procedure works in SQL Developer, but returns error elsewhere?!

    Hi there!
    I try to call a procedure with this code snippet:
    begin
    p_snap_op.add_change_log(vi_cart_no => 'Cart 2341',
    vi_operation => 'Change',
    vi_info_source => 'Testsource',
    vi_comment => 'Testcomment',
    vi_refg_id => '1112',
    vi_snap_id => null,
    vi_snix_id => null,
    vi_snsy_id => null);
    end;
    this works just fine in Oracle SQL Developer and sqlplus. In PLSQL Developer, I get an ORA-ERROR 001036 returned, saying there's an invalid variable name or number. How comes?

    Hi,
    yup, that was the problem. PL/SQL Developer has this great feature with bind variables in an extra panel. Unfortunatelly, nobody told me :-(
    This code (and every other one that I wrote so far) now works fine.
    Thanks for your help.

  • XML DB Native Webservice - Procedure returning user defined TYPE

    Hi folks,
         I’ve used XML DB Native Webservice feature to expose some PLSQL Procedures and Functions as webservices.
         The feature works great, however I found a situation where XML DB is not able to generate the WSDL document.
         Here is an example of a procedure signature:
         Procedure LISTA_ESTADO (
    p_NomeEstado OUT NomeEstadoTB,
    p_IdEstado OUT IdentifUnico,
    vr_CodRetorno OUT CodRetorno,
    batch_size IN INT,
    out_batch_size IN OUT INT,
    status OUT INT)     
         In this case, when I try to get the WSDL document, I receive the error message below.
         <soap:Envelope>
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Client</faultcode>
    <faultstring>Error processing input</faultstring>
    <detail>
    <OracleErrors></OracleErrors>
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>
         The problem seems to be related with the first three OUT parameters, that are based on an user created TYPE.
    In this example, the TYPES are defined as:
         TYPE NomeEstadoTB IS TABLE OF CHAR(25)
    INDEX BY BINARY_INTEGER;
    TYPE IdentifUnico IS TABLE OF NUMBER(10)
    INDEX BY BINARY_INTEGER;
    TYPE CodRetorno IS TABLE OF CHAR(10)
    INDEX BY BINARY_INTEGER;
         I’d like to know if XML DB can publish procedures like that as a webservice and if affirmative, how to do that?
    Thanks In Advance,
    Luis

    I am very new to this. New to Oracle, PL/SQL, OO programming or testing?
    set serveroutput on
    declare
      tst_obj ctype;
    begin
      tst_obj := pkg.proc(11);
      dbms_output.put_line('id='||tst_obj.id||'::code='||tst_obj.code||'::usage='||tst_obj.usage);
    end;
    /Generally I disapprove of the use of DBMS_OUTPUT (for just about anything) but it is sufficient to demonstrate the basic principle.
    Really you should start using proper testing practices, ideally with an automated test harness like QUTE.
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • Java.sql.Types.CLOB not returned

    When I run the following on an oracle 8.1.7 server using thin/OCI driver on a table with a CLOB column,
    DatabaseMetaData dbmd = conn.getMetaData();
    ResultSet rs = dbmd.getColumns( null, null, tableName, "%" );
    while (rs.next()){
    int colType = (int)rs.getShort(5);
    I dont get java.sql.Types.CLOB returned in colType, instead I get java.sql.Types.OTHER.
    However, after a query on the same table, the result set metadata.getColumnType() returns java.sql.Types.CLOB.
    Any ideas?
    Thanks in advance

    You can't do that. You can't do it in SQL either: there's no way to call a stored procedure without providing parameters of a specific type.
    There are two things you can do, however: one is to declare the parameter as VARCHAR and hope it's not a BLOB or something that the db will not automatically convert to VARCHAR and the other is to do a SELECT in the procedure you are calling instead of returning the value as an output parameter. The second option is better in that you can then use ResultSet.getObject() from Java and obtain the correct object type, not a String you might need to parse afterwards.
    Alin.

  • Calling procedure in another procedure, how to fetch values

    I have couple of procedure in a package and I am trying to call procedurea in procedureb.
    TYPE T_CURSOR IS REF CURSOR;
    PROCEDURE ProcedureA (acct IN number, o_cur OUT T_CURSOR)
    AS
    BEGIN
          Open o_cur for
           SELECT A, B, C, D, E, F FROM DEMO;
    END ProcedureA
    PROCEDURE ProcedureB (param1 IN number, param2 IN number)
    AS
    get_cursor                 T_CURSOR;
    BEGIN
    ProcedureA(111, get_cursor);
    END;How to fetch ProcedureA values in ProcedureB? And also I want to get only columns A and B in ProcedureB.

    >
    How to fetch ProcedureA values in ProcedureB?
    >
    Try something like this
    TYPE rectype IS RECORD (colA  demo.a%TYPE, colB demo.b%TYPE    );
         rec1  rectype;
    LOOP
      FETCH get_cursor   INTO rec1;
      EXIT WHEN get_cursor%NOTFOUND;
            DBMS_OUTPUT.PUT_LINE(rec1.colA);
         END LOOP;
           DBMS_OUTPUT.PUT_LINE('end test');

  • Records and Objects, Cast for PL/SQL Type RECORD and SQL Type OBJECT

    Hi seniors:
    In my job, we have Oracle 10g, programming with Packages, the parameters are PL/SQL Types,
    Example:
    PACKAGE BODY NP_CONTROL_EQUIPMENT_PKG
    IS
    TYPE TR_EQUIPMENT_OPERATION IS RECORD(
    wn_npequipmentoperid CONTROL_EQUIPMENT.NP_EQUIPMENT_OPERATIONS.npequipmentoperid%TYPE,
    wv_npactiveservicenumber CONTROL_EQUIPMENT.NP_EQUIPMENT_OPERATIONS.npactiveservicenumber%TYPE,
    wv_npspecification ORDERS.NP_SPECIFICATION.npspecification%TYPE,
    wv_nptype ORDERS.NP_SPECIFICATION.nptype%TYPE,
    wn_nporderid CONTROL_EQUIPMENT.NP_EQUIPMENT_OPERATIONS.nporderid%TYPE,
    wn_npguidenumber CONTROL_EQUIPMENT.NP_EQUIPMENT_OPERATIONS.npguidenumber%TYPE,
    wd_npdevolutionprogramdate CONTROL_EQUIPMENT.NP_EQUIPMENT_STATUS.npdevolutionprogramdate%TYPE
    TYPE TT_TR_EQUIPMENT_OPERATION_LST IS TABLE OF TR_EQUIPMENT_OPERATION INDEX BY BINARY_INTEGER;
    PROCEDURE SP_GET_EQUIPMENT_OPERATION_LST(
    an_npequipstatid IN CONTROL_EQUIPMENT.NP_EQUIPMENT_STATUS.npequipstatid%TYPE,
    at_equipment_operation_list OUT TT_TR_EQUIPMENT_OPERATION_LST,
    av_message OUT VARCHAR2
    IS
    BEGIN
    SELECT EO.npequipmentoperid,
    EO.npactiveservicenumber,
    S.npspecification,
    S.nptype,
    EO.nporderid,
    EO.npguidenumber,
    ES.npdevolutionprogramdate
    BULK COLLECT INTO at_equipment_operation_list
    FROM NP_EQUIPMENT_OPERATIONS EO,
    NP_EQUIPMENT_STATUS ES,
    ORDERS.NP_ORDER O,
    ORDERS.NP_SPECIFICATION S
    WHERE EO.npequipstatid = ES.npequipstatid
    AND EO.nporderid = O.nporderid
    AND O.npspecificationid = S.npspecificationid
    AND EO.npequipstatid = an_npequipstatid;
    EXCEPTION
    WHEN OTHERS THEN
    av_message := 'NP_CONTROL_EQUIPMENT_PKG.SP_GET_EQUIPMENT_OPERATION_LST: '||SQLERRM;
    END SP_GET_EQUIPMENT_OPERATION_LST;
    END;
    Procedures calls other procedures and passing parameters IN OUT defined that PL/SQL Types. The problem appears when the access is through Java. Java can't read PL/SQL Types because only read SQL Types (Types defined in SCHEMA):
    CREATE OR REPLACE
    TYPE TO_EQUIPMENT_OPERATION AS OBJECT (
    wn_npequipmentoperid NUMBER,
    wv_npactiveservicenumber VARCHAR2(15),
    wv_npspecification VARCHAR2(8),
    wv_nptype VARCHAR2(2),
    wn_nporderid NUMBER,
    wn_npguidenumber NUMBER,
    wd_npdevolutionprogramdate DATE
    CREATE OR REPLACE
    TYPE TT_EQUIPMENT_OPERATION_LST
    AS TABLE OF "CONTROL_EQUIPMENT"."TO_EQUIPMENT_OPERATION"
    Java can read this SQL Types. The problem is how cast OBJECT to RECORD, because I can't execute that:
    DECLARE
    wt_operation_lst TT_EQUIPMENT_OPERATION_LST;
    BEGIN
    SELECT EO.npequipmentoperid,
    EO.npactiveservicenumber,
    S.npspecification,
    S.nptype,
    EO.nporderid,
    EO.npguidenumber,
    ES.npdevolutionprogramdate
    BULK COLLECT INTO wt_operation_lst
    FROM NP_EQUIPMENT_OPERATIONS EO,
    NP_EQUIPMENT_STATUS ES,
    ORDERS.NP_ORDER O,
    ORDERS.NP_SPECIFICATION S
    WHERE EO.npequipstatid = ES.npequipstatid
    AND EO.nporderid = O.nporderid
    AND O.npspecificationid = S.npspecificationid
    AND EO.npequipstatid = an_npequipstatid;
    END;
    and throws NOT ENOUGH VALUES, and I modified to:
    DECLARE
    wt_operation_lst TT_EQUIPMENT_OPERATION_LST;
    BEGIN
    SELECT TO_EQUIPMENT_OPERATION(EO.npequipmentoperid,
    EO.npactiveservicenumber,
    S.npspecification,
    S.nptype,
    EO.nporderid,
    EO.npguidenumber,
    ES.npdevolutionprogramdate)
    BULK COLLECT INTO wt_operation_lst
    FROM NP_EQUIPMENT_OPERATIONS EO,
    NP_EQUIPMENT_STATUS ES,
    ORDERS.NP_ORDER O,
    ORDERS.NP_SPECIFICATION S
    WHERE EO.npequipstatid = ES.npequipstatid
    AND EO.nporderid = O.nporderid
    AND O.npspecificationid = S.npspecificationid
    AND EO.npequipstatid = an_npequipstatid;
    END;
    Worst is that I can't modify this procedure and PL/SQL Types will survive.
    I have create a copy that CAST RECORD to OBJECT and OBJECT to RECORD too.
    PROCEDURE SP_COPY_PLSQL_TO_SQL(
    an_npequipstatid IN NUMBER,
    at_dominio_lst OUT ORDERS.TT_EQUIPMENT_OPERATION_LST, --SQL Type
    av_message OUT VARCHAR2
    IS
    wt_dominio_lst CONTROL_EQUIPMENT.NP_CONTROL_EQUIPMENT_PKG.TT_TR_EQUIPMENT_OPERATION_LST; --PL/SQL Type
    BEGIN
    SP_GET_EQUIPMENT_OPERATION_LST(an_npequipstatid, wt_dominio_lst, av_message);
    IF av_message IS NULL THEN
    at_dominio_lst := ORDERS.TT_EQUIPMENT_OPERATION_LST(ORDERS.TO_EQUIPMENT_OPERATION('','','','','','',''));
    at_dominio_lst.EXTEND(wt_dominio_lst.COUNT - 1);
    FOR i IN 1..wt_dominio_lst.COUNT LOOP
    at_dominio_lst(i) := ORDERS.TO_EQUIPMENT_OPERATION(wt_dominio_lst(i).wn_npequipmentoperid,
    wt_dominio_lst(i).wv_npactiveservicenumber,
    wt_dominio_lst(i).wv_npspecification,
    wt_dominio_lst(i).wv_nptype,
    wt_dominio_lst(i).wn_nporderid,
    wt_dominio_lst(i).wn_npguidenumber,
    wt_dominio_lst(i).wd_npdevolutionprogramdate
    END LOOP;
    END IF;
    END;
    I would like that the CAST is direct. Somebody can help me?. Thank you so much!

    I am facing the same problem as u had...may I know how u solved ur probkem...
    thanks,
    kishore

  • SetNull(2, java.sql.Types.DATE);

    If I use setNull(1, java.sql.Types.DATE); function, it will insert null on my table's column.
    I want to select the date from another table and insert into my table's column, what should I do?
    I am sure I cannot call setNull(1,java.sql.Types.DATE), it will insert NULL in my column.
    Thanks in advance.

    Hi,
    I think you will be better of in asking ths question in Java forum or Oracle Developer forum.
    Regards

  • DB  Adapter Calling DB Procedure that returns a Record Type

    I am trying to call a PL/SQL procedure that returns a Record Type and a VARCHAR2 and I'm getting this error:
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'MY_PROC.GET_ID' ORA-06550: line 1, column 7: PL/SQL: Statement ignored </faultstring> </Fault>
    Is there something different I need to do to handle the Record Type OUT parameter?
    Thanks.

    The adapter configuration wizard should take care of the Record Type for you. It should invoke JPublisher to create an equivalent Object type and a package containing a wrapper that will be called by the adapter runtime. The package also contains conversion functions for converting between your Record Type and the generated Object type. Maybe it would help if you posted the signature of your stored procedure (not the body).

  • DB Adapter calling PL/SQL Procedure gives error

    Created partner link, calling pl/sql procedure with one in variable and one out variable. Invoke works fine. Assigning pl/sql return value to output is causing run time error. "Rebuild" and "Deploy" works file.
    Here is the error:
    Assign_2
    [2007/08/03 14:18:06]
    Error in evaluate <from> expression at line "93". The result is empty for the XPath expression : "/ns3:OutputParameters/ns3:OUT_STATUS_CODE".
    oracle.xml.parser.v2.XMLElement@ba1893
    Copy details to clipboard
    [2007/08/03 14:18:06]
    "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.
    - <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    - <part name="summary">
    <summary>
    empty variable/expression result.
    xpath variable/expression expression "/ns3:OutputParameters/ns3:OUT_STATUS_CODE" is empty at line 93, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns3:OutputParameters/ns3:OUT_STATUS_CODE" is not empty.
    </summary>
    </part>
    </selectionFailure>
    Any input would be appreciated..
    Thanks.

    Thanks, it works.
    In the “Assign Variables”
    Changed from:
    <copy>
    <from variable="Invoke_1_ASNDBTest103_OutputVariable"
    part="OutputParameters" query="/ns3:OutputParameters/ns3:OUT_STATUS_CODE"/>
    <to variable="outputVariable" part="payload"
    query="/ns2:ASNReturnStatus102"/>
    </copy>
    Changed to:
    <copy>
    <from variable="Invoke_1_ASNDBTest103_OutputVariable"
    part="OutputParameters" query="/ns3:OutputParameters"/>
    <to variable="outputVariable" part="payload"
    query="/ns2:ASNReturnStatus102"/>
    </copy>
    So far so good, but one question, compiler gives warning…but everything works well.
    Warning(97):
    [Error ORABPEL-10041]: Trying to assign incompatible types
    [Description]: in line 97 of "C:\HOME\jdevOAExt3\jdevhome\jdev\mywork\ASNTest101\BPELProcess1\bpel\BPELProcess1.bpel", <from> value type "{http://xmlns.oracle.com/pcbpel/adapter/db/APPS/XRX_BPEL_INSERT_ASN_TMP102/}OutputParameters anonymous type" is not compatible with <to> value type "{http://www.thiscompany.com/ns/sales}ASNReturnStatus102".
    [Potential fix]: Please make sure that the return value of from-spec query is compatible with the to-spec query.
    Also, instead of direct variable to variable copy, used expression to variable copy and it works. You can avoid the warning from the compiler.
    Does not work ==> bpws:getVariableData('Invoke_1_ASNDBTest103_OutputVariable','payload','/ns3:OutputParameters/ns3:OUT_STATUS_CODE')
    Works ==> bpws:getVariableData('Invoke_1_ASNDBTest103_OutputVariable','payload','/ns3:OutputParameters’)
    So, why the compiler warning?

  • How to return a business fault from a DB Adapter call.

    Using a SOA composite with a Mediator, from a BPEL service we call a PL/SQL package, via a DB Adapter, to get some information. Sometimes we will get a NO_DATA_FOUND from the select and we catch that (or as the documentation says - for example when a social security number is not found in the database).
    The question is how do we raise that as a business fault that is returned to the caller. Currently we catch the fault in the PL/SQL and return the details in the return message - but the messageis not in itself a fault and so we would need to check the message using an IF to see if it was an error.
    The question then also can we easily turn this message into a fault. We have tried using a Choose in a transformation without luck.
    Hope I am describing the scenario but clearly it is something that must be regularly handled. Thus how should we handle when a social security number is not found in the database.

    Sorry, the service was built without a BPEL. The service in question is used by othere services to access the database. There is a composite that exposes the service and includes a Mediator that has many Routing Rules that transform the various inputs using xsl, makes the appropriate jca call to a PL/SQL procedure and transforms the returned information from the database using xsl. The PL/SQL only has input and output variables and can raise an exception. We want to catch say N0 DATA FOUND and raise a business fault that subsequently gets caught. We tried adding code to the xsl to try and return a fault but it did not work. We can add a BPEL to the service to accomplish what we want but wanted to do without a BPEL.

  • Database Adapter calling stored procedure with xmlDOM.DOMNODE input problem

    Hi all,
    I have been asked to do a POC on using SOA suite to generate a web-service for several database stored procedure. A few of them can be done without a fuss. But I am now stuck with a stored procedure that has input and output as xmlDOM.DOMNODE type.
    The stored procedure is very simple as below:
    procedure prc_accinquiry(request in xmlDOM.DOMNODE, response out xmlDOM.DOMNODE) is
    begin
    response := request;
    end prc_accinquiry;
    I get the following error
    Error while writing wsdl file C:/JDeveloper/mywork/ABSPOC/NetBanking/DomNodeTestDB.wsdl. Exception: WSDLException: faultCode=OTHER_ERROR: The wrapper procedure, PACK_TESTING$PRC_ACCINQUIRY, could not be found in the package, BPEL_DOMNODETESTDB, for the schema, MBTT
    Did I do something wrong? or DOMNODE is not part of supported datatype for DB Adapter stored procedure call from JDeveloper?
    The environment is SOA suite 11g 11.1.1.5 with Database 11 XE
    Thank you in advance,
    Jomphop
    Edited by: e-Teoy on 15/12/2011 19:49

    This problem can be resolved by granting execute permission on the object type to the caller. For example, if the stored procedure is in schema1 and the object type is in schema2 then you would connect as schema2 and execute
    SQL> grant execute on <object type> to schema1
    Referencing object types defined in other schemas is documented. This is the described method for accessing object types in other schemas.

  • Creation of DB Adaptert for calling stored procedure in MS SQL server

    Hi,
    I need to create a DB adapter to call a stored procedure in MS SQL Server.
    I have gone thru the thread MS SQL Server database connection
    It mentions that we need to use a command line utility for generating the wsdl and xsd for calling stored procedures in MS SQL server. Please provide information where to find this utility and how to use it.
    Any links to tutorials are welcome.
    Thanks !!.
    Silas.

    Command line is required for stored procedures, if you are using the basic options you don't need to worry.
    (1) Download MS SQL Server 2005 JDBC Driver from Microsoft Site. http://msdn.microsoft.com/en-us/data/aa937724.aspx
    (2) The download is self extracting exe file. Extract this into Program Files on your machine. It should create folder as "Microsoft SQL Server 2005 JDBC Driver"
    (3) In above mentioned folder search for sqljdbc.jar copy this file into JDeveloper\JDBC\lib folder.
    (4) Open JDeveloper/jdev/bin/jdev.conf file add following entry.
    AddJavaLibPath C:/Program files/Microsoft SQL Server 2000 Driver for JDBC/lib
    While executing this step make sure that your JDeveloper is closed.
    (5) On command prompt go to J Developer folder and execute following command
    jdev -verbose
    This will open JDeveloper.
    (6) Now go to JDeveloper > Connections > Database Connections > New Database Connection
    (7) Select Third Party JDBC
    (8) Specify MS Sql Server User Name, password and Role.
    (9) In connection page specify following
    - Driver Class: com.microsoft.sqlserver.jdbc.SQLServerDriver
    - For class path browse to C:/Program files/Microsoft SQL Server 2000 Driver for JDBC/lib folder, select sqljdbc.jar add it as library.
    - Specify URL as following.
    jdbc:sqlserver://SERVERNAME:1433;databaseName=MSSQLDBNAME;
    (10) Go to Test page and test it.
    cheers
    James

  • In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String

    In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String , for executing the Stored Procedure with Current date as the input .

    Hi Srinath,
    The below blog might be useful
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/06/executing-stored-procedure-from-sender-adapter-in-sap-pi-71
    PI/XI: Sender JDBC adapter for Oracle stored procedures in 5 days
    regards,
    Harish

Maybe you are looking for

  • Email link with no additional text insertion

    Hello All. Thanks for your participation here. Kinda newbie here so forgive me if my terminalogy is off. Two part question: 1) I'm creating popup windows. I get that there's a difference between inserting a hyperlink to open a popup window as opposed

  • Since I upgraded to iPhoto 11 I've had nothing but problems

    Adding keywords is too awkward.  I can't empty the iPhoto trash.  And other glitches or "steps backward" in functionality.  Is it possible to reverto to the previous version?

  • Cannot connect to 11.2.0.1 Vista

    Hi, my last question was to connect to a Vista database vie SQL*Plus from another PC. This was solved by setting the name of the pc in the listener.ora. Now I had to remove the PC (Laptop) from the network and now I cannot connect via SQL*Plus neithe

  • Adding institution in overview screen of infotype 22

    Hi, I want to add new column to the overview screen(3000). The column is institution which is standard field from pa0022. The field is not listed in t588m table also. I also tried adding field using pm01 list screen tab.But this also doesnt help Is t

  • Variable to String Mapping

    I'm new to flash and working to embed the flash player in a .NET application. It's going "well" for the definition of "well" that adding the COM control and getting it to play a movie was easy and took about 3 minutes. What's not going well is that I