Firm Redirect with Set Cache Batch Updates or regular Expressions mapping?

Hello everybody,
I use the Sun Java Web Proxy as a Reverse Proxy. I want that the Proxy takes a special css-File only from a special server.
for Instance: example.css should be taken from http://server.domain.com/static/example.css
Should I use the "Set Cache Batch Updates" in the Caching-Tab or should I create a regular Expression mapping? In second case, how could the Expression looks like (SUN regular expressions are a different from normal - as I know)?
Thank you for help.
Greetings
Johannes

The regexpr. could be "http://.*/tud\\.css
But is such a redirect possible at all?
Please help me. I am a little bit helpless.
Thanks
InfoSeeker09

Similar Messages

  • Batches Updates VS Regular Updates

    Hi All,
    What is the difference between Regular Update and Batches wise updates in SQL Sever
    Thanks
    CMK...

    A single TSQL command (UPDATE, DELETE, INSERT, SELECT) can operate on multiple rows. It is more efficient to change multiple rows (set of rows) than to change just one row. Performance is much better. But, if you change too many rows within a single command,
    you may experience negative effects, such as lock escalation, more blocking, transaction log growth, huge transactions that take ages to rollback (and that means longer failover).
    So, you need to find a "sweet spot", number of rows that gives you better performance but not so large to avoid those negative effects. In practice, that would mean limiting the number of processed rows in a single command to e.g. 400 to 4000 rows.
    ROWCOUNT option is obsolete. Limit the number of rows with a TOP clause.

  • Db batch update problem

    I have a real problem with doing a batch update in SOA Suite and have tried a number of different approaches but they have all failed at some point. My requirement is really quite simple.
    I have a simple table - MY_TABLE:
    Columns:
    PK_ID - primary key
    ATTR_1 - not a primary key but selection criteria for on which to update.
    ATTR_2 - value to update
    In oracle the above update statement would look something like:
    update MY_TABLE set ATTR_2=<some value> where ATTR_1=<some value>
    However I don't want to update a single row, I want to update a number of rows at the same time based on a number of different ATTR_1 values. So my approaches so far have been:
    a) use the Update functionality of the DB Adapter. The problem with this is that the DB adapater insists on updating by primary key. I do not have the primary key, I have another column for which I want to use as the criteria. So this won't work.
    b) Create a two stage process whereby I retrieve the primary keys based on ATTR_1 and feed this into approach a). Problem is that now I need to do a select based on a list of ATTR_1 values. The Select feature of the DB adapter does not allow selection based on a number of attributes, just one. i.e. the SQL that it creates for you is something like SELECT VALUES FROM TABLE WHERE CRITERIA = <some value>. What you would really need is SELECT VALUES FROM TABLE WHERE CRITERIA IN <some value>, but the Select feature won't allow this.
    c) This brings me on to the next approach. So I am going to try and use the DB adapter in Pure SQL mode. The SQL I define is something like:
    update MY_TABLE set ATTR_2=#myValue2 where ATTR_1 in #myValue1
    To get this work I have had to do some XSLT to convert my repeating element of ATTR_1 into a concatonated string e.g. ('myValue1','myValue1','myValue1'). The XSLT to do this sort of broke the XSLT GUI in SOA Suite, but it seems to work at runtime and creates the correct XML request to the DB adapter, however no rows are being updated and there is no error message either.
    This simple DB update is seemingly beyond my grasp. Can anyone help?
    Also I have no intention of looping through BPEL doing a single update at a time. The performance hit for a large number of records would be prohibitive.
    Edited by: user10103872 on 28-Nov-2010 10:42
    Edited by: user10103872 on 28-Nov-2010 10:43

    >
    I am thinking to write a procedure call to loop the sql statement "update table_A set version_no='1';"
    >
    Please don't do that. That will result in other complex issues and is not the solution to this problem.
    When you try to do any insert, update or delete, Oracle generates UNDO (which basically has all the data to revert back the changes, in case you decide to do a rollback).
    In your case, the UNDO Table space is not sized appropriately for this large update that you are trying to run. So, you need to fix that, by sizing it appropriately or by Using Auto-Extensible Table spaces.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/undo.htm#BABJCFFE

  • Statement caching and batch update

    Can these 2 JDBC features work together ?
    Is it possible while statement is cached to be reparsed (soft) if used in batch update ?
    I am asking this questions because i have a sitution where an insert is cached using implicit statement caching and then put in a batch to exeute batch updates !!! From statspack reports i find that 1/3 of statements are reparsed ... even soft !!!

    Statement caching and batch update work fine together. The most common cause of unexpected soft parses is changing the type of some parameters. If you first bind one type, setInt(1, ...), do addBatch, then bind another type to the same parameter, setString(1, ...), and do addBatch, you will get a soft reparse. There is nothing the JDBC driver can do about this, the RDBMS requires it.
    In general, whatever parse behavior you see with statement caching you would also see without it.
    Douglas

  • Strange thing with set update calc

    Hello,<BR>i see a strange behavior with intelligent calculation,<BR>In my outline i have the time dimension like this,<BR>Year<BR> Qtr1<BR> Jan<BR> Feb<BR> Mar<BR> Qtr2<BR> Qtr3<BR> Qtr4<BR>When I run a calc script:<BR>SET UPDATE CALC OFF;<BR>SET CACHE HIGH;<BR>SET LOCKBLOCK HIGH;<BR>fix("member")<BR>calc dim(D1,D2,D3,D4,..);<BR>endfix;<BR>I see values of quarters are tripled and further the values of year is quadrupled (a total of 12 times). When removed SET UPDATECALC OFF; it works fine<BR>Do someone has any insight into this<BR>Thanks<BR>Rama<BR><BR>

    The calc engine doesn't evaluate a time rollup outside of the time dimension...<BR><BR>Each dimension has it's own rules for aggregation, and they are evaluated one dimension at a time.<BR><BR>So, once you have your quarter total for say, "New York City", it will be added to all the other cities in "NY State" to get the state total. This "NY State" quarter total for product "x" will then be added to all the other "NY State" quarter totals for any other products to get the product rollups, etc... Of course, this is based on a Time, Location, Product sequence.<BR><BR>Another way to look at this, is that only when the Time dimension is being aggregated will the rollup for "Jan", "Feb", and "Mar" be used to calculate "Qtr 1". If you need a concrete analogy, examine the way row totals and column totals are used in excel to obtain a grand total, you could do the sequence in either way (assuming a simple sum).<BR><BR>Where intelligent calc fits in: now assume with your row and column totals that only one cell is modified... You need to recalc the row total, the column total, and the grand total. The row and column totals are direct dependents (formula wise), while the grand total is directly dependent on the recalculated row/column totals. This progression continues until all known dependent roll-ups/formulas have been evaluated.<BR><BR>HTH<BR>

  • Batch Updation with new Batch via IDoc

    Hi,
    Is it possible to update the existing batch at the delivery level with the new batch from the IDoc during the Picking or PGI
    I checked the FM WS_DELVRY_UPDATE2 which is not allowing to do this...
    Any pointers on this will be helpful
    Any Clue on the above issue ?
    Thanks in Advance
    Rajesh
    Edited by: Rajesh on Mar 6, 2012 8:39 PM

    Possibly, have a look at OSS 748216.
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=748216
    Regards,
    Nick

  • Batch updates with callable/prepared statement?

    The document http://edocs.bea.com/wls/docs70/oracle/advanced.html#1158797 states
    that "Using Batch updates with the callableStatement or preparedStatement is
    not supported". What does that actually mean? We have used both callable and prepared
    statements with the batch update in our current project (with the Oracle 817 db).
    It seems to run ok anyway.

    So the documentation should state that batch updates do not work ok in old versions
    of JDriver for Oracle, BUT work correctly with newer version. Additionally, batch
    updates work ok when used with Oracle supplied jdbc-drivers?
    "Stephen Felts" <[email protected]> wrote:
    Support for addBatch and executeBatch in the WLS Jdriver for Oracle was
    added in 7.0SP2.
    It was not available in 6.X or 7.0 or 7.0SP1.
    "Janne" <[email protected]> wrote in message news:3edb0cdc$[email protected]..
    The document http://edocs.bea.com/wls/docs70/oracle/advanced.html#1158797
    states
    that "Using Batch updates with the callableStatement or preparedStatementis
    not supported". What does that actually mean? We have used both callableand prepared
    statements with the batch update in our current project (with the Oracle817 db).
    It seems to run ok anyway.

  • PI 7.1 - CPA Cache not updated with directory data.

    Hi Gurus,
    I have installed PI 7.1 and recently I refreshed my cache in partial and full mode. when I go to RWB->Cache monitoring -> Show Cache Status Table, I see following error for Central Adaptor engine.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <ConfirmationXML>
       <CacheRefreshError>
          <EngineType>
          AE
          </EngineType>
          <EngineName>
          af.sxd.mchir134
          </EngineName>
          <RefreshMode>
          C
          </RefreshMode>
          <GlobalError>
             <Message>
             CPA Cache not updated with directory data.
             </Message>
             <Trace>
             com.sap.aii.af.service.cpa.impl.exception.CPADirectoryCacheException: Failed to check secure connection configuration. Reason: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:134)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDeltaRefreshURL(DirectoryAccess.java:191)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDeltaCacheUpdateXML(DirectoryAccess.java:440)
         at com.sap.aii.af.service.cpa.impl.cache.CacheManager.performCacheUpdate(CacheManager.java:491)
         at com.sap.aii.af.service.cpa.impl.cache.CacheManager$CacheUpdateRunnable.run(CacheManager.java:322)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:73)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:144)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:242)
    Caused by: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:471)
         at com.sap.aii.af.lib.sld.impl.SLDAccessImpl.getSLDInstanceName(SLDAccessImpl.java:96)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:119)
         ... 7 more
    Caused by: com.sap.aii.utilxi.sld.SldReadFailedException: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:126)
         at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:142)
         at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:458)
         ... 9 more
    Caused by: com.sap.lcr.api.cimclient.LcrException: com.sap.lcr.api.cimclient.CIMClientException: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.utilxi.sld.SldProxy.getXISubSystem(SldProxy.java:526)
         at com.sap.aii.utilxi.sld.XIEntityInSld.getInstFromSld(XIEntityInSld.java:494)
         at com.sap.aii.utilxi.sld.XIEntityInSld.readFromSld(XIEntityInSld.java:156)
         at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:120)
         ... 11 more
             </Trace>
          </GlobalError>
          <GlobalError>
             <Message>
             Confirmation handling failed.
             </Message>
             <Trace>
             com.sap.aii.af.service.cpa.impl.exception.CPADirectoryCacheException: Failed to check secure connection configuration. Reason: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:134)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getConfirmationURL(DirectoryAccess.java:162)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.invokeConfirmationURL(DirectoryAccess.java:462)
         at com.sap.aii.af.service.cpa.impl.cache.CacheManager.performCacheUpdate(CacheManager.java:603)
         at com.sap.aii.af.service.cpa.impl.cache.CacheManager$CacheUpdateRunnable.run(CacheManager.java:322)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:73)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:144)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:242)
    Caused by: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:471)
         at com.sap.aii.af.lib.sld.impl.SLDAccessImpl.getSLDInstanceName(SLDAccessImpl.java:96)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:119)
         ... 7 more
    Caused by: com.sap.aii.utilxi.sld.SldReadFailedException: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:126)
         at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:142)
         at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:458)
         ... 9 more
    Caused by: com.sap.lcr.api.cimclient.LcrException: com.sap.lcr.api.cimclient.CIMClientException: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.utilxi.sld.SldProxy.getXISubSystem(SldProxy.java:526)
         at com.sap.aii.utilxi.sld.XIEntityInSld.getInstFromSld(XIEntityInSld.java:494)
         at com.sap.aii.utilxi.sld.XIEntityInSld.readFromSld(XIEntityInSld.java:156)
         at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:120)
         ... 11 more
             </Trace>
          </GlobalError>
       </CacheRefreshError>
    </ConfirmationXML>
    Please suggest the solution.
    Thanks,
    Surendra

    Guys,
    I have the same issue. Any help on this is appreciated!
    Issue log from CPA cache refresh
    <?xml version="1.0" encoding="UTF-8" ?>
    - <CacheRefreshError> 
    <EngineType>AE</EngineType>  
    <EngineName>af.sxd.pl1vw158</EngineName>  
    <RefreshMode>C</RefreshMode>  
    - <GlobalError> 
    <Message>CPA Cache not updated with directory data.</Message>  
    <Trace>com.sap.aii.af.service.cpa.impl.exception.CPADirectoryCacheException: Failed to check secure connection configuration. Reason: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:134) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDeltaRefreshURL(DirectoryAccess.java:195) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDeltaCacheUpdateXML(DirectoryAccess.java:448) at com.sap.aii.af.service.cpa.impl.cache.CacheManager.performCacheUpdate(CacheManager.java:457) at com.sap.aii.af.service.cpa.impl.cache.CacheManager$CacheUpdateRunnable.run(CacheManager.java:291) at com.sap.engine.frame.core.thread.Task.run(Task.java:73) at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:162) at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:260) Caused by: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable) at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:505) at com.sap.aii.af.lib.sld.impl.SLDAccessImpl.getSLDInstanceName(SLDAccessImpl.java:96) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:119) ... 7 more Caused by: com.sap.aii.utilxi.sld.SldReadFailedException: HTTP response code: 503 (Service Unavailable) at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:133) at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:150) at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:492) ... 9 more Caused by: com.sap.lcr.api.cimclient.LcrException: com.sap.lcr.api.cimclient.CIMClientException: HTTP response code: 503 (Service Unavailable) at com.sap.aii.utilxi.sld.SldProxy.getXISubSystem(SldProxy.java:527) at com.sap.aii.utilxi.sld.XIEntityInSld.getInstFromSld(XIEntityInSld.java:553) at com.sap.aii.utilxi.sld.XIEntityInSld.readFromSld(XIEntityInSld.java:165) at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:127) ... 11 more</Trace>  
    </GlobalError>
    - <GlobalError> 
    <Message>Confirmation handling failed.</Message>  
    <Trace>com.sap.aii.af.service.cpa.impl.exception.CPADirectoryCacheException: Failed to check secure connection configuration. Reason: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:134) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getConfirmationURL(DirectoryAccess.java:166) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.invokeConfirmationURL(DirectoryAccess.java:470) at com.sap.aii.af.service.cpa.impl.cache.CacheManager.performCacheUpdate(CacheManager.java:576) at com.sap.aii.af.service.cpa.impl.cache.CacheManager$CacheUpdateRunnable.run(CacheManager.java:291) at com.sap.engine.frame.core.thread.Task.run(Task.java:73) at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:162) at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:260) Caused by: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable) at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:505) at com.sap.aii.af.lib.sld.impl.SLDAccessImpl.getSLDInstanceName(SLDAccessImpl.java:96) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:119) ... 7 more Caused by: com.sap.aii.utilxi.sld.SldReadFailedException: HTTP response code: 503 (Service Unavailable) at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:133) at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:150) at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:492) ... 9 more Caused by: com.sap.lcr.api.cimclient.LcrException: com.sap.lcr.api.cimclient.CIMClientException: HTTP response code: 503 (Service Unavailable) at com.sap.aii.utilxi.sld.SldProxy.getXISubSystem(SldProxy.java:527) at com.sap.aii.utilxi.sld.XIEntityInSld.getInstFromSld(XIEntityInSld.java:553) at com.sap.aii.utilxi.sld.XIEntityInSld.readFromSld(XIEntityInSld.java:165) at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:127) ... 11 more</Trace>  
    </GlobalError>
    </CacheRefreshError>
    Regards

  • Problem with Batch Updates

    Hi All,
    I have a requirement where in I have to use batch updates. But if there's a problem in one of the updates, I want the rest of the updates to ingore this and continue with the next statement in the batch. Is this not one of the features in BatchUpdates in JDBC2? I have been trying to accomplish this since 2 days now. Can anyone help me with this. Can anyone please help me with this?
    FYI, I have tried the following.
    I have 3 test updates in my batch.
    2 nd statement is an erraneous statement(deliberate). Other 2 statements are fine. It is appropriatley throwing 'BatchUpdateException'. when I ckeck the "arrays of ints" reurned by executeBatch() as well as BatchUpdateException.getUpdateCounts() are returning an arrays of size '0'. If remeove the erraneous statement, behaviour is as expected.
    Thanks in advance,
    Bharani

    The next paragraph of the same API doc:
    If the driver continues processing after a failure, the array returned by the method BatchUpdateException.getUpdateCounts will contain as many elements as there are commands in the batch, and at least one of the elements will be the following:
    3. A value of -3 -- indicates that the command failed to execute successfully and occurs only if a driver continues to process commands after a command fails
    A driver is not required to implement this method.

  • Help with doing SELECT sub query within the SET of an UPDATE statement

    After doing some research, it appears as if it's possible to use a SELECT subquery in the SET of an UPDATE statement.  i did find some examples and here is my code, however when I click the "check" button it's saying the field (my entire select subquery) is unknown and neither in one of the specified tables or defined by a "DATA".  Do I have a syntax issue or is there another reason why it's not taking this as a valid statement?  Thanks for the help!
    LOOP AT IT_DATA
    UPDATE /BIC/AZDP_O0140
       SET /BIC/ZCOUNTER = (SELECT COUNT( DISTINCT MATERIAL )
                            FROM /BIC/AZDP_O0140
                            WHERE MATERIAL EQ IT_DATA-MATERIAL
                            GROUP BY MATERIAL).
    ENDLOOP.

    my Update does indeed have a WHERE clause but because of the issue i'm having, all my criteria in my WHERE is black text in the ABAP editor.  The editor doesn't even recognize the keywords "WHERE" or "EQ".  Below is my entire statement which contains all WHERE criteria in both the Update and the Subquery, i've just removed it for testing to help simplify the query and eliminate as many other factors as posisble that may be causing problems:
    LOOP AT IT_DATA.
       UPDATE /BIC/AZDP_O0140
       SET /BIC/ZCOUNTER = (SELECT COUNT( DISTINCT MATERIAL ) FROM /BIC/AZDP_O0140
       WHERE WHSE_NUM EQ IT_DATA-WAREHOUSE
        AND  PLANT EQ IT_DATA-PLANT
        AND  /BIC/ZTRAN_NO EQ IT_DATA-TRANS_NUM
        AND  DELIV_NUMB EQ IT_DATA-DELIVERY
        AND  MATERIAL EQ IT_DATA-MATERIAL
        GROUP BY MATERIAL)
       WHERE WHSE_NUM EQ IT_DATA-WAREHOUSE
        AND  PLANT EQ IT_DATA-PLANT
        AND  /BIC/ZTRAN_NO EQ IT_DATA-TRANS_NUM
        AND  DELIV_NUMB EQ IT_DATA-DELIVERY
        AND  MATERIAL EQ IT_DATA-MATERIAL.
    ENDLOOP.
    i should also mention the sources i found were not within the SAP Library but instead on other third-party ABAP websites.  so because i was having issues i wanted to post here to see if anyone else has come up with a working solution.  but if this cannot be done i can likely come up with a solution for my needs using multiple internal tables, this would just have been much easier since i can get a query like this to do what i want in SQL Server.  Thought i could utilize this in ABAP as well.

  • Count of Rows Updated with prepared statement batch

    I am using a batch of prepared statements for update operation. (pstmt.executeBatch())
    Configuration I am using
    WLS 6.1sp2 Connection pool - Oracle Thin driver - TX Datasource
    DB - Oracle 8.1.7
    The batch update works well i.e data gets updated and committed. BUT I am not
    getting back the count of number of rows updated.
    Is there any thing more required on WLS side ?
    Thanks in Advance

    The Oracle drivers do not return the updated row counts from batched updates.
    Try running the attached program with the thin driver
    java Batch oracle.jdbc.driver.OracleDriver jdbc:oracle:thin:@host:port:database user password
    You will see that returns -2, which indicates that the number of rows updated is unknown.
    This does meet the JDBC spec.
    "Harshad Nanal" <[email protected]> wrote in message news:3f8a455f$[email protected]..
    >
    I am using a batch of prepared statements for update operation. (pstmt.executeBatch())
    Configuration I am using
    WLS 6.1sp2 Connection pool - Oracle Thin driver - TX Datasource
    DB - Oracle 8.1.7
    The batch update works well i.e data gets updated and committed. BUT I am not
    getting back the count of number of rows updated.
    Is there any thing more required on WLS side ?
    Thanks in Advance[Batch.java]

  • HELP!!! Strange Error with Batch Update

    While trying to do a batch update with the following preparedstatment:
    INSERT INTO TAB1
    (DATETIME,CALC_ID,SITE_ID,APPL_ID,VAL)
    values (
    {ts '2003-06-24 08:49:14'},
    (SELECT CALC_ID FROM TAB2 WHERE CALC_NAME=?),
    2,
    7,
    Notice the parameter in the subquery. This works fine for a single executeUpdate. But if i do two preparedstatement.addbatch calls and then executeBatch I see a unique constraint violation on (DATETIME,CALC_ID, and SITE_ID) CALC_ID is the only key that varies in my batch. It is as if the subquery is not being resolved and written literally to the field. If I try the 1st update by itself in add batch it works. If I try the second it works by itself. If I try them together in the batch it fails. The unique constraint is not violated when I execute them singly.
    Any Ideas?
    Thanks in advance.

    I've found that db2, PreparedStatements and batch updating do not work very well together. I've had to use dynmanic sql and build the update statement myself. Actually I wrote a query parser that builds the statement so I can pass it like a PreparedStatement.
    I'm not sure if your in db2 ver 7 but if so make sure your using fixpack 9. at lot of bad prepared statement behavior.

  • With 10.7.2 update iCal does not allow you to set "Reminders" by draging events from "All Day Events" into "Reminders" is there another way to do this instead of having to type out the entire reminder with date, time, and type?

    With 10.7.2 update iCal does not allow you to set "Reminders" by draging events from "All Day Events" into "Reminders" is there another way to do this instead of having to type out the entire reminder with date, time, and type?
    With Lion 10.7.1. you where able to drag events from "All Day Events" into the "Reminders" bar to create upcoming reminders.

    Exactly the same question I was about to post!
    Great being able to sync reminders (well overdue) however if I have to re-type a calener envent into reminders it's a waste of time!! 
    Come on Apple!!
    Just need an option for the calender event to add to reminder or the old drag to add to reminder functionality back, Please???

  • Batch Updates with Toplink/JPA

    Hi All,
    I am new to JPA/Toplink and I wonder is there a way that we can do the batch updates/insertions using the JPA? If yes please help me how to do it?
    My requirement is this, I need to fetch the n number of records from database and compare with the records from a file and insert/update/delete as required.
    I don't wanted to do it one by one record but as a batch. Is there a way that I can do batch updates/inserts/deletes?
    Any suggestion would be appreciated.
    Thank you.

    Hello,
    I'm not sure how you are going to do the comparison as a batch and not record by record. A JPA query will give you objects back which you can use to compare and make changes to as neccessary. When you commit, the JPA provider will commit those changes to the database for you. TopLink/EclipseLink has options to efficiently comit those changes, even combining them into batches where possible. See http://wiki.eclipse.org/Optimizing_the_EclipseLink_Application_(ELUG)#How_to_Use_Batch_Writing_for_Optimization for details on using batch writing in EclipseLink.
    Best Regards,
    Chris

  • HT4759 I can't update IOS 4.3 to the new IOS 5. Or download the latest verison of I Tunes, on my IPad 2. Because I don't have a computer,but i heard Apple suport can help me with setting it up.

    I can't update IOS 4.3 to the new IOS 5. Or download the latest verison of I Tunes, on my IPad 2. Because I don't have a computer,but i heard Apple suport can help me with setting it up.

    Scroll down and see the "Update Your Device Using iTunes" section here:
    HT4623
    There is no "update icon" in iOS versions earlier than iOS 5.
    The update is very large (over 1.2 gigabytes).  You need a good internet connection to download it to your computer.  Maybe you'll need to take a trip to a city to get a good enough connection.

Maybe you are looking for

  • Secondary display not detected on cold boot, nvidia

    So since a week or two i have this strange problem that if i want to activate my secondary monitor(a beamer is plugged into it) nvidia doesn't find it. If i reboot my pc it works without any problems, restarting X doesn't solve the problem as well. I

  • SSL: how to use Multiple Private key/Certificate pair for authentication.

    Hi all, i am implementing SSL in java using X509 Certificate/private key combination. i have two set of private key/certificate pair. one is factory default and another is generated at run time. my problem is to try ssl connection with both pairs on

  • Display records according month

    hi all. i want to display records according months. i created view something like this. create or replace view month_timer (item1, amount,item_date) as select item1,sum(amount),item_date from table where trunc(item_date) between to_date('01-jan-2010'

  • How do you fix an LCD screen ripple dot in the center of the display (Macbook pro 13 inch late 2011

    There is a small dot that ripples in the center of the screen. I have an Early 2011 macbook pro 13 inch and it should not have any problems with it. Does anyone have suggestions?

  • Problem: Optical audio out

    I just received an iCable from Monster Cable today. I connected it from optical out (imac) to optical in (av receiver). Thing is my computer saying it can not detect the device; "The device selected has no output controls" Not sure what that means. H