`

autotrace setup oracle

 
阅读更多

Tracing Statements
You can automatically get a report on the execution path used by the SQL optimizer
and the statement execution statistics. The report is generated after successful SQL
DML (that is, SELECT, DELETE, UPDATE and INSERT) statements. It is useful for
monitoring and tuning the performance of these statements.

Controlling the Autotrace Report
You can control the report by setting the AUTOTRACE system variable.

To use this feature, you must create a PLAN_TABLE table in your schema and then
have the PLUSTRACE role granted to you. DBA privileges are required to grant the
PLUSTRACE role. For information on how to grant a role and how to create the
PLAN_TABLE table, see the Oracle Database SQL Reference.
For more information about the roles and the PLAN_TABLE, see the Oracle Database
SQL Reference and the AUTOTRACE variable of the SET command on page 12-89.
Example 8–1 Creating a PLAN_TABLE
Run the following commands from your SQL*Plus session to create the PLAN_TABLE
in the HR schema:
CONNECT HR
@$ORACLE_HOME/rdbms/admin/utlxplan.sql

Example 8–2 Creating the PLUSTRACE Role
Run the following commands from your SQL*Plus session to create the PLUSTRACE
role and grant it to the DBA:
CONNECT / AS SYSDBA
@$ORACLE_HOME/sqlplus/admin/plustrce.sql
drop role plustrace;


create role plustrace;
grant plustrace to dba with admin option;

Example 8–3 Granting the PLUSTRACE Role
Run the following commands from your SQL*Plus session to grant the PLUSTRACE
role to the HR user:
CONNECT / AS SYSDBA
GRANT PLUSTRACE TO HR;


SQL*Plus
User’s Guide and Reference
Release 10.2
B14357-01

分享到:
评论

相关推荐

    oracle 的Autotrace介绍

    oracle 的Autotrace介绍 是oracle10g的新技术,有人需要么

    oracle使用autotrace 功能

    AUTOTRACE是一个SQL*Plus工具,用于跟踪SQL的执行计划,收集执行时所耗用资源的统计信息,是SQL优化工具之一,下面给出启用AUTOTRACE 功能步骤。

    Oracle性能分析——使用set_autotrace_on和set_timing_on来分析select语句的性能.doc

    Oracle性能分析——使用set_autotrace_on和set_timing_on来分析select语句的性能.doc

    大牛出手Oracle SQL优化实例讲解

    1.Oracle如何得到一个很大的表 2.loop insert 实例 3.autotrace验证索引的性能到底有多大? 4.EXPLAIN验证SQL是否走索引 5.结合autotrace创建并验证函数索引 6.sql trace分析工具--TKPROF详细讲解 7.V$SQL视图详解加...

    AutoTrace 0.31.1

    矢量化,包含执行程序与C++源码。 a program for converting bitmap to vector graphics. Inputformats BMP, TGA, PNM, PPM, PGM, PBM and those supported by ImageMagick. Exportformat Postscript, svg, xfig, ...

    深入解析Oracle.DBA入门进阶与诊断案例

    10.1.2 Oracle 10g AUTOTRACE功能的增强 473 10.1.3 AUTOTRACE功能的内部操作 475 10.1.4 使用AUTOTRACE功能辅助SQL优化 477 10.2 获取SQL执行计划的方法 479 10.2.1 通过V$SQL_PLAN获得执行计划 479 ...

    oracle怎么查看执行计划

    怎么进行autotrace进行查看执行计划

    Oracle数据库管理员技术指南

    8.5.5 使用 AUTOTRACE 获得 SQL 语句 执行计划和统计数据 8.6 优化回退段 8.6.1 最小化回退段争用 8.6.2 使动态扩充最小化 8.6.3 分布回退段的 I/O 8.7 优化索引 8.7.1 怎样确定和重建产生碎片的索引 8.7.2 ...

    Oracle 临时表之临时表的应用问题

    网上有人给出了佳的优化思路是:  1、先将大表中满足条件的记录抽出来生成一张临时表  2、再将这较小的临时表与另一张较小的表进行关联查询 ...只要把AUTOTRACE打开你会看到REDO的开销。  关于临时表的使用至

    ORACLE9i_优化设计与系统调整

    §12.8.6 AUTOTRACE 实用程序 157 第13章 数据访问方法 160 §13.1 使用索引的访问方法 161 §13.1.1 何时创建索引 161 §13.1.2 索引列和表达式的选择 161 §13.1.3 选择复合索引的主列 161 §13.1.4 要用可选择性...

    oracle执行计划

    oracle执行计划,设置autotrace允许显示DML语句的一些统计信息和/或查询计划。

    autotrace-0.31.1-38.el7.x86_64 (1).rpm

    离线安装包,测试可用

    Oracle专家高级编程+(清晰).pdf

    着重调优的好书,非常经典,其中对于tkprof,autotrace等有很深刻的讲解

    深入解析OracleDBA入门进阶与诊断案例 4/4

     10.1 使用AUTOTRACE功能辅助SQL优化   10.2 获取SQL执行计划的方法   10.3 捕获问题SQL解决过度CPU消耗问题   10.4 使用SQL_TRACE/10046事件进行数据库诊断   10.5 使用物化视图进行翻页性能调整  ...

    深入解析OracleDBA入门进阶与诊断案例 3/4

     10.1 使用AUTOTRACE功能辅助SQL优化   10.2 获取SQL执行计划的方法   10.3 捕获问题SQL解决过度CPU消耗问题   10.4 使用SQL_TRACE/10046事件进行数据库诊断   10.5 使用物化视图进行翻页性能调整  ...

    深入解析OracleDBA入门进阶与诊断案例 2/4

     10.1 使用AUTOTRACE功能辅助SQL优化   10.2 获取SQL执行计划的方法   10.3 捕获问题SQL解决过度CPU消耗问题   10.4 使用SQL_TRACE/10046事件进行数据库诊断   10.5 使用物化视图进行翻页性能调整  ...

    oracle 性能优化

    oracle 性能优化 教你如果调优 sql>set autotrace on

    使用AutoTrace软件将光栅图像转换为矢量格式的经验-研究论文

    这项工作演示了AutoTrace软件在测深图的栅格图像半自动数字化方面的成功应用。 使用AutoTrace软件(用于自动数字化)和ArcGIS在技术上对底部浮雕图的片段进行了编辑。 中文:最近,使用开放源代码软件,越来越精确...

    oracle performance tuning

    query processing,Explain plan,autotrace

Global site tag (gtag.js) - Google Analytics