Provides you with an in-depth understanding of Oracle SQL scheduler Management

Source: Internet
Author: User

Oracle SQL plan management can improve the performance of SQL statements. The following describes the knowledge of Oracle SQL plan management for your reference.

Oracle SQL Plan Management

How many times have you seen the following situation: a query has the best plan possible, but some things suddenly happen, causing the plan to be discarded. These may be when someone re-analyzes the table, or star_transformation and other parameters that affect the optimizer are changed-there are endless possibilities. Out of despair, you may prohibit any changes to the database, which means that you do not collect database statistics, do not change any parameters, and so on.

However, this is easy to say. What happens when the data mode changes? Take the example shown in the adaptive game tag section as an example. Currently, the CUSTOMERS table is filled with CUSTOMERS from New York, so most of STATE_CODE is "NY ". Therefore, when you execute a query that contains the following predicates:

Where state_code = 'ct'

The system performs a full table scan instead of an index scan. When the predicate is:
Where state_code = 'ct'

The system uses indexes because only several rows of results are returned. However, if the pattern changes-assuming that a large number of customers suddenly emerge from Connecticut (state_code = 'ct '), the percentage of Results containing CT increases to 70%. What will happen at this time? In this case, full table scan should be used for CT queries. However, because you have disabled collection of optimizer statistics, the optimizer does not understand pattern changes and will continue to provide inefficient index scan paths. What can you do?

If Oracle uses an optimal plan, but the plan is re-evaluated when underlying factors such as statistical data collection or database parameters change, the database will be used only when the new plan is more effective, what are the results? This solution is ideal, isn't it? It has become possible in Oracle Database 11 GB.

Implementation of auto-increment oracle ID Columns

Oracle command line custom editor vi

Implementation of oracle command line Logon

How to add tablespaces in ORACLE

Oracle sequence creation syntax

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.