Oracle Database view execution plan

Source: Internet
Author: User

Oracle-based application systems have many performance problems, which are caused by poor SQL Performance of application systems. Therefore, SQL Performance optimization is very important, to analyze and optimize the SQL Performance, we generally view the SQL Execution Plan. This article describes how to understand the execution plan and how to optimize the SQL statement by analyzing the execution plan.

1. What is an execution plan)

Execution Plan: the execution process or access path of a query statement in ORACLE.

Ii. How to view the execution plan

1: Press F5 under PL/SQL to view the execution plan. Third-party tools such as toad.

Many people think that the PL/SQL Execution Plan can only see basic information such as the base number, optimizer, and consumption. In fact, this can be set in the PL/SQL tool. You can see a lot of other information, as shown below

2: execute the following steps under SQL * PLUS (PL/SQL command window and SQL window)

 

SQL>EXPLAINPLAN FOR          SELECT * FROMSCOTT. EMP;--SQL script to be parsedSQL>SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY );

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next Page

Related Article

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.