Find and kill "long time" blocking sessions

Dear Experts,
I'm looking for a way to kill sessions that are blocking for more than 5 minutes.
I can find the blocking sessions thanks to v$lock and its block field. But how can I know when this blocking session started ?
Best Regards,
Guillaume

Dear Experts,
I'm looking for a way to kill sessions that are
blocking for more than 5 minutes.
I can find the blocking sessions thanks to v$lock and
its block field. But how can I know when this
blocking session started ?I am not sure that you are right consistent in your question
You should not search when the blocking session started but when the blocking transaction started.
Column logon_time in v$session gives the start time of the session.
However what you are searching should be column start_time in v$transaction.
SELECT t.start_time
FROM v$transaction t, v$session s
WHERE t.addr = s.taddr
      AND other conditions here

Similar Messages

  • I used to have iPhone and iPad long time which all my photos where in iCloud then I bought a new iPad last year and I could not get my previous photos what can I do to get them back

    I Used to have all my photos in my iPad and iPhone long time ago and then I bought a new iPad last year but I never get my previous photos again what can I do please help me

    Photo stream photos only remain in iCloud for 30 days and your iCloud back only remains on iCloud for 180 days.  If you're looking for photos from last year I'm afraid they wouldn't be in iCloud at this point.  Unless you have another backup on your computer or they are still on one of your other devices they're gone now.

  • I cannot download in-app purchase  . I'm live in Thailand and download in thai store only   but i  can not download in-app  . My appleID name Cradit and user long time

    Hi...
           I cannot download in-app purchase  . I'm live in Thailand and download in thai store only   but i  can not download in-app  . My appleID name Cradit and user long time help me please .  Thank you

    What happens when you try?
    Any info about your issue at all?

  • How to find and kill session similar to forms user session

    We have a forms and reports based system that uses the oracle sessions. Sometimes if a form takes a long time we have the need to navigate to iAS>Forms>User Sessions, find the IP of the machine where the form is not responding and kill it based on the IP of the troublesome machine.
    I want to add this into our forms environemnt so people can kill their own sessions if need be but not sure how this is handled
    is it a simple alter system kill session in the db or something different.
    also how is the ip found to match the session?
    Thanks

    hi,
    Instead Set session timeout parameters..So that user gets logged off automatically from the application after a particular interval of time
    For this you have to make changes in httpd.conf file,web.xml file and env file
    Regards
    Fabian

  • Finder Takes Very Long Time to Open Folders?

    I have really yet to understand why Apple changed things, but it seems that when a third party application opens a dialog box to pick a file, it is making a call to the Apple Finder.  Since Mavericks, however, this process takes an inordinately long time.  The "deeper" the directory the longer Finder takes to display.  In some cases, I have waited over a minute for the Finder to open the dialog just so I can select a file to edit or modify in Word or Photoshop, for instance.
    This was NOT the case on any previous OSX version, so it is a MAVERICKS issue only.
    Has anyone experienced this, and has anyone found a solution, other than reformatting and blowing out your folders to a flatter configuration? 
    I have switched to Path Finder 6.5 (best file browser out there!!!)  to handle all other file browsing needs, but there is no way to make Path Finder the default for ALL apps that open the dialog it seems.
    Finder remains one of the worst applications that Apple has, and in fact, I'm pretty digusted with the quality of product coming out of Apple recently.  For an application that is used a LOT, they've crippled it and make it worse than it ever has been, which is pretty hard to do!

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Device and printers long time to open iprint printers

    Hi all,
    We have some laptops (windows732bit iprint client 5.92/5.94) that go offsite each night and have found that when opening devices and printers, or word etc that check the printers and can take a long time to respond/show the printers. No doubt this is because of the ipp printers installed from iprint, the less amount of network printers the quicker it opens etc.
    Is there a way to shorten/eliminate the timeout for checking of network printers at all?
    Thanks.

    Originally Posted by clarja
    Hi all,
    We have some laptops (windows732bit iprint client 5.92/5.94) that go offsite each night and have found that when opening devices and printers, or word etc that check the printers and can take a long time to respond/show the printers. No doubt this is because of the ipp printers installed from iprint, the less amount of network printers the quicker it opens etc.
    Is there a way to shorten/eliminate the timeout for checking of network printers at all?
    Thanks.
    Hi,
    try the latest client there is a fix a "slow issue" not sure if it's the same issue that you have but worth a try:
    Fixes introduced in the 5.96 iPrint Client
    Print Spooler Crash with WinXP/Win7 and 5.94 iPrint Client. (See TID 7014728)
    iPrint client 5.94 slow updating windows printer properties page (Bug 865327)
    On these computers, what printer model is installed and what driver + version are they using?
    Thomas

  • Finding and killing runaways in Oracle

    I am very new to the DBA side of Oracle.
    I have several "Power Users" that are constantly kicking off outrageous queries without joins and then just killing their telnet sessions and reconnecting to correct the mistake and then complaining about performance. I think that this is leaving the query running in the background.
    Since neither removing their keyboards nor removing their fingers are options is there any way to check out resources and who is running what in the database and kill/or any runaway processes or queries?
    Any help would be appreciated,
    Chris S.

    The problem with resource limits is that you prevent ligitimate large queries.
    So the problem becomes identifying the large queries that cause the problems.
    I am currently looking at statistics so I do not have all the answers yet. One place to start looking for the sinners is v$session, v$sesstat and v$statname(?).
    Run this query every 5 minutes check the large queries and users with many queries. Users with more than one session are the ones you would be interested in. This is not perfect, but it is a start.
    If you are on Unix you can set this up in Crontab and create a shell script that checks for specifics in the result and send you an email.
    One thing I have found to cause big problems is when we use "default" for parallelism, one user can pretty much kill the server that way, if accessing a large table spanning many files I have seen up to 30 parallel queries running at once. If all the parallel processes are busy everybody else will be running non-parallel.

  • My mac shutdown suddenly fr0m time to other and take long time to open

    hi everybody,
    I think i have big problem ,i have macbookpro I5 13" early 2011  , i just changed the board to I7 ( used  board got it from net ) after USB ports in my original logicboard are damaged due to drop  , after changing the board the mac is unstable, it take long time(half hour!) to show up anything after press power,  yes I press power and there are no response  from the mac (black monitor as its ) , just   i hear  a noise from the empty CD drive . once it open it work fine for a while (may 2 hours or more ) and then shutdown suddenly! and you have wait more than half hour to open it again if im lucky.
    Itried to rest the mac many times, replace the RAM places , i thought may the problem come from overheating the CPU, i monitored the CPU tempreture just before the suddenly shutdown was 57C
    please help ,any suggetions ?

    Run an Apple hardware Test:
    support.apple.com/kb/ht1509http://
    You may have to use OPTION D to start it.
    See what that picks up. 
    You may also bring the MBP to an Apple store or AASP for a diagnostic evaluation.
    Ciao.

  • My procedure hang and wait long time

    i have a procedure that runs only following sql statement when i execute this procedure it take long time!!one day !!how could i improve the speed??
    for job in (select r.job_name,r.run_id from
    applsys.fnd_sch_job_runs r
    where r.start_date< add_months(sysdate,-8))
    loop
    delete from applsys.fnd_sch_job_run_details
    where run_id = job.run_id;
    delete from applsys.fnd_sch_job_runs r where r.job_name=job.job_name ;
    commit;
    end loop;
    *************************************************************

    Your code...
    for job in (select r.job_name,
                       r.run_id
                  from applsys.fnd_sch_job_runs r
                 where r.start_date < add_months( sysdate, -8 ) )
    loop
      delete
        from applsys.fnd_sch_job_run_details
       where run_id = job.run_id;
      delete
        from applsys.fnd_sch_job_runs r
       where r.job_name =j ob.job_name ;
    commit;
    end loop;I will bet that there is an FK on fnd_sch_job_run_details that references fnd_sch_job_runs.
    If that FK is not indexed then you will (in addition to locking fnd_sch_job_run_details) perform a FTS on fnd_sch_job_run_details for each row deleted from fnd_sch_job_runs.
    Avoid this by:
    1. Make sure that if there is an FK on fnd_sch_job_run_details that references fnd_sch_job_runs, that it is indexed.
    2. Replace the cursor loop with something like
    delete
      from applsys.fnd_sch_job_run_details
    where run_id IN ( select r.run_id
                         from applsys.fnd_sch_job_runs r
                        where r.start_date < add_months( sysdate, -8 ) );
    delete
      from applsys.fnd_sch_job_runs r
    where r.start_date < add_months( sysdate, -8 );
    commit;

  • Finder items taking long time to delete

    used to be instant, but lately i command delete and it's pausing for a second before deleting. Running SSD so things have been super snappy all the way around. Any insight as to what's causing this?
    thanks.

    i do. I'm home next week and when i am i'll post here and be willing to spend some time. I've done all the usual permissions repair disk check etc but it's still taking too long.
    when i post here in a week or so will you be able to give me the steps then? thanks.
    (checking out of hotel today and don't want to risk issues while on the road)
    thank you again!

  • Trying to get my brand new macbook air to find and connect to time capsule

    after years of being frustrated by varying degrees by my windows platform I finally decided to lash out and treat myself to a dose of mac heaven!!!!!!!! mmmmmm well i love the macbook air its does all its supposed to do except for one thing sooooo far ,
    My time capsule is powered up with green lights which I believe means it has joined my 802.11 network wirelessly with success but when I try to start time machine and it looks for time capsule it tells me ther are no devices to connect to even when they are sitting a few feet apart...........anybody got any bright ideas........I so want to love my mac after spending the best part of 4000 euros on two macbooks and time capsule,
    thanks

    Welcome to Apple Discussions!
    You need to install AirPort Utility to first configure Time Capsule. Since you don't have a DVD drive, you'll need to download it from here (downloads are on the right side):
    http://www.apple.com/support/airport/
    If you don't have a setup guide, download that as well.

  • Why I get script nnt working message often and for long time computer hangs and I can't work? Any solution?

    It is common many time I open link or try to attach a file to email I get script not working message. This at times not go away even I stop it and I can't close sites also. I have to close through Ctrl+Alt+Delete route.
    What could be the reason and any solution?

    "SELECT RcptNo FROM RcptTable WHERE ReceiptTime = '"+receipt_time+"'"
    In MS Access, this exception occurs when the column names specified in the query are not correct. Check the table definition and verify the column names.

  • HT5312 My rescue email has been abandoned and deleted long time ago, and I don't remember the answers to the security questions, thus won't be receiving any resets. please advise

    I purchased a new iphone 5 S yesterday, and when i wanted to purchase one of the apps it required confirmation to the secuirity questions- which i do not remember!
    I Tried to logg in to my apple Id to receive a reset to the secuirity questions, however it is linked to an old email that no longer exist !
    Strangely I have edited my apple ID account and have deleted that old email- which no longer exist! but it seems that it is still linked to my account as a rescue email!

    You need to contact Apple. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (90587)

  • Update doing full table scan and taking long time

    Hi All,
    I am running an update statement which is doing a full table scan.
    UPDATE Database.TABLE AS T
    SET COMMENTS = CAST(CAST(COALESCE(T.COMMENTS,0) AS INTEGER) + 1 AS
    CHARACTER)
    WHERE T.TRACKINGPOINT = 'NDEL'
    AND T.REFERENCENUMBER =
    SUBSTRING(Root.XML.EE_EAI_MESSAGE.ReferenceNumber || '
    ' FROM 1 FOR 32);
    Any advice.
    Regards,
    Umair

    Mustafa,
    No Developer is writing it in his program.
    Regards,
    Umair

  • Ipad key note repeadly crashing and takes long time to open in latest ios n ipad? Can any one help me

    Help

    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
     Cheers, Tom

Maybe you are looking for

  • Images visible in Safari but not in Firefox

    I am having a problem with something that should be rudimentary in i-web. When I create a new page using a "photos" template everything seems to show up when building the site. When I view the website online everything seems fine in Safari. I can vie

  • Created windows 7 install flash drive in Mountain Lion OS, but, now how to install it?

    Hi there. I'm sorry guys, I don't know if someone can help me here... I hope so... Well, I bought a MacBook Pro 15'' retina display, with Mountain Lion OS, and Bootcamp 5.0. 1. I went to Disk Utilities / Bootcamp Assistant, and I did manage to create

  • ITunes 7.1 doesn't launch

    I downloaded iTunes 7.1. Now when I try to launch it, it comes up with a message "ITunes can not run because it has detected problem with your audio configuration". The previous version worked absolutely fine. Can someone help? Thanks in advance.

  • Image blinks/ flashes during full screen

    The clips in my movie seem to flash for a fraction of a second when i play them in full screen.. has anyone else had this problem? if so, what should i do about them? thanks!

  • Target column in Appraisal Template

    Hi, I am creating Appraisal template, there is one standard column Target (OBJL). I want to make this column notes only. But that is disabled in phap_catalog.  Samriddhi