Rollback the data in DB Adapter

Hi,
I have 2 db adapters, if i got error in 1 db adapter then how to rollback?
Thanks in adv,
Kpr

Hi',
If you want to roll back the transaction use XA database.
If the database cant be configured to XA, then you can rollback
manually inside catch all block
-Yatan

Similar Messages

  • Rollback the data after TRUNCATE

    Hi All,
    By mistake if i truncate a table,is there any way to get back data.
    I mean can i recover data after i issue TRUNCATE TABLE .
    Thanks

    Are you sure?
    satyaki>
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Elapsed: 00:00:00.02
    satyaki>
    satyaki>
    satyaki>create table Test_SAM
      2     as
      3       select * from emp;
    Table created.
    Elapsed: 00:00:01.06
    satyaki>
    satyaki>
    satyaki>select count(*) from Test_SAM;
      COUNT(*)
            14
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>delete from Test_SAM;
    14 rows deleted.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>commit;
    Commit complete.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select count(*) from Test_SAM;
      COUNT(*)
             0
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>insert into Test_SAM
      2     select *
      3     from Test_SAM as of timestamp(sysdate - 1/1440);
    14 rows created.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>commit;
    Commit complete.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select count(*) from Test_SAM;
      COUNT(*)
            14
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>truncate table Test_SAM;
    Table truncated.
    Elapsed: 00:00:00.05
    satyaki>
    satyaki>
    satyaki>select count(*) from Test_SAM;
      COUNT(*)
             0
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>insert into Test_SAM
      2     select *
      3     from Test_SAM as of timestamp(sysdate - 1/1440);
    insert into Test_SAM
    ERROR at line 1:
    ORA-01466: unable to read data - table definition has changed
    Elapsed: 00:00:00.00
    satyaki>Regards
    Satyaki De.

  • How to fetch,update,insert the data using database link on diff. servers

    I am using two oracle server.
    1st) Oracle 9i ( Server1 )
    2nd) Oracle 10g ( Server2 )
    3) Forms 6i
    I have created a database link on Server 1 for connecting to Server 2.
    I written a piece of code which will be executed in Forms 6i and is connected to Server1.
    The piece of code brings the data from SErver2 via cursor and I try to insert / update the relevant records
    in my Server1 database users.
    The Insert/Update runs sucessfully but at the time of commit I get the following errors
    in Forms ORA-01041:internal error. hostdef does not exist.
    Then it forcefully rollback the data and come out of the application.
    contact :email-id : [email protected]

    Suggest you test your code from sqlplus before running from forms.
    Start by testing a simple "select sysdate from dual@<database link>;" then test select from application_table@<database link> then test the insert/update code. After it works from sqlplus, then try it from forms.

  • XI Adapter Engine Not picking the data from FTP Server ?t

    Hi All
    We have upgraded oracle in our landscape
    from 10.0.2.0.2  to 10.2.0.4.0
    we have Redwood System , which runs the interfaces
    Redwood initiates Our Satellite  XI  system to pick  the data from the ftp server
    but after the upgrade , it is not able to pick the data from the ftp server .
    when checked in the Satellite XI Adapter engine getting following error
    "XI Engine Error occurred while connecting to the ftp server  java.net.socketException:Connection Reset"
    but we are able to ftp from Satellite XI Adapter engine to  ftp  system manually  but why Satellite XI Adapter engine is not the
    picking the file (ie data) from the ftp server.
    Immediate Response  is highly appreciated
    Regards
    Edited by: sidharthmellam on Nov 23, 2009 11:54 AM

    Hi Sidharth,
    Please give me the FTP connection parameters mentioned in the channel.
    Did you try stopping and starting the channel ?
    If not please stop and start the channel.
    Also catch the default trace and paste it.
    Cheers...,
    Raghu.

  • Vaildating File name with the data in the file using sender file adapter

    Hi,
    Below is the scenario
    1)       Pick up files from a FTP server, the file name is dynamic, how do I put dynamic name in sender file adapter?
    2)       Determine if the user correctly named the file based on data in the file.
    a.       File naming structure that we will be concerned with is <company_code><accounting_time_period>.<extension>
    b.      The company code and the time period in the file name have to match the data in the file.
    i.      For example.  If the file name is 1001_200712.csv and the data in the file is for company code 1005, time period 200712, the file is incorrectly named.  Both values must be correct.
    How do we do this?

    Hi Sachin,
                    As Rightly said by Krishna, You can not put Dynamic name in sender File Adapter .You have to provide the name of the file like "*.txt" in Sender Adapter and at runtime you can access this file name by using following UDF:
    DynamicConfiguration conf  = (DynamicConfiguration) container
      .getTransformationParameters()
      .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String valueOld = conf.get(key);
    return (valueOld);
    As now you have picked up the file name at runtime.
    Now concatenate source file fields Company_code and Accounting_timeperiod using "_" as delimiter in properties.Also concat the extension .Now you have required file name.
    So using EQUALS standard function ,compare it with File Name fetched at runtime using above given UDF, and pass result as you desire to process further or not or to raise Alert to resend the file.
    Thanks & Regards,
    Anurag Garg
    You can validate this file name in Mapping itself.

  • How  Sender SOAP Adapter will retriew the data  to process further

    How  Sender SOAP Adapter will  receive the data  to send the integration server to process further

    Hi,
    1. All details are always taken from the Sender Agreement.
    For the Sender File adapter and the Sender SOAP adapter , the details that include are , Sender Service, Sender Interface Name and namespace and these are the details that make up the SOAP header when the message hits the integration Engine.
    Once the corresponding Adapter for the message is identified, ie. the Sender SOAP adapter , the message for the SOAP header is then taken from the Sender Agreement of that adapter. This is the exact reason why one Sender Adapter can be involved in one and only one Sender Agreement.
    Regards
    Bhavesh

  • Zip the data and send through JDBC adapter.

    hi,
       I need to retrive the data from database, zip it and send to xi. At the receiver and i need to unzip it.
    I know that it can be achieved using java mapping. Is there any other solution?

    Hi,
    This will help you
    Zip-Transfer-Unzip: Increase the performance of your Java-ABAP applications
    Working with the PayloadZipBean module of the XI Adapter Framework
    REgards
    Seshagiri

  • I killed my MBA.  i want to remove the SSD and remove the data.  Is there an adapter for the drive?

    subject pretty much sums it up.
    i need to remove the drive and pull the data from it using another pc.  is there an adapter, usb or otherwise, that fits that drive?
    Is it microsata?
    My mba is late 2011.

    Here is the exact adaper/housing.
    http://eshop.macsales.com/item/OWC/MAU3ENVOY/

  • 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

  • MI: the data objects in the SCV dont have the active DOE triggered adapter

    We try to use SDOE_LOAD on MI7.1 to do the initial load.
    However, we get the error:
    "the data objects in the SCV dont have the active DOE triggered adapter."
    We cannot find a fix anywhere.
    Please help. thanks a lot!

    Hi,
    Assuming that you are using 7.1 in non-backward compatibility mode.
    1. The client post the update/delete/insert request to DOE in bound queue.
    2. The DoE post these messages to the BE.
    3. Meanwhile, after posting all the message client starts reading outbound messages in DoE till the outbound queue is empty.
    4. WHILE the client is reading outbound messages in 3. above the BE has validated the update/delete/insert request and posted a confirmation/rejection messages to DoE outbound queue the message will flow down to the client in the same sync cycle.
    However, if it's posted to DoE after the client has finishing syncing with DoE the message will flow down to the client in the next sync.
    So you see it cannot be guaranteed that the ocnfirmation/rehection message will flow down to the client in the same sync cycle.It may or may not happen.
    I hope this clarifies.
    Best Regards,
    Amit

  • Rollback Without access to the Data Base

    How to carry through rollback without having access to the Data Base?
    tank you.

    Bom, seguinte....
    Eu gostaria que ao executar um rollback no JUNavigationBar não fosse acessado o Banco de Dados, e que fosse apenas atualizada a linha corrente com os valores antes da alteração, mas não estou conseguindo fazer isto, ele sempre esta acessando o banco e como eu tenho bastante registros ele esta ficando lento.
    Eu implementei a questão da ordenação de tabelas em memória, achei que poderia ter algo parecido para o rollback.
    Obs: Eu só deixo o usuário inserir ou alterar uma linha por vez. Por exemplo, ele não pode alterar várias linhas e depois salvar.....ele é obrigado a editar ou inserir uma linha por vez.
    Desde já, Obrigado.
    Message was edited by:
    Edinei Manica

  • How to Set corrid using JMS adapter in ESB while inserting the data in JMS

    Hello all,
    Can any one help me in setting the corrid using JMS adapter in ESB.
    I haven't been able to find any clues.
    We can do this in BPEL but my adapter is in ESB and i have no idea how this can be done in ESB.
    Your help is highly appreciated.
    Thanks,
    Saurav
    Edited by: sauravsingla on Oct 7, 2009 10:46 AM

    hi
    you could do this from and xsl transformatuion by use of the .. function
    see :
    http://biemond.blogspot.com/2008/02/esb-adapter-failover.html
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=658502 (comment of AmitSoaDev, he sets correlationid too)
    hope this helps, gl

  • How can I rollback from Yosemite to Lion? I need to do this as I purchased a newer iMac and I have the old 17" iMac HD that I want to get the data migrated from. When I start the Migration Assistant it tells me that the OS X version is too old. Help!

    I have purchased a newer mid 2011 iMac for my wife to replace her dead 17"iMac from 2006. It was running Snow Leopard. The new iMac has Yosemite and when I go into Migration Assistant it tells me that the OS X is too old, implying that I cannot get the data from it. How can I migrate this data to the new iMac? I have the hard drive removed and in an external enclosure connected to the new iMac.
    Thanks,
    Bill Stratman

    Since any OS since Lion does not support Rosetta or PPC applications, you may want to check her apps for compatibility.
    Have you tried to follow all the instructions here:
    OS X Yosemite: Transfer your info from a computer or storage device
    Also, as a general note: when you got the 2011 iMac did it have the original OS installed as required by the SLA? The seller is to remove any OS version obtained at the app store since the license is not transferable - did he do that? If not, as the OS download is tied to the Apple ID used to obtain it, you will not be able to update apps or reinstall the OS, so may I suggest you do this step now before you start porting over all the files. Use Internet Recovery: Hold Command + Option + R while restarting/rebooting until you see a spinning globe and a progress bar. After 2 - 10 minutes, you'll be connected to Apple's servers and see a Utilities window. Go to Disk Utility and choose erase your drive; once finished, go back to the window and choose to reinstall OS X. This should install a fresh original OS version which you can then update and tie to your wife's Apple ID.

  • How can i rollback the tasks done by webservice?

    Hi,
        I am implementing a webservice.
        Which posts data in a DB as well as SAP.
        posting data into DB has to be implemented by calling ejb.
        posting data into SAP has to be implemented by calling XI webservice.
        For this i am assuming like this way...............
        Call the ejb to post data into DB.
        Call the XI webservice to post data into SAP.
        If XI webservice is executed properly then commit the transaction to post data   into DB.
        But there may be another possibility ...........
         While commiting the transaction if any exception comes ,
         How can i rollback the XI webservice?Is it possible to rollback the webservice
         after it is executed?
         Can any one guide me.
    Regards
    Madhu

    The other solution could be the XI WebSerice should handle multiple targets which I mean, instead of two separate calls to DB and XI you can have single call to XI WebService which will take care of SAP transaction as well as DB transaction with JDBC Adapter. I am not a XI expert but as per my knowledge you can achieve this through BPM.
    Regards
    Abhilash

  • " Can not interpret the data in file " error while uploading the data in DB

    Dear All ,
    After running the below report I am getting the " Can not interpret the data in file " error.
    Need to upload the data in DB through excel or .txt file.
    Kindly advise to resolve the issue.
    REPORT  ZTEST_4.
    data : it like ZPRINT_LOC occurs 0 with header line,
    FILETABLE type table of FILE_TABLE,
    wa_filetable like line of filetable,
    wa_filename type string,
    rc type i.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
    CHANGING
    FILE_TABLE = filetable
    RC = rc.
    IF SY-SUBRC = 0.
    read table filetable into wa_filetable index 1.
    move wa_filetable-FILENAME to wa_filename.
    Else.
    Write: / 'HI'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    start-of-selection.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = wa_filename
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'
    TABLES
    DATA_TAB = it.
    IF SY-SUBRC = 0.
    Write: / 'HI'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    insert ZPRINT_LOC from table it.
    if sy-subrc = 0.
    commit work.
    else.
    rollback work.
    endif.
    Regards
    Machindra Patade
    Edited by: Machindra Patade on Apr 9, 2010 1:34 PM

    Dear dedeepya reddy,
    Not able to upload the excel but have sucess to upload the .csv file to db through the below code. Thanks for your advise.
    REPORT  ZTEST_3.
             internal table declaration
    DATA: itab TYPE STANDARD TABLE OF ZPRINT_LOC,
          wa LIKE LINE OF itab,
          wa1 like line of itab.
                       variable  declaration
    DATA: v_excel_string(2000) TYPE c,
           v_file LIKE v_excel_string VALUE    'C:\Documents and Settings\devadm\Desktop\test.csv',  " name of the file
            delimiter TYPE c VALUE ' '.         " delimiter with default value space
         read the file from the application server
      OPEN DATASET v_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    write:/ 'error opening file'.
      ELSE.
        WHILE ( sy-subrc EQ 0 ).
          READ DATASET v_file INTO wa.
          IF NOT wa IS INITIAL.
            append wa TO itab.
          ENDIF.
          CLEAR wa.
        ENDWHILE.
      ENDIF.
    CLOSE DATASET v_file.
    EXEC SQL.
         TRUNCATE TABLE "ZPRINT_LOC"
    ENDEXEC.
    *------display the data from the internal table
    LOOP AT itab into wa1.
    WRITE:/ wa1-mandt,wa1-zloc_code,wa1-zloc_desc,wa1-zloc,wa1-zstate.
    ENDLOOP.
    insert ZPRINT_LOC from table itab.

Maybe you are looking for