Updateing oracle table Emp usering JDBC Adapter

Hi,
IS any one can help me what is the Format of JDBC Driver and Connection type.When we update a oracle table useing JDBC Adpater.
       Thanks in advance
Regd's
Raj

Hi Raj,
To access any Database from XI, you will have to install the corresponding Driver on your XI server.
To install oracle driver, just check this link,
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
The details that have to be entered while adapter configuration if you are using the OJDBC14.jar
The parameters should be mentioned as follows.
Connection : <b>jdbc:oracle:thin:@<IP adress>:<listener port>:<instance name (database name)></b>
Driver : <b>oracle.jdbc.driver.OracleDriver</b>
Also go through these links for more information regarding the same:
http://help.sap.com/saphelp_nw2004s/helpdata/en/80/4f34c587f05048adee640f4c346417/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/frameset.htm
Regards,
Abhy

Similar Messages

  • Sending Idoc to oracle table Emp usering JDBC Adapter

    Hi Guys,
    Can you help me in these when we are pass a message through idoc to Oracle through jdbc adacpter reaciver
    what sort of  syntax Parameter need to write in
    SQLSyntaxParameters Box in ID.
    Regd's
    Raj

    Hi Raj,
    You need to insert data from the IDoc to the Oracle Database. In this case the XML that is being sent to the Receiver JDBC Adapter should be correct.
    The format for this can be obtained from the following link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/22/b4d13b633f7748b4d34f3191529946/frameset.htm
    Once this is correctly done nothing needs to be mentioned in the SQLSyntaxParameters Box in ID. U can leave the default values as it is.
    Regards
    Neetu

  • Im trying to update db table in  user exit, with the internal table

    Im trying to update db table in user exit, with the internal table
    my scenario:
    loop at itekpo.
    updating itekpo -
    > at the end of user exit the db table ekpo have to be updated
    endloop.
    Im updating internal table, using 
    MODIFY itekpo TRANSPORTING INCO1 INCO2  WHERE ebeln = itekpo-ebeln
    where itekpo is internal table, but it is not updating the db table 'ekpo'.
    i also tried updating ekpo directly !
    Thanks in advance

    Hi,
    you can search in the forum itself,
    Try this link for instance
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=tocreateaBADI&adv=false&sortby=cm_rnd_rankvalue
    You can find a code for finding BADI as a report with the following Transaction
    finding badis
    How to find BADIs
    Reward if helpful
    Regards
    Byju

  • Read data from 3 tables in sender JDBC Adapter

    Hi All,
    I doing a scenario JDBC to IDOC I need to read 3 tables of ORACLE.  how JDBC sender adapter will retrieve data from more than 3 ORACLE tables and also i need to update control status fields of these tables.
    Please provide me the syntax for the select and update.
    Thanks in Advance
    Regards,
    Nisha

    Hi,
    Select Syntax:-  select Table1.Field1, Table1.Field2, Table2.Field3, Tabl2.Field4
    From Table1 , Table2 where Table1.Field1 = Table2.Field3.
    Similary use this Syntax for three Tables.
    Update Syntax: -
    In SP Check if Data Seletion is suceesful then Use the seperate Update statement for each table.
    like Update Table1 set Field5 = 'Value'
    where Field1  = 'Value'.
    Also use the refernce link provided by Mr.Vinithra Iyangar.
    Thanks
    Regards
    Jagesh

  • How to update row by row  in   Jdbc Adapter sender  ?

    Hi friends ,
                      No i am reading data from a table using select query and resulting data i am keeping in the FTP folder as XML File.
                      I want to
                     1. to  know how many rows i read ? 
                     2. Update the  read completed time in each row of the sender side table . 
               (   I am  using <b>select * from a table where tag='n'  </b> . I am giving this in <b>Query SQL Statement</b> of JDBC Sender adapter processing parameter .
    I am writing update query as update table set tag='y' where tag='n' .
                         Will it perform row by row ?
                     3. Insert in to another R3 System  table  the rows which i read  as a log  .
                          Can  you please give  procedure to do that .
                        Expecting your reply asap .
                        Thank you
    Best Regards.,
    V.Rangarajan

    Hi raj ,
                 Thanks for ur reply .   I am new to xi . Just i am doing a scenario . I can able to read  the ms-sql server table data using jdbc Sender  adapter .
                   Can i use RFC Adapter to insert the values to R3 table ?   
                    If  i have mapped  to rfc fields will it store into the table once we read  the data from ms_sql server table using select query of JDBC Sender  Adapter ?
    Best Regards
    V.Rangarajan

  • Updating Oracle table with info from Sybase query

    I hope this is the correct forum for this question.
    I am fairly new to Java and JDBC. I am trying to figure out what the best method for updating information in Oracle tables with data from a Sybase table. I would prefer to use Oracle’s transparent gateway but this is not an option my company will pay for so I am creating a java stored procedure and using JDBC to connect to the Sybase database.
    The process I think I need to go thru is
    1.     Query an Oracle table to get the records that need to be updated and the “key” information to query the Sybase table with.
    2.     Use that result to query the Sybase database to get the fields that need to be updated in the Oracle table for those records.
    3.     Update the records on the Oracle table with the data from the Sybase query.
    I know I can just do this procedurally, row-by-row, but I was wondering if anyone knows of a way to accomplish this with SQL and no loops. Is there a way to make a result set available as a “SQL table” for another JDBC query?
    Basically what I would like to do is:
    OraQuery = “ select sybinfo from sometable where updated_date = null”;
    Statement orastmt1 = OraConn.createStatement();
    ResultSet Orars1 = orastmt1.executeQuery (OraQuery);
    SybQuery = “select update_date, sybinfo from sybtable where sybinfo = Orars1.sybinfo”;
    Statement sybstmt = SybConn.createStatement();
    ResultSet Sybrs = sybstmt1.executeQuery (SybQuery);
    OraUpdate = “update (select update_date from sometable, Sybrs where sometable.sybinfo = Sybrs.sybinfo) set update_date = Sybrs.update_date”;
    Statement orastmt2 = OraConn.createStatement();
    ResultSet Orars2 = orastmt2.executeQuery (OraUpdate);
    This may not be possible but if anyone has done something similar and wouldn’t mind sharing I would appreciate it. If there is a “better” way of accomplishing this I am open to suggestions.
    Thanks

    you can try using cachedRowSet() for the Oracle side query.
    The rows in this could be populated using the sybase side query's resultset and then all of this could updated into Oracle in one shot.

  • Two queries on same table in sender JDBC adapter

    Hi all..
    My requirement is as follows....
    query a table and fetch rows where column Error="true"
    If there are no records in the table satisfying the above condition ,i want to send a mail stating  that there are not records with error flag set to "true"
    But the problem is i wont get a message to PI if there are no records.
    If i write a query to get the count of records where column Error="true",Obviously the count would be zero. Using this message from database i can send a mail.
    Now please let me know if i can write both the queries in query SQL statement? if so howshould be the source structure?
    Thanks
    Ram..

    Hello ram,
                     As far as i know it is not possible to use two different SQL statements in the sender adapter, though you can try with the join statement.
    For further information refer this discussion
    [Multiple Select Possible?|How to call multiple SQL using the JDBC adapter;
    Regards,
    Prasanna

  • J2ME app.: To update Oracle table by sending data through mobile phone

    Hello all,
    I want to develop a mobile app to update the table of oracle database by sending the data through the SMS (Short Message Service). Means I'll send a sms through my cellphone containing some data and this data will be used to update the remote oracle database. How to do that?. Plz help.
    Thanx in advance.

    hi
    My problem is here I need to update the loginfo table with the file name, count of records, table name and datetime.
    For instance my dat file is XX.dat
    my database table name is Mytable
    Total record count is 10,00,000 records
    datetime as on this date
    the data in the XX.dat file I am using the controlfile (SQL*loader and dumping into the Mytable.Now my 10,00,000 records are dumped into the Mytable.
    This process information I want to store it in the loginfo table. For this I need the trigger
    CREATE OR REPLACE TRIGGER MYTRIGG
    AFTER INSERT ON MYTABLE
    Declare
    V_Count Number;
    Begin
    Select count(*) into V_Count from Mytable;
    Insert into Loginfo(TotalRecords,Date)
    Values(V_Count,Sysdate);
    end;
    This is the trigger I have used.But in my loginfo table instead of one value as 10,00,000 it is getting each record as row by row
    1
    4
    100
    1000
    10,00,000
    So I need only one value to be stored and at the same time my tablename and filename must also be stored.
    Kindly help me
    suroop

  • Oracle Function call from JDBC Adapter

    Hi,
      Is it possible to call Custom Oracle Function from JDBC Adapter? 
    I know we can call stored procedure but I need to call Oracle function. Please explain how?
    Regards,
    Shweta.

    You'll need to provide a column alias for the function call:
    select func(val) as alias from dual

  • Running Cursor script to update Oracle Table.

    I have the following script. I have a cursor in which i perform an update operation on a oracle table. But The table "ICS_TRADE_DETAILS " is not getting updated. Am i doing something wrong? I get the correct values populated in the "lastChanged" and "tradeID" fields.
    Help Appreciated !!!!
    DECLARE
    lastChanged VARCHAR2(32);
    tradeID VARCHAR2(32);
    CURSOR c1 IS
    SELECT TRADEID,LASTCHANGED
    from CVSELECT;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO tradeID,lastChanged
    DBMS_OUTPUT.PUT_LINE('lastChanged: '||lastChanged);
    DBMS_OUTPUT.PUT_LINE('tradeID: '||tradeID);
    update ICS_TRADE_DETAILS
    SET LASTCHANGED=lastChanged
    WHERE CTRADEID=tradeID;
    COMMIT;
    EXIT WHEN c1%NOTFOUND;
    END LOOP;
    CLOSE c1;
    END;

    ji li wrote:
    Is this related to someone else pulling data from the table(s) you are updating (and committing frequently)?
    If so, wouldn't the undo segments hold enough of the changed data for the dataset to be consistent?
    The reason I ask is because I've always been of the impression it was better to commit frequently as opposed to doing autonomous (all or none) processing.When you open a cursor, Oracle needs to fetch data as of that particular SCN. So if someone is potentially updating the table while you are reading data, you want to make sure that Oracle will have the UNDO data in hand to be able to get back to the old state. If you commit in the loop, however, Oracle now believes that your session is no longer interested in older UNDO data so it may well purge that data too quickly, causing ORA-01555 errors. Fetching across a commit is almost certainly a bad idea.
    Commit frequency should be driven exclusively by logical units of work. If you have a loop, the logical unit of work is almost always the whole set of rows that you want to process. If processing dies in the middle, you're generally much better off having everything rolled back than in having half the rows processed and not knowing which half were processed and which half were not. If you are processing extremely large numbers of rows (i.e. data warehouse loads), it is sometimes worthwhile to code all the extra logic required to make the process restartable and to commit periodically in order to avoid situations where something dies 2 hours into a run and you have to spend another 2 hours rolling back those changes before you can restart. But that's the exception to the rule and generally only appropriate after spending quite a bit of effort performance tuning which would remove 99% of loops in the first place.
    Justin

  • Update two table in receiver jdbc

    Dear all;
    i have one issue sync update as below;
    stmt1.
    one table(TB10) and has key is  MATNR  and  value AAA,   i am trying to update  key value AAA.
    then stmt1_response return to update_count 1.
    stmt2.
    sencond table(TB20) and has key is  MATNR  and  value BBB,   i am trying to update  key value BBB that there is no BBB in table(TB20).
    then stmt2_response return to update_count 0.
    when stmt2_response to update_count 0,  I  want stmt1 to be roll back .  is it possible ?    i realized that  stmt1 is updated although stmt2 is not updated,

    Hi,
    i mad a jdbc lookup,  how do i occur mapping error with result of query execution?
    the following #1 statement  does not work.
    please help ,  how to throw exception on mapping process?
    stmt2.
    for( Iterator rows = resultSet.getRows(); rows.hasNext(); ) {
                Map rowMap = (Map)rows.next();
                result = (String)rowMap.get("MATNR");
    #1    if (!"".equals(result) && result  != null) {
                } else {
                       throw new RuntimeException("no data : " );

  • Update oracle table using data through ODBC

    Hi,
    I want to update tables inside an Oracle 8i database.
    The updates depend on data in a mySql database that I want to approach using an ODBC connection.
    I cannot figure out what I need to do to select data from an ODBC source from an oracle session.
    What do I have to call this external table ...
    Edward

    The following link may be relevant. Check it out.
    http://download-east.oracle.com/docs/cd/A87860_01/doc/server.817/a76960/hs_admin.htm

  • Updating BKPF table using User-Exit

    Hi,
    In User-exit, i am trying to modify Document date and Posting date of Accounting Document (Table : BKPF ) by using the following stmt:
       modify bkpf from table it_bkpf1.
       if sy-subrc = 0.
          commit work and wait.
      endif.
    But the modification is not done for some Accounting Document's.
    While debugging it is updating but not for Normal execution.
    Please suggest on this.
    Regards,
    Aruna.

    Hi,
      The Document Date is the date in which the business transaction for the Documente(e.g., a transfer of posting) took place. The document date is the date on which the original document was issued.
    The document date can, for example, refer to the creation date of the delivery note issued by the vendor or the internal goods receipt slip.
    Note: It is possible that an invoice was issued with a Document Date of 6/15/98, entered into R/3 on 7/15/98 (Entry Date) with a Posting Date of 6/30/98 (to post the Document in the previous fiscal year). Many times, all three of these dates are the same
    Are you sure that the <b>exit SAPLF051</b> was active. You may need to activate it through transaction CMOD.
    <b>Reward points</b>
    Regards

  • Updating oracle tables from sqlserver

    I wish to have replication from sqlserver 7.0 to oracle 8.1.7
    database done in real time. Since tranparent gateway only goes
    from oracle to sqlserver, I guess ODBC connectivity is the last
    resort. Are there any other tools or methods that I can
    accomplish this task.
    Thx
    Daniel

    Daniel,
    you can create snapshot for ms tables. Example:
    CREATE SNAPSHOT "KISELYOV"."SH_SEMIINPUT"
    PCTFREE 10 PCTUSED 40 MAXTRANS 255 STORAGE ( INITIAL 128K NEXT
    128K MINEXTENTS 1 MAXEXTENTS 4096 PCTINCREASE 0 FREELISTS 1
    FREELIST GROUPS 1)
    TABLESPACE "USERS"
    BUILD IMMEDIATE
    REFRESH COMPLETE
    ON DEMAND
    AS
    select * from [email protected]
    where ho.world in my case is a database link for Interbase
    Server via ODBC.
    And you can refresh those snapshots when you need.
    Dmitry.

  • Installing Oracle 9.0.x JDBC adapter in XI 3.0

    Has anybody installed this one before?  I have the general procedure on how to install JDBC drivers, but would like to know exactly which files need to be installed where.

    Has anybody installed this one before?  I have the general procedure on how to install JDBC drivers, but would like to know exactly which files need to be installed where.

Maybe you are looking for