您的位置: 首页 计算机类> Oracle认证> 应用技术
Oracle认证应用技术,oracle dba认证,oracle题库,oracle考试试题
公务员考试辅导课程

获取ORACLE语句执行时间

发布时间:11-09

页 数:1页

上一篇:细化解析:教你轻松掌握Oracle内存结构

下一篇:Oracle数据库中的Copy命令使用方法



  
   有时候我们需要获取或记录ORACLE语句执行时间,其实简单的方法就能实现,看下面的代码:
    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> 

Google
 


     

考试信息

热点

课程

更新

©2005-2006 100ksw.com 版权所有 皖ICP备06013378号