Obtain or record the execution time of the "Oracle" Statement

Source: Internet
Author: User
Welcome to the Oracle community forum and interact with 2 million technical staff. In many cases, we need to obtain or record the Oracle statement execution time. In fact, this can be implemented simply by using the following code: SETTIMINGON is required for the execution time of the OracleE statement. For example: [oracle @ jw ~] $ SqlplusassysdbaSQL * Plus:

Welcome to the Oracle community forum and interact with 2 million technical staff> in many cases, we need to obtain or record the execution time of Oracle statements. In fact, the Code is as follows: set timing on is required for execution of the OracleE statement, for example, [oracle @ jw ~]. $ Sqlplus "/as sysdba" SQL * Plus:

Welcome to the Oracle community forum and interact with 2 million technical staff> enter

In many cases, we need to obtain or record the execution time of Oracle statements. In fact, this can be implemented simply by using the following code:

Set timing on is required for the execution time of the OracleE statement. For example:

[Oracle @ jw ~] $ Sqlplus "/as sysdba" SQL * Plus: Release 9.2.0.4.0-Production on Tuesday August 28 16:59:43 2007 Copyright (c) 1982,200 2, Oracle Corporation. All rights reserved.

Connect:

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 used time: 00: 00: 00.12SQL>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.