記錄ORACLE語句的執行時間

guyeh發表於2007-08-28

記錄ORACLE語句的執行時間需要使用 SET TIMING ON,例如:

[oracle@jw ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 9.2.0.4.0 - Production on 星期二 8月 28 16:59:43 2007

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.


連線到:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production

SQL> set timing on;
SQL> select count(*) from tab;

COUNT(*)
----------
2447

已用時間: 00: 00: 00.12
SQL>

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/570433/viewspace-966501/,如需轉載,請註明出處,否則將追究法律責任。

相關文章