Way to count commits and updates in a procedure

Gday,
I want to trace a procedure at runtime to see how many updates and commits are being made when it runs.
What is the best way to accomplish this?
Cheers

ALTER SESSION SET SQL_TRACE=TRUE;
-- invoke the problem SQL here
ALTER SESSION SET SQL_TRACE=FALSE;
now find the trace file within ./udump folder
tkprof <trace_file.trc> trace_results.txt explain=<username>/<password>
post the contents of trace_results.txt back here

Similar Messages

  • Count records and update total in table

    I have a class schedule that people use to register for a class. The schedule displays how many people are registered but that is a manual entery be me in the database. Is there a way to set this up to where all of the registrations for a class are counted and the total displayed in the schedule?
    Using Access 2007.
    registratron form
    action page
    schedule page
    thnks Jim

    Hi Again,
    I tried both the subselect and the two query method with no luck. The two query method did return less errors. I have included code and would really appreciate some feeback  thank you --jim
    form--------------------- 
    <cfinput type="text" name="name" message="Please enter your full name." required="yes" id="name">
            </div>
    <div class="register">
    <label for="county">COUNTY:</label>
      <cfselect name="county" query="qcounty" value="county">
                <option value="" selected="selected">Select a County</option>
                </cfselect></div
    <div class="register">
    <label for="email">EMAIL:</label>
                            <cfinput type="text" name="email" message="Please enter a valid email address" required="yes" validate="email"></div>
                <br />
              <div class="register">             
                <cfinput type="submit" name="submit" value="Register">  <cfinput type="reset" name="Reset " value="Reset Form">
           </div></fieldset></cfform>
    action page-------------------
      <cfinsert datasource="WebAdmin" tablename="mobiltyTrainingRegistration"
              formfields=" Name, Email, County, Phone1, Phone2, Phone3, Class, classID, Comment">
    <!--- populate #registered field in schedule--->
              <cfquery name="qAttendance" datasource="webAdmin">
           select count(class) as total
           from mobiltyTrainingRegistration</cfquery>
           <cfquery name="qAttendance" datasource="webAdmin">
           insert into mobilityClassSchedule(status) values ("#qAttendance.RecordCount#")</cfquery>
    schedule page-------------------------------------
    <cfoutput query="training">
        <tr>
          <td class="c7" width="39%" align="left" style="font-size:0.90em;"> #Class#</td>
            <td class="c7" width="19%" align="center" style="font-size:0.90em; text-align:left;">#Location#</td>
            <td class="c7" width="21%" align="center" style="font-size:0.90em;">#DateFormat(DropDate, "mmm-dd-yy")#</cfoutput>
      <cfoutput query="qAttendance">
              <td width="21%" align="center" style="font-size:0.95em;">#qAttendance.Recordcount#</td> 
    </tr></cfoutput></table>

  • Counting even and odd values

    Is there another way to count even and odd number than this one
    private static int countEvenOrOdd(int[] array, boolean countEvenNumbers){
              int count = 0;
              int remainderRequired = (countEvenNumbers ? 0 : 1);
              for(int i = 0; i < array.length; ++i){
                   if(array[i] % 2 == remainderRequired){
                        ++count;
              return count;
         }

    > I like hacking ;-) Have a look at this: ...
    Jos, you forgot the method for counting both:int countOddsAndEvens(int[] array) {
    return (countOdds(array) + countEvens(array));
    } ; )Yep, you're right, and for completeness reason I'd like to add the following:int countOthers(int[] array) {
       return array.length-countOddsAndEvens(array);
    }And for those junit maniacs:boolean testCounters(int[] array) {
       return countOddsAndEvens(array)+countOthers(array) == array.length;
    }btw, the moment I posted my previous reply I realized that I could've done better:int countOdds(int[] array) {
       int c= 0;
       for (int i= 0; i < array.length; c+= array[i++]&1);
       return c;
    }kind regards,
    Jos ( <-- never has to maintain others' code ;-)

  • Execution results (Merged instead of inserted and updated)

    I am doing UPDATE/INSERT on the target table. But in the execution results it just gives the rows inserted or updated combined in the merged column.
    Is there a way to get inserted and updated in appropriate columns.

    I have not tried this recently - but I know the MERGE statement wasn't introduced until Oracle 9i. If you CONFIGURE the oracle module the map is in, and change the PL/SQL generation mode from "Default" to "Oracle 8i", I think it'll change the SQL to use INSERTS and UPDATES instead of the MERGE, which should give you what you want.
    Warning though - this will change EVERY map in that module, and recompile using less efficient SQL. You might create a module just for the one map and set the generation mode for it, so that all the maps won't become less efficient.
    Then again, the easier way is probably to simply have both an UPDATE_DATE and CREATE_DATE on your target table...if they are the same it was an INSERT, if different it was an UPDATE.
    Hope this helps,
    Scott

  • Hi, I am trying to update an iPhone 4 from iOS 4.3.3 to iOS 7.0.4, and every time I try to update it comes up with an error message saying that there was a problem because the network connection was reset. Is there any way I can get past this and update?

    The full message said:
    There was a problem downloading the software for the iPhone "Judy's iPhone 4". The network connection was reset.
    Make sure your network settings are correct and your network connection is active, or try again later.
    I am trying to update the iPhone for my grandmother, Judy, as I am leaving for Paris on Wednesday night and we want to have Facetime installed on her iPhone before then, so we can stay in contact with each other. It is the simplest way for this to happen but the program simply will not allow me to update her iPhone.
    Is there any way to get past this error and update her iPhone? Any help will be greatly appreciated.

    Dear Jody..jone5
    Good for you that can't update your iphone because I did it and my iphone dosen't work for example I can't download any app like Wecaht or Twitter..
    Goodluck
    Atousa

  • I am trying to buy songs on itunes and half way through the terms and conditions come up, I accept them and press return and then I get a 'session timed out' notice and the sale hasn't gone through - tried loads of times / updating software, any answers?

    I am trying to buy songs on itunes and half way through the terms and conditions come up, I accept them and press return and then I get a 'session timed out' notice and the sale hasn't gone through - tried loads of times / updating software, any answers?

    I am trying to buy songs on itunes and half way through the terms and conditions come up, I accept them and press return and then I get a 'session timed out' notice and the sale hasn't gone through - tried loads of times / updating software, any answers?

  • TS4083 Is there a way or a setting my folders in Mail to automatically update across all devices? if I transfer an email to a folder for follow-up on my PC, my folder in Mail on my iPhone doesn't update until I actually go into the folder and update manua

    Is there a way (or a setting) for my individual folders in Mail to automatically update across all devices? For example, if I transfer an email to a folder for follow-up on my PC - say 10th of the following month - the same folder in Mail on my iPhone doesn't update until I actually go into the folder and update manually.  Interestingly though, if I create a new folder on any of my devices they automatically appear on the other devices so it is just the actual contents that I am referring to here.  Appreciate any help or guidance.
    Regards
    Justin

    You can turn mail off in the settings but then you can't use it for anything, including the "test" that you want to perform.
    Settings>Mail, Contacts, Calendars>Account Name>Mail>Off. That totally turns off the mail account.
    As long as mail is turned on and you launch the app, it will look for an download new mail.

  • I was updating to IOS 8 thru iTunes on my 4S and it came unplugged. Now it wants me to restore settings. Is there a way to undo this and get 'old' phone back with all of my info/pics/contacts/etc?

    I was updating to the IOS 8 thru ITunes on my 4S when it came unplugged from the computer (dumb dog). Now the phone just has an image of plugging in to the ITunes icon and when I plug it in it says its in recovery mode and needs to be restored to original settings and I will lose all of my contacts/photos/etc. Is there a way to reverse this and just get my 'old' phone back with all of my stuff? I only have the free ICloud storage so I know most of my stuff will be lost. Yes I know..,hindsight is 20/20 on buying the backup. Help please!

    In short. No, you cannot unsync.  If you had a back up from your old iPhone you cand restore from a back up.
    In iTunes go to Edit > Preferences > Devices > and select the latest back up. 
    Before you synced your phone did you have it set up with the PhotoStream or iCloud? The pictures would be saved there.  Or if you had them sync to a file on your computer.

  • I've downloaded the ios7 to my iphone but it didn't verify so I connected my iphone to itunes and updated it .. it's now stuck half way through saying 'updating iphone software' it's been like that for 40 mins .. should I be worried?

    I've downloaded the ios7 software to my iphone but it didn't let me install it over air so I connected my iphone to itunes and updated it .. it's now stuck half way through saying 'updating iphone software' it's been like that for 40 mins .. should I be worried?

    I imagine a ton of people are attempting to activate after the update, and the server is getting overloaded. Simple patience, maybe keep trying, and if possible, try a little later. Think of it as all those people lining up at Apple Stores + about a million more.

  • I updated to ios 8.3 and i hate it! Is there a way i can uninstall the update and go back to the one before this?

    I updated to ios 8.3 and i hate it! Is there a way i can uninstall the update and go back to the one before this?

    I'm sorry, but Apple does not provide a downgrade path for iOS. Because downgrading is unsupported by Apple we cannot discuss it on these forums.
    You may leave comments at Apple Feedback.

  • HT201365 I just updated to ios 7 on my iPhone 4 how do you turn the apps off when your not using them? The old way of double clicking and then pressing the app until a red minus button comes doesn't work it opens it back up!?

    I just updated to ios 7 on my iPhone 4 how do you turn the apps off when your not using them? The old way of double clicking and then pressing the app until a red minus button comes doesn't work it opens it back up!?

    Double click home button, then swipe up on app picture (not the icon itself)

  • I just bought a 25 dollar gift card on itunes in another state and now when i logged on and updated my ipod it says i dont have any credit. is there a way to get that back?

    i just bought a 25 dollar gift card in another state on itunes, spent 6 dollars and when i came back home and updated my ipod it said that i had no credit. is there any way to get that back?

    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • I've forgotten my pass-code to my Ipod touch 4g and when I try to restore and update it on my itunes library the internet connection cuts out. Is there another way to fix this problem? Cheers

    I've forgotten my pass-code to my Ipod touch 4g and when I try to restore and update it on my itunes library the internet connection cuts out so this is not an option. Is there another way to fix this problem? Cheers

    The only way is to connect the iPod to a computer with has an internet connection and iTunes and restore the iPod. Use as friiend's computer or make an appointment at ther Geniuds Bar of an Apple store.

  • HT4623 I bought my iPad from a friend and updated to iOS 7.1. Now in order to activate it I need to sign in using the original iTunes account but I can't contact the owner. Is there a way to get past this or should I toss my iPad into the garbage?

    I bought my iPad from a friend and updated to iOS 7.1. Now in order to activate it I need to sign in using the original iTunes account but I can't contact the owner. Is there a way to get past this or should I toss my iPad into the garbage?

    Ask previous owner to remove his device from account
    http://support.apple.com/kb/TS4515

  • After installing lion and updating to pages 4.1 cannot view my document content after I open the document.  Shows how many pages I have and how many words in word count, but no words...

    after installing lion and updating to pages 4.1 cannot view my document content after I open the document.  Shows how many pages I have and how many words in word count, but no words...

    Same problem. Tried reinstalling Pages. Didn't help. The behavior is like I am typing with a white font on a white background, but I am not.

Maybe you are looking for