Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: tim column in trace output
Djordje,
Thanks for the information. I'll have to correct my statements about the Oracle9i Epoch. If the values you listed below were microsecond times that used 1/1/70 as the Epoch, then these numbers would represent times in February 1970:
Your data:
21/01/2003 22:46:50 4655566135078 22/01/2003 07:11:46 4685152574608 22/01/2003 11:24:55 4699984992031
These tim values, if interpreted as Epoch=1/1/70 microsec times:
$ perl tim.pl 4655566135078
15:12:46.135078 Monday 23 February 1970
$ perl tim.pl 4685152574608
23:25:52.574608 Monday 23 February 1970
$ perl tim.pl 4699984992031
03:33:04.992031 Tuesday 24 February 1970
Judging from the trace file you sent in your response to Mario, your 9i tim numbers are definitely microsecond values.
I hate that my "tim Epoch is the Unix Epoch" theory is broken, at least for Solaris. However, I'll stand by my earlier statement that it's only a small disappointment, because no matter what the Epoch is, you can track tim values to the wall clock. Any time you want to want to construct a drift correction data point, you can emit the "*** <timestamp>" line to your trace data by calling DBMS_SYSTEM.KSDDDT. (Thanks, Julian Dyke, for that information.)
Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com
Upcoming events:
- 2003 Hotsos Symposium, Feb 9-12 Dallas - RMOUG Training Days 2003, Mar 5-6 Denver - Hotsos Clinic 101, Mar 26-28 London
-----Original Message-----
Jankovic
Sent: Sunday, January 26, 2003 10:19 PM
To: Multiple recipients of list ORACLE-L
Thanks Cary,
At least on the database ver/platform I tried it (Oracle 9.2.0.1.0 on
Sun
Solaris 2.6) these do not appear to be milliseconds with unix Epoch.
I ran "select sysdate from dual" in the traced sessions and compared the
run-time with the tim column (so there could be around one second
accuracy).
The three of the results were:
21/01/2003 22:46:50 4655566135078 22/01/2003 07:11:46 4685152574608 22/01/2003 11:24:55 4699984992031
I've put them in a table and here is the reference time when tim is
divided
by 976562.5:
select stm_date, stm_date-stm_tim/976562.5/86400 2 from ana_trace_tm
STM_DATE STM_DATE-STM_TIM/97
------------------- ------------------- 21/01/2003 22:46:50 27/11/2002 18:31:5022/01/2003 07:11:46 27/11/2002 18:31:50 22/01/2003 11:24:55 27/11/2002 18:31:50
BTW the factor I came up with was around 976,560 but as 976,562.5 is
1,000,000,000/1024 I thought this could be the one that is in fact used
by
oracle.
I tried today again and the factor drifted a bit to 976460, so I am not
quite sure how credible it is, although in a reasonable trace period
drifting is negligible. Your suggestion for synching wall clock and tim
(item "4") is the one that we will probably use. The reason why I
though
having a wall clock of when the statement completed (as you nicely
pointed
out) could be of some help, is in, for example, comparing response times
for
the same statement during different times of days (different system
load,
etc.).
Thanks for all the other comments.
Djordje
> Djordje,
>
>
>
>
>
> >
>
> >
>
>
>
>
>
>
>
>> To REMOVE yourself from this mailing list, send an E-Mail message
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
>
>> To REMOVE yourself from this mailing list, send an E-Mail message
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Djordje Jankovic INET: djordjej_at_rogers.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Cary Millsap INET: cary.millsap_at_hotsos.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Jan 27 2003 - 09:59:56 CST
![]() |
![]() |