How many of the transactions woill be Roll backed?

Hi friends,
Could you please clarify That How many of the transactions will be rollbacked when we say ROLLBACK....?
(For e.g., As a first transaction i used delete command to delete one row from a table of 10 rows....As a second transaction i used update command two times to update two records in the same table....Now i created one table ...after that i said rollback....So how many of the transactions will be rollbacked?)

I'm sure blushadow has heard of all of those, but what does it have to do with the original question?
SQL> CREATE TABLE t AS
  2  SELECT rownum id, TO_CHAR(TO_DATE(rownum, 'J'), 'Jsp') descr
  3  FROM all_objects WHERE rownum < 10;
Table created.
SQL> SELECT * FROM t;
        ID DESCR
         1 One
         2 Two
         3 Three
         4 Four
         5 Five
         6 Six
         7 Seven
         8 Eight
         9 Nine
SQL> DELETE FROM t WHERE id = 1;
1 row deleted.
SQL> SAVEPOINT a;
Savepoint created.
SQL> UPDATE t SET descr = 'Deux'
  2  WHERE id = 2;
1 row updated.
SQL> SAVEPOINT b;
Savepoint created.
SQL> UPDATE t SET descr = 'Trois'
  2  WHERE id = 3;
1 row updated.
SQL> SELECT * FROM t;
        ID DESCR
         2 Deux
         3 Trois
         4 Four
         5 Five
         6 Six
         7 Seven
         8 Eight
         9 NineI agree that at this point, I can rollback to any point in these three statements, however, as soon as I do:
SQL> CREATE TABLE t1 (id NUMBER);
Table created.then the savepoints are gone
SQL> ROLLBACK TO b;
ROLLBACK TO b
ERROR at line 1:
ORA-01086: savepoint 'B' never establishedNow, the documentation says "If you use a SET TRANSACTION statement, then it must be the first statement in your transaction.", and the very first DELETE starts a transaction. and the fact that:
SQL> SET TRANSACTION AUTONOMOUS;
SET TRANSACTION AUTONOMOUS
ERROR at line 1:
ORA-00900: invalid SQL statementis invalid, even if you could use SET TRANSACTION within an already started transaction. I suppose you could do:
SQL> DROP TABLE t1;
Table dropped.
SQL> TRUNCATE TABLE t;
Table truncated.
SQL> INSERT INTO T
  2  SELECT rownum id, TO_CHAR(TO_DATE(rownum, 'J'), 'Jsp') descr
  3  FROM all_objects WHERE rownum < 10;
9 rows created.
SQL> COMMIT;
Commit complete.
SQL> DELETE FROM t WHERE id = 1;
1 row deleted.
SQL> SAVEPOINT a;
Savepoint created.
SQL> UPDATE t SET descr = 'Deux'
  2  WHERE id = 2;
1 row updated.
SQL> SAVEPOINT b;
Savepoint created.
SQL> UPDATE t SET descr = 'Trois'
  2  WHERE id = 3;
1 row updated.
SQL> DECLARE
  2  PRAGMA AUTONOMOUS_TRANSACTION;
  3  BEGIN
  4     EXECUTE IMMEDIATE 'CREATE TABLE t1 (id NUMBER)';
  5  END;
  6  /
PL/SQL procedure successfully completed.
SQL> ROLLBACK to b;
Rollback complete.but it seems like a lot of effort to get around something that you shouldn't be doing in the first place.
John

Similar Messages

  • MDB transaction getting silently rolled back?

              I have an MDB that is doing a delete of a database record in the onMessage method.
              It seems to work fine. I see no errors in the log, in fact I have some debug
              statements that indicate everything was completed normally. I even do a count
              sql using the same where clause and print the results and see a '0'.
              However, when I check the database, the record is still there.
              It seems as if the transaction is getting rolled back somehow. The MDB is transaction
              required/container tx. I never setRollbackOnly anywhere.
              The topic was originally published in a transaction that was rolled back, if that
              makes any difference. In fact, the point of the MDB is to clean up a record that
              was created during the transaction but not within the transaction.
              Any help is appreciated!
              ken
              

              It turned out that the MDB was using a different connection pool than it should
              have, which was pointed to an old copy of the database. So it wasn't really rolling
              back, it really was deleting records as desired, just in the wrong database.
              Thanks
              ken
              Tom Barnes <[email protected].bea.com>
              wrote:
              >Some random ideas:
              >
              >Is the app sending a delete request to the MDB, and
              >the MDB acting on it, before the record is even inserted?
              >
              >Does the delete request have the correct row-id/PK?
              >
              >Is the MDB app failing without your knowledge? You
              >can instrument the MDB onMessage() with a
              >"try catch Throwable" to see.
              >
              >Is the MDB tx timing out trying to get a lock
              >on the row? You can instrument the onMessage
              >with timestamps to see if its taking longer than 30 seconds...
              >
              >Tom
              >
              >Ken Clark wrote:
              >
              >> I have an MDB that is doing a delete of a database record in the onMessage
              >method.
              >> It seems to work fine. I see no errors in the log, in fact I have
              >some debug
              >> statements that indicate everything was completed normally. I even
              >do a count
              >> sql using the same where clause and print the results and see a '0'.
              >>
              >> However, when I check the database, the record is still there.
              >>
              >> It seems as if the transaction is getting rolled back somehow. The
              >MDB is transaction
              >> required/container tx. I never setRollbackOnly anywhere.
              >>
              >> The topic was originally published in a transaction that was rolled
              >back, if that
              >> makes any difference. In fact, the point of the MDB is to clean up
              >a record that
              >> was created during the transaction but not within the transaction.
              >>
              >> Any help is appreciated!
              >>
              >> ken
              >
              

  • How many types of transactions in ABAP

    How many types of transactions in ABAP

    Hi,
    Transactions
    The normal way of executing ABAP code in the SAP system is by entering a transaction code. Transactions can be accessed via system-defined or user-specific, role-based menus. They can also be started by entering their transaction code (a mnemonic name of up to 20 characters) in the special command field, which is present in every SAP screen. Transactions can also be invoked programmatically by means of the ABAP statements CALL TRANSACTION and LEAVE TO TRANSACTION. Transaction codes can also be linked to screen elements or menu entries. Selecting such an element will start the transaction. The term "transaction" must not be misunderstood here: in the context just described, a transaction simply means calling and executing an ABAP program. In application programming, "transaction" often refers to an indivisible operation on data, which is either committed as a whole or undone (rolled back) as a whole. This concept exists in SAP but is there called a LUW (Logical Unit of Work). In the course of one transaction (program execution), there can be different LUWs.
    Letu2019s have a look at the different kind of transactions:
    Dialog transaction
    These are the most common kind of transactions. The transaction code of a dialog transaction is linked to a Dynpro of an ABAP program. When the transaction is called, the respective program is loaded and the Dynpro is called. Therefore, a dialog transaction calls a Dynpro sequence rather than a program. Only during the execution of the Dynpro flow logic are the dialog modules of the ABAP program itself are called. The program flow can differ from execution to execution. You can even assign different dialog transaction codes to one program.
    Parameter transaction
    In the definition of a parameter transaction code, a dialog transaction is linked with parameters. When you call a parameter transaction, the input fields of the initial Dynpro screen of the dialog transaction are filled with parameters. The display of the initial screen can be inhibited by specifying all mandatory input fields as parameters of the transaction.
    Variant transaction
    In the definition of a variant transaction code, a dialog transaction is linked with a transaction variant. When a variant transaction is accessed, the dialog transaction is called and executed with the transaction variant. In transaction variants, you can assign default values to the input fields on several Dynpro screens in a transaction, change the attributes of screen elements, and hide entire screens. Transaction variants are maintained in transaction SHD0.
    Report transaction
    A report transaction is the transaction code wrapping for starting the reporting process. The transaction code of a report transaction must be linked with the selection screen of an executable program. When you execute a report transaction, the runtime environment internally executes the ABAP statement SUBMITu2014more to come on that.
    OO transaction
    A new kind of transaction as of release 6.10. The transaction code of an OO transaction is linked with a method of a local or global class. When the transaction is called, the corresponding program is loaded, for instance methods an object of the class is generated and the method is executed.
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • Does anybody know how many seconds the Cross Fade is on an iPod Nano 4/5th Generation?

    In Settings > Playback > Audio Crossfade - when you turn this to 'On' does anyone know how many seconds the crossfade is for?
    I can't find anything online, it's not in the iPod manual and no-one at my local Apple Store knows!

    It depends on how long the song(s) is.
    For example: I listen to On My Level by Wiz Khalifa and the song last for 4:35 so at the last 6-3 seconds it will crossfade to the next song and you'll missout of the first few seconds of the next song.
    Message was edited by: keeferaf

  • How many times a transaction has been executed

    Hi All,
    I have to make a list on how many times certain transactions have been exectued last year.
    Does any of you have a idea on how to get this list?
    tried already ST03 and STAT but without satisfying result
    We have R/3 4.6B.
    Regards,
    Rod.

    hi,
    use STAD transaction.

  • Can someone tell me how many seconds the cross fade is when running your nano in that mode? I teach spin class and want to know how much time I'm losing in that mode.

    can someone tell me how many seconds the cross fade is when running your Ipod 6th Gen nano in that mode? I teach spin class and want to know how much time I'm losing in that mode.

    You aren't losing any time in that mode, but I believe it is a 10 second fade out/fade in.

  • Find out how many times the application was touched by a particular user

    Hello,
    can anyone please help me out with this issue.
    I want to find out how many times the application was accessed by a particular user,their session IDs for each of the applications in a particular workspace. I am using a role based authorization scheme for my application. I am using Oracle APEX 3.2 version. Are their any underlying APEX tables/Views to find out the above details.
    thanks,
    Orton

    Hi,
    Have you check views APEX_WORKSPACE_ACCESS_LOG and APEX_WORKSPACE_ACTIVITY_LOG
    Regards,
    Jari
    Edited by: jarola on Oct 20, 2010 7:37 AM
    This might help also
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/advnc.htm#CHDDHGJI

  • How to change the transaction isolation level of a CMP?

    How to change the transaction isolation level of a CMP from SUN's Deployment Tool? So far I can't find any entry for this setting.

    Anuradha W wrote:
    That means, currently the only way tospecify the transaction level is through
    weblogic-ejb-jar.xml deployment descriptor?
    for WLS-generated code, yes.Somewhat related to this question, we have written a standalone testcase to reproduce this issue we have been having. Basically, the issue is that even though we configure the isolation level to a non-default one in the deployment descriptor, the connections returned by the datasource seem to be having the default (which is Read Committed). The DBMS is DB2.
    weblogic-ejb-jar.xml has the following set:
    <isolation-level>TransactionRepeatableRead</isolation-level>
    And we printed the isolation level of the connection returned from a method in the EJB, but the isolation level is still the default. I can share the code to reproduce the problem if you want to take a look at it. Please let me know how I can get that across to you.
    Thanks,
    AnuradhaIf you are using our JDBC driver for DB2, or can switch to it,
    just for a test, there is some debug I'd like from you.
    Joe

  • How to run the Transaction Code - BIC for Bank keys uploading

    Hi
    How to run the Transaction Code - BIC for Bank keys uploading.
    please give me suggestion.
    Thanks
    Indu

    Go to BIC transaction screen
    Fill the selection screen parameters as below
    1. Update Run (Test Run: Check Off: Real Run:Check On)
    2. Set Deletion Flag (Check On)
    3. Maximum no. of records: 999999
    4. Detail List (Check On)
    5. Display variant: 1SAP
    6. Presentation server (Select Radio Button)
    7. Application server (Deselcet Radio button)
    8. File name and Path: Select relavant file which is to be upload
    9. Bank country: If needed (Give respective country name)
    10. Select execute button or F8
    NOTE: Make sure that before executing run execute TEST RUN by deselecting Update Run check box
    Hope this will meet your requirement
    Thanks.

  • How to execute the transaction SCI

    Hi All,
    How to execute the transaction SCI
    Thank you,
    Sridhar.

    Hai ,
    there are two ways to use SCI , one is you open you code in se38 -->display mode --> Program >check>code inspector. here your program is executed with a dafault variant provided in SCI.
    Second method is go to SCI , create a inspection  an choose a variant , here system provide you with a wide range of program checks (security/syntax etc)
    For any further help.
    Do reply.
    Regards
    Jase

  • How to attach the transaction to the workitem.

    hi all,
    please suggest me how to attach the transaction code to the workitem.
    thanks in advance,
    Naval Bhatt

    hi,
    sorry my question was not clear.
    Its about the workitem in  workflow.
    we can attach the object to the workitem passing the object to the Adhoc objects
    can we attach some transaction too?
    thanks in advance
    Naval Bhatt

  • How Many times the report has run

    Dear All,
    I am trying to find out if there is any standard report which shows me as to how many times the Z or Y repor has been used.
    This is really needed for me decide.
    with regards
    Ranjith Singh

    we created a solution that reads the information from STAT and stores it in a custom table for later retreival. we can then more closely monitor the amount of statistics kept without basis involvement. the function module to read the STAT information is:
      call function 'SAPWL_STATREC_READ_FILE'
           destination servers-rfcdest
           exporting
                read_client                 = sy-mandt
                read_end_date               = pstop
                read_end_time               = pstopt
                read_exclude_username       = 'SAPSYS'
                read_start_date             = pstart
                read_start_time             = pstartt
           tables
                v2_normal_records           = stats
           exceptions
                wrong_parameter_combination = 1
                others                      = 2.
    it takes some time to develop history, but we can now go back over a year to look at run time and execution trends by program, both ours and SAPs.
    HTH

  • How to count how many times the caller calls by using UCCX script?

    Hi there,
    My customer wants to do a few changes for their script as below:
    At the beginning of the script they are planning to add a new menu item, it will announce their new privacy policies and to continue the user must press the number one to continue to the Welcome.  If they do not press 1 then the message should repeat itself and if they again do not press 1 they should be transferred over to a live operator who will explain things and then be able to transfer them back to the message so that they can press 1 and continue.
    I modified their script as attached file, but i don't know how to count how many times the caller calls in "Get Reporting Statistic".
    Any helps would be appreciated.
    Thanks.

    Hi Aaron,
    At beginning, i want to use a variable to get number of mistake for the same caller, then we will send the call to right place to fulfill the customers' needs. 
    Do you have any suggestion for the new posted script?
    Thanks.

  • ?? About how many downloads the apps are getting

    If anyone can help, it would be appreciated. Either first hand knowledge or information you have heard or read would be fine.
    I am doing market research and wonder how many application/game downloads are really occuring in the App Store/iTunes for iPhones/iPod Touch devices. I know how many total downloads they have (200 million), but any only concerned with Paid Apps/Games. So if anyone can answer these questions or share some light, thanks
    1) How many of the 200 million downloads are from paid apps
    2) Does anyone know how many paid downloads it takes to take the #1 spot daily, #10 spot, #25 spot, and #50 spot
    3) How many apps/games have you paid for, and how many free ones have you downloaded.
    Thanks again.

    jdawson1960
    Your posting is clearly outside the stated purpose of these forums and your user account is being blocked on that account.
    This is a Java forum, not a market research site.
    db

  • How many of the codd's rules are supported by oracle?

    hai any body of you please tell me how many of the codd's rules are supported by oracle.....?

    as far as i remember
    oracle follows 11 of the 12 rulesCare to name the one you think is missing?
    Taking the Wikipedia definition of Codd's 12 Rules (there are of course thirteen of them), this is what we find:
    Rule 0: The system must qualify as relational, as a database, and as a management system.
    This is a little circular, and there are people who argue over whether Oracle (or any other existing RDBMS) is truly relational
    Rule 1: The information rule
    Oracle stores its information as values in column positions within rows of tables.
    Rule 2 : The guaranteed access rule
    Oracle has primary keys.
    Rule 3: Systematic treatment of null values
    Many view this rule as Codd's biggest mistake but undeniably Oracle does treat nulls systematically.
    Rule 4: Active online catalog based on the relational model
    SELECT * FROM USER_TABLES; QED
    Rule 5: The comprehensive data sublanguage rule
    Oracle's implementation of ANSI SQL satisifies this one.
    Rule 6: The view updating rule
    Oracle allows us to update key-preserved views.
    Rule 7: High-level insert, update, and delete
    Oracle has set-based insert, update, and delete.
    Rule 8: Physical data independence
    Tick in the box.
    Rule 9: Logical data independence
    Tick in the box (we can argue about LOB storage as a special case).
    Rule 10: Integrity independence
    Well of course Oracle does this, much to the annoyance of our chums in the OO application building world.
    Rule 11: Distribution independence
    yep, unless we are so boorish as to expose our database links in the FROM clause instead of using synonyms...
    Rule 12: The nonsubversion rule
    Oracle does this alright (This is why it's a bad idea to use triggers to enforce relational integrity instead of foreign key constraints).
    Cheers, APC

Maybe you are looking for

  • Error message in  adf

    hi how can i pass the error message in adf in forms used to do like this if :sms_users.new_pwd = :sms_users.pwd then           error_message := 'New password can not be same as old password'; cg$form_errors.PUSH('SMS-'||to_char(9300004)||': '||error_

  • Why all gray in sidebar? Lost functionality!

    I've just upgraded (? not convinced I'm seeing an improvement) from 10.6.8 to 10.9.3 and am very disappointed to see that everything in the sidebar is shown in shades of gray. I've used FolderBrander for many years to color code my finder folders and

  • EJB Reference Configuration

    Hi, I have 2 ears say Ear1 and Ear2 for my application,which are deployed in clusters.Ear2 is having Ejb which is being called from Ear1. EJB reference is required for communication between Ear2 and Ear1.i am setting the below value to Target Resourc

  • External Monitor Calibration Error

    Hi everyone, I have a MacBook Pro 15 connected to a LaCie 321 display via the MiniPort to DVI adapter. When I try to calibrate using the LaCie Blue eye Pro I get an error message. I've been told by LaCie supoprt that the display needs to be conected

  • HP Ipaq rx1955

    Hello, I have the HP Ipaq rx 1955 and have no trouble connecting to a Windows XP PC, but the rx1955 will not get recognized by any Macintosh computer. I purchased PocketMac Software for my Mac and that too can not see this Device.I have read reviews