Calculate responce time

dear all,
How do I calculate average response time per sql. And the time displayed is secs or milli-secs
using oracle 9i
Regards and thanks a lot
SL
Message was edited by:
user480060

set autotrace traceonly
set arraysize 100 (or whatever size your program will use, to fetch millions, at least 100 to
500ish)
set timing on
alter session set sql_trace=true;
run query1
run query2...
exit
and tkprof it.
Source:http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:8764517459743

Similar Messages

  • Calculate responce time in ssrs

    hi .
    i am working on SSRS. we have some chat data like  chat ID,chat_time,visitor-ID and operator Id. suppose data is like this
    visitor     12.2.12
    operator    12.2.18
    visitor     12.2.20
    visitor     12.2.21
    visitor     12.2.23
    operator    12.2.38
    in this scenario i want to calculate response time between visitor and operator.
    now i am using previous function for calculate previous row time.but this works only when data like this
    visitor     12.2.23
    operator    12.2.38
    visitor     12.2.42
    operator    12.2.44
    mean 1 visitor and i operator but if i have 3 visitor and then operator so how i calculate visitor first message and then operator reasponse time
    thanks in advance

    Hi steve,
    If I understand correctly, you want to calculate the response time between visitor and operator. And if there are more than one visitors between two operators, we should calculate the first visitor. After testing the issue in my local environment, please
    refer to the following steps:
    In the design mode, click the menu” Report”>>”Report Properties”>>”Code” tab. Then place the code below in the section:
    Dim shared AA As String 
    Dim shared CC As Date
    Dim shared DD As Date
    Public Shared Function getPrevious(Person as String,Item As Date) As Integer
      If (Person="operator") Then
         DD=Item
      End If  
      If (Person=AA) OR (Person="operator")  Then
      Else
        AA=Person
        CC=Item
      End If     
      If (Person="operator") Then
           AA="nothing"
           return DateDiff("s",CC,DD)
      End If
     End Function
    Right-click the times (response time) column to insert a column right of it.
    Modify the expression of the new cell as follows:
    =code.getPrevious(Fields!Person.Value,Fields!times.Value)
    The following screenshot is for your reference:
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Set Start Position to Calculate Travel Time in Calendars

    Hi All,
    I am quite impressed with the new traveling time feature in Calendars, however I cannot seem to get the best out of it.
    Is there a way to reset the start position for the calculations, I am thinking about the following senario;
    Three appointments in the same day Appointment one calculates OK but appointment two calculates the start from the office and not the location of appointment one. Same thing happens with appointment three.
    What I want to do is set the first appointment, calculate travelling time, set the second and calculate the traveling time from appointment one and then the same with appointment three.
    The only way I have found to do this is to jump back and forward between calendar and maps and manually calculate like I used to do before this update.
    Thanks in advance for any replies.

    sberman Southern California
    This solved my questionRe: Calendar Travel Time Starting from Work when I want to Start from Home Oct 23, 2013 8:43 PM (in response to theglenlivet12)
    From Calendar's help:
    To set your starting location, Calendar first looks for your location in any events that are up to three hours before this event. If Calendar doesn’t find a location, it uses your work address during work hours and your home address during other hours. (Your work hours are set in Calendar preferences using the “Day starts at” and “Day ends at” menus.) If your card in Contacts doesn’t have your addresses, Calendar uses your computer’s current location.

  • How to calculate Average time from a date field

    Hi All,
    I have a date type field in my table .
    I want to calculate average time for a given country in a select query. Date has to be exculded. Only time has to be taken into consideration.
    Kindly help me.
    Sample data
    india 25-JUN-09 08:12:45
    india 25-JUN-09 09:01:12

    Take which one you want.WITH dates AS
      (SELECT sysdate x FROM dual
        UNION
       SELECT sysdate + 1 +1/24 FROM dual
    SELECT TO_CHAR(to_date(AVG(to_number(TO_CHAR(to_date(TO_CHAR(x,'HH24:MI:SS'),'HH24:MI:SS'),'sssss'))),'sssss'),'hh24:mi:ss')
       FROM dates;
    WITH dates AS
      (SELECT sysdate x FROM dual
        UNION
       SELECT sysdate + 1 +1/24 FROM dual
    SELECT floor(24 * AVG(x- TRUNC(x)))
      || ':'
      || floor(mod(24 * AVG(x- TRUNC(x)),1) * 60)
      || ':'
      || floor(mod(mod(24 * AVG(x- TRUNC(x)),1) * 60,1) * 60)
       FROM dates;By
    Vamsi

  • Calculate stall time during HTTPNetStream.seek()

    Hi,
    I am trying to calculate the time taken for a HDS stream to seek from point A to B. So far I have been calculating it using org.osmf.events::MediaPlayerStateChangeEvent, the state changes to buffering as soon as seek commences and changes to playing when the seek is finished and playback resumes. I am quite not sure if this is accurate because the player seems to have a much smaller stall time (visually) when comparing it to the numbers I get from this procedure. My question here is:
    1. Does the flash player continue to play some frames even after this event is fired? Is there any parallelism when seek is executed?
    2. If yes, is there a reliable way to accurately know for how long there has been no video on the screen? rather than calculating it as the time between state changes, can I get the value from a class that renders the images on the screen?
    Thanks!

    Jakubk, is this still an issue?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • How can i calculate execution time for methods?

    I'm making a project that i want to calculate execution time for a
    method in "miliseconds" or "microseconds".You see,I have a sort algorithm and i want to calculate execution time of this algorithm.How can i do?
    Thanks...

    Just remembered.
    The answer you get isn't trustworthy below a hundred millis, so you may need to sort a hundred or a thousand times to get a reasonable elapsed time. You also need to run the test five or ten times and take an average. In Windows you should fire up the Task Manager and be sure that your other CPU usage is as near to zero as you can get.

  • Responce times from end-user point of view

    Hi,
    I am looking for the way how to collect responce times from end-user point of view.
    Logging of function execution via DMS is not enogh thus we need to discover and monitor problems in all components including poor network, users terminals etc.
    Regards,
    Tomasz

    Hi,
    I am looking for the way how to collect responce times from end-user point of view.
    Logging of function execution via DMS is not enogh thus we need to discover and monitor problems in all components including poor network, users terminals etc.
    Regards,
    Tomasz

  • Calculate execution time of procedure

    hiii
    I create procedure that insert data in multiple tables i want to calculate execution time of procedure the start time
    and the end time to insert them in a table .
    and i want to calculate the start&end time that the procedure take to insert in each table
    i use DBMS_UTILITY.GET_TIME but it gives me in millisecond i want the format DD/MM/YYYY HH:MI:SS
    i also use sysdate but it gives un un reasonable time
    like the start time more than the end time
    how to calculate execution time of procedure???????
    thanks

    Look at the docs for DBMS_PROFILER.
    http://www.evdbt.com/2004_presentation_Q10.ppt
    Bye Alessandro

  • How to calculate total time of mouse movement

    Hi Everyone.
    I am doing project on gesture recognition with touchpad. I need to find out the total time of completion of gesture on touchpad. For that I need to calculate total time of cursor movement on laptop touchpad. When cursor starts moving, that time I need to capture time and when it stops also. I need to find out difference between the start time and stop time. Please help me to do this task. Presently I am trying with event structure and timed structure but I am getting only present time only. I tried with counter but unable to get the difference.

    I missed the mouse move event when I saw this earlier, and for some reason I thought the first attempt would give you what you wanted. 
    Here is a different VI. It uses mouse move event with some logic that remembers the first mouse move event. Otherwise, you won't get the correct time.
    Attachments:
    Mouse Move Time.vi ‏11 KB

  • Need  the query to calculate the time taken to excute it.

    hi all,
    i need the query to calculate the time taken to excute it.
    for ex:
    select * from emp;
    how much time it will take to give o/p
    Thanks in advance
    satya

    Just to add to what was said - the execution can each time be DIFFERENT as the factors that governs performance are NOT CONSTANT.
    If Oracle has no idea how long the query is going to take before executing it, then how can you and your code know?
    Oracle's CBO estimates the cost (expense) of the query. This is an indication of how expensive a query is - and the more expensive the query, the more resources need to be used, the longer the query will take. The less expensive the query, the fewer resources it need, the faster it will take.
    And that is it. How fast or how slow? Oracle does not know. How much faster a query with a cost of 10,000 versus a query with a cost of 1? Oracle does not know.
    Why? Because the platform is not constant. Just what data is at this exact moment in the db buffer cache? Just how much CPU capacity is available for the new few seconds? Just what will the sustained throughput be of the I/O subsystem and channels for the next minute? Just how many memory pages need to be swapped between cache and memory? Etc. etc.
    All these factors change every single second. So forget about attempting to accurately calculate up-front the time it will take for a query. IT IS NOT POSSIBLE.

  • How to calculate the time between start trigger,first scan and first A/D in DAQ

    Environment: Labview 6.1, N6052E DAQ board(max scan rate=333KHz, max channel rate=333KHz, settling time=3.5usec+1LSB)
    I am using external scan clock 10K scan/s collecting data on 16 AI channels, and external channel clock 200KHz.
    Could show me how to calculate the time betweent he start trigger, the first scan and the first A/D conversion?
    Thanks

    I read the one you give to me. still cannot work out. I am using Labview 6.1 DAQ vi, including AI config.vi. clock config.vi, AI control.vi, AI read.vi, working on colect data on 16 AI channels. So I belong to SCAN function and external scan and sampling timing, right?
    But it says the T1 and T2 are determined by external signals. How can I calculate that?
    T1=1/10KHz or T1=1/160Khz?
    T2=1/200KHz?
    Is the above correct?

  • How to calculate Response time in HH:MM:SS format ?

    Hi,
    How can we calculate reponse time in HH:MM:SS format?
    I have tried this formula but doesnt really seems to be providing desired output
    CAST (FLOOR (TIMESTAMPDIFF (SQL_TSI_HOUR, "Service Request"."Opened Date and Time" , "Service Request"."Closed Date and Time" ) /24) as CHAR) || ' Days, ' || CAST (FLOOR((TIMESTAMPDIFF (SQL_TSI_MINUTE, "Service Request"."Opened Date and Time" , "Service Request"."Closed Date and Time" ) - FLOOR (TIMESTAMPDIFF (SQL_TSI_HOUR, "Service Request"."Opened Date and Time" , "Service Request"."Closed Date and Time" ) /24) *1440)/60) as CHAR) || ' Hours, ' || CAST (TIMESTAMPDIFF(SQL_TSI_MINUTE, "Service Request"."Opened Date and Time" , "Service Request"."Closed Date and Time" ) - (FLOOR (TIMESTAMPDIFF (SQL_TSI_HOUR, "Service Request"."Opened Date and Time" , "Service Request"."Closed Date and Time" ) /24) *1440) - (FLOOR((TIMESTAMPDIFF (SQL_TSI_MINUTE, "Service Request"."Opened Date and Time" , "Service Request"."Closed Date and Time" ) - FLOOR (TIMESTAMPDIFF (SQL_TSI_HOUR, "Service Request"."Opened Date and Time" , "Service Request"."Closed Date and Time" ) /24) *1440)/60)*60) as CHAR) || ' Minutes'
    Output for this formula :
    Opened Time Closed Time Response Time
    16/10/2008 08:50:00 21/10/2008 11:33:21 5 Days, 2 Hours, 43 Minutes
    16/10/2008 08:57:00 24/10/2008 15:17:38 8 Days, 6 Hours, 21 Minutes
    16/10/2008 09:55:00 27/11/2008 10:44:36 42 Days, 0 Hours, 50 Minutes
    16/10/2008 10:13:00 21/10/2008 13:53:38 5 Days, 3 Hours, 41 Minutes
    16/10/2008 11:18:00 20/10/2008 09:11:29 3 Days, 21 Hours, 53 Minutes
    I just need time difference between Closed Time and Open time in HH:MM:SS format.
    Regards
    Ahmed

    WITH m AS
      SELECT [Minutes] = CAST(21.52 * 60 AS int)
    SELECT CAST([Minutes] / 60 AS varchar) + ':' + RIGHT(100 + [Minutes] % 60, 2)
    FROM m
    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

  • Calculate local time based on timezone offset

    I am sure this question has been answered many times. but if you can explain me how to calculate local time based on the timezone offset.
    for instance, I am in central time zone. but i want to display local pacific time on my page. I have the timezone offset as -420 minutes.
    Thanks in advance.
    KM

    given a database table tzdata composed of time zone names and tz offset
    i want to be able to display the corresponding Date / Time of each country
    based on the time zone offset .
    in the offsets i posted above i found things like +10.5 ,-1.2 ect..
    how to convert those into the correct format so i can feed it to SimpleTimeZone() construtor ?Why would you want to?
    I am just pointing out here that java already has all those timezones and offsets configured into it. As well as if/when DST applies.
    String[] zones = TimeZone.getAvailableIDs();
            for (int i=0; i<zones.length; i++){
              System.out.println("Zone " + i + " = " + zones[i] + " offset = " + TimeZone.getTimeZone(zones).getRawOffset());
    In other words this database table is reinventing the wheel.
    You just need to tell Java which Timezone you want (according to the standard names for timezones begin Region/City) and it will work out the correct offset.
    eg
    for Afghanistan: new TimeZone("Asia/Kabul");
    Albania: new TimeZone("Europe/Tirane");
    Cheers,
    evnafets

  • 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 ǝɥʇ'

  • Member sheet responce time is to long

    As I try to open a membersheet trough clicking "maintain dimension members" the responce time is really to long. and some times we get a dump or there is no responce.
    our apshell installation is correct (all dimesions are filled with members). what can be the reason for this performance issue?
    best regards

    Ok, SP08 already improved speed of that function.
    Can you tell what kind of dump you having? Can you also try Fiddler to see which part is slow: BW or network?

Maybe you are looking for

  • Where can i buy a new battery?

    My battery bl-5f for my nokia nav 6210 now have a very little time of autonomy before it need a new charge.Only 1 day and the phone goes off.This means that my battery is dead?I need a new one?How much cost in italy and where can i buy it?

  • Suppress response in PI 7.0 adapter

    Sigi Hi Forum, we have following situation:             IDOC -> SAP PI <-> WebService The WebService responses back technical status u201Dtrueu201D or u201Cfalseu201D. Because of we have an IDOC initially we resolved that issue with an Async u2013 Sy

  • Webcam stopped to wor on my Compac presario cq60 what to do now?

    I have had very good support on my inbuild webcam on this computer. For some reason has this function stopped to work and it seams to me that the hardwhere is missing??? I have tried to download new softwhere but without any sucess, running on Window

  • Viewing order on iPad music app

    I use a PC with itunes.  When I sync to my ipad the playlists are not in alphabetical order.  How do I fix this?

  • Where do I find my old mac site - help

    Hi I have just upgraded to ilife09 ... I had a website on a version from a few years ago. So this was publish with a mac address and not mobile me ... I no longer have copies of the old software as I had to reformat my hard drive When I click into Iw