|
| 1 | +## scripts-spa |
| 2 | +This folder provides SQL scripts for the usage of SQL Performance Analyzer. They can be used to test changes on the same system or to run tests on a remote server. |
| 3 | + |
| 4 | +Before you start with SQL Performance Analyzer, you need to provide a SQL Tuning Set. |
| 5 | +For more information see also: |
| 6 | +- [Github scripts for SQL Tuning Sets](https://github.com/oracle-devrel/technology-engineering/tree/main/data-platform/core-converged-db/sql-performance/sql-tuning-sets/scripts-for-sts) |
| 7 | + |
| 8 | +Please note all SQL Performnace Analyzer tasks require the privilege ADVISOR. |
| 9 | + |
| 10 | +## SQL Performance Analyzer Scripts |
| 11 | +Please follow the steps in the suggested order. In step 2 you can decide between two testing scenarios. The tuning of regressed statements with SQL Plan Baselines at the end is optional. |
| 12 | + |
| 13 | +1. Create and monitor the tuning task and executions |
| 14 | +- Create a SPA task : create-spa-task.sql |
| 15 | +- Monitor SPA task : monitor-task.sql |
| 16 | +- Monitor SPA executions: monitor-executions.sql |
| 17 | + |
| 18 | +Scenario A: |
| 19 | +2. Execute trials on the same system |
| 20 | +- Execute first trial : trial-execute.sql |
| 21 | +Change the system |
| 22 | +- Execute second trial: trial-execute.sql |
| 23 | + |
| 24 | +Scenario B: |
| 25 | +2. Import STS on the remote system and use execution statistics for the first trial |
| 26 | +- Use Stats for the first trial: trial-use-stats.sql |
| 27 | +- Execute more then one trial : trial-execute.sql |
| 28 | + |
| 29 | + |
| 30 | +3. Generate the comparition results |
| 31 | +- Compare performance of two executions: compare-performance.sql |
| 32 | + |
| 33 | +4. Generate reports |
| 34 | +- Generate summary report in HTML : report-summary.sql |
| 35 | +- Generate detailed report in HTML: report-all-details.sql |
| 36 | + |
| 37 | + |
| 38 | +Optional: Tune regressed statements with SQL Plan Baselines |
| 39 | +1. Create STS for regressed statements: create-sts-regressed.sql |
| 40 | +2. Load original plans : loadplans-for-regressed.sql |
0 commit comments