Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
11 views
Dbms - Sqltune Package To Run The SQL Tuning Advisor
na
Uploaded by
maruthi631
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save dbms_sqltune package to run the sql tuning advisor For Later
Download
Save
Save dbms_sqltune package to run the sql tuning advisor For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
11 views
Dbms - Sqltune Package To Run The SQL Tuning Advisor
na
Uploaded by
maruthi631
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save dbms_sqltune package to run the sql tuning advisor For Later
Carousel Previous
Carousel Next
Save
Save dbms_sqltune package to run the sql tuning advisor For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 3
Search
Fullscreen
8/0123, 10:53 PM Document 262687.1 CCopytight (6) 2028, Oade Al rights reserved, Orade Confidential Using the DBMS_SQLTUNE Package to Run the SQL Tuning Advisor (Doc ID 262687.1) Oracle Database Cloud Exadata Service - Version N/A and later Oracle Database Cloud Schema Service - Version N/A and later Oracle Database Exadata Express Cloud Service - Version N/A and later Oracle Database - Enterprise Edition - Version 10.2.0.1 and later Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later Information in this document applies to any platform. the This document provides an introduction to the use of the SQL TUNING ADVISOR (STA) DBMS_SQLTUNE package. DBAs and Support Analysts NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner. ‘The SQL Tuning Advisor automates the entire SQL tuning process replacing manual SQL tuning. It analyzes candidate SQL statements, and executes a complete analysis of the statements including: + Determining stale or missing statistics + Determining better execution plans + Detecting better access paths and objects required to satisfy them (indexes, materialized views) + Restructuring SQL While the primary interface for the SQL Tuning Advisor is the Oracle Enterprise Manager Database Control, the advisor can also be controlled with procedures in the DBMS_SQLTUNE package. Output can be queried via the various advisory views in SQL*Plus. To use these procedures the user must have been granted the DBA role and the ADVISOR privilege (if using the SQL. ‘Tuning Advisor in Oracle Enterprise Manages, the user must have been granted the select_catalog_role role). Running SQL Tuning Advisor using the DBMS_SQLTUNE package is a two-step process: 1, Create a SQL tuning task 2, Execute a SQL tuning task NOTE: You can run SQL. Tuning Advisor from the command line using $ORACLE_HOME/rdbms/admin/saltrpt.sql Example: This example is based on the "SH" account executing the various tasks. To allow the "SH" user to both create task and execute it user "SH" needs to be granted proper access: hitpsIsupportoracle.comfepmosifaces/DacumentDisplay’_adct-state=19czqhlw00_1928id=262687.1 188/0123, 10:53 PM Document 262687.1 comect / as sysoa [GRANT EXECUTE ON DBRS_SQLTUNE TO SH; ‘The example presented makes use of a table called SALES, residing in the SH schema. The table Is not analyzed. + Create a SQL tuning task You can create tuning tasks from the following ‘SQL statement selected by SQL identifier from the cursor cache ‘SQL Tuning Set containing multiple statements Text of a single SQL statement SQL statement selected by SQL identifier from the Automatic Workload Repository. You can find examples how to do this in the following manual: Oracle Database Online Documentation 12c Release 1 (12.1) Database Administration Database PL/SQL Packages and Types Reference Section 154 DBMS_SQLTUNE http://docs.oracle.com, 121 /ARPL tun, htm#ARPLS73098 ‘To use a create a task for a particular SQL statement, you can use the followin: name VARCIAR2( 38); mycsaltent s+ ‘SELECT * II FROM sales * || ‘WHERE prod_sd = 10 AND * || “cust_id = 208°; ry t25K_ame = OBNS_SQLTUNE.CREATE_TUNING.TASK( sel_tert => my saitert, sone Cownensive', pane => 'TEST_sqi_tuning task’, Gesctiption => ‘Task t3 tune 3 query on a specified PRODUCT"); or us salts aeciare ask VARCHAR (4; > “Setrekinn23")s Parameter explanation: © User_name: User under which the CREATE_TUNING_TASK function analyzes the SQL statement. © Scope: COMPREHENSIVE. This means that the advisor also performs SQL. Profiling analysis, © Time_limit: Time in seconds that the function can run. ‘The CREATE_TUNING_TASK function simply creates the task and returns either the task name that you have provided or generates a unique task name. This task name is the identifier by which you execute it (or perform ther procedures upon it). To view the task names associated with a specific owner, you can run the followin + Execute the tuning task.: une. beecute tuning task (task nane => “TEST sql_tuning. task’); hitpsIsupportoracle.comfepmosifaces/DacumentDisplay’_adct-state=19czqhlw00_1928id=262687.1 288/0123, 10:53 PM Document 262687.1 + Check the status of the task using following query: + View the Recommendations set long 68536 fet Linestze 12 we.report_tuning_task(‘TEST_sa_tuning_task') from duals ‘The output of above will be lke this: (8¥S_SQLTUNE, REPORT_TUNING_TASK('TEST_SOL_TUMING_TASK") Tuning Task Nane TEST sei_tuning task Tine Lintt(seconds): 62 22/08/2088 23:27:49 (2/04/2004 23:38:29, Sai 10 7 Sommraypanere _DNS_SQLTUNE REPORT_TUNING_IASK(TEST_SOL_TUNIMG_TASK") SQL Text: SELECT * FROW sales WHERE prog_id = 30 9D cust_sd = 200 FINOINGS SECTION (5 Finaings) index vas not analyze. Aeconenaation (as_SQLTUNE.REPORT_TNING_TASK(TEST_SOL_TUMIMG TASK’) Consider collecting optinizen statistics for this, index execute otns_* reincex.stats(ownnane => “SH, indnane => SQL tuning information views, such as DBA_SQLTUNE_STATISTICS, DBA_SQLTUNE_BINDS, and DBA_SQLTUNE_PLANS views can also be queried to get this information. NOTE: it is possible for the SQL Tuning Advisor to return no recommendations for a particular SQL statement e.g. in cases where the plan Is already optimal or the Automatic Tuning Optimization mode cannot find a better plan. NOTE:271196.1 - Automatic SQL Tuning and SQL Profiles NOTE:2022194.1 - How to "Fix" a Slow Query Using SQL Advisory Through Grid Control Didn't find what you are looking for? hitpsIsupportoracle.comfepmosifaces/DacumentDisplay’_adct-state=19czqhlw00_1928id=262687.1 38
You might also like
Step by Step Rac Installation
PDF
100% (1)
Step by Step Rac Installation
6 pages
Concurrent Processing and Concurrent Manager
PDF
No ratings yet
Concurrent Processing and Concurrent Manager
32 pages
CON3632 Nanda-SQL Tuning Without Trying
PDF
No ratings yet
CON3632 Nanda-SQL Tuning Without Trying
18 pages
Formal SQL Tuning
PDF
No ratings yet
Formal SQL Tuning
121 pages
Performance Tuning - SOP-1
PDF
No ratings yet
Performance Tuning - SOP-1
28 pages
SQL Tuning Advisor in Oracle SQL Developer
PDF
No ratings yet
SQL Tuning Advisor in Oracle SQL Developer
22 pages
Manually Run SQL Advisor Archives
PDF
No ratings yet
Manually Run SQL Advisor Archives
12 pages
14 SQL Tuning Advisor
PDF
No ratings yet
14 SQL Tuning Advisor
1 page
SQL Tuning Advisor
PDF
No ratings yet
SQL Tuning Advisor
6 pages
Automatic SQL Tuning and SQL Pro
PDF
No ratings yet
Automatic SQL Tuning and SQL Pro
7 pages
Oracle Tuning
PDF
100% (1)
Oracle Tuning
16 pages
Oracle SQL Tuning Steps
PDF
No ratings yet
Oracle SQL Tuning Steps
12 pages
Oracle Performance Tuning
PDF
No ratings yet
Oracle Performance Tuning
3 pages
SQL Tuning Advisory
PDF
No ratings yet
SQL Tuning Advisory
3 pages
Oracle Tuning
PDF
No ratings yet
Oracle Tuning
16 pages
Oracle SQL Tuning PDF
PDF
No ratings yet
Oracle SQL Tuning PDF
32 pages
Oracle Tuning Pack: Optimize Database Service Levels
PDF
No ratings yet
Oracle Tuning Pack: Optimize Database Service Levels
7 pages
DBA's New Best Friend: Oracle Database 10g and 11g SQL Performance Analyzer
PDF
No ratings yet
DBA's New Best Friend: Oracle Database 10g and 11g SQL Performance Analyzer
30 pages
Unit 7. Database Tuning
PDF
No ratings yet
Unit 7. Database Tuning
16 pages
Oracle® Database 2 Day Performance Tuning Guide
PDF
No ratings yet
Oracle® Database 2 Day Performance Tuning Guide
240 pages
Uni-Fiis-Sistemasuni: Tuning SQL Statements Using The SQL Tuning Advisor Managing SQL Tuning Sets Managing SQL Profiles
PDF
No ratings yet
Uni-Fiis-Sistemasuni: Tuning SQL Statements Using The SQL Tuning Advisor Managing SQL Tuning Sets Managing SQL Profiles
31 pages
Oracle Performance Tuning Training
PDF
100% (2)
Oracle Performance Tuning Training
10 pages
SQLTunning
PDF
No ratings yet
SQLTunning
3 pages
Formal SQL Tuning For Oracle Databases PDF
PDF
No ratings yet
Formal SQL Tuning For Oracle Databases PDF
121 pages
Oracle Database Performance Tuning Course Content
PDF
No ratings yet
Oracle Database Performance Tuning Course Content
4 pages
Dba Best Practices Ow08 129450 PDF
PDF
100% (1)
Dba Best Practices Ow08 129450 PDF
50 pages
Database tuning1
PDF
No ratings yet
Database tuning1
5 pages
D105019GC10 Oracle Database Performance Management and Tuning Ed 1
PDF
No ratings yet
D105019GC10 Oracle Database Performance Management and Tuning Ed 1
2 pages
SQL Optimization Training
PDF
No ratings yet
SQL Optimization Training
2 pages
Oracle Performance Tuning
PDF
No ratings yet
Oracle Performance Tuning
1 page
Using SQL Performance Analyzer
PDF
No ratings yet
Using SQL Performance Analyzer
20 pages
The Ultimate Guide To Primavera Unifier 2016 Implementation Essentials 1Z0-439
PDF
No ratings yet
The Ultimate Guide To Primavera Unifier 2016 Implementation Essentials 1Z0-439
2 pages
Optimizing Database Performance with SQL Tuning
PDF
No ratings yet
Optimizing Database Performance with SQL Tuning
4 pages
Enterprise DBA Part 2: Performance and Tuning: Volume 1 - Student Guide
PDF
No ratings yet
Enterprise DBA Part 2: Performance and Tuning: Volume 1 - Student Guide
424 pages
Database Tuning Best Practices and Related Diagnostic Tools
PDF
No ratings yet
Database Tuning Best Practices and Related Diagnostic Tools
32 pages
Course Slide For Students (SQL & Performance Tuning Masterclass 2020)
PDF
No ratings yet
Course Slide For Students (SQL & Performance Tuning Masterclass 2020)
148 pages
D79236GC10 Les01
PDF
No ratings yet
D79236GC10 Les01
15 pages
OPDG Query Tuning
PDF
No ratings yet
OPDG Query Tuning
184 pages
Oracle Tuning
PDF
No ratings yet
Oracle Tuning
148 pages
Performance Tuning Brochure W
PDF
No ratings yet
Performance Tuning Brochure W
3 pages
Tuning SQL Statements Again
PDF
100% (6)
Tuning SQL Statements Again
9 pages
Successful Performance Tuning Methodologies
PDF
No ratings yet
Successful Performance Tuning Methodologies
17 pages
Oracle SQL Tuning Secrets
PDF
No ratings yet
Oracle SQL Tuning Secrets
2 pages
Enhanced SQL Trace Utility From Oracle: Oracle Tips by Burleson Consulting
PDF
No ratings yet
Enhanced SQL Trace Utility From Oracle: Oracle Tips by Burleson Consulting
19 pages
DB Tune
PDF
No ratings yet
DB Tune
67 pages
Oracle 10g New Features1
PDF
No ratings yet
Oracle 10g New Features1
26 pages
Oracle Database 11g Performance Tuning
PDF
0% (1)
Oracle Database 11g Performance Tuning
2 pages
SQL Query Tuning For Oracle
PDF
50% (2)
SQL Query Tuning For Oracle
17 pages
Getting To Know Addm
PDF
No ratings yet
Getting To Know Addm
14 pages
Ijsws14 112 PDF
PDF
No ratings yet
Ijsws14 112 PDF
4 pages
(1) sql performance tuning - best practices _ examples _ linkedin
PDF
No ratings yet
(1) sql performance tuning - best practices _ examples _ linkedin
4 pages
How To Use Awr Reports To Diagnose Datab
PDF
No ratings yet
How To Use Awr Reports To Diagnose Datab
12 pages
Preview
PDF
No ratings yet
Preview
39 pages
Concurrent Managers
PDF
No ratings yet
Concurrent Managers
17 pages
Cloning
PDF
No ratings yet
Cloning
21 pages
12.2.4 Cloning Steps
PDF
No ratings yet
12.2.4 Cloning Steps
7 pages
Patching Notes
PDF
No ratings yet
Patching Notes
4 pages
Paths
PDF
No ratings yet
Paths
3 pages
Issues Faced
PDF
No ratings yet
Issues Faced
33 pages
Concurrent Mangar Scripts
PDF
No ratings yet
Concurrent Mangar Scripts
199 pages
Common Scripts
PDF
No ratings yet
Common Scripts
25 pages
Common SCRIPTS
PDF
No ratings yet
Common SCRIPTS
71 pages
Concurrent Processing and Concurrent Manager
PDF
No ratings yet
Concurrent Processing and Concurrent Manager
29 pages
Common Scripts For EBS
PDF
No ratings yet
Common Scripts For EBS
11 pages
Software Defined Network: Definition
PDF
No ratings yet
Software Defined Network: Definition
20 pages
Process Utilities
PDF
No ratings yet
Process Utilities
27 pages
Advanced Engineering Informatics: Sharnil Pandya, Hemant Ghayvat
PDF
No ratings yet
Advanced Engineering Informatics: Sharnil Pandya, Hemant Ghayvat
21 pages
I B.Tech. I Semester Regular Examinations July 2021
PDF
No ratings yet
I B.Tech. I Semester Regular Examinations July 2021
7 pages
Arduino - Ultrasonic Sensor
PDF
100% (1)
Arduino - Ultrasonic Sensor
17 pages
Auto Complete
PDF
No ratings yet
Auto Complete
3 pages