|
| 1 | +# SQL Performance |
| 2 | + |
| 3 | +There are several products, tools, features, and utilities you may use when it comes to Oracle database SQL performance tuning. Graphical tools such as Oracle Enterprise Manager Cloud Control or |
| 4 | +SQL Developer can be helpful to monitor and tune SQL statement performance but SQL scripts can also be used to achieve the same goals. |
| 5 | +The following frameworks and advisors can be useful when you have to deal with SQL performance tasks: |
| 6 | + |
| 7 | +- SQL Tuning Sets (STS), can list and store the relevant statements for (recurring) tuning tasks. The according information about execution performance can easily be displayed. You can also use |
| 8 | +existing AWR reports to build SQL Tuning Sets. It provides the basis for the SQL Tuning Advisor and SQL Access Advisor and delivers the foundation for SQL Performance Advisor (known as SPA). If you want to test on a remote system, SQL Tuning Sets can be copied to a remote database system using Datapump Export or Import in case you need to test on a remote system. |
| 9 | + |
| 10 | +- SQL Monitoring (also known as Real-Time Monitoring) - has become important when it comes to SQL performance monitoring or database monitoring. |
| 11 | +Quickly and without effort you get an up-to-date and fast overview of certain - mostly long-running - operations. In contrast to AWR or STATSPACK reports, SQL Monitoring also displays statements that are |
| 12 | +currently active or in a queue. Especially with new applications, new techniques or features, SQL monitoring is an important step in the testing process. |
| 13 | + |
| 14 | +- SQL Performance Analyzer (aka SPA) as part of real application testing focuses on detailed statement analysis of a defined SQL workload made available via a SQL Tuning Set (STS). |
| 15 | +The workload runs twice - once BEFORE the change and then AFTER a change. The resulting reports are a detailed comparative analysis (before and after the change) of the individual statements, |
| 16 | +measured by different metrics such as elapsed time, cpu_time, etc. Optionally, you can automate the tuning process using SQL Tuning Advisor or SQL Plan Baselines. |
| 17 | +In this way, statements from a SQL workload can be tested and compared and tuned if necessary. |
| 18 | + |
| 19 | +## Useful Links |
| 20 | + |
| 21 | +### Documentation |
| 22 | + |
| 23 | +- [Oracle Database 19c](https://docs.oracle.com/en/database/oracle/oracle-database/19/performance.html) |
| 24 | +- [Oracle Database 23c][https://docs.oracle.com/en/database/oracle/oracle-database/23/performance.html] |
| 25 | +- [Testing Guide 19c](https://docs.oracle.com/en/database/oracle/oracle-database/19/ratug/index.html#Oracle%C2%AE-Database) |
| 26 | + |
| 27 | +# License |
| 28 | + |
| 29 | +Copyright (c) 2023 Oracle and/or its affiliates. |
| 30 | + |
| 31 | +Licensed under the Universal Permissive License (UPL), Version 1.0. |
| 32 | + |
| 33 | +See LICENSE for more details. |
0 commit comments