成人在线亚洲_国产日韩视频一区二区三区_久久久国产精品_99国内精品久久久久久久

您的位置:首頁技術(shù)文章
文章詳情頁

如何獲取或記錄Oracle語句執(zhí)行時(shí)間

瀏覽:138日期:2023-11-26 17:25:07
很多情況下我們需要獲取或記錄Oracle語句執(zhí)行時(shí)間,其實(shí)簡單的方法就能實(shí)現(xiàn),具體代碼如下:OracleE語句的執(zhí)行時(shí)間需要使用 SET TIMING ON,例如:[oracle@jw ~]$ sqlplus '/as sysdba'SQL*Plus: Release 9.2.0.4.0 - ProdUCtion on 星期二 8月 28 16:59:43 2007Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.連接到:Oracle9i Enterprise Edition Release 9.2.0.4.0 - ProductionWith the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining optionsJServer Release 9.2.0.4.0 - ProductionSQL> set timing on;SQL> select count(*) from tab;COUNT(*)----------2447已用時(shí)間: 00: 00: 00.12SQL>
標(biāo)簽: Oracle 數(shù)據(jù)庫