JDBC Adaptor

Hi,
we are using JDBC-RFC-JDBC Scenario.Now because of lots of Communication Channel DBA is complaining that more than 25 sessions are open for the XI user and that's causing performance prob in Oracle
Any ideas how to improve the performance and reduce the no of sessions
Regards
Vijay

In every JDBC adapter select option, <b>Disconnect from Database after Each Messge Proessing</b>.
This will ensure that there is no active connection until there is a message to be processsed or a polling interval is complete and so number of active connections in parallel will come down.
Regards
Bhavesh

Similar Messages

  • SELECT,UPDATE, DELETE With JDBC Adaptor

    Dear All,
    I need to execute few Select, update and Delete statement by using JDBC Adaptor.
    Suppose While select statement no records selected.
    During Update no records exsist with specified key so no update possible.
    During delete if no record found with specified key so no deletion possible.
    In above cases do I get any error, any where in XI . Either in SXMB_MONI or in RWB.
    Regards,
    Raghvendra

    Hi
    You will be getting SQL error in RWB and not processed flag in SXMB_MONI
    Along with this you can use OS level command STDOUT and STDERR to write out the trace.
    using JDBC you can even use following Isolated setting.
    ·        Default (default setting of the respective database)
    ·        None
    ·        read_uncommitted (weakest setting)
    ·        read_committed
    ·        repeatable_read
    ·        serializable (strongest setting)
    You must only lower the isolation level where necessary and as far as necessary. To avoid data inconsistencies in the database when the isolation level is lowered, ensure that multiple database transactions cannot access the database simultaneously.
    With this Do not set Auto Commit enabled indicator if the JDBC driver supports transactions.
    Thanks
    Gaurav Bhargava

  • Pre requisites in JDBC adaptor

    hi gurus,
    what are the pre requisites in JDBC Adaptor,
    Regards,
    priya

    hi
    we need to install and configure the drivers
    check this document
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f                                   
    JDBC connection set up for different DATABASE                                   
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/jdbcConnectionSetup                                   
    regards
    kummari

  • Complete knowledge on jdbc adaptor in PI7.1

    Hi all,
    I would like to have the complete knowledge on JDBC adaptor.
    Please provide me with links (of previous forumns if any) or blogs...
    what are the capabilities of using JDBC adaptor and also limitations....
    Cheers,
    karthick

    Hi,
    The only way to become expert in JDBC adapter is first reading help documentation clearly,try to understand the usage and how to deploy the drivers and how execute the queries.do some diferent scenarios and execute some stored procedure scenarios too.
    refer below link for sap pi7.1 jdbc adapter doc
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/22/b4d13b633f7748b4d34f3191529946/frameset.htm
    there is no specific limitations as per my experiece,some times when we updating huge amount of data in to data base,i faces some problems,we resolved following some best development standards like using good sql queries.
    Regards,
    raj

  • JDBC adaptor error

    Hi,
    I got some error in JDBC adaptor CC "no Adaptor registered for this channel "
    in adaptor monitoring it shows JDBC in all adaptor list, but after selecting
    only installed and started it is disappearing.
    we installed ojdbc14,downloded from database provider site, and it's deployment shows successfully deployed.
    regards,

    Hi, Senthil:
    I suggest that you search SAP notes based on your database vendor. When deloy driver on Java stack, deploy successfully does not guarentee that it works. I came cross the situation and found the notes solve the problem.
    Good luck
    Liang

  • How to call sender JDBC Adaptor, if there is a indication file

    Hi All,
    I have a requirement need to  pull data from Oracle and send it to BI.
    Here what i need is like Oracle will give me Indication flat file with 0 records and it will be there in FTP floder, once XI finds that file in the FTP folder then only my JDBC sender adaptor needs to pull data from Oracel and send it BI
    Could you pls suggest me how i can achive this hope we can do it with BPM, or any suggestions to do this.
    Thanks in advance,
    Venkat.

    Hi,
    True that i am new to XI.
    Here the problem is i will get 0 bites flat file i will not get any data in that file, so how i can handle that flat file, and once the flat file is there after that i need to start the JDBC sender adaptor to pull the data
    1. Receive step for the Flat File
    2. Synchronous Send step for Calling JDBC (so you will get some JDBC response back to IP).
    3. Asynchronous Send step to send step2 JDBC response to BI system.
    as you said the BPM will be like this am i correct
    Receive step for File-->Receive step for JDBC-Send step for BI am i correct this process.
    could you pls explain me bit more so its like
    Thanks inadvance
    Venkat

  • JDBC Adaptor problem

    Hi
    I am doing JDBC-RFC-JDBC Scenario without BPM with quality of service  BE.
    In this, JDBC sender adaptor is updating the table1 with sent flag = 'X'. Now the prob is the receiver adaptor is also upadting  table1 with some data and  here it is hanging . Is JDBC  sender adaptor locks the table1 till the whole cycle is completed or there is another reason?????? If it likes that how to solve this
    Thanks in advance
    Regards
    Vijay

    What is the error that you are getting.?
    Just for test purposes, in the Sender JDBC adapter, select Advanced Mode --> Database Transaction Level and select option --> None.
    Regards
    Bhavesh
    PS : The setting described above should never be tried on a production environment.

  • Two select query in sender JDBC adaptor

    Hi
    We are doing JDFC-RFC scenario, in which i need to fetch the data from two tables (header  and item table) whch correspondes to the 2 table parameter of RFC .
    Any clues how to configure sender jdbc CC having  2 select query ??????
    Regards
    Vijay

    Swatantra,
    You can have a look at the below URL for more info on JOIN.
    http://www.w3schools.com/sql/sql_join.asp
    Best regards,
    raj.

  • Error Handling in JDBC Adaptor - Without BPM

    Hi friends,
    My problem is like this. Scenario is File -> Xi -> JDBC.
    here i didn't used BPM at all.
    My interface is working fine.
    right now i am not doing any error handling for 'Primary key violation, refrential intigrity etc.. '.
    if this type errors encountered i going to adapter monitoring and looking out the issue.
    Now the client requirment is
    whenever this type of errors occured Client should be notified Via email along with error description.
    Is there anyway to do this ?

    Hi Suresh,
    You can setup the Alerting framework of XI to trigger alerts. Alert rules can be set to raise alerts in case of JDBC Adapter Errors.
    Check these links....
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/81023cfa699508e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
    Thanks & Regards,
    Renjith
    An addition to what i just said...You have to be on SP14 for this...
    Message was edited by: Renjith Andrews

  • Jdbc adaptor picking the messages at same time.

    hi,
    there are  5 messages blocked in status Delivering are blocking the 5 JDBC Threads allowed at the Adapter Engine itself. Even if I allow a bigger number of concurrency messages it will not change the real number of simultaneous threads. You need to unblock those 5 messages to allow others to process.
    thanks,
    krushi

    Hi,
    This may help you
    How to deal with stuck EOIO messages in the XI 3.0 Adapter Framework
    Regards
    Seshagiri

  • JDBC Sender Adapter, Update statement

    Hi ALL,
               I have a JDBC to proxy scenario. We have stored procedure in the database that executess and sends the data to SAP.
    Also the same store procedure updates the field Status_ID to distinguish between read and unread records. Status_ID acts as a Flag.
    Now because the Stored procedure itself does what 'Update SQL Statement' in sender JDBC adapter does, what shall I put in 'Update SQL Statement' as it is not needed, but it's a mandatory field??
    XIer
    Message was edited by:
            XIer

    Do you need that update in the sender jdbc adaptor to do anything....?
    Dint think so..
    Change your update statement to update Status_ID if its not updated..and if the sql procedure has run already then its not going to be updated ..as it already is.......
    Regards
    Ravi Raman

  • JDBC  Adapter how to select multi format files on AS/400

    Hi all,
    i want to access a multi format file in a AS/400 Library via JDBC Adaptor. When i try to 'select * from XXXX.FILEN' i get an error "SQLException during query 'select * from XXXX.FILEN': java.sql.SQLException:[SQL7003]File FILEN in XXXX has more than one format.
    Does anybody knows how to access a multi format file in AS/400 via a SQL statement which i can use in the JDBC-Adaptor configuration.
    Thanks,
    Juergen

    Hi Jurgen,
    Check this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm
    also a guess, instead of "*", can you try with column names of required columns (and make multiple queries, based on qualifiers/columns for appropriate formats within the same file)
    Regards
    Vishnu

  • Which Adaptor is appropriate please suggest

    Hi All,
    I have the following scenario and want your suggestions:
    A web based applicaiton (say A) to create customer need to integrate with another web based applicaiton (say B) which uses the customer details to display of Applicaiton A... wondering do I need to go for SOAP adaptor/HTTP adaptor or do I need to integrate these two applicaitons at data base level using JDBC adaptor?
    What are the steps/any documentation to get the data from web site to SAP PI when User clicks submit button?
    Please suggest.
    Thanks
    Rajeev

    >>> but my questtion is what needs to be done at Applicaiton A side to create Input and post the data in the SAP PI URL... As they are using the web client provided by the Application provider..Do they have to write code at the submit button of the web page? If so they have to customnise the code delivered by the provider? How it works.. Its been first time going through this...
    Yes, if you create webservice by creating soap sender and give WSDL, then they will have to write webservice client program in java or any language to access your webservice. This program will be called in their side at the time of hitting submit button of the web page.
    For this you have to go through soap sender sdn documents.
    or  As I already mentioned, create HTTP sender and provide your payload structure and url as we discussed in the above replies. A has to create coding to post HTTP using the url during submit hit button on their web page.
    >>Do they pass all the values in the URL or to the URL?
    This is client A's problem. Why do you worry?  There are plenty of documents to do http post.. The below coding is simple snippet..
    Search google for plenty of documents...
    try {
        // Construct data
        String data = URLEncoder.encode("key1", "UTF-8") + "=" + URLEncoder.encode("value1", "UTF-8");
        data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" + URLEncoder.encode("value2", "UTF-8");
        // Send data
        URL url = new URL("http://hostname:80/cgi");
        URLConnection conn = url.openConnection();
        conn.setDoOutput(true);
        OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
        wr.write(data);
        wr.flush();
        // Get the response
        BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
        String line;
        while ((line = rd.readLine()) != null) {
            // Process line...
        wr.close();
        rd.close();
    } catch (Exception e) {
    >>Is it possible to use SOAP adaptor instead of HTTP adaptor? so that I can use AAE in the entire scenario. Applicaiton A is a web client interface through which Customers are created.If I need to use HTTP Adaptor, do I need to create HTTP Sender Adaptor and sender Aggrement ?
    Yes, if you host webservice using soap sender adaptor. Already answered above ...
    >> If I need to use HTTP Adaptor, do I need to create HTTP Sender Adaptor and sender Aggrement ?
    no. Http adaptor is in abap stack. so you dont need sender agreement.

  • JDBC BATCH Insert in SAP  XI

    Hi Everyone
    First of all, Thank you all for such a nice contribution on the forum.  I have few questions I have with SAP and JDBC adaptor. 
    I was wondering if we could do batch update/insert in XI.
    let us say I received 10 different records from IDOC.  I would like to insert all the ten records into a destination oracle table.  I know the way to do would be to do a insert one at a time.  This would involve sending INSERT message every single time.
    I was wondering if there is a way to do a batch update. Is it possible to send all the information at one single shot and have it updated.
    any suggestions would be highly appreciated.
    Regards
    Puskar

    The way I did this was to use the ability to have 1..n statements in a JDBC Adapter message. So you define the Insert/Update structure with the required access elements, then you can connect the recurring node on the source to the statment node on the target. You may need an intermediate mapping to pull the data cleanly out of the IDOC, depending on what you are retrieving. Make sure you set your statement line in the JDBC message to 1..unbounded occurances. It works great for me... You can even mix and match, having INSERT, UPDATE, EXECUTE, whatever different statements all in one JDBC Adapter call. If doing with stored procedures you need to be careful about how you do your transactions in the stored proc, because of the transaction handling used by JDBC adapter.
    I did the multi insert model using a 1-N mapping then looping using a block, it was much messier and results in a lot of messages showing up in the RWB and SXMB_MONI. The all in one approach is much cleaner and executes much faster.

  • File-xi-jdbc Driver

    Hi All
    file-xi-jdbc scenario in jdbc adaptor under d/b connections how do we give parameters like JDBC Driver, Connection, UserName and password .and where do we get them.
    pls give a response.
    Thanks & Regards

    under the JDBC connection tab: the required paramters are filled depending upon the Databse you are using....so depening upon the D/B you also have to deploy the necessary jar files to suppor the driver information you mention in the connection tab.
    Example
    MaxDB
    JDBC Driver Class: com.sap.dbtech.jdbc.DriverSapDB
    Connection url : jdbc:sapdb://DBServer/DBName
    MSAccess
    JDBC Driver Class: jdbc.odbc.JdbcOdbcDriver
    Connection url : jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//xiserver/xitemp/db/1.mdb
    Sqlserver
    JDBC-Driver: com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection: jdbc:microsoft:sqlserver://10.94.22.99:1433;DatabaseName=COS
    check these information:
    also check this
    tther option is download JDBC Driver from Microsoft Website
    http://www.microsoft.com/downloads/details.aspx?FamilyID=6D483869-816A-44CB-9787-A866235EFC7C&displaylang=en
    and deploy the JDBC driver using SDM.
    JDBC Driver Deployment Guide...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70ffd890-0201-0010-708f-d5dad2dfcf3a
    how to configure drivers:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    also http://www.oracle.com/technology/software/tech/windows/odbc/index.html
    Help Required on File to JDBC scenario
    JDBC Driver?
    Check this URL for details on JDBC drivers support list -
    Re: Different Version Oracle in a SLD
    For MSacess
    /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn

Maybe you are looking for

  • Problem with outer join with filter on join column

    Hi, In physical layer I have one dimension and two facts, and there's an outer join between the facts. dim_DATE , fact_1 , fact_2 Joins: dim_DATE inner join fact_1 on dim_DATE.DATE = fact_1.DATE fact_1 left outer join fact_2 on fact_1.DATE = fact_2.D

  • Problem with my USB port in MSI MS-6534

    Hello everybody. I bought an external hard drive and when I connected it to the USB port appear a message that I don't have any port of high velocity and I need to install a controller or high velocity. I don't understant to much about that, but I bo

  • Custom Report taking more time to complete Normat

    Hi All, Custom report(Aging Report) in oracle is taking more time to complete Normal. In one instance, the same report is taking 5 min and the other instance this is taking 40-50 min to complete. We have enabled the trace and checked the trace file,

  • Black Screen Problem after/durning installing MSI Driver CD (ATI 4780 1 GB)

    Hi, I've recently purchased a your (MSI) Radeon 4870 1GB video card from Newegg. And I've installed it and I have the latest drivers (from windows) for it. But ever time I try and install the MSI CD on my computer the screen goes black (could possibl

  • Publish subscribe model with plsql

    Hi, I did not find any sample that shows how to use the publish subscribe model with plsql. Enqueueing is possible and know how to do it, but how can I subscribe to a topic with plsql. All samples I found are for Java JMS. Thanks Günther