Skip to Main Content

Breadcrumb

Question and Answer

Tom Kyte

Thanks for the question, Valeri.

Asked: September 01, 2000 - 8:11 am UTC

Last updated: March 07, 2003 - 7:31 pm UTC

Version: SQL*Plus: Release 8.0.6.0.0

Viewed 1000+ times

You Asked

Can I change elapsed time format to HH:MI:SS ?
and column TIMECOL have only DATE format?

SQL*Plus: Release 8.0.6.0.0 - Production on Ïòí Ñåí 1 15:13:14 2000
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Ïðèñîåäèíåí ê:
Oracle8 Enterprise Edition Release 8.0.5.1.0 - Production
With the Partitioning and Objects options
PL/SQL Release 8.0.5.1.0 - Production

orcl:demo> set timing on
orcl:demo> select empno from emp;

EMPNO
----------
7369
7499
7521
7566
7654
7698
7782
7788
7839
7844
7876

EMPNO
----------
7900
7902
7934

14 ñòðîê âûáðàíî.

èñòèííîå âðåìÿ: 550 <--------?
orcl:demo>

and Tom said...



On NT, SQLPlus does this format and this format only until version 8.1. In Oracle8i -- sqlplus on NT does the same as the Unix variants do. Prior to that, no, you cannot change the format.

Rating

  (2 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

WHAT IS THIS FORMAT

A reader, October 01, 2001 - 5:46 pm UTC

Elapsed: 00:00:01.90

what is the above format

and I heard , the format differs from platform to platform

can you kindly list the format by platform

Tom Kyte
October 01, 2001 - 7:27 pm UTC

hh:mm:ss.hh

hours, minutes, seconds, hsecs.

The format no longer varies -- should be the same for all in 8i and up.

Trouble in windows98

Adrian, March 07, 2003 - 6:05 pm UTC

Hi Tom, i have tried to change the format in DB 8i standard edition can u help me ?
there is the code:

SQL> select sysdate from dual;

SYSDATE
-------------------
07/03/2003 18:00:08

 real: 490

SQL>

why isn't the format in hh:mm:ss ???

Best regards 
 

Tom Kyte
March 07, 2003 - 7:31 pm UTC

because you are using sqlplus from version 8.0....

I believe it was 8i that they changed that on windows -- but it is "burnt" into sqlplus -- you have no control over it whatsoever. You achieve the same effect -- you are getting a timing in thousands of seconds.

if you are using 8i sqlplus - then maybe it was 9i they changed it -- I forget, it was a while ago anyway. I have no windows machines to test with and see.

More to Explore

VLDB

If you are new to partitioning, check out Connor McDonald's introduction series here.

VLDB

Documentation set on VLDB and Partitioning.