How do you know sql_id knowing sql_id and series

Hello

I would like to extract sql_id knowing sql_id and series but with these select sql_id empy!

Could someone help me please

Select sample_time, session_id, session_serial #, sql_id, temp_space_allocated/1024/1024 temp_mb,.

temp_space_allocated/1024/1024-lag(temp_space_allocated/1024/1024,1,0) (order sample_time) as temp_diff

of dba_hist_active_sess_history

-to v$ active_session_history

where

session_id = xxxxxx

and session_serial #= yyyyyy

sample_time asc order

/

Result:

20/05/2015 23:09:42, 169XXXXXYYYYYY

Thank you

> that fill my undo tablespace

A transaction can consist of several SQL statements.

I could write a loop or a script that does

INSERT INTO my_table VALUES (: 1,: 2:3).

a million times before validation.

Otherwise, I could write a loop or batch or script that is 1 million separate statements of SQL INSERT/UPDATE/DELETE before validation.

So, technically, you cannot identify a SQL "fills the undo tablespace" you can find the session.  Then, you could, in theory, Pierce through the session history and find some / most / all SQLs it run and figure (by conjecture or test) how cancel each of these SQLs would have generated.

Note: I say "some / most / all" because Oracle does not guarantee that you'll find all the SQLs in V$ ACTIVE_SESSION_HISTORY or DBA_HIST_ACTIVE_SESS_HISTORY.

OTOH, it is possible that the large transaction consists of only 1 SQL making DML against 1 million rows.  Then, you are likely to find the SQL_ID of history.

Hemant K Collette

Tags: Database

Similar Questions

  • HP Pavilion 15-p263nd: How do you know voltage and ram clock speed

    I have a

    Laptop HP Pavilion computer 15-p263nd laptop

    and I want to spend 4 to 8 GB ram, but I don't know witch model or brand I

    the only thing I know is thad I ddr3 sodim smal ram memory sticks

    Please can you help me perhaps a link to hp where to buy

    @gyulabb

    Supports the following configurations:
    Two slots for memory (some models only) SODIMM module

    Support DDR3L - 1600 MHz dual channel
    Support DDR3L - 1333 MHz dual channel
    Max. DDR3L - 1600 MHz single channel Support

    16384 MB (8192, + 8192 MB)

    12288 MB (8192 MB × 1 + 4096 MB × 1; not supported on models of computer with a 32-bit operating system)

    8192 MB (8192 MB × 1 or 4096 MB × 2; not supported on models of computer with the 32-bit operating system)

    6144 MB (4096 MB × 1 + 2048 MB × 1; not supported on the computer models equipped 32-bit operating system)

    4096 MB (4096 MB × 1 or 2048 MB × 2)

    Your Service Guide here.

    http://support.HP.com/us-en/product/HP-Pavilion-15-notebook-PC-series/7486459/model/7639899/manuals

    REO

  • I want to buy an iBook. There are 2 different books with the same name, author, and the book cover. They are different number of pages with different prices. Specifically, all the light that we do not see. " How do you know that we purchase?

    I want to buy an iBook. There are 2 different books with the same name, author, and the book cover. They are different number of pages with different prices. Specifically, all the light that we do not see. " How do you know that we purchase?

    I would get one that has 4700 comments already.

  • What is malware and how do you know if it affects your pc? Is it possible to solve the problem?

    What is malware and how do you know if it affects your pc?  Is it possible to solve the problem?

    Definition of malware from Wikipedia.org

    Malware, short for malicious software, is made up of programming (code, scripting, active content and other software) designed to disrupt or deny the operation of gathering information that leads to the loss of privacy, or operating, access resources system and other abusive behavior. The expression is a general term used by the professionals for a variety of forms of software code or hostile, intrusive, or annoying program.

    One of the best (and FREE) ways to prevent it from running Microsoft Security Essentials, which will scan your (s) and eliminate the bad guys you can be picked up when you surf, opening files is sent to you etc..  Of course security software is only good if it updates often with the newly found bad, but MSE update daily and you can set to sweep once per day or more.

    http://www.Microsoft.com/en-us/security_essentials/default.aspx

    I suggest that you download and install, then let run a FULL scan and see what it finds.

  • How can you know what drivers and programs are essential and those that can be deleted without harming my computer?

    Original title: completely clueless

    I'm totally clueless when it comes to computers, but I try very hard to learn. I am using the help section a LOT, but I can't seem to find an answer to the only thing that makes me crazy. How can you know what drivers and programs are essential and those that can be deleted without harming my computer? I have a very basic net accountant I learn on before I screw up a portable more expensive and I do a cleaning on my C and D drives to improve performance because it runs so slow but it tells me I have the drivers who slow down Windows. I would greatky appreciate any assistance from someone who has the patience of a saint and is willing to take the time to explain it to me, in terms laymans. Thanks in advance

    Drivers: you should know what you bought (in your machine) and what * you * want out of it.  If you want stability and things work properly - let alone the drivers.  If you want more performance check (and other games) in the drivers of motherboard chipset and video network from the manufacturers Web site... For more stability stick with the OEM website (HP, Dell, Lenovo - the assembler of the whole machine) and slightly more performance/push the limits (even if they want to work too - so still some stability) - access to websites of its components manufacturer.

    With regard to the programs: you can decide what you use and do not use.  If you are not sure, look it up (Google) or ask.

  • I can't use the 'sharpness', the field is marked in gray instead of the stronger color when it is possible to use. If someone of you know why and how to fix it?

    I can't use the 'sharpness', the field is marked in gray instead of the stronger color when it is possible to use. If someone of you know why and how to fix it?

    Hi Eva,

    Could you please for the preferences of Photoshop, then tab Perfomance.

    In here please see, if the option "Use Graphics Processor" must be verified.

    These filters are largely dependent on the graphics card.

    Respect,

    Tanuj

  • How do you know that the wireless keyboard is enabled

    How do you know if your wireless keyboard is enabled?

    You can see if the keyboard is still on, if you check in the Bluetooth settings and see if your keyboard is still connected. FYI - most of the power is used while you type, not in sleep mode.

  • Used iPhone, how do you know that it is original?

    Excuse me, I'm going to buy an iPhone used 5 for someone, how do you know if it is original and not a copy of high... and if possible how do I restore the phone to be as if I just bought new?

    Thank you very much

    Check if your iPhone is authentic, here:

    https://selfsolve.Apple.com/agreementWarrantyDynamic.do

    Also check if the phone still has Activation lock. If it is checked, ask the seller to turn the power off and remove the unit from its account.

    https://www.iCloud.com/activationlock/

  • Should I delete the programs of 2004? How can you know what is safe to delete?

    Original title: remove programs

    I think I have a virus.  I see on my computer a few applications with and installed as of 2004.  The computer was purchased in 2007.  When I run it in safe mode, it works fine and all applications have a date of 2007 or newer.  Should I delete the programs of 2004? How can you know what is safe to delete?

    Hello

    This is not an indication of malware. Could be those are placed on the
    computer by the manufacturer of the system and that was the date that firstly, they prepared their
    for massive installation, or if they did not set a date and be used arbitrarily.

    =============================================================

    If you need search malware here's my recommendations - they will allow you to
    scrutiny and the withdrawal without ending up with a load of spyware programs running
    resident who can cause as many questions as the malware and may be more difficult to detect as the
    cause.

    No one program cannot be used to detect and remove any malware. Added that often easy
    to detect malicious software often comes with a much harder to detect and remove the payload. Then
    its best to be thorough than paying the high price later now too. Check with them to one
    extreme overkill point and then run the cleaning only when you are sure that the system is clean.

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
    the regular windows when you can.

    TDSSKiller.exe. - Download the desktop - so go ahead and right-click on it - RUN AS ADMIN
    It will display all the infections in the report after you run - if it will not run changed the name of
    TDSSKiller.exe to tdsskiller.com. If she finds something or not does not mean that you should not
    check with the other methods below.
    http://support.Kaspersky.com/viruses/solutions?QID=208280684

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
    (If Rootkits run UnHackMe)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can
    Download it here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
    security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
    here or use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
    (viruses, Trojans, rootkits, etc.). who infected your computer despite safe
    what you have done (such as antivirus, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    New Vista and Windows 7 version
    http://OneCare.live.com/site/en-us/Center/whatsnew.htm

    Original version
    http://OneCare.live.com/site/en-us/default.htm

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
    system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type this into the search-> find COMMAND to top box and RIGHT CLICK-
    RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker
    (SFC.exe) program generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

  • How do you know if the software was preinstalled or not?

    I want to uninstall all the programs that I don't use or I do not require so that I can have enough space on my C:. So, how do you know if the software is required for my system or not? If anyone can help me with this, I'll be very grateful.

    Thank you

    Hello

    If you don't know what it is, do not uninstall it.

    ____________________________________________________

    To clear up the problems of lack of space on your hard disk, follow these steps:

    This free program allows you to see what is taking place.

    http://www.Jam-software.com/treesize_free/

    Also check how much space system restore uses:

    http://Windows.Microsoft.com/en-us/Windows7/how-much-disk-space-does-System-Restore-require

    _____________________________________

    You can clean your hard drive using these two methods.

    "Delete files using Disk Cleanup"

    http://Windows.Microsoft.com/en-us/Windows/delete-files-using-disk-cleanup#delete-files-using-disk-cleanup=Windows-7

    Using the free CCleaner program:

    http://www.Piriform.com/CCleaner

    In NO case use the registry cleaning Option in CCleaner

    _____________________________________

    Download, install, update and scan your system with the free version of Malwarebytes AntiMalware:

    http://www.Malwarebytes.org/products/malwarebytes_free

    And Norton Backup, if you are using Norton, can do strange things with filling of hard drive space.

    See you soon.

  • How do you know if there is any fragmentation

    How do you know if there are any fragmentation of the cube of OSB?

    Go to the properties of database-> statistics tab
    If the average ratio of clustering is 1 - there is no fragmentation. (virtually impossible)
    If the average ratio of clustering is greater than 0.6 - then it's ok
    If the average of clustering ratio is less than 0.5 - then there is considerable fragmentation in the cube and you must defragment the cube.

  • How can you talk to support direct and 24/7

    How can you talk to support direct and 24/7

    See the link below to contact Microsoft, which is a 24/7 support:

    http://support.Microsoft.com/contactus/?ws=support#TAB0

  • How can you recover files, folders, software and drivers after reinstalling windows xp family?

    original title: How can you recover files, folders, software and drivers after reinstalling windows xp family? Please help, I've lost everything!

    When the update Norton Internet Security 2009 to 2011 on reboot, windows cannot open.

    Root\systems32\hal.dll Windows prevented windows from opening.  My machine in a Dell dimension 8300.

    On a Dell website, I found a method of recovery if you can reinstall windows xp from cd.  I was able to do it, but lost all my files.  How can I recover all my fortune, images, software, drivers, etc.?  There must be a way to extract this information from the hard drive.  Any help is the material and can save my marriage!  Thank you.

    Hi MarkS_02127,

    Since you've reinstalled windows, you will need to re - install applications once again, you will be lucky (if you format the drive) data on your computer. You remember that location, it was in my documents? If yes it just open C:\Documents and settings and locate your old username, you will find your old desktop, Favorites and Documents.

    I hope this helps.

  • Use of the BAT file - how do you completely remove 150 phones and their associated DNs?

    How do you remove completely 150 phones and their associated DNs? All phones are in the same pool of device. I prefer the way bat.

    The CUCM version: 8.6.2

    Type of phones: 7962 phones - associated with the same device pool.

    Other questions: is there a way to remove all phones and their associated DNs with elegance when all phones are associated with the same mass of device? I rather not work with extensions and MAC addresses.

    Thank you

    Hug Lupas

    Hello hug,

    Using the BAT, it will take 2 - passes. 1 for unassigned phones and 1 for "DN". This is well illustrated in the attached doc;

    http://www.Cisco.com/c/en/us/TD/docs/voice_ip_comm/CUCM/bat/8_0_1/bat-80...

    Of course for the DN you could remove through the road map report > unassigned DN > select all > delete

    See you soon!

    SoC

  • every time when I start it up and go to my office, a 2 x 3 box pops up for a split second, how do you know what he says?

    When I boot my laptop with Vista, loads and gets on the desk on either primary or a guest account, a small box about 2 x 3 "appears for only a fraction of a second, but I can see there is a red X on the top right corner and two clickable buttons, but I can't read what it says.  How will I know what it says; where can I go to find it.  There is nothing in sysconfig on startup, etc.

    You must have something in the system start, probably in one of the keys to registry Run, which is something you don't recognize to run at startup.

Maybe you are looking for