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
Similar Messages
-
Jdbc adapter log sql statement to file
Hi,
I'm using a Proxy to Jdbc scenario.
In the Adapter Configuration the logSQLStatement is set to true.
Is it possible to log the sql statement shown in the Audit to a file?
Regards RalfHi
please try the below query in Update sql statement
update table_name set fieldname = systimestamp where .....
or
update table_name set fieldname = current_timestamp where .....
Regards
Ramg. -
Hi experts,
iam practicing scenario on company sandbox,i want to work using JDBC adapter,what are the prerequisite to do that senario.
I want to do JDBC->XI->File senario in my sandbox, let me know how to do this senario and also what are the software i have to load in this standalone system.
plz send me related doc's.
regards,
PhaniHI,
First check JDBC is in Adapters list or not , if not try to install..
Next check what is the Database you are trying to connect,
The respective driver parameters and the connection parameters are to be selected and the respective database is existed or to be created and create the table also .
Now use the scenario to get the data from the table and send to file as your requirement
see also the below links
Sender JDBC scenario - /people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
/people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
also
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 - File to JDBC
/people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response - XI: How-to on JDBC receiver response
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
JDBC - http://help.sap.com/saphelp_nw2004s/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
multiple tables with JDBC - http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
JDBC Response /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
Receiver JDBC scenario - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
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
Deploying and Removing JDBC Drivers
Regards
Chilla -
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 -
Hi Experts,
We have nearly 60 interfaces will read/write from/on DB and AS400 tables.
We are facing so many problems in production system. Everyday the messages are strucking at Adapter Engine. All messages are in "To be delivered" stage. If we can stop some cc's then it is processing slowly even the Database is using 60% usage.
We tried to create logical views(Instead of Physical views) on DB and AS400 even the performance has not increased.
We have used "prefetch=false" at "connection" on JDBC adapter but no use.
We can use "Disconnect after each message processed", but my client is not agree with this option.
We don't want to increase the connections to DB and AS400.
Is there any parameters needs to be updated at JDBC Adapter?
Help needed...
Regards,
Rams.Hi,
The below links may help u.
JDBC ADAPTER
http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
/people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 - File to JDBC
JDBC - http://help.sap.com/saphelp_nw2004s/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
multiple tables with JDBC - http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
JDBC Response /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
Regards
Pullarao -
Batch Processing of records using JDBC adapter
Dear all,
We are working on JDBC-JDBC scenario and the flow is as below. Source is ORACLE and Target is SQL SERVER.
We need to pick up 2000 records from Source . PI should split them ito 4 batches of 500 each and should insert in SQL DB.While inserting the records, if there are any errors, those records should sent back to Source again. It is Synchronous scenario.
1) But as far as I know Batch Processing mode, INSERT option cannot be used.(From SAP help)
2) Will the connection break if we are sending the error records back to sender.
Any thoughts would be helpful.
regards,
babuHi,
The below links may help U.
JDBC ADAPTER
http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
/people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 - File to JDBC
JDBC - http://help.sap.com/saphelp_nw2004s/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
multiple tables with JDBC - http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
JDBC Response /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
Regards
Pullarao -
Hi All
I am trying to configure File to JDBC Adapter to insert data in the database .I am having problem with message mapping.I get the error with the statement field in mapping .Please can anyone let me know what mapping changes need to be done
My Mapping is as follow
SOURCE TARGET
MT_INFO_DATA----
>MT_JDBC_REC
Header----
> Statement
TABLENAME
Update_insert----
>Action
T_EMPLOYEE(TABLE NAME)----
> TABLE
ACCESS
EMP_NO----
>EMP_NO
COMP_ID----
>COMP_ID
BRANCH----
>BRANCH
Error: TransformException error in xml processor class: Error processing request in sax parser: Error when executing statement for table/stored proc. 'T_EMPLOYEE' (structure 'STATEMENT'): java.sql.SQLException: FATAL ERROR document format: structure 'STATEMENT', no key element found
Please can anyone let me know what is to be mapped with the field STATEMENT.
Thanks
AmitHi Bhavesh
I did as suggested but still i am getting the following error
Error: TransformException error in xml processor class: Error processing request in sax parser: Error when executing statement for table/stored proc. 'T_EMPLOYEE' (structure 'STATEMENT'): java.sql.SQLException: ORA-01861: literal does not match format string
- 2007-05-24 06:21:17 IST: Processing started
- 2007-05-24 06:07:48 IST: Error: TransformException error in xml processor class: Error processing request in sax parser: Error when executing statement for table/stored proc. 'T_EMPLOYEE' (structure 'STATEMENT'): java.sql.SQLException: FATAL ERROR document format: structure 'STATEMENT', no key element found
- 2007-05-24 06:07:48 IST: Processing started
- 2007-05-24 06:05:48 IST: Error: TransformException error in xml processor class: Error processing request in sax parser: Error when executing statement for table/stored proc. 'T_EMPLOYEE' (structure 'STATEMENT'): java.sql.SQLException: FATAL ERROR document format: structure 'STATEMENT', no key element found -
Synchronus file to jdbc Adapter configuration.
Hi ,
I want to configure for Synchronus File to Jdbc Adapter.
Can anyone tell me how to do it.
hemantHi,
In this case you would definitely need one file sender and one jdbc receiver adapter.
Create data taype and message type for file sender ,then create message interface for this message type.
Then create datatype for receiver i.e. jdbc.
For jdbc receiver there is one standard format as below:
<root>
<StatementName1>
<dbTableName action=UPDATE | UPDATE_INSERT>
<table>realDbTableName</table>
<access>
<col1>val1</col1>
<col2>val2new</col2>
</access>
<key1>
<col2>val2old</col2>
<col4>val4</col4>
</key1>
</dbTableName>
</StatementName1>
Then create message type and message interface for this message type.This interface will be inbound and synchronous.
Map your file message to jdbc receiver message.
Then map interfaces.
In ID create configuration scenario,assign file sending and jdbc receiver business system to this scenario.
Then create file sender and jdbc receiver communication channel.Create receiver determination,sender agreement and receiver agreement.
But if you want file synchronous scenario then,you need to use BPM for this.
Thanks. -
JDBC Adapter can be used for sender / receiver for MS Access ?
Hi Experts
I want to communicate with MS Access by using JDBC sender and receiver
adapter ? How to set up ?
Links/screen shots/etc..........
Adv thanx
regards
rakeshHi Rakesh ,
>>>> Why the driver is : jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=//xiserver/xitemp/db/TestDB.mdb ?
if your test data base file is TestDB.mdb you need to give the absolute path of the file to get access to JDBC adapter set so you can replace the file path with the corresponding path on your test system .
Please place the data base file in a directory where the XI system has share access.
Regards,
Nanda -
Accessing as/400 iSeries system files
I'm trying to use JDeveloper ADF on iSeries system files (defined using DDS). When I access SQL tables, I have no problem, I can access and update these tables without any problem. But, when trying to view or update system files, I'm getting the following error:
(oracle.jbo.SQLStmtException) JBO-27122: SQL error during statement preparation. Statement: SELECT AFADCD, AFAQCD, AFBTNB, AFBUNB, AFBWNB, AFBXNB, AFA5NB, AFAMCD, AFANCD, AFBNNB, AFAHCD, AFCJNB, AFCLNB, AFABDT, AFACDT, AFAHST, AFA6NB, AFAIST, AFBKTX, AFBMTX, AFBNTX, AFBFST, AFBHTX, AFBITX, AFBQTX, AFAJTX, AFAKTX, AFBLTX, AFAHTX, AFAITX, AFAJST, AFAKST, AFAMST, AFANST, AFAOST, AFAPST, AFALTX, AFE0ST FROM
----- Level 1: Detail 0 -----
(java.sql.SQLSyntaxErrorException) [SQL0104] Token <END-OF-STATEMENT> was not valid. Valid tokens: ( NEW FINAL TABLE UNNEST LATERAL.
I created the entities by importing the tables via the iSeries database connection into JDeveloper by using the "Create Business Components from Tables" wizard. During the import the entitiy objects will not create but the views do create.
Does anyone have any suggestions?
Thanks
Edited by: 841986 on Apr 4, 2011 12:04 AMviolinssoundcool wrote:
I'm new to Java, and I need to write a program that accesses an AS/400 database and displays the program in a web browser. So, I'm guessing that I need to use an applet.No, you don't need to use an applet. A plain old Java application would work just as well. But that's okay because it appears that's what you wrote anyway.
From what I've read there seems to be two options (JDBC and record level access). Which of these would be better to use, and are there any useful sites that have instructions aimed at beginners?If you use JDBC then you can use the same code even if the database is moved to a different computer (except for using a different JDBC driver). Sometimes record-level access code is easier to write if you are coming from the RPG world, but it's easy to write a whole bunch of RLA code that duplicates what you could do with a single SQL statement.
If you're serious about this question then here's the book to buy:
http://www.amazon.com/JDBC-Record-Level-Access-Toolbox/dp/0976269201
Just make sure you have your seat belt on before looking at the price. -
File to JDBC adapter , beginner in doubt
Hi,
i created a scenario JDBC as receiver and File as sender. Data should be inserted in mysql Databank.
Msg Interface is defined as
regards
HüsniyeHi,
SQL table insertion example:
Below the sample .xsd of datatype that runs suceesfully via the JDBC adapter.
You must import this .xsd and study.
In this datatype Vendor01 is tablename
action is an attribute
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://borcelik.com/tbit40/ms_sql" targetNamespace="http://borcelik.com/tbit40/ms_sql">
<xsd:complexType name="VendorMaster_insert_DT">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
fa3c1bd0ad8111d996a0001185be9a9f
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="Insert1">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
6f642270a5b411d999c1f82f0a0407da
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Vendor01">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
6f642271a5b411d98e60f82f0a0407da
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="access" maxOccurs="unbounded">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
6f642273a5b411d9b62df82f0a0407da
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="VendorNumber" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
6f642274a5b411d9ba32f82f0a0407da
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="LastName" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
6f642275a5b411d9c92cf82f0a0407da
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="SearchTerm" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
6f642276a5b411d9ca6bf82f0a0407da
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="Currency" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
6f642277a5b411d9889cf82f0a0407da
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="key1">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
e20d53b0a5b811d98519f82f0a0407da
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="VendorNumber" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
716d5130a5ba11d9b907f82f0a0407da
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="action" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
094ca410aa7a11d9ae7ccc950a0407da
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema> -
Is there a way to access my iTunes Library, which is stored on a (PC) External Hard Drive, on a MacBook Air (through an Apricorn Universal Hard Drive Adapter), without transferring the music files off of the external hard drive?
In other words, because the MacBook Air only has 120 gbs of hard drive space & my old hard drive, from a Lenovo, has 500 gbs of hard drive space (and I have over 120 gbs of music), I’m looking to manage my iTunes music from the external hard drive permanently. Upon attempting to access the iTunes library held on the external hard drive the following message comes up: “The iTunes Library.itl file is locked, on a locked disk, or you do not have write permission for this file”. Is there a way to get around this?
Any advice would be greatly appreciated, thanks so much!You will have to engage a split library which means you will have to start answering questions on this forum because you will need to learn a lot about how iTunes works in order not that have a big mess at the end of it all. It also won't be easy when the time comes to relocate it all to different drives.
You can go to advanced preferences and turn off organize media and copy to items to media folder when adding items to library. Next read about how to selectively consolidate items to the external drive.
Sept. 2010, Consolidate selected content - https://discussions.apple.com/thread/2589812 and April 2014, https://discussions.apple.com/message/25414357
"...selected the new tracks directly in iTunes, Control-clicked on the selection, and saw that now you can consolidate selected items." - http://hints.macworld.com/article.php?story=20090919000326840
Remember that when you start iTunes without the external drive turned on iTunes will present you with a bunch of broken links. If you have automatic downloads enabled with iCloud you may have to turn that off to prevent iTunes from repopulating your drive trying to deal with those "missing" tracks.
If you add tracks in bunches to iTunes and want them to go to different media folders you will need to either add them by holding down the option key while dragging if the desired media folder is not the one set in preferences, or by changing the media folder in preferences. Changing media folder preferences only applies to new files added, not old ones.
Okay, I am going to stop typing because you might just reply to me, "Oh, okay, forget it," and I don't need the exercise.
What are the iTunes library files? - http://support.apple.com/kb/HT1660
More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
Where are my iTunes files located? - http://support.apple.com/kb/ht1391 -
Access an Oracle DB using JDBC adapter
Hi, I'm trying to make an simple test for checking if the connection between XI and Oracle DB is working fine and following the weblog nr. 2018 ( Save Time with generalized JDBC datatypes ) i've made my structures in order to achived that. I've declared the field action as SELECT than the table name ... and in the IB set the needed configurations. So when i exec my interface i've got the black/white flag bur if i look at the adapter engine i see that the JDBC adapter is achieved but i got 2 errors " <b>No 'action' attribute found in XML document('action' attribute missing or wrong XML structure)</b> and <b>Exception caught by adapter framework: error processing request in sax parser: No 'action' attribute found in XML document('action' attribute missing or wrong XML structure)</b>. Can anybody provide me some help ??? Thanks in advance.
JMMatosHi,
This is how my DT looks like:
Structure Category Type
Data_JDBCReceiver Complex Type
Statement
Table_name
action Attribute
table
access Data_FileSender
cod
key Data_FileSender
cod
This is my DT and in MM i fill field <b>action</b> with constant value(SELECT/INSERT), field <b>table</b> with the name of the corresponding DB table, fields <b>access/key</b> with constant value(empty). At this moment, I got the following error <b>Exception caught by adapter framework: Error processing request in sax parser: Error when executing statement for table/stored proc. 'v01_sap_xi' (structure 'Statement'): java.sql.SQLException: FATAL ERROR: Column 'cod' does not exist in table 'v01_sap_xi'</b>; according with the people responsible for the DB this column named <b>cod</b> does really exist !! What can I do ?!?!? Some help will be ... Thanks !!! -
System trace for File, JDBC adapter
In the JDBC Adapter Help (help.com) I see:
The adapter writes the output (STDOUT and STDERR) for the operating system command in the system trace.
Which trace is meant here?
I have the same question regarding File Adapter.
Thanks, JozsefHi,
have a look at my weblog to see how you can check
the traces:
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
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> -
File adapter/JDBC adapter processing
Hi,
I have scenarion as below
> XI gets an IDOC message from R/3
> Based on that message XI uses a fileadapter to call a UNIX shell script in the other system (system B - non SAP)for pre-processing.
> The script call returns no errors.. So, XI/BPM now uses the JDBC adapter to convert the IDOC into a JDBC insert.
> On successful inserts, the process again uses a file adapter to perform a post-processing script call
Is the above scnarion possible using JDBC/File adapters in XI/BPM ?
Thanks
madHi Maddux,
Is it a pre-codintion to execute the unix shell script before inserting the data using JDBC adapter?
FYI, If there is no pre-condition and you want to send the data to two different systems, you can configure multiple receivers(both file and JDBC) in your Receiver Determination object without BPM.
-Sam Raju
Maybe you are looking for
-
I want to File Exchange between an iMac with 10.8.4 and a SE30 with 7.1. All I want to do is install some software, such as Word 5.1 and a Chess game and some Fonts. I have an external USB Floppy Drive but my iMac can only write to it IF I format as
-
I'm a new Mac Pro user. Now running OS X Lion. Always used Windows platforms before with Seagate hard drives and their included backup software where I was able to setup different backup schedules to back up various drive and file combos individual
-
Can't Move Imported Skype Recording in GarageBand
Hi all, I run GB 10.0.2 on my MBP (OSX 10.9.2). I record a conversation in Skype using Call Recorder 2.5.8 Whenever I import (drop & drag) a recorded track to GB, I can't move it and it shows a little lock Inside the track. I can cut parts out of the
-
Hi, Not a big problem but annoying non the less. When I click the system prefs in the apple menu nothing happens. If I open prefs from the application menu or dock it opens no problem. Everything else in the apple menu works fine. I tried creating a
-
Could not access to Windows 2003 DC. Servers resources.
Hi, I got only 1 PowerBoob G4(Max OS X Tiger 10.4.5)in WindowsSBS 2K3 domain. At PowerBook, I can see all servers, computers on the domain and other workgroup. I also can signon and access to domain computer member (by domain member account) and work