JDBC Adapter Installation in PI 7.3
Hi All,
Could any one help me how to install JDBC ADAPTERS in PI 7.3 .
Please provide the related links.
MY SERVER DETAILS.
Database system MSSQL
Release 10.00.253
DB client lib. SQL_Server_9.00
Operating system Windows NT
Machine type 4x X86_64
Thanks
harsha
Hi Harsha,
I have also deployed JDBC driver(sqljdbc4.jar) according to http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00b4a020-4ae6-2c10-5a95-fed4ad9a4b60?QuickLink=index&… .
Driver deployed successfully and I have checked it in folder \usr\sap\xxx\DVEBMGS30\j2ee\cluster\bin\ext\com.sap.aii.adapter.lib\lib and it's found ok. But this adapter type not showing in Communication Channel only RFC and SOAP are showing there. I have restarted the server also. Can you tell me is there any process after this so that jdbc adapter come in Communication channel ?
Similar Messages
-
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.. -
JDBC Adapter configuration not initialized:null
i
we have a synchronous scenario with the following adapters , RFC <> XI <> JDBC.
1.JDBC Driver installation is done
2.RFC Destination type t is done in sap(sender) system.
3.checking the jdbc in VA is done
while running it is giving the following error.
com.sap.aii.af.ra.ms.api.RecoverableException: JDBC Adapter configuration not initialized: null
where we have to initialize JDBC Adapter configuration
Thanks in advance
Prasad Nemalikantihi prasad
There are 2 jar files that may be missing from your SQL JDBC driver --> msbase.jar and msutil.jar, I think once you add these to the driver it might work.
also check the driver string for the SQL driver 2 parameters
i.e 'com.microsoft.jdbc.sqlserver.SQLServerDriver' now becomes
'com.microsoft.sqlserver.jdbc.SQLServerDriver'
This will solve your problem
follow this link
Re: MS SQL Server jdbc Driver installation on XI .
XI JDBC Adapter using stored procedures
thanks
sandeep
Reward points if helpful -
JDBC adapter access to iSeries DB files in libraries
Hello,
We try to connect to an AS400 iSeries system via JDBC adapter!!! (not a typical scenario I think!)
The files (so called by IBM but we identify them as tables in our understanding ) are stored in libraries.
The question is how to add this library (like a path?) into JDBC adapter and interface description.
Adapter:
JDBC Driver: <driver name>
Conenction: <physical address of iSeries DB>
LogIn data: xxx
Interface description:
MESSAGE
STATEMENT = []
TABLENAME
ACTION = select
TABLE = DBNAME.TABLENAME
The interface description is from another successful implementation on an ORACLE DB.
I think the table definition should contaion the library like
<DBNAME>.<LIBRARY>.<TABLENAME>
separated by dots!
I am not sure. So can anyone correct or agree?
Currently we are not ready for a first try because the driver installation is next week.
But it would help to know what we have to do instead of spending possibly a lot of time for trial and error.
Kind Regards
Dirk
Of course, helpful answers are valued by points!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 -
hello,
a very big problem.
I configured in my PI 7.1 installation a JDBC - PI - rfc interface.
When i active the jdbc comunication channel , all cpu saturated and j2ee crash.
I try to restart java stack but is not possible
I think the problem is on jdbc adapter but i cannot stop it if java part is down.
There are solution for stop or delete this comunication channell from abap stack?
does someone already had a similar problem that jdbc adapter generate a crash of system?
thanks>
Alessandro Pederiva wrote:
> ok thanks, we try
> which is the correct connection string for connection on SQL server??
> i used :
>
> driver: sun.jdbc.odbc.JdbcOdbcDriver
> connection : jdbc:odbc:Driver={SQL Server};Server=host;Database=dbname
Are you using a JDBC-ODBC bridge type driver, I am not sure if this is supported by JDBC adapter.....
If it is not try this,
Driver: com.microsoft.jdbc.sqlserver.SQLServerDriver
Connection: jdbc:microsoft:sqlserver://SQLHOSTNAME:PORT;DatabaseName=DBNAME;SelectMethod=cursor -
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 -
Hi,
I have few question and I am requesting you to answer my questions.
1. What is the purpose of Program ID to specify when we configure the Sender RFC communication Channel?
2. How to get the JDBC Driver name , connection parameters, Host and Port for the JDBC Communication channel configuration. My Basis consultant said, he has not aware this JDBC Adapter?
I need to use JDBC Adapter for my JDBCXIFile Scenario. Please explain me the step by step procedure. Please explain me from where we need to get the above parameters and JDBC Driver already configued in XI. I need the Driver name with syntax and connection parameters, host and port.
3. Where we need to write the SQL Query for SELECT, INSERT, DELETE, and UPDATE in configuring the Receiver JDBC Communication channel?
I am very thankful to you in advance.
Nagarjuna.Hi,
I have few question and I am requesting you to answer my questions.
1. What is the purpose of Program ID to specify when we configure the Sender RFC communication Channel?
Program ID : Program ID of the registered server program. The selected program ID must uniquely describe the RFC sender channel in the configured gateway (Application Server (Gateway) and Application Server Service (Gateway) parameters). Also this program where you execute your RFC function with specified RFC destination.
2. How to get the JDBC Driver name , connection parameters, Host and Port for the JDBC Communication channel configuration. My Basis consultant said, he has not aware this JDBC Adapter?
I need to use JDBC Adapter for my JDBCXIFile Scenario. Please explain me the step by step procedure. Please explain me from where we need to get the above parameters and JDBC Driver already configued in XI. I need the Driver name with syntax and connection parameters, host and port.
Host and Port for the JDBC Communication channel configuration: there are DB parameters which you are using.
info about installation drivers for JDBC & JMS adapters
FIRST: drivertool you can find at https://www.sdn.sap.com/irj/sdn/howtoguides
Then Exchange Infrastructure How-to Guides for SAP NetWeaver 2004 How to Install and Configure External Drivers for JDBC & JMS AdaptersDownload attached system files (ZIP 16KB)
SECOND:installation guiade:
External Driver Configuration for Process Integration 7.0
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60237e74-ef19-2b10-5a9b-b35cc6a28e83
Tips and Tutorial for Sender JDBC Adapter
/people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
File-to-JDBC(Receiver JDBC)
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
3. Where we need to write the SQL Query for SELECT, INSERT, DELETE, and UPDATE in configuring the Receiver JDBC Communication channel?
You write them in action tag in Message Mapping.
For the details find "Document Formats for the Receiver JDBC Adapter" on help.sap.com
BR,
Dzmitry -
Hello all,
I am trying to build a scenario that uses the JDBC adapter in two communication channels to connect to Oracle databases. I am having difficulty connecting to the database so I have a few questions:
1. Does a driver get installed with the XI installation that allows me to connect to Oracle databases, or do I have to install that driver seperately?
2. What connection info do I put into the communication channel when it asks for <b>JDBC Driver</b> and <b>Connection</b>?
Thanks in advanceHarrison
Does a driver get installed with the XI installation that allows me to connect to Oracle databases, or do I have to install that driver seperately?
>> you need to install it separately in XI using SDM tool .
What connection info do I put into the communication channel when it asks for JDBC Driver and Connection?
>> you need give driver details and connection like databaseservername,databasename,port.which driver ur uisng.
check this blog for how eneter driver and connection details
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 -
XI JDBC Adapter using stored procedures
Hi
I am using the JDBC adpapter to call a stored procedure on a SQL database.
In the adapter configuration I am using 'com.microsoft.jdbc.sqlserver.SQLServerDriver' as the JDBC Driver parameter and 'jdbc:microsoft:sqlserver://LIBOEE01:1433;DatabaseName=DEV_OEE;SelectMethod=cursor;' as the connection string.
My payload is as follows:
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<Statement>
<PL101_SAPR3_SKU_OBJ action="EXECUTE">
<p_verb isInput="true" type="varchar">CREATE</p_verb>
<p_site_id isInput="true" type="varchar">GPK</p_site_id>
<p_sap_line_id isInput="true" type="varchar">LN005</p_sap_line_id>
<p_sku_id isInput="true" type="varchar">4014847</p_sku_id>
<p_sku_desc isInput="true" type="varchar">Klipdrift Exp - 12x750ml</p_sku_desc>
<p_bottles_in_sku isInput="true" type="float">12</p_bottles_in_sku>
<p_bps_sap isInput="true" type="float">2.083</p_bps_sap>
</PL101_SAPR3_SKU_OBJ>
</Statement>
</root>
However, when I cal lthe interface I receive the follwoing error in the adapter:
2007-07-18 11:25:03 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: JDBC Adapter configuration not initialized: null
2007-07-18 11:25:03 Error Exception caught by adapter framework: JDBC Adapter configuration not initialized: null
2007-07-18 11:25:03 Error Delivery of the message to the application using connection failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: JDBC Adapter configuration not initialized: null.
Is this possibly casued by the driver being the incorrect version?
Regards
MichaelHi Kanth,
Thanks for your response, but the blog by Siva Maranani is actually where I got my code from. Upon further research I think have found the problem as experienced in this blog --> Re: MS SQL Server jdbc Driver installation on XI . There are 2 jar files missing from our SQL JDBC driver --> msbase.jar and msutil.jar, I think once I have added these to the driver it might work. Strange that when you download the driver from microsoft's website that these 2 files are only available in the UNIX download though!
Regards
Michael -
Increase Performance on jdbc adapter.
Hi guys,
I have a jdbc scenario that is accessing two data bases (Oracle and DB2). I would like increase query performance! So, I would like to know if there are any configurations parameters that I need to adjust to get more performance.
Is it possible put the jdbc adapter doing several queries on the same table at same time? If the jdbc have this possibility it is great, because in one instruction it could do several selects/updates and improve more performance
Any suggestions or documentation are appreciated.
Thanks in advance,
Ricardo.Hi,
With Receiver JDBC adapter it is possible.
create as many STATEMENT tags as needed with the required action , tablename, strcuture etc.
With sender JDBC adapter, you can mention only one Select Query and multiple queries will not be possible.
<i> have a jdbc scenario that is accessing two data bases (Oracle and DB2)</i>
Also, for this, you need to use separate JDBC adapters as each adapter will be specific to a database and the DB installation. You cannot use a single JDBC adapter to access multiple databases.
Regards,
Bhavesh -
Pass system ack of JDBC adapter to ERP in IDoc - XI - JDBC scenario
Dear all,
i have an IDoc -> XI -> JDBC scenario (without using ccBPM). In the standard way the ERP system, sending the IDoc waits for an application acknowledgement. However the JDBC adapter is only capeable to send system acknowledgements.
Is there a way to pass these acknowledgements to the IDoc status record?
In help.sap.com (http://help.sap.com/saphelp_nwpi71/helpdata/en/ab/bdb13b00ae793be10000000a11402f/frameset.htm) under "IDoc Processing with the IDoc Adapter " there is a table that maps XI system/applic acknowledgement to IDoc status. So in my opinion the status record of my IDoc should at least chenge to the corresponding status for the system ack.
Can anyone tell, if this is really working? What if I deactivate the acknowledgement request in the NOALE programm?
In any case, can I achieve to transfer the system ack to the IDoc status without using a ccBPM?
Many thanks and best regards
FlorianIs there a way to pass these acknowledgements to the IDoc status record?
Without BPM, No.
So in my opinion the status record of my IDoc should at least chenge to the corresponding status for the system ack.
The ack referred here is related to idoc status whether it is properly reached till XI or not and not related to the JDBC ack.
What if I deactivate the acknowledgement request in the NOALE programm?
Then u won't have any ALEAUD message at sender R3.
In any case, can I achieve to transfer the system ack to the IDoc status without using a ccBPM?
No
Regards,
Prateek -
CLOB Datatype with JDBC Adapter
Hi,
we try to fill a Clob Datatype to JDBC Database.
We try 2 ways with the JDBC Adapter:
action="SQL_DML" with an SQL Statment and $placeholders$
But how can i say the key element that it is a CLOB type?
He used this a VARCHAR and there a not more than 4k Chars allowed.
second way is action="EXECUTE" to call a Stored Procedure, but there we got the error that CLOB type is an Unsupported feature.
Any Idea?
Regards,
Robin
Message was edited by: Robin SchroederOk i will check this...
But i'm right when i say that the only way to fill CLOB Type is to use a Stored Procedure ?
or is there any possibility to do this with action="SQL_DML" ?
Regards,
Robin -
Reg: How to Stop Polling of JDBC Adapter without Scheduling the adapter
Dear Gurus,
Here I am having one requirement. My clients wants to send data from JDBC adapter (ORcale System table) to R3 system via RFC.
His Requirement::
1. He is not telling the time of data flow from Oracle server so that based on that we can schedule the adapter in the Communication Channel monitoring (Availablitiy Time Planning) or Else we can Schedule by deciding the setting of the polling interval time.
2. He is telling that When ever he waants to send the data he will place one dummy file in the File Adapter FTP location so that it will became an Indication for u to poll the jdbc adapter and to transfer the data to R3.
3. Untill he keeps the file or gives indication he doesn;t want to communicate with Oracle server due to some security and it s a most important data base he doesn't want to disturb that Oracle Server as so many business are running on that.....
We Proposed::
1. Atleast you need to tell the scheduling time or poll interval time so that we can schedule our adapter.
but he s not accepting for this
2. Atleast U need to give access for Data base to enter one more extra field like STATUS CODE so that we will add one number and we keep on Update in the Update table and based on that Update table statement it will poll.
but he s not even accepting for this
3. Finally we prposed that to create another table in the Oracle SYstem as Dulplicate Table which is similar to Standard Orginal table when ever he wants to pick the data please keep that data in this Duplicate TABle so that JDBC adapter will pick the data from thsi TABLE instead of picking the data from that standard table so that it will not effect any standard table data in the table.
but he s not even accepting for this
We have done some R & D:::
1. WE approached even through BPM and via switch conditions is one scenario
FILE RECEIVE >SWITCH CONDITION> RECEIVE AND SEND or else EXIT
2. Using correlation in anotehr scenario means correlating File adapter and JDBC and based on one dynamica value it will goes to SEND STEP ( RECE IVE --> RECEIVE --> SEND STEPS )
Even though we know this...concept that...we jsut tried::
In BPM we can control the flow in XI 3.0 but we cannot Stop the Polling of JDBC adapter at backend because one the data comes from FILE adapter it will keep on HOLD untill it receives the JDBC from Oracle then based on the condition or Correlation it will goes futher SEND step means after that file adapter is picking file or not ...what ever it may be JDBC will polls at backend and brings that data to BPM"
Hence sugest me How to Stop Polling of JDBC Adapter without Scheduling the adapter or else using STATUS CODE Update statements in JDBC Tables
Regards:
Amar Srinivas EliHi! All,
Finally I decided to do the scenario in two steps:
1: FILE REQ --> JDBC REQ -->JDBC RES --> FILE RECV
2: FILE RECV --> RFC
But I am getting issue while doing first scenario
Desgn :
I have created 2 Synchronous interfaces :
1) FILE 2 JDBC REQ
In this a) out put message is FILE Req
b) Input msage:; FILE RES
2} JDBC2FILE RECV
a) Output mesage;; JDBC REQ
b) Input Msge :: JDBC Response
Mappings:
1) File REQ-->JDBC REQ
2) JDBC RES-->FILE RES
Interface mappings:
1: FILE 2 JDBC REQ--> JDBC 2 FLE RECV
CONFIGURATION ::
1: One Seder File CC
2: Two reciever CC's one is for JDBC RECEIVER and other s FILE RECEIVER
3; One Sender Agreement
4: 2 Recver agreements
5: One Interface Determination and
6: One RECCV Determination
My Question;;
1. First let confirm whether my development steps are right or not ?
2: Another thing s I am not sure reg Configuration Steps means
whetehr one interface determination and one Receiver Determinations are required or not as these are synchronous Interfaces
3: main Issue is::::
If my scenario s FILE2RFC2FILE then I will get RFC response automatically but here issue is this is JDBC
My reqquirement is By sending one Field from fILE to JDBC REQ it needs to send entire TAbLE records as a Response to file as XML
without having Sender JDBC how can I send the JDBC Res to FILE and If that is the case then again JDBC adapter is polling which is contradict to the client requuirement which i explained above.
pleas suggest me the Detailed steps mainly Colloboration agreements and logical routings and
also explain in detail if i can go for BPM
Also give cleear blogs but before giving make sure that it contains detailed screen shots because aIready gone thorugh
Scenario File-JDBC-RFC
File<-->JDBC Sync coomunication.
https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/file-rfc-file(Without+BPM)
/people/luis.melgar/blog/2008/05/13/synchronous-soap-to-jdbc--end-to-end-walkthrough
Regards::
Amar Srinivas Eli -
How to insert a NULL value in SQL using JDBC Adapter
Hi All,
I have a File -> JDBC scenario.
In the File and in the SQL table I have a column called "MR_DATE" that needs to be mapped
I have to do the following:
If MR_DATE is NOT equal to "00000000"
then pass MR_DATE to SQL table
else
set the MR_DATE column in the table as NULL.
Please suggest
regards,
PiyushHi Piyush,
In the receiver JDBC adapter select the option Interpretation of Empty String Values as NULL.
Pass date as empty, it will be interpreted as NULL by adapter and inserted in database.
Regards,
Gautam Purohit -
Error while executing the stored procedure through sender JDBC adapter
Hi All,
I am getting below error while executing the stored procedure through sender JDBC adapter.
Database-level error reported by JDBC driver while executing statement 'exec SapgetNextEntity 'SalesOrder''. The JDBC driver returned the following error message: 'com.microsoft.sqlserver.jdbc.SQLServerException: The statement did not return a result set.'. For details, contact your database server vendor.
what is the problem? any idea to anyone...
regards
Rameshhi Dharamveer,
I am not getting below statement for your reply
Try to use Refrence Cursor it will return u reference of resultset.
I mention SP like this
exec SapgetNextEntity 'SalesOrder'
SapgetNextEntity -
> SP Name
SalesOrder----
> Parameter I am passing...
regards
Ramesh
Maybe you are looking for
-
Help re: Recovered Photo Albums
Hi there, I have an album in my iPhoto library called recovered Photos. When I open it up it shows 50 jpgs but doesn't show the picture of what it is. When I click open, it won't open and it shows that I have images in there, but when I click to open
-
KER1-Changes not update in KE30
Hi folks, i have sa problem with KER1. I have done a change on existing key figure scheme. I have added in a element formula 5010 a new element 9002. Now the formula is 9001+9002. I have saved, now i want to now why in KE30 i don't see any changes,
-
Oracle distributed document capture applet error [424]
this error appear on Oracle distributed document capture applet There was a problem using xmlhttprequest to log out of Capture error [424] any help / advice any help /or advice
-
External context mapping with recursive treenode
Hi, did anybody succeed with external context mapping of a recursive tree node? I get the following runtime error. Everything works fine if I use a "regular" value node. I´ve also experimented with manual and automatic component creation. Any help is
-
My CC Desktop is blank and I'm unable to download Ai from the website. On an updated MAC and have uninstalled and reinstalled CC Desktop. Please advise what is wrong with CC Desktop. Thanks!