Oracle 9i - Is there any way to trace the amount of rollback statements ?

Hi,
we're running Oracle 9.2.0.5.0 and we would need to monitor the amount of rollback statements executed on a specific table.
Turning on traces for "set events '10046 trace name context forever, level 1'" would be too much invasive given the current load of the system so that was wondering if there was any quicker way to do that.
Thanks in advance!
Mike

Did not want to raise another issue :)
We have a few huge tables which we need to monitor in terms of activities so that we're using triggers to update some oracle sequences keeping track of the action performed on them.
basically the trigger only increase the sequence value.
CREATE OR REPLACE TRIGGER xxx_Summary_Trigger
AFTER INSERT OR UPDATE or delete ON xxx
FOR EACH ROW
declare dummy number(10);
BEGIN
     IF :New.xxx_Status = 'used' THEN
          SELECT used_plus.nextval into dummy from dual;
     ELSIF :New.Card_Status = 'activated' THEN
          SELECT activated_plus.nextval into dummy from dual;
     END IF;
     IF :Old.xxx_Status = 'used' THEN
          SELECT used_minus.nextval into dummy from dual;
     ELSIF :Old.xxx_Status = 'activated' THEN
          SELECT activated_minus.nextval into dummy from dual;
     END IF;
END;
So that each time the xxx_Status is updated we have an updated sequence (nocache) which allows us to get the overall distribution without a long scan on the table (hosting more than 200M records).
I know triggers are not the best way to approach, not to mention they fire before a commit, so that in case of a rollback the resulting sequence would be showing a wrong value.
But this was only a quick and dirt approach, which works fine for the time being. I just wanted to confirm the inconsistencies we are encountering are due to some rollbacks which mislead the trigger, that's why I was interested in getting a stat on the rollback statement execution.
We get discrepancies every now and then, so that leaving traces on for a long time may be disruptive.
Thanks!
Mike

Similar Messages

  • Is there any way to increase the amount of space for all day events?

    I have iCal on my ipad and my phone, and when I look at the daily view or weekly view, only 1 1/2 lines are shown. If I have a few events that are all day (I keep several calendars) then I have to scroll through them one at a time. And with my fingers, sometimes they go by too fast. Does anyone know how to increase the amount of space? I am using an iPad3, and an iPhone 5, both with ios 7.
    Thank you!

    With Mac OS X, there is no way for you to alter the amount of real memory a program is allocated. This is all done dynamically by the OS. OS X's virtual memory management is far better than 'ole OS 9's.
    What are saying about a memory leak? I take it that Safari is continually using more and more memory. How much memory is it usually taking up after a few hours? Perhaps you should just quit and restart Safari every few hours before it begins failing to respond.

  • Is there any way to repeat the last action on a new selection?

    I'm playing with Pages to see if I can use it instead of Word. I'm very expert with Word, just starting with Pages. Like some things, don't like some, but I think it's worth continuing to play with it to see if it will work for me. One problem I've been having is repeating an action. In Word, if you do something (in the particular situation I just had, it was deleting a row in a table), and then click on another place and do command-Y, it repeats what you did. Similarly, if you format a word as bold, say, and then select another word and do command-Y the second word will also be made bold. I realize the latter can be done in pages by selecting "emphasis" style for the second word, but I couldn't figure out any work-around for deleting the table rows (I tried selecting several non-adjacent rows, but "delete row" was greyed out on the actions menu). Any way to do this that I've missed?

    Thanks anyway. I'm sorry that Apple didn't include a "repeat" keyboard shortcut - going to the Inspector and then the actions wheel and then "delete row" time after time wasn't fun.
    I'm afraid I failed to communicate well about outline format - I didn't mean a bulleted or numbered list, I do know how to do that, but rather making a single character (or in my particular interest a symbol, the diamond and heart suit symbols) appear in outline text format. You can do it by going to format->font->outline, but if I want to do it for several occurrences of the same thing (or a few different things), it's not much fun to do it that way. But maybe I can define a character format that's outline and that will work. Still would prefer to have a keyboard shortcut to apply the character format though.
    Incidentally, while I'm talking about diamonds and hearts, is there any way to change the amount of space that gets put in after the diamond and heart symbols if you insert them using Edit->Special Characters? I write a lot of documents that use those symbols and lines end up unevenly spaced because of the large amount of space below each symbol (I've figured out a partial work-around - I defined a style for "body after suit symbol" that is raised enough to get the line spacing right, but that only works when I want to have a hard return at the end of the line with the suit symbols, since if the lines wrap, both lines have to have the same paragraph formatting. This problem isn't really Pages related - I have the same difficult with Word .

  • Is there any way to trace my session

    Is there any way to trace my session even when i forgot to fire
    spool file name .................

    Tkprof can give you all information below
    [http://www.orafaq.com/wiki/TKProf]
    TKProf
    From Oracle FAQ
    Jump to: navigation, search
    TKProf is an Oracle database utility used to format SQL Trace output into human readable format. The TKProf executable is located in the ORACLE HOME/bin directory.
    [edit] Start TKProf
    Syntax is:
    tkprof input.trc output.prf [options]
    Example:
    $ tkprof orcl102_ora_3064.trc output.prf EXPLAIN=scott/tiger SYS=NO
    [edit] Sample output
    For the above example, the output would be in file output.prf:
    Tkprof: Release 9.2.0.1.0 - Production on Tue Dec 24 15:32:43 2002
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Trace file: ORCL102_ora_3064.trc
    Sort options: default
    count    = number of times OCI procedure was executed
    cpu      = cpu time in seconds executing
    elapsed  = elapsed time in seconds executing
    disk     = number of physical reads of buffers from disk
    query    = number of buffers gotten for consistent read
    current  = number of buffers gotten in current mode (usually for update)
    rows     = number of rows processed by the fetch or execute call
    select *
    from
    employee where emp_id = 3737
    call     count       cpu    elapsed       disk      query    current        rows
    Parse       10      0.00       0.03          0          0          0           0
    Execute     10      0.00       0.00          0          0          0           0
    Fetch       20      0.34       0.35         72       4730          0          10
    total       40      0.34       0.39         72       4730          0          10
    Misses in library cache during parse: 1
    Optimizer goal: CHOOSE
    Parsing user id: 59
    Rows     Row Source Operation
          1  TABLE ACCESS FULL EMPLOYEEAnother insteresting link
    [http://www.dbspecialists.com/files/presentations/use_explain.html]

  • Is there any way to trace my session even when i forgot to fire  spool

    Is there any way to trace my session even when i forgot to fire
    spool [file name] .................

    No, not as fa as I know.
    Traces of a session and spool are not related.
    You need to set an audit trail to trace a session.
    Spool simply spools to a file your work in SQL*Plus.
    Hope this Helps

  • Hi,i lost my iPhone few hrs ago...is there any way to trace it...?

    Hi,i lost my iPhone few hrs ago...is there any way to trace it

    thanksss to al.. i do download 'find my phone,but dnt remember activate or not.
    someone walked in my shop n stole it? or the contractor worker took it?cant lodge report cause cant find serial no.
    al contact gone..!
    once again thank guys!

  • Is there any  way to Mask the Name when  a select statement is issued?

    Dear all,
    Is there any way to mask the name .. i mean if User issue a select statement in a customer table the real name should come like ' ABCXXXDEFXXCFXX'... Which is not the actual name?
    e.g if Name: CHIEV SONG MEE
    If user issue a statment select * from customers;
    The Result Should come something Like this:
    Name
    CHXXV SXNG MXX
    Thank You

    user3029023 wrote:
    but it seems there is no option in oracle it self which can be used as there they are saying to get a data masking software which we can't due to some internal issues....I would not say that. How one implements masking depends entirely on the requirements that need to be met.
    For example, schema A owns all the tables. Schema B can be created as a "trusted" schema - in other words, schema A trusts schema B and allows it full access (with grants) to its tables. Schema B implements data masking as views. For each table in A, a view exists in B that implements the required masking. B can now grant select access on these views to user C. User C will see the same data object names in B as it would have if it used A - only, by using the B data objects it uses masked data objects and not the original source data objects.
    Another example - schema Dev is to have all the data objects of schema Prod, but masked where needed. One can use CTAS (Create Table As Select) to create the required tables in Dev with masked values where relevant. This Dev schema can be "refreshed" on weekends by dropping all tables and getting a new fresh copy of production data and masking it - ready for the next week's development cycle.
    If the application use is for example APEX, then instead of coding SQL directly as reporting regions to display, a function is used instead. APEX supports reporting regions where it calls a function and this function provides the APEX run-time with the SQL to execute and contents to render. It is easy to use this approach to implement logic in functions that masked column data depending on who the APEX user is, the security/role attributes of the user, and so on.
    No there is not a single "+mask this column!+" feature in Oracle.. but that does not mean that such a feature is not supported and cannot be implemented. Oracle has a very comprehensive and rich set of tools - more so than most (if not all) other RDBMS products.
    It is up to the architect/designer/developer to use this toolkit in creating a system that meets the specific requirements at hand.

  • Is there any way to disable the objects owned by a user?

    Hai every body....My problem is..
    I had created 60 users granting them connect and resource privileges in oracle(8.1.5.0.0).All of the users are working under their logins(users)...Every thing is going fine...But now i wanted to disable the objects owned by those users
    (60 Users) for a period of 2 days,After that i wanted to enable them....Is there any way to disable the objects owned by them with out dropping the users?(The users should be able to work as prevoiusly on the new objects they will create after i disabled the objetcts owned by them previously)?

    hi
    if my understanding is right you want to disable the users for 2 days for any reason let say he is on holiday for 2 days then why dont u lock this user and submit the job for unlock after two days.
    Khurram Siddiqui
    [email protected]

  • Is there any way to change the label of my VO attributes

    hi ,
    Is there any way to change the label of my VO attributes so that it will have more logical presentation
    Thanks
    Musahib

    Hello Alex,
    I 've just checked my webbeans and the COLUMN_NAME_LABEL property is not use by the EditCurrentRecord, FindForm and RowsetBrowser webbeans.
    I had the following line to my custom EditCurrentRecord, FindForm and RowSetBrowser.
    So I can set Column display name ones for each webbeans.
    It's better than do it with different methods for each webbeans!!!!
    if((String)qView.getProperty(attrs[attrNo].getColumnName() + "_LABEL") != null)
    rField.setPromptText((String)qView.getProperty(attrs[attrNo].getColumnName() + "_LABEL"));
    In the ViewCurrentRecord something was done but with errors. Oracle Developers used getName() method instead of getColumnName()!!! So I rewrite it.
    if((String)qView.getProperty(attrs[attrNo].getName() + "_LABEL") != null)
    sHeader = (String)qView.getProperty(attrs[attrNo].getName() + "_LABEL");
    Hope this will help!
    Email if you need more.
    [email protected]
    Jean-Nokl

  • Is there any way to collect the file list from UTL_FILE_DIR.

    I expect the use "Oracle supplied package UTL_FILE" to import our customer order shipments to table by XML format files. I already did the procedure to import one XML file into Table by DBMS_XMLSave.insertXML and UTL_FILE. GET_LINE. And it did work.
    My question is :
    Is there any way to collect the file list from UTL_FILE_DIR. (I put all import XML files into `/usr/tmp?, I want to get all file names from this folder and feed them into UTL_FILE.FOPEN.)
    Thanks in advance

    UTL_FILE_DIR is a very dangerous and deprecated parameter. Oracle very specifically recommends not using it. You should be using directory objects instead.
    As for doing a directory listing, you can use Java stored proc. External procs/functions are not required.
    The following sample shows how to use such a Java stored proc to insert the result of a directory listing into a session temporary table:
    create or replace and compile java source named "ListFiles" as
    import java.io.*;
    import java.sql.*;
    public class ListFiles
            public static void getList(String directory, String filter)
            throws SQLException
                    File path = new File( directory );
                    final String ExpressionFilter =  filter;
                    FilenameFilter fileFilter = new FilenameFilter() {
                            public boolean accept(File dir, String name) {
                                    if(name.equalsIgnoreCase(ExpressionFilter))
                                            return true;
                                    if(name.matches("." + ExpressionFilter))
                                            return true;
                                    return false;
                    String[] list = path.list(fileFilter);
                    String element;
                    for(int i = 0; i < list.length; i++)
                            element = list;
    #sql {
    insert
    into directory_list
    ( directory, filename )
    values
    ( :directory, :element )

  • Is there any way to prevent the OS from querying the Superdrive when start

    Just a random question. Whenever my MacBook Pro starts up (either from sleep or a complete/fresh start, the OS queries the drive slot to see if there is a disc present. While this may be normal behavior, it seems to slow down the start up process. (I rarely ever have a disc in the drive). Just curious if this, in fact, normal, or if there's something awry.

    Is there any way to prevent the OS from querying the Superdrive when start
    No
    he OS queries the drive slot to see if there is a disc present.
    How can you tell? Based on the noise it makes?

  • Is there any way to retreive the FileName in the mapping

    Is there any way to retreive the FileName and so that I can use that in my mapping. This is FILE2RFC scenario with NO BPM.
       I am using the adapter specific message attributes in the file sender CC.
    Thanks,
    Ravi
    null

    Yes you can retreive it.  Create an simple user defined function in the mapping and use the following code.
    Imports: com.sap.aii.mapping.api.*;
    Parameter: String filename
    Paramter: String filename;
    filename = fileName + ".DAT";
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, filename);
    return filename;
    Or
    Just do whatever mentioned in this weblog:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    ---Satish

  • Is there any way to identify the particular socket connection is closed ?

    Is there any way to identify the particular socket connection is closed or not ?
    Any methods ???
    How can the program knows the connection is lost or some thing ...
    Is the socket throws some excpetions when there is no active connection ???
    namanc

    If you get an IOException when you try to use the socket, the connection was obviously closed.
    The correct way for an application to know if the socket was closed is:
    1) the server sends a message indicating that the socket should be closed
    2) the client closes the socket itself

  • Is there any way to get the height/width of an image before importing it in the indesign document.

    Hi All,
    I need to obtain an image's attributes such as dimensions (height, width in pixels) without placing image in indesign document.
    I have full path of the image (say abc.jpg is stored at c:\my pic\abc.jpg).
    I have obtained the IDFile for this image, tried getting size using GetFileSize() which correctly return size in bytes.
    Is there any way to get the height/width of image without importing it in the indesign document.
    Please, give me some hints. I have spent quite a lot time digging in CHM. I have searched in FileUtils, IDFile API's but found no method which serves this purpose.
    At this point I am clueless where to search next.
    Any help will be appriciated.
    Just a point to mention, I am able to get image height and width for an image in indesign doc though Its not my requirement.
    Thnx,
    D.

    You might be able to examine the contents of the PlaceGun after calling kImportAndLoadPlaceGunCmdBoss without actually placing the image in a document. Not sure, but would be worth looking at.
    Otherwise you will probably have to write platform specific code, ideally with a generic platform-independant wrapper (see SDKSamples/paneltreeview/PlatformFileSystemIterator).
    For the Mac, look at CGImageGetWidth() etc., not sure what the best option is for windows.
    Perhaps Quicktime could provide you with a platform independant solution.

  • Is there any way to specify the default version of LabVIEW?

    I have a sinking feeling that the answer to this question is "no."  With more than one version installed, is there any way to set the default LabVIEW version for opening a VI? I have both 7.1 and 8 installed, and usually only use 8 to open an example or look at something posted here.  When I do that, it resets all the OS hooks so that the default action for opening a VI is to open it in version 8.  I've even gone so far as to create actions to open files in 7.1 and 8, but it always resets my default action.
    I found this KB article for when version 7 came out, but it's suggestions don't seem to work with 7 and 8.
    Ugh. I hate it when software thinks it knows what I want better than I do.

    eaolson wrote:
    I have a sinking
    feeling that the answer to this question is "no."  With more than
    one version installed, is there any way to set the default LabVIEW
    version for opening a VI? I have both 7.1 and 8 installed, and usually
    only use 8 to open an example or look at something posted here. 
    When I do that, it resets all the OS hooks so that the default action
    for opening a VI is to open it in version 8.  I've even gone so
    far as to create actions to open files in 7.1 and 8, but it always
    resets my default action.
    I found this KB article for when version 7 came out, but it's suggestions don't seem to work with 7 and 8.
    Ugh. I hate it when software thinks it knows what I want better than I do.
    Add
    in the LabVIEW.ini file of those versions you do not want to rewrite
    the registry on startup to point to themselves for VI files, the
    following:
    RegisterExtensions=False
    Of course the VersionChooser utility mentioned earlier is even more convinient.
    Rolf Kalbermatter
    Message Edited by rolfk on 06-28-2006 08:21 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for