Use SQLTuningAdvisor to optimize SQL statements for Oracle11g

Source: Internet
Author: User

In the CBO mode, the optimizer determines whether to use full table scan or index. The optimizer compares all possible methods and selects the lowest cost method.

Using SQL Tuning Advisor and SQL Access Advisor, you can call the optimizer in advisory mode to check an SQL statement or a group of SQL statements to improve their efficiency. SQL Tuning Advisor and SQL Access Advisor can provide a series of suggestions. SQL Access Advisor is mainly responsible for providing mode modification suggestions, such as adding or dropping indexes and materialized views. SQL Tuning Advisor provides other suggestions, such as creating an SQL Profile and restructuring an SQL statement. If you can achieve significant performance improvement by creating an index, SQL Tuning Avisor is also recommended. However, these suggestions are verified in SQL Access Advisor, this SQL Advisor uses SQL workload that contains a set of typical SQL statements.

ADDM automatically recognizes high-load SQL statements, and can also use SQL Tuning Advisor manually. There are two ways to use it manually, one is to call a package, such as dave dai's article: http://blog.csdn.net/tianlesoftware/article/details/5630888, one is to use DBconsole (the entry is Related links-> Advisor Central-> SQL Advisors), step by step method is as follows: http://docs.oracle.com/cd/B28359_01/server.111/b28275/tdppt_sqltune.htm#TDPPT160.

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.