Oracle工具之autotrace的開啟與選項說明

來源:互聯網
上載者:User

Oracle工具之autotrace的開啟與選項說明

平台:Oracle 10g  , RHEL-5.8

步驟如下:

1)sys@ORCL> @$ORACLE_HOME/sqlplus/admin/plustrce.sql

2)sys@ORCL> grant plustrace to public;

關於Autotrace幾個常用選項的說明:

Set autotrace off :預設值。

Set autotrace on :含查詢輸出,執行計畫,統計資訊

On後有兩個選擇性參數:

Explain:含查詢輸出,執行計畫

Statistics:含查詢輸出,統計資訊

Set autotrace traceonly:含執行計畫,統計資訊

相關文章

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.