Multiple Updates on Oracle Table

I am performing multiple updates on an Oracle table that has 4 million records. Currently I am performing the updates serially like mentioned below:
update test set zone='2' where zone='002';
update test set zone='2' where zone='102';
update test set zone='2' where zone='132';
update test set zone='2' where zone='2';
update test set zone='2' where zone='202';
update test set zone='2' where zone='242';
update test set zone='2' where zone='302';
update test set zone='3' where zone='003';
update test set zone='3' where zone='103';
update test set zone='3' where zone='133';
update test set zone='3' where zone='203';
update test set zone='3' where zone='243';
update test set zone='3' where zone='3';
update test set zone='3' where zone='303';
update test set zone='4' where zone='004';
update test set zone='4' where zone='104';
update test set zone='4' where zone='134';
update test set zone='4' where zone='204';
update test set zone='4' where zone='244';
update test set zone='4' where zone='304';
update test set zone='4' where zone='4';
update test set zone='5' where zone='005';
update test set zone='5' where zone='105';
update test set zone='5' where zone='135';
update test set zone='5' where zone='205';
update test set zone='5' where zone='245';
update test set zone='5' where zone='305';
update test set zone='5' where zone='5';
update test set zone='6' where zone='006';
update test set zone='6' where zone='106';
update test set zone='6' where zone='136';
update test set zone='6' where zone='206';
update test set zone='6' where zone='246';
update test set zone='6' where zone='306';
update test set zone='6' where zone='6';
update test set zone='7' where zone='007';
update test set zone='7' where zone='107';
update test set zone='7' where zone='137';
update test set zone='7' where zone='207';
update test set zone='7' where zone='247';
update test set zone='7' where zone='307';
update test set zone='7' where zone='7';
update test set zone='8' where zone='008';
update test set zone='8' where zone='108';
update test set zone='8' where zone='138';
update test set zone='8' where zone='208';
update test set zone='8' where zone='248';
update test set zone='8' where zone='308';
update test set zone='8' where zone='8';
update test set zone='2' where zone='02';
update test set zone='3' where zone='03';
update test set zone='4' where zone='04';
update test set zone='5' where zone='05';
update test set zone='6' where zone='06';
update test set zone='7' where zone='07';
update test set zone='8' where zone='08';
update test set zone='44' where zone='044';
update test set zone='44' where zone='224';
update test set zone='45' where zone='045';
update test set zone='46' where zone='046';
update test set zone='46' where zone='226';
update test set zone=null where zone='0';
update test set zone=null where zone='09';
update test set zone=null where zone='10';
update test set zone=null where zone='11';
update test set zone=null where zone='12';
update test set zone=null where zone='A ';
update test set zone=null where zone=' ';
How can I perform these updates more effeciently and faster? Is there anything I could do to fine tune these updates?
Thanks

is zone varchar2(3) ?
Verify if following Uppercase updates replace your previous updates
update test set zone='2' where zone='002';
update test set zone='2' where zone='102';
update test set zone='2' where zone='132';
update test set zone='2' where zone='202';
update test set zone='2' where zone='242';
update test set zone='2' where zone='302';
update test set zone='3' where zone='003';
update test set zone='3' where zone='103';
update test set zone='3' where zone='133';
update test set zone='3' where zone='203';
update test set zone='3' where zone='243';
update test set zone='3' where zone='303';
update test set zone='4' where zone='004';
update test set zone='4' where zone='104';
update test set zone='4' where zone='134';
update test set zone='4' where zone='204';
update test set zone='4' where zone='244';
update test set zone='4' where zone='304';
update test set zone='5' where zone='005';
update test set zone='5' where zone='105';
update test set zone='5' where zone='135';
update test set zone='5' where zone='205';
update test set zone='5' where zone='245';
update test set zone='5' where zone='305';
update test set zone='6' where zone='006';
update test set zone='6' where zone='106';
update test set zone='6' where zone='136';
update test set zone='6' where zone='206';
update test set zone='6' where zone='246';
update test set zone='6' where zone='306';
update test set zone='7' where zone='007';
update test set zone='7' where zone='107';
update test set zone='7' where zone='137';
update test set zone='7' where zone='207';
update test set zone='7' where zone='247';
update test set zone='7' where zone='307';
update test set zone='8' where zone='008';
update test set zone='8' where zone='108';
update test set zone='8' where zone='138';
update test set zone='8' where zone='208';
update test set zone='8' where zone='248';
update test set zone='8' where zone='308';
UPDATE TEST SET ZONE=SUBSTR(ZONE,3) WHERE SUBSTR(ZONE,1,2) IN ('10','13','20','24','30')
update test set zone='2' where zone='2';
update test set zone='3' where zone='3';
update test set zone='4' where zone='4';
update test set zone='5' where zone='5';
update test set zone='6' where zone='6';
update test set zone='7' where zone='7';
update test set zone='8' where zone='8';
UPDATE TEST SET ZONE=ZONE WHERE ZONE IN ('2','3','4','5','6','7','8') -- SAME VALUE why update ???
update test set zone='2' where zone='02';
update test set zone='3' where zone='03';
update test set zone='4' where zone='04';
update test set zone='5' where zone='05';
update test set zone='6' where zone='06';
update test set zone='7' where zone='07';
UPDATE TEST SET ZONE=SUBSTR(ZONE,2) WHERE SUBSTR(ZONE,1,1) = '0'
update test set zone='44' where zone='044';
update test set zone='44' where zone='224';
UPDATE TEST SET ZONE='44' WHERE ZONE IN ('044','224')
update test set zone='45' where zone='045';
UPDATE TEST SET ZONE='45' WHERE ZONE='045';
update test set zone='46' where zone='046';
update test set zone='46' where zone='226';
UPDATE TEST SET ZONE='46' WHERE ZONE IN ('046','226')
update test set zone=null where zone='0';
update test set zone=null where zone='09';
update test set zone=null where zone='10';
update test set zone=null where zone='11';
update test set zone=null where zone='12';
update test set zone=null where zone='A ';
update test set zone=null where zone=' ';
UPDATE TEST SET ZONE=null WHERE ZONE IN ('0','09','10','11','12','A ',' ')if so build a single update
update test
   set zone = case when SUBSTR(ZONE,1,2) IN ('10','13','20','24','30') then SUBSTR(ZONE,3)
                   when SUBSTR(ZONE,1,1) = '0'                         then SUBSTR(ZONE,2)
                   when ZONE IN ('044','224')                          then '44'
                   when ZONE='045'                                     then '45'
                   when ZONE IN ('046','226')                          then '46'
                   when ZONE IN ('0','09','10','11','12','A ',' ')     then null
              endonly you know all your zone values (very sensitive to zone addition) add length(zone) conditions if necessary
Regards
Etbin

Similar Messages

  • Jython error while updating a oracle table based on file count

    Hi,
    i have jython procedure for counting counting records in a flat file
    Here is the code(took from odiexperts) modified and am getting errors, somebody take a look and let me know what is the sql exception in this code
    COMMAND on target: Jython
    Command on source : Oracle --and specified the logical schema
    Without connecting to the database using the jdbc connection i can see the output successfully, but i want to update the oracle table with count. any help is greatly appreciated
    ---------------------------------Error-----------------------------
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 45, in ?
    java.sql.SQLException: ORA-00936: missing expression
    ---------------------------------------Code--------------------------------------------------
    import java.sql.Connection
    import java.sql.Statement
    import java.sql.DriverManager
    import java.sql.ResultSet
    import java.sql.ResultSetMetaData
    import os
    import string
    import java.sql as sql
    import java.lang as lang
    import re
    filesrc = open('c:\mm\xyz.csv','r')
    first=filesrc.readline()
    lines = 0
    while first:
    #get the no of lines in the file
    lines += 1
    first=filesrc.readline()
    #print lines
    ## THE ABOVE PART OF THE PROGRAM IS TO COUNT THE NUMBER OF LINES
    ## AND STORE IT INTO THE VARIABLE `LINES `
    def intWithCommas(x):
    if type(x) not in [type(0), type(0L)]:
    raise TypeError("Parameter must be an integer.")
    if x < 0:
    return '-' + intWithCommas(-x)
    result = ''
    while x >= 1000:
    x, r = divmod(x, 1000)
    result = ",%03d%s" % (r, result)
    return "%d%s" % (x, result)
    ## THE ABOVE PROGRAM IS TO DISPLAY THE NUMBERS
    sourceConnection = odiRef.getJDBCConnection("SRC")
    sqlstring = sourceConnection.createStatement()
    sqlstmt="update tab1 set tot_coll_amt = to_number( "#lines ") where load_audit_key=418507"
    sqlstring.executeQuery(sqlstmt)
    sourceConnection.close()
    s0=' \n\nThe Number of Lines in the File are ->> '
    s1=str(intWithCommas(lines))
    s2=' \n\nand the First Line of the File is ->> '
    filesrc.seek(0)
    s3=str(filesrc.readline())
    final=s0 + s1 + s2 + s3
    filesrc.close()
    raise final

    i changed as you adviced ankit
    am getting the following error now
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 37, in ?
    java.sql.SQLException: ORA-00911: invalid character
    here is the modified code
    sourceConnection = odiRef.getJDBCConnection("SRC")
    sqlstring = sourceConnection.createStatement()
    sqlstmt="update tab1 set tot_coll_amt = to_number('#lines') where load_audit_key=418507;"
    result=sqlstring.executeUpdate(sqlstmt)
    sourceConnection.close()
    Any ideas
    Edited by: Sunny on Dec 3, 2010 1:04 PM

  • Real time update in Oracle Table

    Hi Friends,
    I have a new requirement (challenging) and i need your inputs to proceed further.
    User is expecting an real time update in Oracle Table.
    Example:
    I have an Oracle (10g) table DDSX-CALENDAR table. whenever a record(new) gets inserted into this table, i need to take this record and update the other oracle table (10g) existing in a different environment (schema and server).
    Please let me your inputs about handling this requirement.
    Thanks for your time.
    Regards,
    Diwakar Dayalan

    Thanks Prasath.
    I beleive for setting up the DBlink the user needs to have DBA role.
    How do we know the data has been inserted into the source, do i need to use a trigger for that ?
    In which way i can use the DB link inside a trigger to update the values in the target table.
    Example
    My source tables is
    DDSX_STR_BANK
    Store Number Bank Name Bank Account Number
    0001 BOA 111111111111 (assume previous value is 222222222222 )
    0002 BOA 222222222222 (assume previous value is 111111111111).
    Now two store numbers have got its bank account number updated in the source and the value is inserted, Now my requirement is once the value is inserted in the source, i need to update bank account number in SSDX_STR_BANK table in a different server and schema.
    SSDX_STR_BANK
    Store Number Bank Account Number
    0001 222222222222
    0002 111111111111
    Update the bank account numbers in Sync with the DDSX_STR_BANK.
    Please guide me how to proceed with this requirement.
    Thanks,
    Divakar

  • Updating an oracle table with data from an xml string

    Hi - I need help with the following problem:
    We have a table in the database with a field of xml type. We are going to take each string that gets inserted into the xml type field in the 'xml table' and parse the data into another oracle table with corresponding fields for every element.
    once the record gets inserted into the 'real table' the user might want to update this record they will then insert another record into the 'xml table' indicating an update(with a flag) and then we need to update the 'real table' with the updated values that have been sent in.
    The problem that I am having is that I do not know how to create this update statement that will tell me which fields of the table need to be updated.(only the fields that need to be updated will be in the xml string in the 'xml table').
    Please help me with this - ASAP!

    Are you wanting to upload the file through an Oracle Form or just upload a file? If it isn't via forms, then you should probably post your question here: {forum:id=732}
    You also should post the version of Forms, Database, etc...
    As far as uploading files via a text file, I personally like to use Oracle External Tables even in Forms. You can Google that and there is plenty of information. If you search this forum, then you will see lots of people use UTL_FILE in forms, but you can Google that also for more information.

  • Updating an Oracle table during activesync

    Hi all,
    I have an Oracle table resource that has a row for each user in IDM. I need to update certain columns in the table as each user is processed by activesync. The table resource is not assigned to the user. Has anyone had to do this type of thing for one of their projects?
    Thank you very much!

    vonereen wrote:
    I have an Oracle table resource that has a row for each user in IDM. I need to update certain columns in the table as each user is processed by activesync. The table resource is not assigned to the user. Has anyone had to do this type of thing for one of their projects?If you want to use the standard IDM provisioning workflows and built-in tools then you will not be able to update the database row and column without assigning the resource to the user (directly or indirectly through a role). This is because IDM thinks the user has nothing to do with the resource and doesn't even bother trying to update it.
    There are several ways around it. The "easiest" way is to use the FormUtil class to get the resource object, get the resource adapter and finally the connection itself. With that connection you can perform standard JDBC SQL operations.
    Here's how you get the direct database connection to your resource:
    <invoke name="getConnection">
        <invoke name="getDelegate">
            <invoke name="getAdapterProxy" class="com.waveset.adapter.ResourceAdapterBase">
                <invoke class='com.waveset.ui.FormUtil' name='getObject'>
                    <invoke name='getLighthouseContext'>
                        <rule name='EndUserRuleLibrary:getCallerSession'/>
                    </invoke>
                    <s>Resource</s>
                    <s>Your Resource Name</s>
                </invoke>
                <invoke name='getLighthouseContext'>
                    <rule name='EndUserRuleLibrary:getCallerSession'/>
                </invoke>
            </invoke>
        </invoke>
    </invoke>With that you should be able to produce whatever you need to update the table. You'll still have to update the form or workflow to execute some JDBC updates but that's just standard java invokes.

  • Multiple updates on a table

    Hi,
    My DB is 10.0.2
    I have a batch program, which fires multiple updates on a single table (without commit) on different conditions.
    For Ex:
    update tablea set end_date=sysdate-1 where trans_id=2010;
    update tablea set end_date=sysdate where trans_id=2011;
    update tablea set start_date=sysdate-2 where trans_id=2009;
    update tablea set start_date=sysdate-3 where trans_id=2008;
    ...etc
    This consumes hell lot of time.
    How can I convert this in to a single update.

    Thank you all for your suggestions.
    Alas, I found no improvement in performance.
    SQL>     UPDATE proc_log
        SET VALUTA = NULL
        WHERE interest_FLAG='I';
    108318 rows updated.
    Elapsed: 00:03:36.65
    Execution Plan
    Plan hash value: 1980564716
    | Id  | Operation          | Name   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT   |        |   218K|  2778K|  7415   (2)| 00:01:29 |
    |   1 |  UPDATE            | proc_log |       |       |            |          |
    |*  2 |   TABLE ACCESS FULL| proc_log |   218K|  2778K|  7415   (2)| 00:01:29 |
    Predicate Information (identified by operation id):
       2 - filter("interest_FLAG"='I')
    Statistics
            131  recursive calls
         768984  db block gets
          38560  consistent gets
          42626  physical reads
       78612540  redo size
            827  bytes sent via SQL*Net to client
            761  bytes received via SQL*Net from client
              3  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
         108318  rows processed
    SQL> SQL>       UPDATE proc_log
        SET WMM = NULL,
        sales = NULL,
        cost = NULL,
        interest = NUL  2    3  L,
        capital = NULL,
        total = NULL
        WHERE interest_FLAG='V' ;
    415808 rows updated.
    Elapsed: 00:06:49.09
    Execution Plan
    Plan hash value: 1980564716
    | Id  | Operation          | Name   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT   |        |   218K|  2991K|  7419   (2)| 00:01:30 |
    |   1 |  UPDATE            | proc_log |       |       |            |          |
    |*  2 |   TABLE ACCESS FULL| proc_log |   218K|  2991K|  7419   (2)| 00:01:30 |
    Predicate Information (identified by operation id):
       2 - filter("interest_FLAG"='V')
    Statistics
            360  recursive calls
         878530  db block gets
         491360  consistent gets
          98657  physical reads
      183447664  redo size
            830  bytes sent via SQL*Net to client
            855  bytes received via SQL*Net from client
              3  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
         415808  rows processed
    SQL> SQL>   UPDATE proc_log
        SET VALUTA = NULL
        WHERE interest_FLAG='V2';
    0 rows updated.
    Elapsed: 00:00:04.76
    Execution Plan
    Plan hash value: 1980564716
    | Id  | Operation          | Name   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT   |        |   218K|  2778K|  7415   (2)| 00:01:29 |
    |   1 |  UPDATE            | proc_log |       |       |            |          |
    |*  2 |   TABLE ACCESS FULL| proc_log |   218K|  2778K|  7415   (2)| 00:01:29 |
    Predicate Information (identified by operation id):
       2 - filter("interest_FLAG"='V2')
    Statistics
              1  recursive calls
              0  db block gets
          37799  consistent gets
           8012  physical reads
              0  redo size
            832  bytes sent via SQL*Net to client
            762  bytes received via SQL*Net from client
              3  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
              0  rows processed
    SQL> SQL> SQL> SQL> SQL> roll;
    Rollback complete.
    SQL> update proc_log
    set VALUTA = (case when interest_FLAG in ('I','V2') then NULL end),
         WMM   =  (case when interest_FLAG in ('V') then NULL end),
        sales =(case when interest_FLAG in ('V') then NULL end),
        cost = (case when interest_FLAG in('V') then NULL end),
        interest =(case when interest_FLAG in ('V') then NULL end),
        capital = (case when interest_FLAG in ('V') then NULL end)  ,
        total =(case when interest_FLAG in('V')  then NULL end)
    where interest_FLAG in ('I','V2','V'); 
    524126 rows updated.
    Elapsed: 00:16:27.54
    Execution Plan
    Plan hash value: 1980564716
    | Id  | Operation          | Name   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT   |        |   437K|    10M|  7440   (3)| 00:01:30 |
    |   1 |  UPDATE            | proc_log |       |       |            |          |
    |*  2 |   TABLE ACCESS FULL| proc_log |   437K|    10M|  7440   (3)| 00:01:30 |
    Predicate Information (identified by operation id):
       2 - filter("interest_FLAG"='I' OR "interest_FLAG"='V')
    Statistics
           1255  recursive calls
        3826133  db block gets
          71077  consistent gets
          14830  physical reads
      489474188  redo size
            832  bytes sent via SQL*Net to client
           1179  bytes received via SQL*Net from client
              3  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
         524126  rows processed
    SQL> SQL> roll;
    Rollback complete.I have two types of updates in sequence.
    1. with columns in where clause are same but different columns in update clause
    2. With columns in where clause different but same columns in update clause

  • How to define mapping from multiple files to Oracle Tables in 9i

    Around 100-200 Flat files are created every 30 minutes and each filename is different - Filename has datetime Stamp as part of the file name apart from the product code as first 12 characters.
    Can anyone guide me in How to define mappings to these files using OWB ?
    What I can do is consolidate all files into one known single file name and map the files to Oracle tables which I don't want to do because I need to reject errorneous files.
    Can anyone provide me some tips on this ?
    Thanks in Advance.
    Sohan.

    As you know, in OWB you need to define the flat file source in a 'static' way (name, location, etc. have to be defined previously), so you cannot deal directly with dinamically generated file names. One solution would be to consolidate them into a single file (which you can define statically in OWB), but prefix every record with the filename. In this way it is easy to understand from which file the rejected records came from. If you are using unix, it is very easy to write a script to do this. Something like this will do:
    awk '{printf "%s,%s\n",FILENAME,$1}' yourfilename >> onefile
    where yourfile is the name of the file you are currently processing, while onefile is the name of the consolidated file. You can run this for all files in your directory by substituting yourfilename with * .
    You can then disregard the file name field in OWB, while processing the rejected records based on the file name prefix by using unix utilities like grep and similar.
    Regards:
    Igor

  • How to update an Oracle table from SSIS

    Hi there
    I've been working in a SSIS project where I need to update a table in an Oracle database that is located in a remote server. Until now I have used the OLE DB COMMAND to do this in a sql server database. To access the data that belongs to the Oracle database
    I am using an OCDB task, but this component does not work with an OLE DB COMMAN and I also need to do an inner join with a table in SQL.
    This is the schema of the query that I need to perform:
    UPDATE OT
    SET
    OT.COLUMN1= ST.COLUMN1,
    OT.COLUMN2= ST.COLUMN2,
    OT.COLUMN3= ST.COLUMN3,
    OT.COLUMN4= ST.COLUMN4,
    FROM
    ORACLE_TABLE AS OT INNER JOIN SQL_TABLE ST ON
    OT.COLUMN5 = ST.COLUMN5
    WHERE
    (((OT.COLUMN1) Is Null) AND
    ((ST.COLUMN2) In ('A1','A2','A3') AND
    ((ST.COLUMN3)<>'B1' Or (ST.COLUMN3) Is Null) AND
    ((ST.COLUMN7)=1));
    I am using Microsoft Visual Studio 2010.

    Hi dj2907,
    According to your description, I find that you ever asked a similar question in the forum, and I have answered it. The thread URL is there:
    https://social.technet.microsoft.com/Forums/en-US/aafd209f-56a0-4b09-9b82-0a57bcaa2448/ssis-updating-a-table-with-a-ole-db-command?forum=sqlintegratio
    Based on your current requirement, we should change your current provider to Microsoft OLE DB Provider for Oracle supported by Microsoft or Oracle Provider for OLE DB
    recommended by Microsoft to access the data in Oracle. Then we can directly use the OLE DB Connection Manager for OLE DB Command. The following similar thread is for your reference:
    http://stackoverflow.com/questions/5168772/update-a-row-in-oracle-using-oledb-commandssis
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Allow multiple updates on a table

    --hi guys;
    --I have this problem and maybe u can help;
    --inside a when-validate-item I am using a loop;
    --inside the loop I modify a table's column value using an UPDATE statement
    <<update sablon
    set val_sbl = sir_calc
    where id_sbl = r1.id_sbl;>>
    r1 is of cursor type;
    --it is possible that when leaving the w-v-i trigger to have updated multiple rows, but when I commit, it only commits the first update                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    when you commit, it's impossible to split the transaction into parts.
    But you can do the first update in a autonomous transaction, called in the loop and all the other updates in the loop. So the auton. transactions commits the data in the same second you call it. And all other updates are commited, when you say "commit" in forms.
    this is possible
    Gerd

  • Update the Oracle Table using BAPI

    Hi All,
        I would like to update Oracle Data Base with my custom BAPI using the Business Logic Transaction.
    Could any one please give me some logic how to do it?.
    Thanks
    R M

    RM,
    Please follow the steps below:
    1) Create and Configure the Data Server for the database you want to access/update (basically
        you are creating a database connection here).
    2) Save and test the connection by clicking the 'Status' button
    3) Create new query template with template type as 'SQL Query' and select the server you have
        configured in step#1
    4) Select the mode as 'Command' and type-in your Insert/Update statements in the 'Fixed Query'
        tab. For example: insert into yourtable values ('[Param.1]','[Param.2]')
    5) Test the query by passing parameters from the 'Parameters' tab. You are supposed to get a
        'Command Execution Successful'  message if the data is successfully posted to the database.
    6) Create a 'SQL Query' action block in your Business logic transaction to access the above query
        and map your Param.1, Param.2 etc. to your BAPI result (on the Link Editor).
    Hope this helps.
    John

  • 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

  • Updating Multiple records in oracle DB

    Dear frndz,
        I had a doubt for which i can't get the correct answer from the sdn....
              I am receiving data(Internal table) from the SAP system using the outbound Proxy. And Passing it to Oracle system using the inbound JDBC. I want to know can i update the oracle table, passing the data in 1 to unbounded or i should loop through the internal table in sap and then pass one by one to the inbound JDBC. Please clarify. If u not get my query plz revert back.
    thanks in advance
    Karthikeyan

    Hi,
    Normally for any JDBC scenario, the records must be passed in a single shot. If one of them fails, all record would be rollbacked.
    If you pass record by record, the performance would be drastic as each time it will open a LUW and hit the database.
    It is better to pass all records in single shot.
    It is better to put 1.unbounded else if u loop the internal table the execution time from proxy to XI will be happening record by record which is not advisable
    Regards,
    Krish
    Edited by: Krish on Sep 18, 2008 7:12 PM

  • How to update/query informix table for every update/query on Oracle table

    We have a system that can talk to only Oracle.
    Here, we have a certain program that updates an Oracle table thru a View of the Table. For every database operation on Oracle table View, we want to update a corresponding table in Informix database.
    Similarly for every query on the View of oracle table we want to query informix database and fetch the records from there.
    We want to use Oracle as a medium to access Informix.
    Can some one help me on how to do this ?
    Thanks

    You can use the Transparent Gateway for Informix to access Informix from an Oracle environment. The gateway makes the Informix database look like a remote Oracle database.
    You can take a look at the gateways page on OTN for more information on this. http://otn.oracle.com/products/gateways/content.html
    Look at the Certification matrix to ensure that you are using a certified configuration.

  • Updating all items of HTML itembox to Oracle table

    Hi friends,
    In my assignment,I need your help. I'm wondering how can I update all the items of my HTML itembox ,defined in one of the jsp page, to Oracle table.
    Thanks in advance.

    hsperhar wrote:
    Thanks ,in that I can deal with the servlet programming and collecting and updating the data in my oracle tables. But how would I collect the names/values of all the items of HTML itembox in my servlet/JSP, so that later I can update my oracle table with those string values.Method request.getParameter(String) will catch the selected items only of the itembox. How can I force the form to pass all the names of items of itembox to servlet. You need to pass them separately. But why do you need to do this? You already know at the server side which options are all in the dropdown. Simply because you couldn't have printed it to the response otherwise.
    Plus: how can we substract two arrays. I mean if A[]={1,2,3} & B[]={2,3} then how can I get C[]=A-B={1}Just write an utility method for that. Or use the Collections framework, the List API for example provides you a removeAll() method.

  • Export data from MS sql server table to an oracle table

    I need to move data from a sql server table to an oracle table and when ever the sql server table is updated it needs to automatically update the oracle table. Is there procedure to do this or do I migrate the data once and set up a trigger on the sql server table to update the oracle table? If the trigger is the answer how do I do that?

    You might want to check out Oracle's heterogeneous services functionality if you haven't done so already. Here are a few links:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/toc.htm
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/majfeat.htm#sthref74
    Also, consulting the Oracle streams manual may be helpful -- particularly Chapter 5.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14228/toc.htm
    Perhaps someone who is more familiar with SQL Server could provide a more helpful answer.

Maybe you are looking for

  • Application crashes when trying to open jpg with Desktop API

    Hi, i would like to open jpg, or gif files using Desktop API, and the application crashes.The Desktop API is supported by my OS, because txt files, or file directories can be opened, mails can be sent, browsing is also supported. Only jpg and gif, an

  • How much RAM can my computer support?

    This computer has four memory slots but I don't want to buy memory that I don't need. Also I am currently running SDRAM-PC133-333, but most sites say that this model computer should run PC120, or 100, or something like that..........will I be ok runn

  • Key genaration for remote system

    Hi, I want to genarate number ranges for remote system like a100 to z999. But in Console its allowing me to enter only numaric values only. could you please suggest me to achive this functionality. Thanks in Advance. Kiran.G

  • Data source for this data connection isn't registered for Power BI

    Hi, I am getting this error when I set Schedule Data Refresh to refresh data from db.  How do I register my connection to the data source?  Is this a fix on SQL server or Power BI? FAILURE INFORMATION Failure Correlation ID: c5132b7a-3c54-4f12-a048-3

  • DB-Link Performance Issues

    Hello, Does anyone know of any performance issues with regards to db-links? If I execute queries right on the database, they're pretty fast. When I execute them from the other server using a db-link, some queries are slow and some aren't. I can't pin