Home >Database >Mysql Tutorial >Oracle工具之autotrace的开启与选项说明

Oracle工具之autotrace的开启与选项说明

WBOY
WBOYOriginal
2016-06-07 17:16:461188browse

Oracle工具之autotrace的开启与选项说明,平台:Oracle 10g , RHEL-5.8步骤如下:1)sys@ORCLgt; @$ORACLE_HOME/sqlplus/admi

平台: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:含执行计划,,统计信息

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn