Finding if there are any outstanding commits in session

hi,
can anyone tell me a way of finding (in PL/SQL) if there are any DML statements which have been executed and have not yet had a commit or rollback issued?
i was thinking maybe i could use sql%rowcount, but it does not appear to persist outside a pl/sql block, and not through the whole session like I thought it did.
thanks,
pete

There is a presumption in Oracle that we manage our transactions properly. It should not occur that we find ourselves in a situation where we do not know the status of our transaction. A transaction is a set of steps along a predetermined path. In all but the most complicated transactions we should be able to trace all possible routes through the transaction and consequently know all possible statuses.
As a general rule, if you find yourself at the end of your transaction and you've handled all the exceptions then you should issue a commit. If you find yourself in a situation in which you need to undo any changes then you should issue a rollback. Don't bother trying to establish whether there are any changes: just do it.
SQL%ROWCOUNT has no scope beyond the previous SQL statement (it's not cumulative). Consequently, it's not a very reliable guide to the total state of the whole transaction. Besides, even if SQL%ROWCOUNT equals zero (e.g. an update that affected no rows) you still have a resource lock on the table. No other session can execute DDL on that table until you issue a commit or rollback.
Cheers, APC

Similar Messages

  • HT2506 I use Preview to edit photos, and would like to know if there are any Preview updates in the works. I find there is a problem with Preview crashing, or taking a very long time to "catch up" (spinning beachball of death) while I'm editing.

    I use Preview to edit photos, and would like to know if there are any updates to this program in the works. It seems Apple is constantly updating its software, except for Preview. I find it crashes all too often, and also takes forever to "catch up" with me (as in spinning beachball of death) when I'm editing a lrge amount of photos. Yes, I know I should be using Photoshop or somesuch, but it's just too **** confusing, and I don't have the time to figure it out. Thanks!!

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the name of the crashed application or process in the Filter text field. Select the messages from the time of the last crash, if any. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, look under User Diagnostic Reports for crash reports related to the crashed process. The report name starts with the name of the process, and ends with ".crash". Select the most recent report and post the entire contents — again, the text, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • Lightroom 5.7.1, Yosemite OS X - Synchronise Folder function doesn't work in Lr. Is there a compatibility issue? I can see the folders/images in Finder but when trying to synchronise folders in Lr it does not recognise that there are any images and theref

    Lightroom 5.7.1, Yosemite OS X - Synchronise Folder function doesn't work in Lr.
    Is there a compatibility issue? I can see the folders/images in Finder but when trying to synchronise folders in Lr it does not recognise that there are any images and therefore unable to import to catalogue. Anyone has any idea how to make it work. Thanks a lot.

    Hi Elba,
    Thank you very much for your reply. Not sure, however, that we are talking about the same problem.
    I am trying to perform the same function in Lr that I have been doing for many years in the past and has only been a problem in the last few days (possibly coinciding with upgrading to Yosemite, trying to find out whether that is the problem)
    I am not intending to sync any files with Creative Cloud but only trying to use 'Synchronize Folder' function in Lr. Normally, I would right click on a particular folder in Lr catalogue and click on that function to check that the Lr Catalogue is perfectly matching my drives where the original photos are actually stored.
    The problem that I only started to encounter is that I can see the files on the actual drives but they do not appear in my Lr Catalogue and they are completely invisible to Lr. I simply can not get Lr to recognise them and then import them to catalogue.
    If for example, I export images to Ps and then save and close them, they do appear on my drive but are invisible to Lr and I can't get them imported into the catalogue. Import to folder also not producing any results as they are still invisible to Lr.
    Completely baffled by it. Any idea what could be the reason?
    Kind regards,
    Nik

  • [svn] 4637: Update config testsuite on blazeds/ trunk to run mxunit tests for a configuration if there are any mxunit tests found in the configuration test directory .

    Revision: 4637
    Author: [email protected]
    Date: 2009-01-23 04:40:16 -0800 (Fri, 23 Jan 2009)
    Log Message:
    Update config testsuite on blazeds/trunk to run mxunit tests for a configuration if there are any mxunit tests found in the configuration test directory. Change some things around in the mxunit build.xml to make this possible, mainly allow things like test directory, reports directory etc. to be passed in as ant properties.
    Add browserServer.jar to the qa-regress-sdk.zip file used for regression runs.
    Update blazeds/trunk to use the latest qa-frameworks.zip.
    Checkintests: passed
    Modified Paths:
    blazeds/trunk/qa/apps/qa-regress/build.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/build.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/build.xml
    blazeds/trunk/qa/resources/frameworks/qa-frameworks.zip

    Just checked but could only find this thread Unable to run ADFBC JUNIT Test Classes with JDEV11G 11.1.1.6
    As it's also dealing with junit and 11.1.1.6.0 you might want to read it.
    Timo

  • Find if there is any common record in two internal tables

    hi,
    I have two internal tables of same structure... say A and B.
    I need to know if there are any common lines in them.
    one way is to loop in any one of them and keep executing a read on the other.
    can anyone suggest a better way.
    thanks,
    Arindam.

    Hi Arindam,
    To find common records in two internal tables, they can be compared
    If INT_DATA1 EQ INT_DATA2.
    endif.
    The first criterion for comparing internal tables is the number of lines they contain. If two internal tables contain the same number of lines, they are compared line by line, component by component.
    If the internal tables contain the same number of records and are sorted on the same key, the comparison stops at the line where the records are not common. For example, if the number of common records is 4, the comparison stops at the 5th line and sy-tabix becomes 5.
    Hope it helps.
    Regards,
    Nupur

  • I've downloaded some free games for my iphone4 but they are using my internet because they have ads. does anyone know if there are any games that don't have these ads and don't require internet AT ALL?and if i disable my internet connexion, does it help?

    i've downloaded some free games for my iphone4 but they are using my internet because they have ads. does anyone know if there are any games that don't have these ads and don't require internet AT ALL?and if i disable my internet connexion, does it help?

    Thank you. I put it in airplane mode like you suggested, but it looks to me like all the applications and ads are still running. Anyway, I'm just gonna play when I'm really really bored and use them as less as possible. Thank you again for your quick answer.

  • Although I have been using Google Maps App in India for a while now (without any issues) but I still want to know if there are any plans for launching Turn by Turn Navigation under the OOTB Map App for iOS?

    Although I have been using Google Maps App in India for a while now (without any issues) but I still want to know if there are any plans for launching Turn by Turn Navigation under the OOTB Map App for iOS?
    It has been quite a while since Apple came up with Map App of their own and should be releasing improved maps with more capabilities in India.
    Cheers!
    Abhishek

    No one here can answer your question, as there is no one from Apple here, & no one here represents Apple or speaks for Apple.

  • HT4914 Can I use iTunes match if I am not sure whether there are any pirated songs in my library

    Can I use iTunes match if I am not sure whether there are any pirated songs in my library

    iTunes match should work for that. I am assuming your friend gave you some music from a flash drive, and yor not sure if he/sh pirided it or not, and this is understandible. this screen shot should help. I also sugest looking into google play, which is not as convienet as far as combining with iTunes, but is free I bleive.

  • Find whether there is any text frame in given co-ordinates

    Hi there,
    I'm using adobe indesign 2.0.2 and vb 6.
    I want to find whether there is any text frame existing in the given co-ordinates.
    Please help.
    Thanx
    Robin

    You need to tackle this the other way around: get references to all the text frames (on the spread, I suppose) and compare their coordinates with those of interest.
    Dave

  • What is the command to check if there are any active calls before restarting the voice router?

    what is the command to check if there are any active calls before restarting the voice router? thanks

    Hi.
    I can suggest show call active voice or show voice call status or show sip-ua call brief in case of SIP TSP.
    HTH
    Regards.
    Carlo

  • I have not been able to use facetime on my iPhone 5 and my daughters iPod 5 since yesterday. Does anyone know if there are any problems with apple?

    I have not been able to use facetime on my iphone 5 and my daughtes ipod 5 since yesterday...does anyone know if there are any issues with apple?

    As these are user to user support forums, there will be no official response from Apple posted here. 
    Basic forum ettiquette is search before posting, so why post again if you've already searched?  Seems rather unintelligent.

  • Hi my wife uses micro soft office to do her wedding stationery etc and we have recently bought an iMac.can anyone tell us if there are any similar or better programs for a mac

    Hi my wife uses micro soft office to do her stationery for weddings etc. We have recently bought an imac and was wondering if there are any similar or better programs out there for a mac.thanks

    John Galt wrote:
    In no particular order,
    LibreOffice (donation-supported)
    NeoOffice (free)
    OpenOffice (free)
    In addition to the above I also recommend Apple's Pages ($19.99). I use OpenOffice and Pages and have been completely Microsoft - free for over a year now. Life is better without Microsoft.
    Just an FYI John, NeoOffice is no longer free, (but it is cheap at least)

  • Final System Build... Stop me if there are any deal breakers...

    ASUS Sabertooth X58
    COOLER MASTER HAF 932
    CORSAIR CMPSU-750TX 750W ATX12V
    CORSAIR Vengeance 12GB (3 x 4GB) 240-Pin DDR3 SDRAM DDR3 1600
    EVGA 012-P3-1470-AR GeForce GTX 470 (Fermi) 1280MB
    Intel Core i7-950 Bloomfield 3.06GHz
    ARCTIC COOLING Freezer 7 Pro Rev.2 92mm Fluid Dynamic CPU Cooler
    Microsoft Windows 7 Professional 64-bit 1-Pack for System Builders - OEM
    SAMSUNG Black 12X BD-ROM 16X DVD-ROM 48X
    (1 X)Western Digital VelociRaptor WD3000HLFS 300GB 10000 RPM (Boot Drive)
    (2 X) SAMSUNG Spinpoint F3 HD103SJ 1TB 7200 RPM 32MB
    (1 X) SAMSUNG Spinpoint F4 HD204UI 2TB 5400 RPM
    Folks, this is it.  After reading around, all of your suggestions, and waiting for months, I am now ready to order!  If there are any last minute changes i NEED to make, feel free to suggest... but at this point, I really just need to pull the trigger...

    Power supply calculator http://extreme.outervision.com/index.jsp
    Or http://educations.newegg.com/tool/psucalc/index.html?Tpk=power%20supply%20calculator
    I personally would not go less than 850 watt

  • HT4642 Dear Support team,   There are any way to open Microsoft Excel - Office by using CSV format

    Dear Support team,
    There are any way to open Microsoft Excel - Office by using CSV format
    best regards

    For the record, this is a user-to-user support forum. You aren't actually addressing Apple.
    I'm not clear what you are trying to do, but Numbers will open a CVS file adn will export to CVS (as well as Page, Numbers, and PDF) using the document function (looks like a box with an arrow; upper left). If this isn't what you are looking for, perhaps you could provide a bit more detail.

  • I would like to know if there are any classes in using the iphone in the South Bay area (around Torrance) of Los Angeles County?

    I would like to know if there are any classes in using the iphone in the South Bay area (around Torrance) of Los Angeles County?

    Apple stores have classes, look online for the Apple store closest to you & their schedules. Here's Apple's free iPhone app to do so right on your phone:
    http://itunes.apple.com/us/app/apple-store/id375380948?mt=8

Maybe you are looking for

  • XML Publisher Email through Bursting Control File 11i EBS HRMS

    Hi there Is there any body tells me about the security of the XML Publisher Bursting? I have to email hrms pdf data from XML Bursting, Is it secure? Is there any document I can read about the security? Asim Thanks

  • How I solved my 5g iPod connection to iTunes & Updater on PC - in detail!

    This can only work if your iPod will show up in Windows. It's been three months and two pods since it all began, but here's how I did it (I really hope this helps someone - if it does pass it on, there are hundreds, maybe thousands, of people out the

  • Sound Reset on Xserver reset

    This is something that has just recently started happening. Every time I reset my xserver (ctrl-alt-backspace) it puts my sound back to 'default settings' which include everything being muted and some other settings back. I'm not quite sure why it's

  • Crashing while sorting photos in book

    i-photo quits as I am relocating photos in the book. At first I thought it was a matter of speed or care, but it quits however carefully I do it. It quits with greater frequency (I cannot get past four pages of changes) since I upgraded the preferenc

  • Set WorkItem ID in IDM 7

    I'm having trouble setting the work item ID in IDM 7. When I set the work item name, it only changes the name value in the work item XML object. The ID value, which is required for links, etc, remains a new unique value generated when the work item i