Time remaining for a query

Hi,
I want to find the estimated time remaining for the SQL that is running, when I try to query from v$sesion_longops, it is not returning anything even though i see the session running in v$session. Why am not getting any output from v$session_longops? Is there any way i can find how much time remaining and how much work done?
Thanks,
GK

Yeahh this is the third a little different question about the same topic. So even if the operation is in v$session_longops, you can use the time remaining as a rough guideline because:
1) Oracle thinks that long operations are linear and calculates remaining time accordingly
2) it may not be the only long operatin for this particular query i.e. there may other remaining time that might be or might not be shown up there.
I'm even a bit tired of copying link to my article describing all this :)
http://www.gplivna.eu/papers/v$session_longops.htm
Gints Plivna
http://www.gplivna.eu

Similar Messages

  • SRM error 'process time remaining' for Rfx

    The simultaneous opening of the  RFxs were performed. But it was not possible to open the offers as the system was showing ' process time remaining'. At that time the times remaining for the 3 RFxs  was shown around 4 hours 30 minutes. The offers were tried to open next day. Again the system was showing ' process time remaining', but the time remaining for the 3 RFxs are shown about 2 hours .Please suggest .

    Hi Srvinivas,
    The following documents may be of some help to you:
    http://help.sap.com/saphelp_srm701/helpdata/en/38/37aa392d61407089454548b98355a8/content.htm
    SRM, Strategic Sourcing Innovations
    http://help.sap.com/saphelp_srm701/helpdata/en/1f/4b5f5130eb4c7db21f03fa94e5bb3f/content.htm
    Tender Fee Processing
    http://help.sap.com/saphelp_srm702/helpdata/EN/73/bf0af1223b405d8380cd2dfc9e5fd3/content.htm
    Earnest Money Deposit Processing
    http://help.sap.com/saphelp_srm702/helpdata/EN/ef/fab812e046468396262858d447d8aa/content.htm
    Simultaneous Logon at RFx Response Opening
    http://help.sap.com/saphelp_srm702/helpdata/EN/38/37aa392d61407089454548b98355a8/content.htm
    Also as far as I am aware, by default, simultaneous logon is only available for RFXs with two-envelope RFX responses. The following is a detailed explanation of the process from 1 of my colleagues:
    Two-Envelope response opening process:
    01. Buyer creates a RFx/Bid invitation with the transaction type that
        is configured for two envelope bidding.
    02. Enter the mandatory datas: submission deadline, bidders, items,
        permissions for technical/price/tender fee opening, etc
    03. Publish RFx.
    04. Login with bidder and "Participate" to receive emails.
    05. If tender fee is requested, then pay tender fee with bidder user.
    06. Create a Response with bidder user and submit.
    07. Now you have to wait till the submission deadline has been passed
        to give the chance for the other bidders to participate in the RFx
        process.
    08. After the submission deadline has been passed the buyer has to
        "Initiate Price/Technical RFx Response Opening" for a certain given
        time (which can be set earlier.)
    09. A new window will pop up to start the simultaneous logon.
    10. Provide password and hit the approve button.
    11. The pop up window will display Technical Opener's name.
        We can see the time remaining to perform the Technical opening
    12. In the next step, we will have to login to perform the technical
        opening. Do NOT close this window or do NOT logoff from the portal.
        If you think you will require more time to perform the technical
        opening you can extend this time. This will give additional minutes
        to perform the opening.
    13. To perform technical opening:
        Login to WTS or open a new session of Internet Explorer and login
        to Portal. At this point in time, you will have two sessions:
        - one on your local computer
        - and one in WTS/New session
    14. Open the rfx and click on Open technical rfx response.
    15. The Technical Opener/Reviewer now authenticates himself/herself by
        entering the password. After it hit "Approve" button.
    16. In the next step you will receive a message:
        "User approval successful"
    17. The Simultaneous Logon and opening of technical/price RFx response
        is now performed.
    18. Hit on Close button to close the pop up.
    19. Hit on Close to close the RFx screen.
    20. You have to wait till the Response opening time has been passed.
    21. After the time has been passed the Response can be opened.
    If the document changes in the meantime and if it needs approval (no
    automatic approval is configured) then you have approve the documents
    in the process with a given user.
    I hope that this helps.
    Kind regards,
    Conor

  • How to analyse the time taken for a query

    Hey gurus ,
                          How to find the time taken for a query to execute .
    Regards,
    Venkatesh

    Hi,
    Time taken to execute a query = FRONT END TIME + OLAP TIME + DB TIME.
    front end time is time taken to do format in BEX.
    olap time is time taken to aggegate data in OLAP buffer.
    db time is tme taken to collect data at data target.
    to fine all these information
    goto RSRT -> give query name -> execute+debug -> it will display all the fields > check fields what ever u want.
    Regards,
    Haritha.

  • HT1222 Have a new iPad trying to download iOS 6.0.1 but it seems to have stopped. Has been going on saying estimating time remaining for the last 5 hours!!

    Have a new iPad trying to download iOS 6.0.1 but it seems to have stopped. Has been going on saying estimating time remaining for the last 5 hours!!

    Try a reset:
    Hold the Sleep and Home button down for about 10 second until you see the Apple logo.

  • Time remaining for a mailbox move

    Hi All,
    I am using Primal form to monitor my mailbox moves and have the following script
    $outputbox.text = get-moverequest| get-moverequeststatistics |Sort-Object PercentComplete -Descending | ft displayname, @{label=" % "; expression="percentcomplete"},@{l="Size";e={$_.Totalmailboxsize.ToString().SubString(0,($_.totalmailboxsize.ToString().IndexOf("MB")))}}
    ,@{l="Moved";e={$_.BytesTransferred.ToString().SubString(0,($_.BytesTransferred.ToString().IndexOf("MB")))}},@{l="Rate";e={$_.BytesTransferredPerMinute.ToString().SubString(0,($_.BytesTransferredPerMinute.ToString().IndexOf("MB")))}} 
    ,statusdetail  -AutoSize| Out-String
    I would like to add another column that gives me an estimated remaining time for the move. I can do the maths easily enough but don't know how to write it as a simple script that could be added as an extra column in the form
    Any ideas?
    TIA
    Andy

    This will give you an idea of how this kind of scripting works.  You copied things wrong and have not understood computer fields.
    $outputbox.text = get-moverequest|
    get-moverequeststatistics |
    Sort-Object PercentComplete -Descending |
    Format-Table displayname,
    @{L=' % '; E={ $_.percentcomplete }},
    @{L='Size(Gb)'; E={ $_.Totalmailboxsize.Value.ToGb().ToString('N2') }},
    @{L='Moved(Gb)'; E={ $_.BytesTransferred.Value.ToGb().ToString('N2') }},
    @{L='Rate(Gb)'; E={ $_.BytesTransferredPerMinute.Value.ToGb().ToString('N2') }},
    StatusDetail -AutoSize |
    Out-String
    Study how to do "computed/calculated properties".  Also look up how to use exchange large integer values.
    http://msdn.microsoft.com/en-us/library/microsoft.exchange.data.bytequantifiedsize.aspx
    http://technet.microsoft.com/en-us/library/ff730948.aspx
    ¯\_(ツ)_/¯

  • Profile Parameter : Time out for executing query on the web

    Hi gurus,
    I am executing queries on the web directly. This can be done from query designer with the button that says "Execute query on web". The problem is that for queries that take more than 600 Secs to run, I get an Application timed out error. Queries that take less than this run smoothly.
    Can anyone please tell me the profile parameter associated with this particular setting. It is not rdisp/max_wprun_time, I know for sure since the value for this profile parameter in my system is 9999. Please help.
    Thanks & rgds,
    Sree

    Issue resolved.
    Profile Paramter - icm/server_port_0
    Current Value - PROT=HTTP,PORT=8000,TIMEOUT=60,PROCTIMEOUT=600
    Changed to - PROT=HTTP,PORT=8000,TIMEOUT=60,PROCTIMEOUT=3600
    rgds,
    Sree

  • Time out of the Query

    Sdn
    Im getting Time out for one query while excuting in PRD system. That query filter field setting is Only values Infoprovider. But DEV Im able to excute the same query, but in this system that field setting is Only posted values in navigation
    advance wishes

    Hi Kirun,
    I'm sure, it can be done in dev because the data is not big like in the production.
    You need to tune up your info provider (info cube/ods).
    I had once the problem like you, i can run in dev, but not in prd.
    due I use ODS, so that I tuned it up by creating Index. And after it, it can run well.
    If it's Info cube, you can create aggregate / compress it.
    Hope it helps you a lot.
    Br,
    Daniel N.

  • Restoring iphone from backup estimating time remaining stuck

    I have been updating my boyfriend's iphone.  It has not been updated for a while.  I backed up everything on itunes.  I then went to restore (the first time) and within 10-15 minutes it said there was 1 hour left, 2 hour left, 3 hours left.  I did something else for about 20/30 minutes, came back to my computer and it was asleep and everything had ended.  It did not finish.
    I have now tried to restore a couple times and cannot get past the estimated time remaining.....  What do I do?  It's been "estimating time" for about a half hour.
    Please help.  Beyond frustrated.

    Just got an Iphone 5, trying to restore it from my Iphone 4 backup. I just shows estimating time remaining for the past hour and a half. Might just leave it up and hopefully something will happen.

  • Time taken for a method to run. ?

    I have a query regarding ascertaining the time taken
    for a method to execute
    I have a SQL statement that I reads 10,000 rows.
    String a_SQL = "Select.....from TableA";
    try {
         IQuery query = m_UC.createQuery();
         SimpleTableModel stm = query.executeSelect(a_SQL);
       }catch(SQLException se){
       // Query Over.
       private void displayJTable(){
       // display rows read from the query above.
       }          As the query is executing,I want to display a progress bar
    showing the status of the query.
    Now I cant use this :
    start = System.currentTimeMillis();
    try {
         IQuery query = m_UC.createQuery();
         SimpleTableModel stm = query.executeSelect(a_SQL);
       }catch(SQLException se){
    end = System.currentTimeMillis();
    System.out.println(" Time taken  to display " + (end - start)/1000);
                  The above will give me the time elapsed in seconds for the SQL query to execute,but
    this is not what I want.
    What i want is to use this :
           // Progress BAR executing,so I need to get to know the time
           // taken for the query to run
            try {
            the SQL execution
            }cach(){
            // Query over.
            // Stop Progres Bar.
            // Display JTable.       How can I know when to stop the Progress Bar as I have no handle
    on the time taken to execute the query?
    Any help will be appreciated

    You can have a separate thread (or maybe it's just part of the regular GUI update thread? I don't know details about GUIs) that puts up an hourglass or spinning clock hands or dancing hamster or whatever to indicate that something is going on, but like the man says, you can't know ahead of time how long it will take to run a query, so you can't show percent done. You also don't in general know ahead of time how many rows will be returned so that doesn't help you.
    You might be able to do something for the processing of the returned data, once the query completes, because then you can often get a count of the number of rows, so you process each row in a loop, and update the % done counter each time through the loop.

  • Calculate the time remaining during File Download ?

    Hi
    I need to calculate the time remaining of file download . I am using NSURLConnection for file download in Cocoa . I am able to show the download progressbar . I want to show the time remaining for complete download and it should vary if network signal fluctuate .
    Please guide me ...
    Thanks

    The tricky part is to define what is a disturbance
    First do once  a correlation to find and correct a shift in the signal
    Look at the (absolute or squared) difference of both signals and define a threswhold and use the threshold detector vi
    from the point location(s) calculate the time and log it.
    And have a look at the waveform monitoring vis....
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Time machine goes on calculating time remaining in macbook mavericks

    time machine stops at some point while backingup my macbook;it goes on calculating the time remaining for hours;i tried all possible things like renaming,erasing ,repairing permission  the external HD
    please help

    jaxx323 wrote:
    The time capsule drive is full, but I just assumed that Time Machine would erase the oldest backups and continue.
    Ordinarily it will. Do you have other data on the drive? If so, it appears that other data has completely filled the drive, so much so that Time Machine can't even start the hidden log it keeps there.
    Error writing to backup log. NSFileHandleOperationException:* -[NSConcreteFileHandle writeData:]: No space left on device
    Usually when that happens, the backup crashes.
    First, cancel the backup. If it won't cancel after a few moments, see #D6 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html].
    Then connect via an Ethernet cable if at all possible. Time Machine needs to do some intensive work, and it will be slow even via Ethernet, but 2-3 times slower via WIFI.
    If there's other stuff on the drive, you could copy some of it elsewhere temporary and delete it. You only need to free up 50 MB or so.
    But your best bet is to delete your oldest backup(s), then "compact" the sparse bundle they're in, to make some space. See #12 of [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html].
    Since it's been several weeks, you may want to delete roughly one old backup for each of those weeks, then "compact" the sparse bundle. If you only delete one, then Time Machine will have to delete more, but it will delete one, dismount the sparse bundle, compact it, then remount it to see if there's enough room. That gets repeated over and over until there's enough space.
    Once this is sorted out, if there is other stuff on your TC's internal HD, see #Q3 in [Using Time Machine with a Time Capsule|http://web.me.com/pondini/TimeMachine/TimeCapsule.html] (or use the link in *User Tips* at the top of this forum).

  • Remaining time for a query

    Hi,
    I wonder how much remains for a long sql query to be completed since the oracle views?
    I kown that OEM give this information, but unfortunatly i don't have this tool :-(
    Any idea..
    Thanks in advance.

    If, for example, you have an update statement that requires a full scan of a large table, the full scan may appear in v$session_longops along with total work and time remaining etc. But that would be a fairly simple example. Index lookups such as range scan don't appear in this view, along with a number of other operations such as nested loops, so if your execution plan contains these operations, you're not going to get much from v$session_longops. Even if you do have operations that all appear in v$session_longops you would need to cross reference it with the execution plan to determine which operatios have completed but until the operation begins, you won't be able to get an estimate of the run time.
    Also remember that OEM is just querying the same views so it can't give you anything more than what's available in the v$session_longops and the supporting plan tables etc.
    HTH
    David
    Edited by: Bravid on Sep 21, 2011 3:33 PM

  • I created an iCloud account and also had to get more space after I have done the purchase, I am unable to backup my phone! I have a stable wifi connection at home and all I see for hours and hours is "Backing Up .. Estimating time remaining"!!!!! Plz help

    I created an iCloud account and also had to get more space so after I have made the purchase, I am unable to backup my phone! I have a stable wifi connection at home and all I see for hours and hours is "Backing Up .. Estimating time remaining"!!!!! Plz help I'm unable to make the backup as I need to transfer all my data on my new iPhone 5S

    This may be caused by a corrupt existing backup that needs to be deleted, or by data on your device that is causing the backup to fail.  To troubleshoot these, try deleting your last iCloud backup (if you have one) by turning off iCloud Backup in Settings>iCloud>Storage & Backup, then tap Manage Storage, tap your device under Backups, then tap Delete Backup.  Then go back and turn iCloud Backup back on and try backing up again.
    If it still won't back up, you may have an app or something in your camera roll that is causing the backup to fail.  To locate which one, go to Settings>iCloud>Storage & Backup>Manage Storage, tap the name of your device under Backups, under Backup Options tap Show All Apps, then turn them all to Off (including camera roll) and try backing up again.  If the backup is successful, then the camera roll and/or one of your apps is causing the backup to fail and you'll have to located by process of elimination. Turn the camera roll On and try backing up again.  If it succeeds, turn some of your apps to On and try backing up again.  If it succeeds again, turn some more apps to On then try again; repeat this process until it fails.  Eventually you'll be able to locate the problem app and exclude it from your backup.
    In the meantime you can back up your phone to your computer by connect it, opening iTunes and going to File>Devices>Back Up.  Also be sure to transfer your purchases (File>Devices>Transfer Purchases).  Then set up your new phone and when given the option, choose Restore from iTunes Backup and follow the prompts to restore this backup to your new phone.  This will be much faster than using iCloud anyway.

  • Is there any tool or method to find the exact disk space/memory required for a query to execute in certain time

    Hi,
    We have SSIS Package, which in-turn executes some Stored procedures . 
    This Package runs fine at certain time, say 30 minutes which is acceptable. But sometimes, it takes around 1.5 hr. There was no modification done to the package, and the amount of data handled by the package is also same.
    I have a doubt that some other big process may be running in parallel when this package is getting executed.
    All the Databases are on D drive in the server and currently there is 140 GB free space out of 1 TB.
    Now, using sp_who2 I can check what are the big processes which are running in parallel when this package is getting executed and get their Disk I/O.   
    Now having these information, is there any way to determine, amount of space/memory required to execute a particular query in 30 minutes.
    Or to put a question in other way, I have a query and I know its acceptable execution time(30 min). Now is there any way to determine the criteria to get that execution time.
    NOTE: The query is optimized and required indexes are created. It was running fine, until 1 week back. Suddenly the execution time has increased.
    Can some one please help me in this. Please let me know if you need any further information on this.
    Also whenever these jobs are running, sometimes job activity monitor and SSMS gets frozen. Any idea what does this indicate?
    Thanks in advance,
    Raksha

    Perhaps blocking?
    Take a look at Adam's great stored procedure to see who is running on the server
    Who Is Active? v10.00 (2010-10-21)
    (C) 2007-2010, Adam Machanic
    Feedback: mailto:[email protected]
    Updates: http://sqlblog.com/blogs/adam_machanic/archive/tags/who+is+active/default.aspx
    "Beta" Builds: http://sqlblog.com/files/folders/beta/tags/who+is+active/default.aspx
    License: 
    Who is Active? is free to download and use for personal, educational, and internal 
    corporate purposes, provided that this header is preserved. Redistribution or sale 
    of Who is Active?, in whole or in part, is prohibited without the author's express 
    written consent.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • I am getting error (-1) while updating my iPhone 4 to iOS 5.1. The phone has gone into a recovery mode. Restore fails every time at "restoring the firmware" stage. Striped bar remains for a long time, then shows "error (-1)" and the restore fails. Help!

    I am getting error (-1) while updating my iPhone 4 to iOS 5.1. The phone has gone into a recovery mode. Restore fails every time at "restoring the firmware" stage. Striped bar remains for a long time, then shows "error (-1)" and the restore fails. I have been doing it for last 12 hours. Help!

    Thanks for your reply Michalo. I am in India and here Apple care does not work on Sundays. I have been without my phone for the entire day. Perhaps tomorrow will bring some respite. There is not solution to "error (-1)" on any forum it seems. I found one forum which suggested use of Tiny Umbrella. Any idea about that?

Maybe you are looking for

  • Need to restrict selection screen entries in logical database in HR report

    After creating custom HR Report Category using Logical database, I need to restrict the options available in the in the selection Screen for example- for company code i m getting 182 entries, but after running the program, selection-options for compa

  • When cmd+shift+d does not work on a mac, here's what to do.

    I have been trying to authorize my new Macbook Pro 2011 for weeks. (I set up and authorized my iPhone with no problem.) Whenever I try to authorize my computer using the Digital Editions instructions given at the bottom of this post, I get the messag

  • How can I get rid of hidden photos in my iPad?

    Yes, I've seen this question from others and all of its answers: just connect the iPad to your computer, go to iTunes, go to the tab Photos etc. I have 4.5 Gb (300 photos) on my iPad that I can not find anywhere. I understand they are synced from som

  • Cannot get next captivate to open when published as a zip

    I am currently using Cap 4, but have the trial of Cap 5 as well. I have a 7 mod course and need to be able to open the next Captivate module from the the last slide of the current module. I have inserted a button with a path to the next movie, it wor

  • Automatically refresh the report tabs after selecting the parameters in bip

    Hello Everything!! Is there a way to automatically refresh all the report tabs once we select the parameters? The report are not refreshed automatically in each tab and users have to either hit apply button or refresh button for each report tab . Is