JDBC adapter connection

Hi Gurus,
My user has a web based system where goods receipt details are entered and it gets updated in mySql DB. In return the user would gather information from sap and displayed back on web at real time. They do not have option for web services or http . They do not want to customize this system.
Since business system is DB,
Can I implement the JDBC connection and poll the DB continuously to make synchronous JDBC <-> PROXY scenario. Can I achieve the real time update in DB. Is this going to affect the performance ?
Kindly suggest.

Since the JDBC adapter will retrieve the information based on a "SELECT FROM ... WHERE", it would be nice to have some information that could be updated with a flag "been read" or "is changed", which can be updated also by the JDBC sender (you have a query and an update action, please check the help page below). You could also have a query to gather by the timestamp.
http://help.sap.com/saphelp_nw04s/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
However, it seems you are going to have a 1 second polling on the database? This can have some impact on the performance depending on the database or if you have many XI scenarios running. Is this the only option you have?

Similar Messages

  • JDBC Adapter Connection Issue

    Hi Experts,
    The scenario is file to JDBC, the messages are getting failed in XI MDT with the following error "JDBC Message processing failed ,reason when attempting to get processing resources: com.sap.aii.af.service.utill.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL<JDBC Connection details maintained in CC>: SQLException: Io exception: The Network Adapter could not establish the connection".
    We got this error after changing the IP addreass of the Oralce system. we did maintained in all the communication channels with new IP Address, previously the data is updating to the Oralce table with old IP addreass.
    IP address is also maintained in XI Host file. We are able to ping the Oralce from XI with new IP.
    Can any body suggest how to rectify the issue.
    Thanks in Advance
    Bhaskar

    Hi,
    have you checked cache status. It is possbile that the change hasn't been applied yet. That would explain, why the database can't be reached.
    Stop/Start of communication channel might also help. Sometimes it si necessary to restart the whole JDBC Adapter.
    If all this fails, you should get yourself a free copy of DBVisualizer, use the same database driver as is installed on PI, provide credentials and try to reach database. Might also be a driver issue.
    Regards
    Sven

  • JDBC Adapter - Connection Pooling

    Does anybody know if we can specify a Connection Pool to the JDBC Adapter? I mean the number of connections that the Adapter can have open to say Oracle Data.
    Regards
    Mike

    Hi Michael,
    Some of the specifications that are given while configuring the JDBC adapter, especially regarding the number of connections that you acn have...is given clearly in this documentation for JDBC adapter:-
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/frameset.htm
    Specifically check for the following parameters :-
    <i>db.transactionIsolation=0|1|2|4|8
    db.autoCommit=NO|YES
    db.pollInterval=
    db.retryInterval=
    db.logPollInterval=NO|YES</i>
    Regards,
    Sushumna

  • JDBC Adapter - Connectivity

    I connect to Oracle Database using JDBC Adapter and the adapter is configured to poll every 300 secs.
    The Oracle Database goes down over the week end for maintenance. By the time I come Monday morning the Adapters are down and I have to reactivate them from ID. I assumed that the Retry interval will take care of the issued.
    Is there any way to stop this from happening?
    Regards
    Michael

    Hi Michael,
    Like mentioned by Amol, <b>Disconnect from Database After Processing Each Message</b> will do the trick.
    Every time your JDBC adapter receives a message for processing , it will connect to the database the details  provided in the Adapter Configuration.
    Normally, if you do not select this option, your JDBC adapter will connect to the Database once when it is getting activated and will use the same connection for further processing. But, if the Database resets this connection , there is no way the JDBC adapter isaware of this, and the next time a message is processed by it, it will get disconnected.
    So, if this DB disconnection is going to happen frequently, you need to have the option Disconnect from Database After Processing Each Message selected.
    Regards,
    Bhavesh

  • Sender JDBC Adapter - Connectivity Problems

    I installed JDBC Driver for Oracle 9 ojdbc14.jar on the J2EE Engine as per the instructions in the How To Guide. I updated the tnsnames.ora on the server appropriately. Also I could connect to Oracle database from the server using sqlplus. I configured my Sender Adapter with the following parameters:
    JDBC Driver:oracle.jdbc.driver.OracleDriver
    Connection:jdbc:oracle:thin:@ORACLEDEV
    I get the following error:
    Sender Adapter v2108 for Party '', Service 'ORACLEDEV_BS':
    Configured at 2006-03-09 17:24:42 EST
    History:
    - 2006-03-09 17:24:42 EST: Retry interval started. Length: 60.000 s
    - 2006-03-09 17:24:42 EST: Error: Accessing database connection 'jdbc:oracle:thin:@ORACLEDEV' failed: DriverManagerException: Cannot establish connection to URL 'jdbc:oracle:thin:@ORACLEDEV': SQLException: Io exception: SO Exception was generated
    - 2006-03-09 17:24:42 EST: Processing started
    Help is highly appreciated.
    Mike

    Hi Bhavesh/Naveen,
    You are correct.
    Mike, the correct settings are as follows
    JDBC Driver: oracle.jdbc.driver.OracleDriver
    Connection: jdbc:oracle:thin:@<oracle server>:<port>:XDB<sid>
    Username: <oraccle username>
    Password: <oracle password
    Rgds,
    Sam raju

  • JDBC adapter connected to a DB in high availability!

    Hi folks,
    I have finished my scenario File -> XI -> JDBC and now I’m preparing to transport it to QAS. I found that Data Base of QAS is in two cluster nodes. I have two hostnames to fill the parameter <b><IP address></b> and I don’t know which hostname I should use! Is it supposed use both? …or I need another one virtual?
    Connection: <b>jdbc:oracle:thin:@<IP address>:<listener port>:<instance name (database name)></b>
    Thanks in advance,
    Ricardo.

    I don't know this mechanism of high availability with 2 IP, but if you really have 2 hostname you should think to a method to switch from a node to the other in easy way, deactivating one and activating the other (for instance with the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/45/0c86aab4d14dece10000000a11466f/frameset.htm">Controlling a Communication Channel Externally</a>)
    I suggest you to verify how it will be in production instance: real cluster ? switch over ? virtual IP ?
    Regards,
    Sandro

  • The Communications Channel based in JDBC Adapter in order to Receive

    We have a several communication channel based in jdbc adapter connecting to Oracle database in order to receive information from our R3 System, but now is not working i do not see any message error in our XI, i see that the message was succefull procesed but when you see the oracle database is empty. When you see the jdbc adapter in the runtime workbench i see only this message
    "Receiver Adapter v2112 for Party '', Service 'SIOPRO':
    Configured at 16:12:31 2006-07-18
    Up and running - no message processing until now"
    Somebody know what is happening?

    Is the message monitoring is showing success ? If there is no error in SXMB_MONI, Message Monitoring->Audit Log (i.e
    http://hostname:portnumber/MessagingSystem/monitor/monitor.jsp ), then I think, it is unable to find the Adapter channel.
    Anyway try to restart the Adapter engine. It may help you.
    Regards,
    Moorthy

  • How to config JDBC adapter for internal database

    Hi all,
    I have configured a scenario that sends data from PROXY to JDBC adapter, JDBC adapter connects to the internal database. The Proxy adapter is OK, but the Receiver JDBC adapter I really don't have any idea about it. Please let me know.
    The version, I am doing on it, is 7.1
    Thanks in advice.
    Ken.

    Hi ,
    Check in your message mapping after execution( Target Side)  -> Test Tab -> XML structure,
    it Should be like this/ in this format
    here action/ table/access : these tagname should not be changed.
    Enter the new column values in the <access> element.
    Enter exactly one <access>element.
    <StatementName>
         <dbTableName action=u201DINSERTu201D>
         <table>TableName</table>
          <access>
                 <col1>val1</col1>
                 <col2>val2</col2>
          </access>
         </dbTableName>
    </StatementName>
    Statement would be like this :
    INSERT INTO TableName  (col1, col2) VALUES(u2018val1u2019, u2018val2u2019)
    Regards
    Prabhat Sharma.

  • JDBC Adapter - Established database connection failed

    Hi Guys,
    we have installed the JDBC Adapter based on the How To Guide and we checked after the installation the  Libaries :Cluster --> Server --> Libraries --> com.sap.aii.af.jmsproviderlib and the box Box "JARs Contained" was filled.
    So in my point of view we have done everything right during the installation.
    Now the developer tested theJDBC Adapter and he comes back with following Error:
    Attempt to establish database connection failed with SQL error com.sap.aii.adapter.jdbc.sql.DriverManagementException: Cannot establish connection to URL "jdbc:microsoft:sqlserver://xxx.x.xx.xxx:1433; databaseName=CZZ03;":ClassNot FoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
    Do you have any ideas?
    Regards
    Markus

    Hello Markus,
    To install JDBC driver follow the how to guide.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
    Configuration of JDBC Adapter for SQL Server
    JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
    UserID and Password.
    If the connection is not working find the correct port number.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
    JDBC- X I -  R/3 Scenario
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Thanks,
    Satya Kumar
    Reward Points If it is Useful..

  • Need to connect to Oracle 11g using PI 7.1 JDBC adapter

    Hi All,
    I am trying to configure a JDBC adapter to connect Oracle 11g. For this I need to know the driver,jar and connection URL details.
    Can anyone please provide the above information?
    Please correct me if my details are wrong :
    JDBC Driver : oracle.jdbc.driver.OracleDriver
    JAR : ojdbc5.jar
    URL : jdbc:oracle:thin:@localhost:1521:ora11i
    Regards,
    Prakash.

    Yes i knew how to deploy the jars using SDA.
    I will try to deploy the above jar (ojdbc5.jar ) and try to connect to Oracle 11g with URL & Driver classname.
    If I face any problem then i will get  back to you.

  • Problem with Progress DB while using to connect using JDBC Adapter

    Hi,
      I am facing Problem with Progress DB while using to connect using JDBC Adapter. I am getting the following error in auditlog file like,
    Error during database connection to the database URL  jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db using the  JDBC driver "com.progress.sql.jdbc.JdbcProgressDriver" : com.sap.aii.adapter.jdbc.sql.DriverManagerException: Unable to locate a suitable JDBC driver to establish a connection to URL " jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db "
    I tried using the following all URLs,
    1. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.       
    2. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.db     
    3.                                                      
    jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.                                      
    4.                                                      
    jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db.                                  
    Can anyone please help me out in solving this issue.
    May be the cause for this is :
    1) The Wrong URL  format
    2) CLASSPATH is not setted properly..
    Can you look more into this stuff.
    Thanks,
    Soorya.

    Hi,
    To access any database fromm XI, using the JDBC adapter, the corresponding drivers have to be installed on the XI server.
    Just check this note 831162.
    Also, check this PDF to install Drivers in XI,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10

  • Problem with a JDBC Adapter when connect to Instance on SQL Server

    Hi,
    Currently I'm setting up a communication channel with the JDBC adapter to work on a SQL Server database. When I use a string without specifying the connection instance, the JDBC driver takes the default instance and connects to a database without problems.
    jdbc: sqlserver: / / Server01; databaseName = IntegraSAP1
    The problem is when I need to connect to another instance of it server.
    jdbc: sqlserver: / / Server01; instanceName = SAP; databaseName = IntegraSAP2
    The JDBC driver, in short, send me the following error:
    Cause Exception: 'Error when attempting
    to get processing resources: com.sap.aii.af.lib.util.concurrent.ResourcePoolException:
    Unable to create new pooled resource: DriverManagerException:
    Can not establish connection:: com.microsoft.sqlserver.jdbc.SQLServerException:
    The connection to the named instance  has failed. Error:
    java.net.UnknownHostException: .
    I appreciate your help,
    Regards,
    Johnny

    Not sure, might be port number is not required in case using instance. Give one more try with :
    jdbc:sqlserver:/ /Server01\SAP; databaseName = IntegraSAP2
    A comment from http://msdn.microsoft.com/en-us/library/ms378428.aspx
    "SQL Server 2000 and SQL Server 2005 allow for the installation of multiple database instances per server. Each instance is identified by a specific name. To connect to a named instance of SQL Server, you can either specify the port number of the named instance (preferred), or you can specify the instance name as a JDBC URL property or a datasource property."
    Regards,
    Sunil Chandra

  • Info reg reciever JDBC adapter's driver and connection

    Hello,
    I have following questions related to JDBC receiver adapter.
    1. can I supply jdbc driver and jdbc connection dynamically to supply the DB parameters dynamically?
    2. if I cant supply dynamically, how do i achieve this purpose?
    3. What are the receiver adapter parameters of JDBC receiver adapter that i can change dynamically?
    thanks and regards,
    Nikhil.

    Hi,
    To install JDBC driver follow the how to guide.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
    Configuration of JDBC Adapter for SQL Server
    JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
    UserID and Password.
    If the connection is not working find the correct port number.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
    JDBC- X I -  R/3 Scenario
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Please check the driver path as mentioned below.
    JDBC Driver : sun.jdbc.odbc.JdbcOdbcDriver
    Connection:jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//location of DB table.mdb;
    No JDBC driver required.
    Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    follow this thread
    Re: Problem when connecting to MS Access through JDBC Adapter.
    SAP Note 850116 has details
    Thanks,
    Satya Kumar
    Reward Points If it is Useful..

  • Connection Pooling in JDBC Adapter

    Does anybody know if the JDBC Adapter uses connection pooling? If yes, how can one adjust the pool size etc.
    Thanks!

    Hi Roland,
    Refer this note 831162...
    9. J2EE JDBC Connector and Connection Pooling
    Q: Does the JDBC Adapter support the use of the SAP WebAS J2EE engine's JDBC Connector and connection pool?
    A: Currently, each JDBC channel will create its own JDBC connection. The use of the J2EE engine's JDBC Connector and connection pooling mechanism is not supported.
    Regards
    Anand

  • JDBC Adapter - One Connection prior to SP20

    From my understanding a JDBC adapter can only establish one connection prior to SP20.  Given the above, does this mean that in can only process one message at a time?
    Thanks in advance.
    Duke

    Duke,
    -The Max concurrency is not for receiver JDBC alone its applicable to File receiver also.
    - Based on my readings & understandings  the max concurrency is used fo connection pooling. For example if multiple interfaces are using the same comm.channel(ex.JDBC-receiver) then till SP20 <b>I think</b> only one message is processed at a time, to improve the performance they have given the option of max.concurrency(Read -New Features link below).
    - Also I request you to refer William's weblog (Method 3) in the weblog
    /people/william.li/blog/2007/03/30/using-jdbc-connection-pool-in-xi-message-mapping
    New Features & Function enhncements 
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4042611d-04e5-2910-bd9d-f97627b1c164
    JDBC adapter - Max concurrency
    http://help.sap.com/saphelp_nw70/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
    File adapter - Max concurrency
    http://help.sap.com/saphelp_nw70/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    I hope it helps!!!
    If i'm wrong kindly revert back with your thoughts.
    Best regards,
    raj.

Maybe you are looking for