Synchronized JDBC

Hi this is slighly off topic.
I'm new to Oracle (not Java) and am calling stored procs,
using prepareCall, via JDBC (level 4) on Oracle 8.05.
My Java app will have multiple threads inserting/updating. Do I
have to synchronize my java calls (performance issue) or can
Oracle handle multiple synchronous JDBC calls. Generally I would
synchronize and will do unless someone tells me otherwise.
Thanks for any help
Ritchie
null

Oracle will handle multiple synchronous JDBC calls. The standard
row locking behavior will apply though.
Hope this helps,
-Chris
ritchie turner (guest) wrote:
: Hi this is slighly off topic.
: I'm new to Oracle (not Java) and am calling stored procs,
: using prepareCall, via JDBC (level 4) on Oracle 8.05.
: My Java app will have multiple threads inserting/updating. Do
I
: have to synchronize my java calls (performance issue) or can
: Oracle handle multiple synchronous JDBC calls. Generally I
would
: synchronize and will do unless someone tells me otherwise.
: Thanks for any help
: Ritchie
null

Similar Messages

  • Synchronous JDBC adapter(receiver side) with stored procedure

    Hi experts,
    Can some database processing logic be included in receiver JDBC (synchronous) adapter...to put it simply
    I have synchronous JDBC adapter in the receiver side..Using this JDBC adapter I want to get some response back from the table..
    The requirement is not a simple fetch from the table..It involves some processing in the database side which I guess will be done by stored procedure..After this database processing , this output will be picked up by the JDBC adapter and will send to PI.
    How can this be achived ..Any Blog..
    Thanks
    Ayan

    Yes u can use stroed procedure and send back the response,
    refer this link for stored procedure structure.
    http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/frameset.htm
    chirag.

  • Synchronous Proxy to Synchronous JDBC scenario

    Hi,
    I have a scenario for a synchronous  PROXY  to a synchronous JDBC  scenario. I have set 4 message types .
    MT_PROXYOUT u2013 o/b synch with a response MT_PROXYIN
    MT_JDBC   - i/b synch with a response MT_JDBC_RESPONSE
    I then set up an interface mapping for both the request and response message interfaces. The design looks good but I got stuck in the configuration part.
    Since itu2019s a proxy sender, the sender agreement is not needed(Correct me if I am wrong). In the interface determination, there is provision for only the inbound interface which in case would be the JDBC (request/response) back to the proxy and the interface mapping is applied.
    So do I need just one interface determination from the proxy as sender and jdbc as receiver and also one receiver determination again with the proxy as sender and the jdbc as receiver. I am confused here because when I try to create a receiver determination for the response back from JDBC to proxy receiver , the interface mapping comes blank. Is it taken in account by the single receiver determination in synchronous to synchronous scenarios??
    Teresa

    Hi Teressa,
    Java Proxy to Synchronous JDBC scenario and SAP XI:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    ABAP proxies-
    Client proxy:
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Server Proxies
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    Cheers
    Sunil

  • Synchronous JDBC scenario

    Hi All,
    The scenario is
    SAP Portal will send data to XI using web service(SOAP Adapter) and then XI will post data in Database using JDBC adapter.
    When above scenario executes it is automatically creating response (Synchronous) once it post data in Database (New message in SXI_MONITOR). I have checked message interface both inbound and outbound are asynchronous. When I ran the same scenario using file adapter instead of SAP portal it is not creating new message.
    Please guide how to avoid creating new message in case of SAP Portal .

    Hi,
    The jdbc response is generated in synchronous cases.
    Make sure the webservice call that you are making is asynchronous.
    In case of file adapter the call you made was asynchronous, hence no response was generated.
    Check this blog for configuration for Capturing response message.
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    - Deepak

  • Response communication for synchronous JDBC channel

    Hi,
    We have a Proxy->XI-> JDBC synchronous interface. Is there a necessity for a response receiver communication channel? We just set one up and it always fails with a select statement "Select * from payroll where enddate = "20081012". I never set up this SELECT statement. Just confused if I really need this response communication channel. Any ideas?
    Teresa

    Hey
    No,you don't need a separate receiver communication channel for response.
    JDBC on receiver side can support synchronous interface.
    >>fails with a select statement
    My guess is that either your mapping is wrong or the receiver/response message structure you have created in Data type is in wrong format.
    JDBC Receiver Adapter -- Synchronous Select – Step by Step
    Thanx
    Aamir
    Edited by: Aamir Suhail on Jul 13, 2008 10:05 PM

  • Synchronous JDBC structure

    Hi all,
    I have a scenario involving SOAP and JDBC with synchronous calls.
    I have created the source structures with request and response and have no doubt about it.
    The doubt is on the target side (JDBC),
    Have a structure as,
    Name, EmpID and location. Usually the structure for async JDBC goes as,
    Project
      -> Statementname
         -->Storedprocedurename
            -->Action
            -->Table
            -->Name
                -->isInput
                -->type
            -->EmpID
                -->isInput
                -->type
            -->Location
                -->isInput
                -->type
    The response required for this structure would be the Emp ID field. Actually, the source data will send data for Name and Location fields leaving the Emp ID field empty. After it reaches the DB, an Emp ID is generated by the Stored procedure and all the 3 fields is given back as the response with data.
    Do i have to create 2 different JDBC structures, one for request and one for response and to enter isOutput attribute in the response structure or is one structure enough and i create the isInput attributes and the isOutput attributes in the same structure.
    Help me out guys !

    Do i have to create 2 different JDBC structures, one for request and one for response and to enter isOutput attribute in the response structure or is one structure enough and i create the isInput attributes and the isOutput attributes in the same structure.
    You need seperate structure for response.
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures

  • Synchronous JDBC Execute

    Hello all.
    I want to call a stored procedure in a synchronous way.
    So I use the following XML :
      <StatementName5>
    <storedProcedureName action=” EXECUTE”>
        <table>realStoredProcedureeName</table>
    <param1 [isInput=”true”] [isOutput=true] type=SQLDatatype>val1</param1>
    </storedProcedureName > 
      </StatementName5>
    However I want to get ouput parameters that are a string and a boolean.
    Documentation doesn' detail the Response structure I must use.
    Can you help me ?
    Thanks.
    J.C.

    hi,
    have a look at this weblog:
    /people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response
    on how to find out the response easily
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Synchronous JDBC Timeout

    Hi Experts, I have a synchronous proxy-jdbc with SQL_QUERY (Select) as action. When the query is executed directly in the DB, it's only taking 3-4 minutes to get the results. But when it's run thru PI, we always encounter synchronous timeout exceeded error (20 minutes). Since the query is getting results on time in the DB, I'm thinking the problem could be in PI side but I'm running out of options to check. Has anyone faced this problem before? Any inputs will be greatly appreciated. Thanks!

    Hi Mark,
    It looks like a network problem. Can you ping the database hostname in your PI system (create ping command in SM69)? Also take a look at this note: Note 1085539 - XI JDBC/FTP connection Test and XML Validation Application
    Hope this helps,
    Mark

  • Synchronous  JDBC Receiver Adapter

    Hi,
    My requirement is JDBC--- XI --- JDBC (Sync) — JDBC.
    Let me be more precise about the above scenario.
    JDBC sender picks up a record from DB1 and sends to DB2 and gets a response from DB2 and send the response to DB3.
    I am sure this can be handled only through BPM.
    But my question will a JDBC Receiver adapter gets a response back to XI. If this is possible , can some one tell me how can I achieve it.
    Thanks
    Shaik

    <i>I am sure this can be handled only through BPM. </i>
    BPM required.
    <i>
    But my question will a JDBC Receiver adapter gets a response back to XI.</i>
    Yes.
    The weblog by Bhavesh would also b helpful.
    Regards,
    Prateek
    Message was edited by:
            Prateek Srivastava

  • Synchronous JDBC - message timeout

    Hi,
    I have a scenario RFC-XI-JDBC synch. I am getting a message timeout error while trying to post large data volume. Apparently the sync message is geting expired after timeout (default 180 sec).
    I found SAP note 730870 (question 14) suggests to increase the property xiadapter.inbound.timeout.default. However, SAP note 791379 says you should never change this value.
    Is anyone has chaged this value in oreder to optimize performance ? Pls suggest.
    Also pls let me know if you have any other suggestion.

    As per the documentation
    http://help.sap.com/saphelp_nw04s/helpdata/en/29/22ee41c334c717e10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd5950ff-0701-0010-a5bc-86d45fd52283
    You should increase the timeout from 180000(default) to 240000.
    or 240 sec.
    please visit
    Re: MessageExpired because of large amount of data

  • Synchronous JDBC Call Commit

    Hi All,
    I have a Synchronous RFC(SAP) to Database(Oracle) scenario, the call to Database is via Stored Procedure in which i am inserting some data in database and returning a status flag back. I have two queries here:
    1. What if the stored procedure is executed successfully, I get a status flag as "Success" from database and just before the response was sent back to SAP there is some comunication failure or any error while connecting XI to SAP. What will happen to the data inserted in table. Will it be still commited or rollback? As it is Synchronous process the data should not be commited untill the requestor system gets back the response. Any clues on this?
    2. I need to pass a table type(basically a dyncamic array) as one of the parameters while invoiking Stored procedure. How it can be done?
    I am connecting to Oracle 10g.
    Looking for some quick answers.
    Thanks
    Amit

    1) You can set Transaction Isolation Level=Serializable
    To avoid data inconsistencies in the database when the isolation level is lowered, ensure that multiple database transactions cannot access the database simultaneously.
    2)
    <StatementName5>
    <storedProcedureName action=u201D EXECUTEu201D>
        <table>realStoredProcedureeName</table>
    <param1 [isInput=u201Dtrueu201D] [isOutput=true] type=SQLDatatype>val1</param1>
    </storedProcedureName > 
      </StatementName5>
    http://help.sap.com/saphelp_nw04s/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm

  • Synchronous JDBC select

    hi,
    Based on the call from webservice I need to select data from two tables and send back. Expected output is one row from one table and multiple rows from the other. So I created a structure as shown:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_DB_PS_Req xmlns:ns0="http://timken.com/poc/webservices">
    - <Statement>
    - <Table action="SELECT">
      <table>poc.order_operation</table>
    - <access>
      <plant />
      <work_center_id />
      <work_center />
      <operation_status />
      <material_produced />
      <order_quantity />
      <quantity_uom />
      <quantity_completed />
      <quantity_scrapped />
      <activity />
      <std_activity_quantity />
      <actual_activity_quantity />
      <activity_quantity_uom />
      <activity_start_time />
      <activity_end_time />
      <description />
      </access>
    - <key>
      <order_number>String</order_number>
      <operation_id>String</operation_id>
      <routing_seq_num>int</routing_seq_num>
      </key>
      </Table>
      </Statement>
    - <Statement1>
    - <Table action="SELECT">
      <table>poc.operation_material</table>
    - <access>
      <material_id />
      <material_source />
      <std_material_usage />
      <actual_material_usage />
      <usage_uom />
      </access>
    - <key1>
      <order_number>String</order_number>
      <operation_id>String</operation_id>
      <routing_seq_num>int</routing_seq_num>
      </key1>
      </Table>
      </Statement1>
      </ns0:MT_DB_PS_Req>
    I am unable to get any output. When I check in RWB the ouptput is shown as:
        <?xml version="1.0" encoding="utf-8" ?>
    - <ns0:MT_DB_PS_Req_response xmlns:ns0="http://timken.com/poc/webservices">
      <Statement_response />
      <Statement1_response />
      </ns0:MT_DB_PS_Req_response>
    Can someone help me with this.
    thank you

    Hi,
    Check if the Response Messge Type is of this format.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_DB_PS_Req<b>_response</b> xmlns:ns0="http://timken.com/poc/webservices">
    <Statement<b>_response</b>>
    <b><row></b>
    <plant />
    <work_center_id />
    <work_center />
    <operation_status />
    <material_produced />
    <order_quantity />
    <quantity_uom />
    <quantity_completed />
    <quantity_scrapped />
    <activity />
    <std_activity_quantity />
    <actual_activity_quantity />
    <activity_quantity_uom />
    <activity_start_time />
    <activity_end_time />
    <description />
    <b></row></b>
    </Statement<b>_response</b>>
    <Statement1<b>_response</b>>
    <b><row></b>
    <material_id />
    <material_source />
    <std_material_usage />
    <actual_material_usage />
    <usage_uom />
    </row>
    </Statement1<b>_response</b>>
    </ns0:MT_DB_PS_Req>
    Regards,
    Bhavesh

  • No response message in Proxy to JDBC synchronous scenario

    Dear Team,
    I am working on synchronous scenario Sender ABAP proxy <===> SAP PI 7.31 <===> Oracle Database.All the necessary proxy configuration has been successfully tested.
    Business Scenario:
    ABAP proxy will send a single Vendor Id to Oracle DB as request and in return , it has to retrieve all the columns related to Vendor as response.Oracle Database stores all the Vendor information.There are 11 columns including the vendor Id in the view for the Vendor records.
    Design :
    For Request structure:
    a-->Created MT for Sender ABAP Proxy with only 1 field for Vendor Id.
    b-->Created MT for Receiver JDBC  with Action as SELECT , Table with "View Name" , Access with Constant Blank for all 11 column and Key as Vendor Id.
    I have been following  the link and Bhavesh Kantilal document.
    http://help.sap.com/saphelp_nw73/helpdata/en/44/7b7171fde93673e10000000a114a6b/content.htm?frameset=/en/44/7b7855fde93673e10000000a114a6b/f
    rameset.htm&current_toc=/en/ca/b977f1c7814201954f20bb87ad7aab/plain.htm&node_id=71
    For Response structure:
    Created MT for Receiver JDBC with All the column names.
    Created MT for target ABAP ECC with the same 11 column name of JDBC response.
    Note :
    1.Database team shared a excel file as a sample payload which has all the column names of a vendor and I created my DT with the same naming conventions as they are maintaining in their database i.e. Column names are in CAPs, in the same order and even the special characters in the column name.
    2. The PING test connection for Cc works fine to database.
    Please read out my queries as the I am not receiving any response from Oracle DB and gives error as timeout exception:
    1.Since I am trying to retrieve all the column of the view , am I doing the correct procedure of putting all the column name in the JDBC request structure and making a Select statement. Can I add < * > to fetch all the column name and if so where can I add it.
    2. Whats the difference between SELECT and SQL_QUERY and on what circumstances I can add it?
    3. How can I test ICO in ID?
    4. Can I use any SOAP tool to test the messages? Is there any functionality in NWA to test the messages directly to JDBC .
    Hope all your inputs can improve my design part.
    Regards
    Rebecca

    Hi Rebecca,
    Did you go through all of these links below?
    PROXY to JDBC- SYNC
    Proxy to JDBC Sync, with Idoc Receiver
    JDBC to PROXY Sync Scenario | SCN
    JBDC Receiver Insert Statement Response
    Re: Synchronous JDBC select
    receiver JDBC structure
    Regards,
    Jannus Botha

  • Synchronous communication of JDBC adapter with BPM

    Hello XI-Experts,
    Could you please give me example where BPM is having a Synchronous communication with JDBC adapter??
    plz do help.
    Thanks & Regards,
    Vanita

    Vanita,
    Let's consider the below scenario.
    A File contains the SQL query, you need to fetch the data from DB system using that SQL query and write it to a file. You can configure like below
    File Adapter to pick the file and send it to BPM
    Mapping Transformation to create the SQL request
    Call DB using JDBC adapter Synchronously
    Mapping Transformation to Convert the Response from DB and write it to a file.
    Does it seems to be a valid scenario you are looking for? Any questions let us know.
    If you are looking for any blogs then check below:
    Synchronous JDBC: /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    File-RFC-File: /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    ~Raj.

  • Sender side Synchoronous jdbc scenario

    Hii experts,
    Can we do Sender side synchronous jdbc scenario?? if yes give me an example how the scenario will look like??
    and what are the steps has to be done?
    Regards,
    Balaji

    Hi,
    Can you pls clear your requirement?
    In your case, do sender JDBC will fetch the data and give it to the target, and again target will give some resonse and that
    response you have to insert into the database at sender side?
    If this is the case for you, then it can be achieved.
    Pls exactly tell what you are looking for.
    -Tanaya.

Maybe you are looking for