Get est time for sql without running against the db ??? possible ?

hello,
is there anyways to get a query execution time without running that against the database ?? even an estimate would be good...i am on 10.2.0.3 ......i am it might be impossible for it...but anyways to get estimate besides setting autotrace only ?? as i said want nothing but just like a estimate time for how long will it take to finish the query...i know we can very long_ops view but as i said..without running against the DB ...is that possible ?? as the explain plan i get shows time ?? but is that how long it will take to finish up or ?/
select * from table(dbms_xplan.display);
| Id  | Operation            | Name | Rows  | Bytes | Cost (%CPU)| Time     |  
|   0 | SELECT STATEMENT     |      |    56 |  3192 |     9   (0)| 00:00:01 |  
|   1 |  MERGE JOIN CARTESIAN|      |    56 |  3192 |     9   (0)| 00:00:01 |  
|   2 |   TABLE ACCESS FULL  | DEPT |     4 |    80 |     3   (0)| 00:00:01 |  
|   3 |   BUFFER SORT        |      |    14 |   518 |     6   (0)| 00:00:01 |  
|   4 |    TABLE ACCESS FULL | EMP  |    14 |   518 |     2   (0)| 00:00:01 |  
-----------------------------------------------------------------------------  

user11168115 wrote:
hello,
is there anyways to get a query execution time without running that against the database ?? <snip>
How long is a string?
How deep is a hole?
How long does it take to read an unknown number of blocks containing an unknown number of rows from an unknown disk system with an unknown contention load, pulling it across an network of unknown bandwidth and unknown load ....
And I'm not saying that if you somehow provide all this that the answer can be known. I'm saying the too much of the information tht would be needed to make such an estimate is unknowable. Much of it will be widely variable from one execution of the query to the next execution of the exact same query. Which leaves you with exactly what to base your estimate on?
Without even seeing your query, I can tell you with absolute certainty that it will take between 1 nano-second and 100 years to execute.

Similar Messages

  • SQL Tuning Advisor against the session (is it poosible)

    My Company customer has observed that there is job that are running longer than expected running(5 days).
    They did not gave any information.they want me to run
    SQL Tuning Advisor against the session running this job.
    can you run sql tunning advisor against running session?
    if so how
    Please suggest me your valuable tips so that I approach this work properly.
    DB = 11g
    OS= Solaris 10

    >
    ...SQL Tuning Advisor against the session running this job.
    can you run sql tunning advisor against running session?
    >
    SQL Tuning Advisor is run on statements and not sessions. I don't do much with SQL Tuning Advisor, but I'd consider that current running sessions a lost cause until it completes or you kill it. You can see the "estimate" of how long that current running SQL is going to take in v$session_longops. You can use a script like Tanel's sw.sql
    http://blog.tanelpoder.com/2008/01/08/updated-session-wait-script/
    to see what the wait interface has to say.
    >
    Please suggest me your valuable tips so that I approach this work properly.
    >
    My approach for this would be to determine what the current explain plan is and compare it to one that ran (correctly) in the past and then try to determine why it changed. (bad stats, dropped index, parameter changes, etc).
    Cheers.

  • Can I Update Time Machine Backup Without Booting From The Source Drive

    Greetings,
    Can I update a time machine backup without booting from the original source drive?
    My main Macbook Pro internal drive seemed to have died. I had not backed up in months so my Time Machine backup was old.
    I replaced the drive with a new one and settled for restoring from the old TM backup because my latest info was on the dead drive and not backed up.
    I just plugged the "broken" drive into a dock and it mounted.
    It won't boot from the drive but I can mount it and copy from it so far.
    I now want to update my Time Machine backup with the info on the 'broken" drive while it's able to be mounted.
    How can I accomplish this without booting from the 'broken" drive and running time machine.
    Recap...
    I need to update a Time Machine backup using another hard drive without booting from the source (as I cannot). Both drives are connected via USB to my MBP and I am booted from another MBP. I want to end up with the newer info from the "broken" drive updating my older Time Machine backup.
    Thank You,
    SG

    Hi
    Time Machine will only be able to backup whilst booted into OSX, so unless you can mount the drive, and boot up the OS that is installed on the disk, then no, you will not be able to run a Time Machine backup of that drive.
    You could image the drive onto another using Disk Utility
    Cheers

  • How to get column names for a specific view in the scheme?

    how to get column names for a specific view in the scheme?
    TIA
    Don't have DD on the wall anymore....

    or this?
    SQL> select text from ALL_VIEWS
      2  where VIEW_NAME
      3  ='EMP_VIEW';
    TEXT
    SELECT empno,ename FROM EMP
    WHERE empno=10

  • HT1338 My special characters screen for pages is running in the background no matter what I do.  It randomly pops up and then goes away.  I can't close it even though I have closed pages and restarted my computer.  How can I stop this.

    My special characters screen for pages is running in the background no matter what I do.  It randomly pops up and then goes away.  I can't close it even though I have closed pages and restarted my computer.  How can I stop this.

    Try trashing the .plist with CharacterViewer in its name in Home/Library/Preferences.  To get to Home/Library you may need to hold the option key down while you do Finder > Go.

  • I have a MacBook that had Mcafee on it and went to great lengths to get it off.  Unfortunately after running all the remove scripts and support from mcafee, in my console it still shows com.apple.launchd{1} with message (com.mcafee.virusscan.VshieldEPoint

    I have a MacBook that had Mcafee on it and went to great lengths to get it off.  Unfortunately after running all the remove scripts and support from mcafee, in my console it still shows com.apple.launchd{1} with message (com.mcafee.virusscan.VshieldEPointInterface[7881]) Exeted with exit code:1  Then the next line says will start in 10 seconds and it repeats endlessly.

    Hi there,
    You're running an old version of Safari. Before troubleshooting, try updating it to the latest version: 6.0. You can do this by clicking the Apple logo in the top left, then clicking Software update.
    You can also update to the latest version of OS X, 10.8 Mountain Lion, from the Mac App Store for $19.99, which will automatically install Safari 6 as well, but this isn't essential, only reccomended.
    Thanks, let me know if the update helps,
    Nathan

  • I am currently running OS 10.6.8 on my iMac and plan to upgrade to OS Mountain Lion. Will MS Office 2008 for Mac still run on the new OS?

    I am currently running OS 10.6.8 on my iMac and plan to upgrade to OS Mountain Lion. Will MS Office 2008 for Mac still run on the new OS?

    Check compatibility for all your software
    http://roaringapps.com/apps:table

  • Ensure 1 Active Sync process runs against the change log before all others?

    He folks,
    We have a lot of LDAP active sync thread. We have a primary on that correlates to an individuals account. Then we have several that represent affiliations at our organization. The affiliations are represented in LDAP as subordinates of the main persons entry. These sets of data were set up as different resource adapters because the they are different object types in LDAP.
    Now we are running into a problem where the active sync threads for subordinates are running before the thread for the main entry. What this means, is that an affiliation thread might run, see a new person was added and ignore it (since that isn't it's resource) but find the affiliation subordinate entry and want to process it. However, the thread can't find an associated account in IDM yet, so no processing takes place on that change, ever..
    If the main account active sync thread had already run, it would see the main entry, and then make a correisponding IDM entry. If the IDM entry has been made, and the affiliation resource active sync adapter runs, it will then find the IDM entry and update that.
    So.. We are experience problems when the affiliation processes a new account before the main account sync process.
    Can we ensure somehow that the main account active sync process always runs first? These are all LDAP resources. If we could ensure the main account resource / sync happens before any other affiliation resource, then we would never ignore data, and would not have anyproblems.
    Does anyone know of a good clean way to do this?
    Thanks!

    I had a similar issue, and solved it by using post process workflows and starting and stopping resource adapters manually. This will allow you to start the first resource, and any others you want can be started/stopped manually via the workflow. You can effectively "chain" resource adapters to run in any order you'd like.
    On the first resource that you want to run before anything else, this will run as a post-process workflow:
         <Activity id='0' name='stopFirstResource'>
            <Action id='0' name='stop'>
              <expression>
                <block name='stop'>
                  <invoke name='stopActiveSyncOnResource' class='com.waveset.session.SessionUtil'>
                    <ref>displaySession</ref>
                    <s>%%FIRSTRESOURCENAME%%</s>
                  </invoke>
                </block>
              </expression>
            </Action>
            <Transition to='Process Errors'>
              <ref>WF_ACTION_ERROR</ref>
            </Transition>
            <Transition to='startSecondResource'/>
          </Activity>
          <Activity id='1' name='startSecondResource'>
            <Action id='0' name='start'>
              <expression>
                <invoke name='startActiveSyncOnResource' class='com.waveset.session.SessionUtil'>
                  <ref>displaySession</ref>
                  <s>%%SECONDRESOURCENAME%%</s>
                </invoke>
              </expression>
            </Action>
            <Transition to='Process Errors'>
              <ref>WF_ACTION_ERROR</ref>
            </Transition>
            <Transition to='end'/>
          </Activity>
    This will stop the first one (after it has run) and start the second one.
    Then, on the post process workflow of the second resource:
          <Activity id='1' name='stopSecondResource'>
            <Action id='0' name='stop'>
              <expression>
                <block name='start'>
                  <invoke name='stopActiveSyncOnResource' class='com.waveset.session.SessionUtil'>
                    <ref>displaySession</ref>
                    <s>%%SECONDRESOURCENAME%%</s>
                  </invoke>
                </block>
              </expression>
            </Action>
            <Transition to='Process Errors'>
              <ref>WF_ACTION_ERROR</ref>
            </Transition>
            <Transition to='end'/>
          </Activity>This stops the second one.

  • Itunes  11.4.0.18 crashing when clicking on app store  Itunes is getting crash when clicked on app store. I tried to get some information for this crash and got the above message in debugging mode. Please fix this if required but i am unable to open

    Itunes  11.4.0.18 crashing when clicking on app store
    Itunes is getting crash when clicked on app store. I tried to get some information for this crash and got the above message in debugging mode. Please fix this if required but i am unable to open app store.

    Click here and follow the instructions to change the iTunes Store country.
    (97125)

  • How do i get serial number for my element12 i have the redemption code

    how do i get serial number for my element12 i have the redemption code

    Hi ylee0y0te,
    Please follow the steps here.
    1. http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    2.http://helpx.adobe.com/x-productkb/global/find-serial-number-student-teacher.html
    3.http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    Hope it helps you.
    Regards,
    Rajshree

  • My iphone 4 locked up for several hours. i then tried to reset by holding down the home button and power button at the same time for 10 seconds and then the home button for 10 seconds. it is now completely black. what do i do? couldnt restore it in iTunes

    My iphone 4 locked up for several hours. i then tried to reset by holding down the home button and power button at the same time for 10 seconds and then the home button for 10 seconds. it is now completely black. what do i do? couldnt restore it in iTunes. Has anyone had this problem? Help!

    Same thing happened to me today. I wasn't even using the phone for the past 6 hours and suddenly I can't connect to the internet, none of my internet apps would work - nothing. I tried to call AT&T from the iphone and it locked up - couldn't turn it off, change to the home screen - nada - brick.
    Did the Home/Power button thing and that worked but this I've only had this phone for about 4 weeks and it's locked up more times than my 3GS did the whole two years I had it! Ridiculous

  • HT1349 my home button will not work properly... I have to hold it down several times for it to go to the home screen

    my home button will not work properly... I have to hold it down several times for it to go to the home screen

    I would try a restore just to see if it could be something software related, but if that doesn't work I would recommend taking to an Apple Store to see if it is a serious hardware issue and if it is, assuming you're in warranty, then they would be able to replace your phone.

  • Significant difference in response times for same query running on Windows client vs database server

    I have a query which is taking a long time to return the results using the Oracle client.
    When I run this query on our database server (Unix/Solaris) it completes in 80 seconds.
    When I run the same query on a Windows client it completes in 47 minutes.
    Ideally I would like to get a response time equivalent on the Windows client to what I get when running this on the database server.
    In both cases the query plans are the same.
    The query and plan is shown below :
    {code}
    SQL> explain plan
      2  set statement_id = 'SLOW'
      3  for
      4  SELECT DISTINCT /*+ FIRST_ROWS(503) */ objecttype.id_object
      5  FROM documents objecttype WHERE objecttype.id_type_definition = 'duotA9'
      6  ;
    Explained.
    SQL> select * from table(dbms_xplan.display('PLAN_TABLE','SLOW','TYPICAL'));
    PLAN_TABLE_OUTPUT
    | Id  | Operation          | Name      | Rows  | Bytes |TempSpc| Cost (%CPU)|
    |   0 | SELECT STATEMENT   |           |  2852K|    46M|       | 69851   (1)|
    |   1 |  HASH UNIQUE       |           |  2852K|    46M|   153M| 69851   (1)|
    |*  2 |   TABLE ACCESS FULL| DOCUMENTS |  2852K|    46M|       | 54063   (1)|
    {code}
    Are there are configuration changes that can be done on the Oracle client or database to improve the response times for the query when it is running from the client?
    The version on the database server is 10.2.0.1.0
    The version of the oracle client is also 10.2.0.1.0
    I am happy to provide any further information if required.
    Thank you in advance.

    I have a query which is taking a long time to return the results using the Oracle client.
    When I run this query on our database server (Unix/Solaris) it completes in 80 seconds.
    When I run the same query on a Windows client it completes in 47 minutes.
    There are NO queries that 'run' on a client. Queries ALWAYS run within the database server.
    A client can choose when to FETCH query results. In sql developer (or toad) I can choose to get 10 rows at a time. Until I choose to get the next set of 10 rows NO rows will be returned from the server to the client; That query might NEVER complete.
    You may get the same results depending on the client you are using. Post your question in a forum for whatever client you are using.

  • How to get remaining time for baton after setting timeOut property

    Hello,
    Is it possible to get the remaining time for baton after setting timeOut, or do I have to maintain a separate Timer for that?
    Been following this excellent tutorial here http://tv.adobe.com/watch/adc-presents/create-shared-forms-in-livecycle-collaboration-serv ice/

    Thanks Nigel, before reading your reply, I came up with something like this, but it seems extending the Baton class is not enough, as I would need my own BatonProperty as well that uses this extended Baton class...
    Also attempted to get some help here http://stackoverflow.com/questions/7116814/actionscript3-lccs-how-to-access-property-paren t-class-protected-var/7116882#7116882
    Could this be made into a feature request for Baton and BatonProperty, se we could easily get the remaining time please?   I guess I can wait for a future release.
    /custom as file /
    package com.mysite.BatonExtender
         import com.adobe.rtc.sharedModel.Baton;
         import flash.events.TimerEvent;
         public class BatonExtender extends Baton
              public function BatonExtender()
              super();
              _autoPutDownTimer.addEventListener(TimerEvent.TIMER,countDown);    
              trace("CURRENT TIMER:"+_autoPutDownTimer.currentCount);
              trace("BATONEXTENDER added");
              public function countDown(p_evt:TimerEvent):void {
                   trace("TRACING START countDown....");
                   if (_autoPutDownTimer.running) {
                        trace(_autoPutDownTimer.currentCount);
                        //sharedTimer.value = String(90 - _autoPutDownTimer.currentCount);
                   trace("TRACING END....");

  • User Exit for Enter / post invoice against the order without goods receipt

    Hi,
    My requirement is to enter or  post the  invoice against the Purchase order without goods receipt.
    Need to an User Exit  for this.
    Thanks in Advance!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    User exits available are:
    V02V0001 Sales area determination for stock transport order
    V02V0002 User exit for storage location determination
    V02V0003 User exit for gate + matl staging area determination (headr)
    V02V0004 User Exit for Staging Area Determination (Item)
    V50PSTAT Delivery: Item Status Calculation
    V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
    V50R0001 Collective processing for delivery creation
    V50R0002 Collective processing for delivery creation
    V50R0004 Calculation of Stock for POs for Shipping Due Date List
    V50S0001 User Exits for Delivery Processing
    V53C0001 Rough workload calculation in time per item
    V53C0002 W&S: RWE enhancement - shipping material type/time slot
    V53W0001 User exits for creating picking waves
    VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)
    user exit when PGI is done
    Reward if useful.

Maybe you are looking for

  • Using (Select All) for report parameter

    Hi there, I am Looking for assistance in making the the (Select All) option work for a particular report. The parameter is for product families (which there are about 47 unique results for). The report is also influenced by two other parameters, one

  • Error message PG009 : no data stored for the period

    During upgrade testing from 4.7 to ECC6 noticing an error message PG009 with a suggested solution "In table T582A maintain the indicators 'Choose with start', 'Choose with end', 'Choose without date' for each infotype" I am able to see recotds in 4.7

  • IP pool allocation based on NASport IP address

    Hi, using ACS 4.2 and I can't find a way to bind an incoming NAS port to a specifc IP Pool: When a user connects the request to auth comes from 2 possible NAS ports randomly (this cannot change). Depending on which NAS makes the requests determines t

  • Document attached to Tasks in Notification

    Hi Everyone I have requirement to attach document to a task in a notification. I need to retrieve this document in another application.  Could anyone guide me on this.  I am looking for the table where the document (or its link) is stored and secondl

  • Problems after installing current update

    After downloading the current update: 1.) Upon openning, I get the red X and this error in the bottom left: java.lang.reflect.InvocationTargetException 2.) I get this message trying to clean a project: Make sure a default target server is set in the