Resolve the execution plan does not see an issue with the ' plan_table ' is-old version of the filter condition

Source: Internet
Author: User

Resolve ' plan_table ' is old version

When you parse the SQL execution plan, you encounter
' Plan_table ' is old version
Think of it, the database is upgraded from a lower version, which is estimated to be the reason

Workaround: Remove plan_table rebuild

Sql>explain plan for SELECT * from users;

explained.

Sql>select * FROM table (dbms_xplan.display);

Plan_table_output
--------------------------------------------------------------------------------

-----------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost |
-----------------------------------------------------------
| 0 | SELECT STATEMENT | | 455 | 19565 | 4 |
| 1 | TABLE ACCESS full| USERS | 455 | 19565 | 4 |
-----------------------------------------------------------

Note
-----
-' plan_table ' is old version

One by one rows selected.

sql> drop table plan_table purge;

Table dropped.

Sql> @/home/ora10g/product/10.2.0/rdbms/admin/utlxplan.sql

Table created.
Sql>explain plan for SELECT * from users;

explained.

Sql>select * FROM table (dbms_xplan.display);

Plan_table_output
--------------------------------------------------------------------------------
Plan Hash value:3461732445

---------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU) | Time |
---------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 2406 | 86616 | 4 (0) | 00:00:01 |
| 1 | TABLE ACCESS full| USERS | 2406 | 86616 | 4 (0) | 00:00:01 |
---------------------------------------------------------------------------

8 rows selected.

In contrast, the contents of the display are different.

[@[email protected]]

Resolve the execution plan does not see an issue with the ' plan_table ' is-old version of the filter condition

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.