Home Database Mysql Tutorial 解决autotrace不显示Predicate Information的问题

解决autotrace不显示Predicate Information的问题

Jun 07, 2016 pm 05:33 PM

用autotrace在有的数据库上可以看到Predicate Information,有时候看不到,原因是plan_table版本旧所致,解决方法如下:

Linux公社

首页 → 数据库技术

背景:

阅读新闻

解决autotrace不显示Predicate Information的问题

[日期:2013-11-08] 来源:Linux社区  作者:stevendbaguo [字体:]

用autotrace在有的数据库上可以看到Predicate Information,有时候看不到,原因是plan_table版本旧所致,解决方法如下:

SQL>set autotrace traceonly


处理方法:
drop table PLAN_TABLE;
@?/rdbms/admin/utlxplan

SQL> select u.name
2 from user u
3 where u.department_id in (select d.department_id from department d);

执行计划
----------------------------------------------------------
Plan hash value: 2264021098

----------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
----------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 5251 | 89267 | 15 (7)| 00:00:01 |
| 1 | NESTED LOOPS | | 5251 | 89267 | 15 (7)| 00:00:01 |
| 2 | TABLE ACCESS FULL| USER | 5273 | 63276 | 14 (0)| 00:00:01 |
|* 3 | INDEX UNIQUE SCAN| PK_DEPARTMENT | 1 | 5 | 0 (0)| 00:00:01 |
----------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
3 - access("U"."DEPARTMENT_ID"="D"."DEPARTMENT_ID")

统计信息
----------------------------------------------------------
0 recursive calls
0 db block gets
6024 consistent gets
0 physical reads
0 redo size
72158 bytes sent via SQL*Net to client
4156 bytes received via SQL*Net from client
348 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
5195 rows processed

linux

  • 0
  • filter造成的性能问题

    探索执行计划中filter的原理

    相关资讯       autotrace 

  • Oracle AUTOTRACE 统计信息  (02/18/2013 08:25:40)
  • Oracle autotrace参数详解  (01/31/2013 20:58:04)
  • 图片资讯      

    本文评论   查看全部评论 (0)

    评论声明

    最新资讯

    本周热门

    Linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
    本站(LinuxIDC)所刊载文章不代表同意其说法或描述,,仅为提供更多信息,也不构成任何建议。


    Copyright © 2006-2011 Linux公社 All rights reserved 浙ICP备06018118号

    Statement of this Website
    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

    Hot Article Tags

    Notepad++7.3.1

    Notepad++7.3.1

    Easy-to-use and free code editor

    SublimeText3 Chinese version

    SublimeText3 Chinese version

    Chinese version, very easy to use

    Zend Studio 13.0.1

    Zend Studio 13.0.1

    Powerful PHP integrated development environment

    Dreamweaver CS6

    Dreamweaver CS6

    Visual web development tools

    SublimeText3 Mac version

    SublimeText3 Mac version

    God-level code editing software (SublimeText3)

    Reduce the use of MySQL memory in Docker Reduce the use of MySQL memory in Docker Mar 04, 2025 pm 03:52 PM

    Reduce the use of MySQL memory in Docker

    How do you alter a table in MySQL using the ALTER TABLE statement? How do you alter a table in MySQL using the ALTER TABLE statement? Mar 19, 2025 pm 03:51 PM

    How do you alter a table in MySQL using the ALTER TABLE statement?

    How to solve the problem of mysql cannot open shared library How to solve the problem of mysql cannot open shared library Mar 04, 2025 pm 04:01 PM

    How to solve the problem of mysql cannot open shared library

    What is SQLite? Comprehensive overview What is SQLite? Comprehensive overview Mar 04, 2025 pm 03:55 PM

    What is SQLite? Comprehensive overview

    Run MySQl in Linux (with/without podman container with phpmyadmin) Run MySQl in Linux (with/without podman container with phpmyadmin) Mar 04, 2025 pm 03:54 PM

    Run MySQl in Linux (with/without podman container with phpmyadmin)

    Running multiple MySQL versions on MacOS: A step-by-step guide Running multiple MySQL versions on MacOS: A step-by-step guide Mar 04, 2025 pm 03:49 PM

    Running multiple MySQL versions on MacOS: A step-by-step guide

    How do I secure MySQL against common vulnerabilities (SQL injection, brute-force attacks)? How do I secure MySQL against common vulnerabilities (SQL injection, brute-force attacks)? Mar 18, 2025 pm 12:00 PM

    How do I secure MySQL against common vulnerabilities (SQL injection, brute-force attacks)?

    How do I configure SSL/TLS encryption for MySQL connections? How do I configure SSL/TLS encryption for MySQL connections? Mar 18, 2025 pm 12:01 PM

    How do I configure SSL/TLS encryption for MySQL connections?

    See all articles