很多情况下我们需要获取或记录Oracle语句执行时间,其实简单的方法就能实现,具体代码如下:
OracleE语句的执行时间需要使用 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> |
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
相关专题
- Oracle 10g基础应用 (4465篇文章)
- 教你正确的理解什么是数据库恢复 (14次浏览)
- Oracle数据库系统使用的几条经验分享 (5次浏览)
- JDBC连接Oracle数据库的十个技巧 (4次浏览)
- Oracle数据库三种标准的备份方法 (4次浏览)
- Oracle数据库的四种启动方式 (3次浏览)
- 在TransactionScope中优先使用Oracle的.NET驱 (2次浏览)
- Eclipse连接Oracle数据库的具体步骤 (2次浏览)
- 如何手工创建Oracle数据库 (1次浏览)
- 提高Oracle数据库系统Import的性能 (0次浏览)
- Oracle 9i在AIX上的性能调整 (0次浏览)



