Session at which was the bulk operations (DML) during the period determined in the Source database?

Hi all


How to find which session was in bulk (DML) operations on a particular period in the Source database?


The source database: SRCDB - version: 11.2.0.3 (2 node RAC on RHEL OS)

Target database: TGTDB - version: 11.2.0.3 (Non-RAC)

Source-> target (United directional Replicat use of Goldengate)


In our (source) database, I have observed that some inserts in bulk / updates which happened and because of this corresponding Replicat, database was a delay to apply updates/insert and there was a lag (treatment gap) happened in the target database.

When I checked the source database, I was unable to find that the session/SQL caused the bulk INSERT/UPDATE/DELETE (batch), since the transaction has already finished.

1. is as possible to get the story SQL_ID or generated Session operations more Redo/DML

for example: the current time is 11:00 and I need to get the session/caused sql operations dml in bulk between 09:00 and 11:00?

2. when I checked the history of SQL (dba_hist_sqlstat) time-based CPU, I found some instructions update. But I was unable to find the update caused SQL more updates to a table.

For example: -.

Update t1 set attribut1 = 'XX' where SHIPMENT_GID =': p1' / * it has updated 100 rows * /.

Update t1 set attribut1 = 'XX' attribut1 = "YY" where SHIPMENT_GID =': p2' / * it has updated 5000 lines * /.

Please provide relevant SQL to identify in above cases...

Kind regards

Veera

column MODULE format a15

column BEGIN_INTERVAL_TIME format a25

column END_INTERVAL_TIME format a25

Select distinct from a.*

(

Select sql.snap_id, sql.module, sql.sql_id, decode(t.command_type,2,'INSERT',6,'UPDATE',7,'DELETE') cmd_type,

s. BEGIN_INTERVAL_TIME, s. END_INTERVAL_TIME, sql. EXECUTIONS_TOTAL, sql. ROWS_PROCESSED_TOTAL,

SQL. ELAPSED_TIME_TOTAL/1000000 "elapsed time (in seconds).

of dba_hist_sqlstat sql, dba_hist_snapshot s, dba_hist_sqltext t where s.snap_id = sql.snap_id and sql.sql_id = t.sql_id

and s.begin_interval_time BETWEEN to_date ('03 - Apr - 2013 16:00 "," dd-mon-yyyy hh24:mi:ss')

AND to_date ('03 - Apr - 2013 17:00 "," dd-mon-yyyy hh24:mi:ss')

and sql.sql_id

IN

(

SELECT distinct stat.sql_id

Of dba_hist_sqlstat stat

JOIN dba_hist_sqltext txt ON (stat.sql_id = txt.sql_id)

JOIN dba_hist_snapshot snap ON (stat.snap_id = snap.snap_id)

WHERE the snap.begin_interval_time between to_date ('03 - Apr - 2013 16:00 "," dd-mon-yyyy hh24:mi:ss')

AND to_date ('03 - Apr - 2013 17:00 "," dd-mon-yyyy hh24:mi:ss')

AND txt.command_type in (2,6,7)

)

) a.snap_id asc order

;

I hope that this sql help.

Kind regards

Harman

Tags: Database

Similar Questions

  • I received a note indicating that my MAC might be infected by a virus and she said to call a 1-866 number, which was the support Apple... is this true or a scam

    I received a note indicating that my MAC might be infected by a virus and she said to call a 1-866 number, which was the support Apple... is this true or a scam

    It's a scam

    Whatever you do, do not call this number

  • Informatica Workflow not able to connect to the source database.

    Hello

    I completed the installation of OBI Apps.All test connections are working properly and I have also configured the relational connection in Informatica Workflow.The passwords, user name and connect string are correct. Tasks that need to connect to the source database fail always when I run an ETL. I checked the logs of these workflow session and he gave me following error:

    READER_1_1_1 > DBG_21438 Reader: Source is [UPG11i], [obiee] users
    READER_1_1_1 > CMN_1761 Timestamp event: [Fri Sep 05 18:01:37 2008]
    READER_1_1_1 > RR_4036 error connection to the database]
    Database driver error...
    Function name: logon
    ORA-12154: TNS: could not resolve the connect identifier specified

    Database driver error...
    Function name: connect
    [Database error: unable to connect to the database using the user [obiee] and the connection string [UPG11i].]

    DAC, I am able to connect to the databases. There seems to be a problem in relational connections. What are the drivers involved and where they should be installed.

    Help, please.

    Thank you and best regards,
    Soumya.

    It seems that the TNS Informatica file is pointing to is not the appropriate for your database entry. The the more safe thing to do is to verify that all the settings Oracle containing information in the source database.

  • How to export PSIBWSDL of the source database

    Hello

    I have the following error when running UPGCOUNT. In Metalink doc, it is suggested to PSIBWSDL to the export of the source database.

    How should I do?

    Thank you.


    What is the error, I don't see the error message.

  • How to add the source database

    On the source database server have 4 instances.
    I already have install Oracle Audit Vault Agent on this server.
    And when I add the source source DB user, I can't found all role (e.g. DV_ACCTMGR) DV

    My approach is
    On Server1 (Audit Vault Server)
    -Install Oracle Audit Vault Server to Server1
    -addagent on Server1 «avca add_agent nom_agent - HOLTUU1 - agenthost 192.0.66.87»

    The server Server2 (Audit Officer Vault)
    -on this server have 4 instances
    -Create user 'oaudit' OS, create ORACLE_BASE ORACLE_HOME
    -Install Oracle Audit Vault Agent

    I mistaked perhaps one or more step.
    Please suggest me

    Dear suredch,

    Yes you are right, this will create a new House and you need to change the House to use AV agent.

    and the 2nd is the difference between the AV and DV?
    they are all two different products. you don't have to be confused. There is no need to use database on the database.you source vault can add your source database to server AV without database Vault.

    and ultimately that ask you database configurations, dear they are the recommended settings, you need to do to add data source to av server.

    Well my dear you can personally send me on [email protected] so i can give u a full doc include the entire process step by step, I used in my scenario, it would be the best practice for you. and you fight understand.

    Concerning

  • ODI filter to the Source database.

    Dear all,

    I'm trying to add filters in the source. I managed to addining the source filter as xyzinterface. Period = "JAN".

    However I love just for the filter in the list as Jan, Feb, Mar... Nov, dec.

    Please suggest.

    838332 wrote:
    Dear all,

    I'm trying to add filters in the source. I managed to addining the source filter as xyzinterface. Period = "JAN".

    However I love just for the filter in the list as Jan, Feb, Mar... Nov, dec.

    xyzinterface. Period ("January", "February",...)

    Please suggest.

  • What was the last Creative Suite, which can be purchased without a monthly subscription to Adobe (on Mac)?

    Hello, I'm stuck in CS4 on Mac, so I'll try to understand what is happening with the newer versions of CS. apologies if I got things completely wrong.

    I heard that you have now for rent Creative Suite. What version of CS started the subscription service and it's subscription ONLY, or you can buy it purely and simply as (as with the previous editions)?

    If the news is subscription ONLY, which was the latest version of CS which can be bought in the normal way, so to speak?

    Kind regards

    John

    CS6 is the last version that can be purchased on a license basis, but this possibility begins to fade. It is more than 3 years now and as operating systems become less compatible, it will one day makes no sense at all for Adobe to offer it, or it will make sense the user to buy an incompatible product.

    Mylenium

  • screan died after windows 7 ultimate mode to a processor with a speed of less than 1 GHZ, which is the minimum required

    Hello

    I installed windows 7 ultimate 32 bit on some portable computer whitout looking for processors speed exactly, for my friend. so my friend told me a day later that the laptop making a horrible noise and the screan is a functioning either. so I took the laptop with me to see what is the problem. I have attached the laptop to my computer screen and I see that the CPU uses 100% of its power. so I touthg that I had made a mistake with the installation of windows 7 ultimate for a lower speed of the processor.  my friend now is request to me to pay for the screan damaged his laptop. because I installed a bad program on his laptop, and which was the reason that her computer laptop screan is been dead or damaged.  I asked a store of the computer if the pests from the screan is cause I instaled windows 7 to a more low speed CPU .He said no it isn't because the laptop is old and that's the only reason to dead screen.  now I want to be sure that what you think. can be the windows 7 that's damging to screen because the minimum system requirements processor was not sufficient at all. and the processor or video card was hot enough to destroy the screen, or this incorrect installation has nothing to do with the damage, the light from the screen.

    Thank you

    Johan

    JD

    The screen is probably not dead or damaged.  You can't tell until you run it on the laptop in its former operating system.

  • How to get the source of the event of the value property changes of Manager?

    I'm relatively new to JavaFX, so maybe that is an easy question to answer. I have created in Java code number (for example, 5) ChoiceBox instances. I add a handler for when changing the value of the ChoiceBox. My code:
    ChoiceBox<String> rpmSelector = new ChoiceBox<>();
    ObservableList<String> rpmSelectorItems = FXCollections.observableArrayList();
    rpmSelectorItems.add(ALL_RPM);
    for (Double engSpeed : engSpeeds) {
        rpmSelectorItems.add(String.format("%.0f", engSpeed.doubleValue()));
    }
    rpmSelector.setItems(rpmSelectorItems);
    rpmSelector.getSelectionModel().selectFirst();
            
    rpmSelector.valueProperty().addListener(new ChangeListener<String>() {
        @Override
        public void changed(ObservableValue<? extends String> obsValue,
                String oldValue, String newValue) {
           // How can I get the ChoiceBox that was the source of this event?
        }
    });
    My question is: in the method "changed", how can I determine which of the ChoiceBox bodies had its value changed?

    Thank you!

    Chris

    Published by: 976245 on May 15, 2013 13:05

    Published by: 976245 on May 15, 2013 13:05

    Make final rpmSelector and you can refer to it in the ChangeListener.

    final ChoiceBox rpmSelector = new ChoiceBox();
    ...
    rpmSelector.valueProperty().addListener(new ChangeListener() {
      @Override public void changed(ObservableValue obsValue, String oldValue, String newValue) {
         System.out.println("Value changed to " + newValue + " for " + rpmSelector);
      }
    });
    

    You can also pass the choicebox that the listener is for the ChangeListener manufacturer and store:

    final ChoiceBox rpmSelector = new ChoiceBox();
    ...
    rpmSelector.valueProperty().addListener(RpmSelectorChangeListener(rpmSelector));
    ...
    class RpmSelectorChangeListener extends ChangeListener() {
      final ChoiceBox rpmSelector;
      RpmSelectorChangeListener(ChoiceBox rpmSelector) {
        this.rpmSelector = rpmSelector;
      }
      @Override public void changed(ObservableValue obsValue, String oldValue, String newValue) {
         System.out.println("Value changed to " + newValue + " for " + rpmSelector);
      }
    }
    
  • The total size of the backup database and Total database size.

    Hi Experts,

    How can I find the size of the size of the database and the size of the backup with only the RMAN catalog help.
    I use Oracle 10.2.0.5. and Tivoli TSM

    I have

    Hello

    See this doc...
    http://download.Oracle.com/docs/CD/B28359_01/backup.111/b28270/rcmreprt.htm#CHDBIGHG

    Connect to SQL * for the database you intend to question the backup history.

    Ask the view V$ RMAN_BACKUP_JOB_DETAILS for more information on the backup type, status, and the start and end time.

    The following query shows the history of the backup jobs sorted by the session key, which is the primary key for the RMAN session:

    COL STATUS FORMAT a9
    COL hrs    FORMAT 999.99
    SELECT SESSION_KEY, INPUT_TYPE, STATUS,
           TO_CHAR(START_TIME,'mm/dd/yy hh24:mi') start_time,
           TO_CHAR(END_TIME,'mm/dd/yy hh24:mi')   end_time,
           ELAPSED_SECONDS/3600                   hrs
    FROM V$RMAN_BACKUP_JOB_DETAILS
    ORDER BY SESSION_KEY;
    

    Ask the view RMAN_BACKUP_JOB_DETAILS V$ at the rate of tasks of backup in an RMAN session.

    The following query shows the speed of backup job sorted by the session key, the primary key of the RMAN session. The in_sec and out_sec columns columns display the input data and output per second.

    COL in_sec FORMAT a10
    COL out_sec FORMAT a10
    COL TIME_TAKEN_DISPLAY FORMAT a10
    SELECT SESSION_KEY,
           OPTIMIZED,
           COMPRESSION_RATIO,
           INPUT_BYTES_PER_SEC_DISPLAY in_sec,
           OUTPUT_BYTES_PER_SEC_DISPLAY out_sec,
           TIME_TAKEN_DISPLAY
    FROM   V$RMAN_BACKUP_JOB_DETAILS
    ORDER BY SESSION_KEY;
    

    Ask the view RMAN_BACKUP_JOB_DETAILS V$ for the size of the backups in an RMAN session.

    If you run the DATABASE BACKUP, then V$ RMAN_BACKUP_JOB_DETAILS. OUTPUT_BYTES indicates the total size of backup games written by the backup task for the database that you are backing up. To view the backup set sizes for all registered databases, ask RC_RMAN_BACKUP_JOB_DETAILS.

    The following query shows the speed of backup job sorted by the session key, the primary key of the RMAN session. The in_sec and out_sec columns columns display the input data and output per second.

    COL in_size  FORMAT a10
    COL out_size FORMAT a10
    SELECT SESSION_KEY,
           INPUT_TYPE,
           COMPRESSION_RATIO,
           INPUT_BYTES_DISPLAY in_size,
           OUTPUT_BYTES_DISPLAY out_size
    FROM   V$RMAN_BACKUP_JOB_DETAILS
    ORDER BY SESSION_KEY;
    

    The following sample output shows the speed of the backup jobs:

    I hope this will help...

    Kind regards
    Levi Pereira

  • Move the Oracle database to a new server

    What is the best, easy, quick and painless way to move an Oracle (9 and 10 g) database to a new a new server with different directory names?
    (I hope I have not asked too)

    Thanks in advance...

    Depending on the size of the database and the number of exp/imp of tasks that are run at the same time that the use of exp/imp can easily be fast enough.

    When you create a new database and fill through importation, you will have the opportunity through pre-set arrays to move data for purposes of space management. More in bonus all your tables are rearranged. Even if Oracle tables reuse the space that is in them, we recovered a significant percentage of our total table area allocated for re-use. Depending on your application and how it has changed over the years where the space is needed and where it was consumed may be different.

    More important still new features as locally managemed tablespaces and SAMS that may not have existed or have not chosen at the time of the creation of tablespace in the source database can now be implemented.

    A new database also means a new space of system tables. Over time you may find yourself with a few bad data in the tablespace system due to various bugs that have existed over the years. Creation of a new database of vacuum and filling are a way to eliminate these problems.

    The best method depends on your needs, the State of the database from a point of view of management s/n, your new layout of disk, the amount of data and the time in which you must work. Sometimes slow, DBA work involved method is the best solution.

    IMHO - Mark D Powell-

  • How to sort or search for the source of the camera

    I use the Photos for OS X. I sometimes used multiple cameras on a trip and then I want to merge them into a single stream. It would be very useful if I could sort or search on the source of the camera in the Photos. I've found that displaying information about the photo opens a window, which is the source of the camera. This isn't a practical way to do it when you have hundreds or more photos to browse. Ideally, I could import them separately and put on labels, but for those who are already imported, it is not so obvious.

    Thank you

    File menu ==> new smart album - criteria camera is [the desired camera]

    LN

  • How to access a button inside a MovieClip that is the source of a scrollpane?

    Hello world

    I created a crollpane in my flash file and the source of the pane scrolling is a movieclip that contains a button.

    Now, I want to add a function to stop this button to link to an image in the main timeline.

    Could someone tell me what is the right as3 code to access this button?

    Thank you!

    To target the movieclip which is the source of the pane scrolling you can use:

    MovieClip (sp.content) / / where sp is the name of the instance of scrollpane

    So, to target the button with this movieclip...

    MovieClip (sp.content).btn.addEventListener (... etc.

  • OWB 11 GR 2: prevent the designer of data written to the source of the oracle

    Hello

    After having implemented a model of metadata Oracle source I can start a deployment that trying to write the changes to the source. Although I wonder if I do not know at this, I can ruin my source confirming this.

    11 GR 2, I was not able to score so the source model. I was able to create a user with limited rights on the schema of the source database.

    Question a: what are the minimum security for a user of the source settings?
    Question b: is there no way to eliminate build and deploy options for a source of Oracle?

    Thank you
    Georg

    Published by: georgo on 27.04.2011 10:35

    Published by: georgo on 27.04.2011 11:02

    Hi Georg

    You can configure the module and set the property to "Déployable" false. This will disable any type of deployment.

    See you soon
    David

  • Go to the source of a table of contents entry

    I know that I can use the Bookmarks panel to go to the source of the page of a table of contents entry. Is it possible to go to the source of the paragraph so that the text cursor will go to the exact paragraph which is the source of the table of contents entry?

    Jay fresno wrote:

    Petteri,

    As you suggested, I created a shortcut for the command of hyperlinks: go to Destination.

    However, my table of contents entries are not in the hyperlinks Panel. they are listed in the Bookmarks panel. So, I don't know how the shortcut will help to to get to the destination of a table of contents entry, or how the shortcut differs by selecting the same command in the context menu of the control panel.

    Give advice on how to use the method you suggested to find the destination of a table of contents entry. Once found the TOC destination, how can I know what is the exact point - is there indication, such as the slider is inserted in the paragraph?

    The table of contents entries are disconnected from their sources. They are not hyperlinks. In InDesign, there is no way to move from an entry of table of contents to its source, given that in FrameMaker

    In the layout > Table of contents, the option dialog box create bookmarks PDF does exactly that - makes bookmarks PDF.

    InDesign TOC entries and the index entries require allows you to check hyperlinks in the section Include the export PDF dialog box to create them as clickable links in the exported PDF file.

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

Maybe you are looking for

  • Bluetooth connection between iPhone 6 and MacBook Pro (mid-2014)

    I'm trying to connect my iPhone to my MacBook Pro 6 so that I can use the universal Clipboard function in the Sierra. Both devices are updated, software-wise, and both devices meet the requirements of continuity system. When the settings bluetooth fo

  • Satellite A50 - C Pro 10 TPCH crash Windows service Bluetooth fails

    Hi all Once a day the TPCH Service crashes. When this happens, there is no more my devices (mouse, keyboard). When I restart the laptop, everything is OK again. The error in the newspaper is (in Dutch): TPCH service department is filled next foutcode

  • with two accounts of application code

    Printer: Advantage HP 4625. HP ePrintCenter can I associate the two accounts eprint request code? Thank you. If the answer is YES, how can I do?

  • Problems with Satellite L30-149

    I recently reinstalled Windows Xp with SP3 on my Toshiba Satellite L30-149. When looking for audio drivers, I found a viaToshiba support. I was clear Notebook--> Equium L Series--> PSL35E (the only option)--> Windows XP.I installed this driver withou

  • Automation software has the key. Enjoy your entries

    Hi all. I worked on a few simple Labview applications for my company that is a hydraulic aerospace components company. While I was doing some research for a new project, someone asked me why I was using Labview to automate when there are ready made s