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.
Similar Messages
-
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,
JohnnyNot 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 -
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 -
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. -
JDBC Receiver Adapter to connect to oracle
Hi all,
We are configuring communication channel for receiver JDBC Adapter to connect to oracle dataabase. The status is red in the Adapter monitor and it says that
"Receiver Adapter v1027 for Party '', Service 'MQ':
Configured at 23:31:45 2006-12-12
Processing Error: Accessing database connection 'jdbc:odbc://172.20.36.170:1521;DatabaseName=RTPOC failed: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Addtional information: JDBC driver 'oracle.jdbc.driver.OracleDriver' loaded successfully, additional driver information:
Available JDBC drivers:
oracle.jdbc.driver.OracleDriver, 1.0 JDBC compliant
sun.jdbc.odbc.JdbcOdbcDriver, 2.1 JDBC compliant
I guess there is some error in the connection url....could someone give us the exact syntax of Connection url.
RegardsHi all,
someone please clarify me. I have a datasource called "OracleDSN" in system 172.20.36.239 which has oracle client(RTPOC) in it.
So i gave my connection url as
jdbc:odbc:OracleDSN:@172.20.36.239:1521:RTPOC.
it still says that datasource name is too long..
Please help us out.
Regards -
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
MichaelHi 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 -
Hello,
Can anyone email me some or all usefull files about using and step by step procedure of configuration of JDBC adapter please? I am using JDBC adapter to connect the oracle database and ECC system through XI.
[email protected]
Many thanks in advance.
Andy.Hi,
Here you are :
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 - File to JDBC
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9aedca11-0d01-0010-3b90-9ea04182875f
/wg -
XI adapter polling issue & JDBC / DB2 driver connection timeout properties
Hello Group,
We have a long running issue with our XI 7.0 system running on iseries. (V5R3) The issue occuring is that our XI adapters stop polling and the only resolution is to restart the J2EE engine or to resart the adapter framework services.
We have had several OSS messages open on this subject for over a year and are going round in circles with the a number of different SAP consultants.
The one topic that we keep coming back to is that we are being asked to set DB2 driver connection timeout properties. We are using the toolbox driver and have upated to the latest JTopen driver, but have not managed to find any inofrmation on how to set the timeout parameter. Does anyone know where the timeout parameter set?
Has anyone experienced polling issue like this before and how did you resolve?
SAP referred to the SAP note 1078420 - XI/PI JDBC Adapter: Setting JDBC driver properties for DB which is for Oracle, but this will give an idea of what timeout parameters SAP are asking about.
Extract of the note is below:-
Symptom
This note gives an option to set JDBC driver properties while acquiring a DB connection. When connecting to DB using JDBC adapter there are instances
where DB connection take a long time to establish connection. Some times call made to Driver will hang permanently. Setting driver properties would resolve this problem.
More Terms
Connection timeout, time out, query timeout
Cause and Prerequisites
Solution
In the advanced mode table section of sender channel and receiver channel configurations, we can set driver properties for each DB connection. Any
such property would have to contain prefix 'driver:'(with out quotes) For example, for Oracle Database JDBC thin driver 10.2.0.3 version, the
property oracle.jdbc.ReadTimeout helps to set read timeout while reading from the socket. Also for setting login time out in Oracle, we use
oracle.net.CONNECT_TIMEOUT. To set these two properties use as follows:
driver:oracle.jdbc.ReadTimeout 1000
driver:oracle.net.CONNECT_TIMEOUT 1000
(The TimeOut Driver properties like ReadTimeout and CONNECT_TIMEOUT are in milliseconds)
Refer to your DB documentation/ JDBC driver documentation on this. Please note that properties can vary from each driver version. For instance, some
of properties of Oracle JDBC thin Driver 10.2.0.3 properties may not be present in older version drivers. Please contact DB vendor for the complete
list of driver properties. In addition to above, we also provide another parameter for query time out.
sqlquerytimeout (prefix 'driver:' is not required) is the parameter that is to be used for SQL query time out. This is case-sensitive and should be
configured as positive integer value in seconds(greater than 0).
Any help on this would be much appreciated.
With regards,
StevenHello,
I am not talking about the XI timeouts. But the timeouts which can be used to get the connection timeouts for DB2/AS400 databases.
So please provide that information.
THanks,
soorya -
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
MarkusHello 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.. -
i have a Mac OSX version 10.75 with just one Thunderbolt port. and it has been my Thunderbolt port to connect with Blackmagic wear my intensity. and I no longer can use the port for mini-DVI adapter to connect with me. I do not want to ask any other way for me to use to use my monitor. I monitor LG FLATRON E2041 brand .. PLEASE Helpp ME
i have a Mac OSX version 10.75 with just one Thunderbolt port. and it has been my Thunderbolt port to connect with Blackmagic wear my intensity. and I no longer can use the port for mini-DVI adapter to connect with me. I do not want to ask any other way for me to use to use my monitor. I monitor LG FLATRON E2041 brand .. PLEASE Helpp ME
-
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
BhaskarHi,
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 -
Messages are in hold state due to one message at receiver JDBC adapter
Hello,
I am using a receiver JDBC adapter and trying to send an XML file which has an insert query to insert some data into the database i.e., Oracle 9i.
Here at the receiver side due to one message ( which is in to be delivered state) all other messages are got hold and waiting for long time.
I am getting the exceptions as this,
JDBC Adapter processing failed with Error processing request in sax parser: Error when executing statement for table/stored proc. 'FSASMGR.XTBL_KL06_IINQUIRY' (structure 'REC01'): java.sql.SQLException: ORA-12899: value too large for column "FSASMGR"."XTBL_KL06_IINQUIRY"."CASE_TITLE" (actual: 81, maximum: 80)
Exception caught when executing statement for table/stored proc. 'FSASMGR.XTBL_KL01_ISTAFF_MST' (structure 'REC1'):
java.sql.SQLException: ORA-00001: unique constraint (FSASMGR.XTBL_KL01_ISTAFF_MST) violated
Can anyone help me out in solving this issue.
THanks,
Sooryahi surya,
jdbc channel tries a request for n number of times(no of rettries),if that request fails it will take up the following requests,its not like it will process a request forever.
to be delivered will be resulting if reciever is down or network between XI and database server is bad.
try to ping databse server from XI host system.
if everything is fine then look at the channel configuration->advanced->no of retries of database transaction on sql server.
just redue the count to 1 and recheck.
Regards,
rama Krishna -
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.
MikeHi 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 -
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 -
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..
Maybe you are looking for
-
I have iTunes on my desktop (non-apple product) and an iPhone. My fiance' has an iPhone, iPad and Mac laptop, all of which I bought her. We'd like to share the music we have in iTunes library among our devices. How do we go about doing that??
-
How to create RFC(TCP/IP Connections) For BW Maintain BI accelerator Index?
HI Friend, I want to test Maintain BI accelerator Index for CUBE ( RSDDV ), but I don't create RFC(TCP/IP Connections), what Program name enter in Program? Because RSCUSTA tocde need to enter : RFC BI Accelerator . ERROR: SP test: Error in
-
Automatic decimal entry in Calculator
Is there any way to set the decimal point place for entries in Calculator 4.0.5, like on a regular calculator? For example, can you set it at "2." so that if you punch in 1234 and hit an operator, it is displayed as 12.34? Just so there's no misunder
-
I am getting a message "setting date and time...." but nothing happens
My Apple TV has stopped working. I start up and it says "setting date and time...." but I cannot access the internet.
-
Canon G10 Camera Raw - works sporadically
I downloaded and installed Camera Raw 5.2 in Photoshop CS4, about an hour ago. Since then I have had varied, and it seems random success in opening raw files in Photoshop. I only loaded a couple of G10 raw files onto my computer [desktop]. Sometimes