How does JDBC adapter reads or writes the data to DB

Hi All,
         How does JDBC adapter read the data from a db, is it that it collects all the data in one go and sends to XI, or is it record by record.  And what if it writes to a db?
Xier

Hi,
It collects all record at one time and while writing to DB you can push all data at one go...
We are using receiver JDBC adapter to push data to DB and its one go..
Nilesh

Similar Messages

  • How to read and write the data like this(is JSON?)?

    i have some data like below(is json?),how to write them into
    the database?
    i user coldfusion 7.
    {"title":"ColdFusion?","url":"
    http://www.adobe.com/cfusion/"},
    {"title":"flex blogs","url":"
    http://www.flexblogs.com/"},
    {"title":"studio","url":"
    http://www.sans.com.com/"}
    Thank you very much!

    You need to parse it and then insert the records into your
    database.
    Take a look at
    CFJSON it is a JSON
    serialiser and de-serialiser.
    Once you have converted it to native CF datatypes you can
    loop through it and insert it into your database.

  • How does JDBC sender adapter reads data from DB

    Hi ALL,
               I have scenario where the JDBC adapter has to read the data once every month. now how would JDBC adapter know that it has to select data which has been updated after last months select only and not the old data?
    XIer

    Hey
    in the sender JDBC adapter you give the select statement as well as update statement.
    what you do is that once you select the data from data base you use an update query to set a flag to false,so that you dont select that data again next time.
    have a look at this blog
    /people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
    in this he has used both select and update query on the sender side
    Thanx
    Aamir suhail
    Message was edited by:
            Aamir Suhail

  • How many records does JDBC adapter can obtain in one polling?

    Hello everybody,
    I need to do an interface between legacy system and SAP ECC, the legacy systems have a DB so i use the jdbc adapter (sender) and receive the information to SAP ECC with proxy, so i need to activate the polling option from my jdbc adapter working as a sender, i read a table with lot of records, and i need to know how many records does jdbc adapter support when the polling is executed, because is necessary read all records from the table and change the status of the processed field.
    Is possible to get all the records from that table in one polling interval (50,000 records aprox)?, or i need to do the polling by blocks of records until finish all records from the table?, the second option, i dont have idea how can i do it.
    Regards,
    Vicman

    Hi again!,
    i still working on that, but i have a question, is possible to handle Store Procedure in jdbc adapter?? is supported?, like PL SQL, because i was working in the next query but i don't know if it works and where do i need to locate the query in the Query SQL Statement or in Update SQL Statement field or both? but how?.
    DECLARE c_cursor CURSOR FOR
    SELECT * FROM tablename
    WHERE processed=0
    OPEN c_cursor
       FETCH NEXT FROM c_cursor
    WHILE @@FETCH_STATUS = 0
    BEGIN
       update tablename set processed=1
       FETCH NEXT FROM c_cursor
    END
    CLOSE c_cursor
    DEALLOCATE c_cursor
    Regards,

  • How does jdbc fetch a set of records in oracle

    Hi,
    Oracle does not support server side cursors,if so how does jdbc fetch a set of records(set by setFetchSize(), which is 10 by default) each time I say rs.next().Does this mean Query is re-executed to fetch the next set of records? Can some body throw some light on this?
    thanx in advance
    Gnayan

    You are asking about implementation details of some JDBC driver, but you don't say which one. This makes it very difficult to answer your question. You might want to try asking the question of the people who wrote the driver.

  • How does RFC adapter with EO/EOIO work? Kindly help!

    Hi Experts,
            How does a sender or receiver RFC adapter works when QOS is EO or EOIO (Async)? In other words, for EOIO, are the messages are queued? How does this queueing work? Does it use FIFO logic? where do we specify the max limit of messages that can be queued?
    Also what is the significance of 'Initial connection' and 'maximum connections' in communication channel? I have given the default value 1 for both. What should be the ideal value and why?
    In my Async RFC - XI scenario sometimes XI is able to receive the messages but sometimes it doesnot even though the sender system is UP and running.
    I cannot see any messages in SXMB_MONI even though the sender has sent the messade.
    Why RFC adapter is behaving like this? What could be the issue?
    Kindly help!

    EOIO: How does this queueing work? Does it use FIFO logic?
    >> yes it uses FIFO logic in EOIO.
    Also what is the significance of 'Initial connection' and 'maximum connections' in communication channel? I have given the default value 1 for both. What should be the ideal value and why?
    >>>noof rfc connections we are using for connecting to XI to RFC minmum is 1 maximum is 50 bydefault. you increase this value by changing the default setting.
    How does RFC adapter with EO/EOIO work? Kindly help!
    Posted: Mar 21, 2007 4:15 AM 
    Hi Experts,
    How does a sender or receiver RFC adapter works when QOS is EO or EOIO (Async)? In other words, for EOIO, are the messages are queued? How does this queueing work? Does it use FIFO logic? where do we specify the max limit of messages that can be queued?
    Also what is the significance of 'Initial connection' and 'maximum connections' in communication channel? I have given the default value 1 for both. What should be the ideal value and why?
    Why RFC adapter is behaving like this? What could be the issue?
    >>check ur sender RFC adapter. chekc whether data is sent from RFC . see logs in R/3.

  • How does a servlet read incoming XML??

    how does a servlet read incoming XML??
    thanks in advance
    annie
    Message was edited by:
    annie613

    Hi, anyone have an example code of sending a file to servlet and receiving the file in servlet?
    I have a JUNIT TEST wit the following code:
    ==========================================
                   HttpURLConnection connection = (HttpURLConnection) url.openConnection();
                   connection.setDoOutput(true);
                   connection.setDoInput(true);
                   connection.setAllowUserInteraction(false);
                   connection.setRequestMethod("POST");
                   out = new DataOutputStream(connection.getOutputStream());
                   BufferedReader reader = new BufferedReader(new FileReader(
                             "/Performance.zip"));
                   String line = null;
                   while ((line = reader.readLine()) != null) {
                        out.write((line + "\n").getBytes());
                   out.close();
                   // Read Response
                   InputStream in = connection.getInputStream();
                   int x;
                   while ((x = in.read()) != -1) {
                        System.out.write(x);
                   in.close();
                   BufferedReader r = new BufferedReader(new InputStreamReader(in));
                   StringBuffer buf = new StringBuffer();
                   while ((line = r.readLine()) != null) {
                        buf.append(line);
    =================================================
    and my SERVLET code is like following:
                   ServletInputStream in = request.getInputStream();
                   parameters = request.getParameterMap();
                   path += "file_" + request.getSession().getId() + ".zip";
                   // write the input stream to file
                   OutputStream fileOut = new FileOutputStream(path);
                   CRC32 crc = new CRC32();
                   long size = 0;
                   int read;
                   byte[] buf = new byte[8 * 1024];
                   while ((read = in.read(buf)) != -1) {
                        fileOut.write(buf, 0, read);
                        size += read;
                        crc.update(buf);
    Still when reading the InputStream, nothing is received in the servlet.
    Any idea how to fix it?
    thanks,
    Jari

  • How to create a procedure in oracle to write the data into file

    Hi All,
    I am just wondered on how to create a procedure which will do following tasks:
    1. Concat the field names
    2. Union all the particular fields
    3. Convert the date field into IST
    4. Prepare the statement
    5. write the data into a file
    Basically what I am trying to achieve is to convert one mysql proc to oracle. MySQL Proc is as follows:
    DELIMITER $$
    USE `jioworld`$$
    DROP PROCEDURE IF EXISTS `usersReport`$$
    CREATE DEFINER=`root`@`%` PROCEDURE `usersReport`(IN pathFile VARCHAR(255),IN startDate TIMESTAMP,IN endDate TIMESTAMP )
    BEGIN
    SET @a= CONCAT("(SELECT 'User ID','Account ID','Gender','Birthdate','Account Registered On') UNION ALL (SELECT IFNULL(a.riluid,''),IFNULL(a.rilaccountid,''),IFNULL(a.gender,''),IFNULL(a.birthdate,''),IFNULL(CONVERT_TZ(a.creationDate,'+0:00','+5:30'),'') INTO OUTFILE '",pathFile,"' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\n' FROM account_ a where a.creationDate>='",startDate,"' and a.creationdate <='",endDate,"')");
    PREPARE stmt FROM @a;
    EXECUTE stmt;
    DEALLOCATE PREPARE stmt ;
    END$$
    DELIMITER ;
    Regards,
    Vishal G

    1. Concat the field names
    Double Pipe (||) is the concatenation operator in Oracle. There is also a function CONCAT for this purpose
    2. Union all the particular fields
    Not sure what do you mean by UNION ALL particular fields? UNION ALL is a set operation applied on two different result sets that have the same projection.
    3. Convert the date field into IST
    SQL> select systimestamp "Default Time"
      2       , systimestamp at time zone 'Asia/Calcutta' "IST Time"
      3    from dual;
    Default Time                                       IST Time
    05-05-15 03:14:52.346099 AM -04:00                 05-05-15 12:44:52.346099 PM ASIA/CALCUTTA
    4. Prepare the statement
    What do you mean by prepare the statement?
    5. write the data into a file
    You can use the API UTL_FILE to write to a file.

  • How does one uninstall Reader 9.4.5

    How does one uninstall Reader 9.4.5

    You may want to try the following:
    Run this fix from Microsoft: http://support.microsoft.com/mats/Program_Install_and_Uninstall
    Uninstall Reader using Add/Remove Programs
    If you want to reinstall Reader, download it from http://get.adobe.com/reader/direct/

  • How does one remove duplicate versions of the same songs on an iPhone5?

    How does one remove duplicate versions of the same songs on an iPhone5?

    Yes, I use Live Bookmarks.
    This is the RSS http://www.ctech.com/forum/rss.php
    Each of those entries at the RSS site show up in my Firefox RSS folder twice. The content of each entry when I go to it is exactly the same. It's not that one is the reply to the original post or anything like that. For instance, see the attached image of the list of items that show up. The highlighted yellow on top is an example. Both of those links display exactly the same original post and replies. Why is that? Is is possible that somehow I'm subscribed twice? Does that make sense? How can I delete the duplicates, or for that matter, clear all those items that show on the list? I just want to see the new ones. Thanks.

  • How to Read and Write .XML datas   (HELP Plz...)

    hai everybody
    how to read and write xml datas... plz give clean and simple example..
    bcoz me want to produce such type of module...
    if any one help me .. thats the only way me laid in software ladder
    plz....
    thank u in advance

    thank u for giving idiot..
    but before posting i search in google also..
    but i cant get what me expect..
    thus i posted...
    then who is ................?
    sorry javacoder01
    // plz help me
    Message was edited by:
    drvijayy2k2

  • How Does EJB 2.0 Specification Change the BC4J?

    Hi,
    I had read the while paper of BC4J thoroughly. The following statement interested me:
    "As Oracle9iAS, WebLogic, and other J2EE application server vendors begin to rollout complete support for the new EJB 2.0 specification in the first half of 2002, a new release of the BC4J framework will be released which includes support for the new local entity beans. This work entails enhancing our lightweight, local entity classes to support the necessary interface to be lightweight EJB 2.0 Local Entity Beans. ...."
    I have searched all the documents about BC4J, but I couldn't find anything more about "How Does EJB 2.0 Specification Change the BC4J?"
    I think the "Local EJB Entity Beans" is similar with BC4J DAO. So is there someone who can tell me how does EJB 2.0 Specification change the BC4J?
    Any help would be appreciated!
    James

    We support using local CMP entity beans as your persistence layer for your entity objects, but as it adds an extra layer, it's turned out (in all honesty) to not be that popular a feature.
    The performance offered by the simpler BC4J entity object (plain old java class) is fine, and the notion of using simple java beans for your model is widely recognized as a fine option for J2EE applications.
    For example, check out Rod Johnson's book called "Expert one-to-one: J2EE Design and Development" which covers this subject excellently.

  • How does one recover lost photographs on the computer?

    How does one recover lost photographs on the computer?

    My photographs were successfully uploaded to iPhoto when I was forced to restart my computer. When it turned back on again, the photographs were gone from my camera and my computer. I do not know how to restore them from my backup and cannot find the photographs anywhere else. Thank you for your help!

  • In the new Pages, how does one send an image to the background (and make it selectable)?

    How does one send an image to the background in the new Pages and how does one make it selectable?

    Also why don't TEXT to Speech short cuts established in system preferences work in the new Pages?
    I am confused (and not completely happy)

  • How does c:url tag know when the session is cookieless and thus to redirect

    i have been looking at the source code for c:url tag and can't figure out how they are doing that. I need a way to do that in a jsp, to check if the cookies are allowed or not.

    how does c:url tag know when the session is cookieless and thus to redirecthuh?
    What do cookies have to do with redirecting?
    Cookies get encoded into a URL using the method in HttpServletResponse: response.encodeURL() or encodeRedirectURL().
    That method determines whether or not it prints out the session id as part of the url, or it gets uses cookies.
    You can try: request.isRequestedSessionIdFromCookie().
    If that is true, you know that session cookies are supported (or at least that one was)

Maybe you are looking for

  • Need help / suggestion in creating realistic thunder particle effect

    I has a lot of problem in creating realistic thunder particle effect: 1) The "particle" I use is a tiny white square, when it duplicating it create weird thunder...simply say ithe lighting effect look very fake. 2) The motiton of thunder is too "shar

  • Ack file date and time format is same as in source xml format

    Hi...All, 1) my scenario is file-rfc-file using BPM, we are getting file in xml format from source along with timestamp and this data will be going to R/3 and the acknowledgement (success or failure) file will be sending back to source system. in thi

  • Why is there no EJB modules generated in chapter 10 of Medrec Tutorial?

    Hi, I am going through the sample Medical Records Development Tutorial. In Chapter 10,after going through the Procedure 3..I couldn't see any EJB Module being deployed at http://localhost:7101/console/Deployments/EJB Modules .Any clue what is going w

  • Error in Dunning Data

    Hi all, I had small issue with my project. The user is trying to change the dunning procedure in Customer Master Data. The system is throwing an error saying that "System error in module KNB5_DEFAULT_ANZIEGE, table XKNB5" Do you know what the problem

  • What new can we expect in Adobe Fireworks CS5?

    Recently i came across this post somewhere http://keithics.com/blog/article/adobe-fireworks-cs5-preview/224/ so i want to ask the fireworks development team if this is really going to happen someday..Should we expect next version of the fireworks to