Best Oracle SQL Tuning Books
All,
I am new in SQL Tuning. Can anyone suggests any good book / pdfs / links to start the work in tuning.
Regards
ND
Besides the documentation that BluShadow provided I would suggest the following books:
Cost-Based Oracle Fundamentals (ISBN-13 978-1590596364)
Troubleshooting Oracle Performance (ISBN-13 978-1590599174)
Optimizing Oracle Performance (ISBN-13 978-0596005276)
Expert Oracle Database Architecture (ISBN-13 978-1590595305)
Similar Messages
-
Hi,
Can somebody explain me about the basics of tuning or any good resource online for absolute beginners.
Concepts of Explain Plan, Hints, indexes etc...
I ve come across some terminolgy like,
Driving table,
The order of the table in the from clause
The order of the joins in the where clause.
When and where to use hints.
which one is a candidate for an hint
Explain plan explained, like nested loops, hash join, merge, etc,,, with some examples on how it works...
How to judge on the costs section of the explain plan...
Any help is appreciated...
Thanks!That's a very broad question. I've always found the online Oracle documentation to be the best available answer to most questions and doubts that I come across.
Regarding your particular doubts, I'd say you should take a look at the concepts book, the SQL reference and maybe the Performance Tuning guide for info on explain plans and the sort.
Concepts - http://download.oracle.com/docs/cd/E11882_01/server.112/e10713.pdf
SQL - http://download.oracle.com/docs/cd/E11882_01/server.112/e10592.pdf
Performance Tuning - http://download.oracle.com/docs/cd/E11882_01/server.112/e10821.pdf
The developer book may also be very useful as well as the PL/SQL reference. Just take a look at below for the complete list of books:
http://www.oracle.com/pls/db112/portal.portal_db?selected=4&frame=#essentials
It will take you a lot of effort and patience to go through those but it certainly pays off. -
Advance Tuning Books suggestion.
Hi Guru's,
Please suggest me some books for Advance Tuning.
Upto my understanding I feel I know some of the basic concepts of tuning.
Please advice me books on RAC also.
Thanks in advanceHi Hans,
but not for the publisher of the other books you reference in which you appear to have an interest I'm only the Series Editor at Rampant (I'm not allowed to handle money!), and it's only my job to snag the best authors that I can find, then ride them hard to produce great Oracle books.
I'm proud to be helping these authors with their work, so OK, I guess that they deserve a shameless plug too.
Dr. Tim Hall (Oracle ACE of the year) - A FANTASTIC PL/SQL tuning book:
http://www.rampant-books.com/book_2006_1_plsql_tune.htm
Alexey Danchenkov and I created this 950-page monster tuning book which took us two years to complete:
http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm
Kent Crotty has a god HTML-DB (Apex) book that shows aplication tuning:
http://www.rampant-books.com/book_2005_2_html_db.htm
Mike Ault has a collection of Oracle tuning scripts:
http://www.oracle-tuning.com
But let's not forget some of the other great Oracle tuning authors. Here are some of my personal favs, but not all:
Chris Lawson: A GREAT Oracle tuning book:
http://www.amazon.com/Art-Science-Oracle-Performance-Tuning/dp/1590591992
Guy Harrison of Quest - Dated, but the best SQL tuning book around:
http://www.amazon.com/Oracle-SQL-High-Performance-Tuning-2nd/dp/0130123811
For application server tuning, don't miss Col. John Garmany's 10g AS book:
http://www.amazon.com/Oracle-Application-Administration-Handbook-Osborne/dp/0072229586/sr=1-5/qid=1167774708/ref=sr_1_5/104-1093814-8623900?ie=UTF8&s=books
Jonathan Gennick has a Regular Expressions book which realy helps for Oracle tuning:
http://www.amazon.com/Oracle-Regular-Expressions-Pocket-Reference/dp/0596006012/sr=1-1/qid=1167774799/ref=sr_1_1/104-1093814-8623900?ie=UTF8&s=books
Dave Krienes has an outtanding DBA book with tuning tips, very nice:
http://www.amazon.com/Oracle-Pocket-Guide-David-Kreines/dp/0596100493/sr=1-5/qid=1167774919/ref=sr_1_5/104-1093814-8623900?ie=UTF8&s=books -
hello everyone i am an oracle developer working in oracle Forms and reports i have a keen interest in this database and would like to become a DBA.. pls suggest me some good books which can teach me about the whole oracle architecture and the other details.
Apart from that i want to study Sql tuning too for oracle 10g database.. please suggest me some good books regarding both these two topics.Hi,
Apart from that i want to study Sql tuning too for oracle 10g database.. please suggest me some good books regarding both these two topics.Apart from Oracle Documentation, there are many good references available in the market, go through the review and check the table of contents before deciding which book(s) you want to go with.
Oracle 10g DBA
http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=Oracle+10g+DBA
Oracle SQL Tuning
http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=Oracle+SQL+Tuning
Regards,
Hussein -
Hello Gurus,
We have 10.2.04 RAC database running in production.The application does lot of DML.I need to tune query regularly.
Could anybody sugggest a good book for Oracle SQl tuning.
Thanks and Regards,
jitender
Edited by: user10552550 on Feb 22, 2010 5:53 AMThe Oracle Database Performance Tuning Guide in the Oracle Database documentation library has a lot of information. Several chapters have "SQL" in their titles, including "SQL Tuning Overview".
However, if you're looking for third-party books, I don't know know enough about them to recommend one versus another. -
Hi,
I would like to know any SQL tuning methods specific to Oracle exadata so that they could improve the performance of the database?
I am aware that oracle exadata runs with Oracle 11g, but i would like to know wheather there is any tuning scope w.r.t to SQL's on exadata?
regards
sunilWell there are some things that are very different about Exadata. All the standard Oracle SQL tuning you have learned already should not be forgotten as Exadata is running standard 11g database code, but there are many optimizations that have been added that you should be aware of. At a high level, if you are doing OLTP type work you should be trying to make sure that you take advantage of Exadata Smart Flash Cache which will significantly speed up your small I/O's. But long running queries are where the big benefits show up. The high level tuning approach for them is as follows:
1. Check to see if you are getting Smart Scans.
2. If you aren't, fix what ever is preventing them from being used.
We've been involved in somewhere between 25-30 DB Machine installations now and in many cases, a little bit of effort changes performance dramatically. If you are only getting 2 to 3X improvement over your previous platform on these long running queries you are probably not getting the full benefit of the Exadata optimizations. So the first step is learning how to determine if you are getting Smart Scans or not and on what portions of the statement. Wait events, session statistics, V$SQL, SQL Monitoring are all viable tools that can show you that information. -
We have activated the Oracle 'SQL Tuning pack' however only one function "SQL Tuning Advisor" is activated/visible in ST04
and other functionality is not visible. We have already taken license of 'SQL Tuning pack' .
Other then this we want to use following oracle supported features.
1) Automatic SQL Tuning Advisor
2) Real-time SQL Monitoring
3) Object Reorganization Wizard
As I know we can use "oracle enterprise manager" to use such oracle features, If SAP allow use of OEM in SAP environment.
can someone help here please..?
Thanks,
Kapil PandeyHello Kapil,
which other options did you expect to find in ST04? SAP note 1028068 speaks only of the "SQL Tuning Advisor" which will be activated:
As of Enhancement Package 1 for Basis Release 7.00 (that is, Basis Release 7.01), the function "SQL Tuning Advisor" is contained in the DBA Cockpit. This optional function requires the Oracle Tuning Pack to be licensed.
The other features should be used via the OEM, because they are not integrated in the DBACOCKPIT transaction:
- Automatic SQL Tuning Advisor
- Real-time SQL Monitoring (with OEM you even get a really useful visualization)
- Object Reorganization Wizard -> better use brspace because it is supported by SAP
Regards,
Mark -
Best Book on ORACLE SQL for a Beginner?
Hi friends ....I have just finished my graduation....(BE ELECTRONICS) .....I am dead serious about mastering ORACLE DATABASE......I have basic idea about ORACLE....Yesterday I just installed Oracle 10g Release 2 for VISTA...I just wanted to know which is the best book for a beginner who want to master ORACLE SQL....?????/
its Tutor as well.....But Last word.......Which is
"the" book for a beginner amongst all the SQL books
suggested by my dear friends........It ALL depends on what your short, medium and long range objectives are.
For example: do you want to be
- an Oracle DBA expert;
- an Oracle database programming expert;
- a general database programming expert with a specialty in Oracle;
- an Oracle application programming expert;
- a general application programming expert?
Personally I would encourage being a general database programming expert with a specialty in Oracle. This is probably the rarest of the group, the least understood, and the most needed in the industry. If you were to follow that path, I'd recommend a very very strong grounding in SQL - which 99% of all programmers I've met do NOT have - before moving forward to any procedural enhancement to SQL (such as PL/SQL, Java, TransactSQL, etc.)
I am the first to propose Tom Kyte's books in the right situations, which usually include:
- dealing with someone already reasonably competent in SQL and development;
- someone who thinks that porting from SQL Server to Oracle is a snap, since they are all 'just different dialects of SQL', or;
- someone who is seriously looking for guidelines on approaching Oracle application development and tuning.
For a complete beginner, my list of books stands in my preferred order (one at a time), with the addition - at the end - of Tom's books. -
1Z0-117: Oracle Database 11g Release 2: SQL Tuning Need Materia and Dumps
Hi all,
We are preparing for 1Z0-117: Oracle Database 11g Release 2: SQL Tuning, There is shortage of material available on net.
Can anybody please provide books or Sample question answers and share more idea about the exan.
mail id XXXXXXXXXXXXX
Thanks in Advance
Sandeep
Edited by: 1005555 on 13 May, 2013 4:54 AM+
Mod: email deleted, don't draw discussion away from the forum.
Edited by: PhHein on 13.05.2013 14:16
Edited by: 1005555 on 13 May, 2013 10:16 PMWe are preparing for 1Z0-117: Oracle Database 11g Release 2: SQL Tuning, There is shortage of material available on net.There are actually a fair number of articles about the material covered on 117 on the net, but yes, the test is new enough that cheaters have not had much of a chance to email around illegal material such as dumps yet.
Can anybody please provide books or Dumps and share more idea about the exan.There is a significant amount of legitimate material you can use to study for the exam here:
http://www.oraclecertificationprep.com/apex/f?p=OCPSG:EXAM_DETAILS:0::NO::P2_EXAM:1Z0-117
As for ideas about the exam -- it's probably the hardest Oracle certification exam I have ever taken:
http://ocprep.blogspot.com/2013/03/1z0-117-this-exam-is-rough.html -
Suggested books/video series for learning oracle sql?
What are some good books/ videos for a beginner to learn oracle sql?
I learn best by being able to go through exercises.
I am using Oracle 11g express edition and sql developer. In sql developer I have only one connection to the HR schema.
Also, can I connect to the SCOTT schema in oracle 11g?Hi,
The SQL Language reference is a great book, but its a bit dry for a beginner.
How about starting with the Getting Started and 2 Day guides here
http://docs.oracle.com/cd/E17781_01/index.htm
There are a lot of tutorials here as well
https://apex.oracle.com/pls/apex/f?p=44785:1:0::NO
google will also bring up lots of hits as well
Regards
Andre -
Plz suggest book for Oracle - SQL and Oracle PL/ SQL
Hello Experts,
Please suggest me the best book(s) for Oracle - SQL
As well,
For the Oracle - PLSQL
searched on the net but bit confused.
Thanks in advance................SShubhangi wrote:
Rahul...
i got the following book..
OCA Oracle Database 11g:
SQL Fundamentals I
Exam Guide (Exam 1Z0-051) by John Watson
Roopesh Ramklass.
please let me know other books of this series...Just downloading/purchasing the Books is not going to help you learn SQL. You will have to read and practice.
My take is:
1. Oracle Documentation -- Download from Here
2. Effective Oracle by Design by Tom Kyte (Might have to purchase it as its not available for free download).
Once you read these and practice simultaneously, you would be able to grasp much more than reading all the above 4-5 books mentioned.
Also, I would say, to read just one of the books at a time than to make a mess by reading all and understanding none. -
What Book for the new 1Z0-117 '11gR2 SQL Tuning' ? No OPC available yet.
Since 1Z0-117 '11gR2 SQL Tuning' is a new exam on beta yet, except Mathew Morris's summary is there a comprehensive Exam Reference Guide like OPC Oracle Experts Exam Guide ?
Is the +"*Oracle Press Database 11g Release 2 Performance Tuning Tips & Techniques*"+ sufficient ?
Or I just can look at the Covered Topics and study them from it and other resources ?
Thank youHmm understood.I will have to map the Sources Topics to the Exams Topics than just having a "served food", like an ordinary exam, its fair enough.
Its just the concepts concerned are many and many are complex, so specifially here I would require a specially fit OPC book like for SQL Expert.
Luckily I'd oredered yours at least.
See SQL Experts, I found the topics quite affordable and I advance quick about 1-2 chapters + Sumed Revision per day, and without questions or errors.
I guess because of
1.the OPC Book
2. since my curent internship is on SQL Analysis
3. my Thesis was creating an essential DBMS in C++ with embeded SQL Parser and PhP ODBC driver from Scratch
So I may try start having a look at SQL Tunning also, thus I dont think I could really achieve in paralel preparing for both and with the Internship also.
Thank you very much once again. -
can any one suggest me a best oracle book beyond documentation...
sure,
we can understand all the concepts through the documentation. have gone through clusterware administration and rac administration twice.
can any one tell me best book for troubleshooting basic oracle rac issues. and tuning the oracle rac. wait events etc.Julian Dyke RAC books are considered to be among the best RAC available books:
Pro Oracle Database 10g Rac on Linux: Installation, Administration And Performance by Julian Dyke, S Shaw
Pro Oracle Database 11g Rac on Linux by Steve Shaw,Julian Dyke,Martin Bach
However these books are not specialized in RAC troubleshooting. For RAC 10g a very good RAC wait event documentation can be found in Oracle wait interface: a practical guide to performance diagnostics & tuning by Richmond Shee,Kirtikumar Deshpande,K. Gopalakrishnan.
Edited by: P. Forstmann on 14 janv. 2011 08:57 -
SQL Tuning using Enterprise manager in oracle 10g
Hi,
In oracle 10g you have the enterprise manager which can be used to tune sql statements using the SQL Tuning ADvisor and SQL access advisor.
I believe in oracle 10g the process of SQL Tuning is slightly easier using the Enterprise Manager ...so if some one could explain me that process...
Again thanking you in advance
regds
Manoj GokhaleHi Manoj,
Didn't you already start two other threads about this same question the SQL forum?
How do i do the SQL Statement tuning
Enterprise Manager - sql tuning advisor , Access advisor for SQL Tuning -
I am working as a junior DBA. I tried to tune a query using SQL Tuning Advisor that is with DBMS_SQLTUNE.I have created the tuning task successfully with DBMS_SQLTUNE.create_tuning_task.But when i execute the tuning task with EXEC DBMS_SQLTUNE.execute_tuning_task() i got an error like
SQL> EXEC DBMS_SQLTUNE.execute_tuning_task(task_name => 'rep_three');
BEGIN DBMS_SQLTUNE.execute_tuning_task(task_name => 'rep_three'); END;
ERROR at line 1:
ORA-00081: address range [0x60000000000A7D70, 0x60000000000A7D74) is not
readable
ORA-00600: internal error code, arguments: [kesatmGetSqlStats:optCost], [], [],
ORA-06512: at "SYS.PRVT_ADVISOR", line 1624
ORA-06512: at "SYS.DBMS_ADVISOR", line 186
ORA-06512: at "SYS.DBMS_SQLTUNE", line 1008
ORA-06512: at line 1The oracle version is Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bi. The OS is HP-UX. The version is HP-UX B.11.23 U ia64.
I tried to execute DBMS_SQLTUNE as DWH user.I have granted the advisor,DROP ANY SQL PROFILE,ALTER ANY SQL PROFILE,CREATE ANY SQL PROFILE privileges and DBA roles to the DWH user. The way i ran DBMS_SQLTUNE is, first i logged in as DWH user and i tried to execute the query for getting the SQL_ID for the query. For getting the SQL_ID i selected the SQL_ID column value for the DWH user session from v$session.I kept that query executing and meanwhile i opened another session as DWH user and created the tuning task as follows
DECLARE
l_sql_tune_task_id VARCHAR2(100);
BEGIN
l_sql_tune_task_id := DBMS_SQLTUNE.create_tuning_task (
sql_id => 'b65fj39dkkb9v',
scope => DBMS_SQLTUNE.scope_limited,
time_limit => 3600,
task_name => 'rep_three',
description => 'Report Tuning');
DBMS_OUTPUT.put_line('l_sql_tune_task_id: ' || l_sql_tune_task_id);
END;
/The creation of tuning task was successful.And i executed the tuning task as follows
EXEC DBMS_SQLTUNE.execute_tuning_task(task_name => 'rep_three');The above mentioned errors came when i executed the tuning task.
I am also adding the query which i have tried to tune
select * from dwh.beneficiary_dim BEN_DIM,
(Select adr_dp_id,
adr_account_no,
ADR_ADDRESS_LINE_1 || ' ' ||
ADR_ADDRESS_LINE_2 || ' ' ||
ADR_ADDRESS_LINE_3 || ' ' ||
ADR_ADDRESS_LINE_4 as ADDRESS,
adr_pin_code,adr_phone_no,adr_fax_no
from dwh.beneficiary_address_dim where adr_type_id = 1) PERMANENT_ADD_DIM,
(Select adr_dp_id,
adr_account_no,
ADR_ADDRESS_LINE_1 || ' ' ||
ADR_ADDRESS_LINE_2 || ' ' ||
ADR_ADDRESS_LINE_3 || ' ' ||
ADR_ADDRESS_LINE_4 as ADDRESS,
adr_pin_code,adr_phone_no,adr_fax_no
from dwh.beneficiary_address_dim where adr_type_id = 2) BANK_ADD_DIM,
(Select adr_dp_id,
adr_account_no,
ADR_ADDRESS_LINE_1 || ' ' ||
ADR_ADDRESS_LINE_2 || ' ' ||
ADR_ADDRESS_LINE_3 || ' ' ||
ADR_ADDRESS_LINE_4 as ADDRESS,
adr_pin_code,adr_phone_no,adr_fax_no
from dwh.beneficiary_address_dim where adr_type_id = 3) NOM_GUARDIAN_ADD_DIM,
(Select adr_dp_id,
adr_account_no,
ADR_ADDRESS_LINE_1 || ' ' ||
ADR_ADDRESS_LINE_2 || ' ' ||
ADR_ADDRESS_LINE_3 || ' ' ||
ADR_ADDRESS_LINE_4 as ADDRESS,
adr_pin_code,adr_phone_no,adr_fax_no
from dwh.beneficiary_address_dim where adr_type_id = 4) CORR_ADD_DIM,
(Select adr_dp_id,
adr_account_no,
ADR_ADDRESS_LINE_1 || ' ' ||
ADR_ADDRESS_LINE_2 || ' ' ||
ADR_ADDRESS_LINE_3 || ' ' ||
ADR_ADDRESS_LINE_4 as ADDRESS,
adr_pin_code,adr_phone_no,adr_fax_no
from dwh.beneficiary_address_dim where adr_type_id = 6) MINOR_ADDRESS,
(Select rp.requestid as requestid,
decode(rp.value,'ALL','ALL','','ALL',decode(substr(rp.value,1,instr(rp.value,'|',1,1)-1),'','ALL',substr(rp.value,1,instr(rp.value,'|',1,1)-1))) as Name,
decode(rp.value,'ALL','ALL','','ALL',decode(substr(rp.value,(instr(rp.value,'|',1,1)+1),((instr(rp.value,'|',1,2))-(instr(rp.value,'|',1,1)+1))),'','ALL',substr(rp.value,(instr(rp.value,'|',1,1)+1),((instr(rp.value,'|',1,2))-(instr(rp.value,'|',1,1)+1))))) as Address,
decode(rp.value,'ALL','ALL','','ALL',decode(substr(rp.value,(instr(rp.value,'|',1,2)+1)),'','ALL',substr(rp.value,(instr(rp.value,'|',1,2)+1)))) as PAN
from disadmin.requestparameters rp, disadmin.requestparameters rps, disadmin.reportrequests rr
where rp.parameterid = 'CNAS_PARAM_VALUE'
and rr.status = 'A'
and rp.requestid = rr.id
and rp.id = rps.id) P_PARAM_VALUE,
(Select rp.requestid as requestid, rp.value as Type
from disadmin.requestparameters rp, disadmin.reportrequests rr
where rp.parameterid = 'CNAS_NAME_TYPE'
and rr.status = 'A'
and rp.requestid = rr.id) P_NAME_TYPE,
(Select rp.requestid as requestid, rp.value as Addtype
from disadmin.requestparameters rp, disadmin.reportrequests rr
where rp.parameterid = 'CNAS_ADDRESS_TYPE'
and rr.status = 'A'
and rp.requestid = rr.id) P_ADDRESS_TYPE
where ( 1= case when P_NAME_TYPE.Type = 'F' then
case when BEN_DIM.BDM_FIRST_HOLDER_NAME like DECODE(P_PARAM_VALUE.Name,'ALL','%'||BEN_DIM.BDM_FIRST_HOLDER_NAME||'%','%'||P_PARAM_VALUE.Name||'%')
or BEN_DIM.BDM_FIRST_HOLDER_SURNAME like DECODE(P_PARAM_VALUE.Name,'ALL','%'||BEN_DIM.BDM_FIRST_HOLDER_SURNAME||'%','%'||P_PARAM_VALUE.Name||'%')
then 1
else null end
else
case when P_NAME_TYPE.Type = 'ALL' then
case when (BEN_DIM.BDM_FIRST_HOLDER_NAME like DECODE(P_PARAM_VALUE.Name,'ALL','%'||BEN_DIM.BDM_FIRST_HOLDER_NAME||'%','%'||P_PARAM_VALUE.Name||'%')
or BEN_DIM.BDM_FIRST_HOLDER_SURNAME like DECODE(P_PARAM_VALUE.Name,'ALL','%'||BEN_DIM.BDM_FIRST_HOLDER_SURNAME||'%','%'||P_PARAM_VALUE.Name||'%'))
and BEN_DIM.BDM_SECOND_HOLDER_NAME like DECODE(P_PARAM_VALUE.Name,'ALL','%'||BEN_DIM.BDM_SECOND_HOLDER_NAME||'%','%'||P_PARAM_VALUE.Name||'%')
and BEN_DIM.BDM_THIRD_HOLDER_NAME like DECODE(P_PARAM_VALUE.Name,'ALL','%'||BEN_DIM.BDM_THIRD_HOLDER_NAME||'%','%'||P_PARAM_VALUE.Name||'%')
then 1
else null end
else null end
end )
and BEN_DIM.BDM_IT_PAN like DECODE(P_PARAM_VALUE.PAN,'ALL','%'||BEN_DIM.BDM_IT_PAN||'%','%'||P_PARAM_VALUE.PAN||'%')
and (1 = case when P_ADDRESS_TYPE.ADDTYPE = 1 then
case when instr(PERMANENT_ADD_DIM.ADDRESS, DECODE(P_PARAM_VALUE.ADDRESS,'ALL',PERMANENT_ADD_DIM.ADDRESS, P_PARAM_VALUE.ADDRESS)) <> 0
then 1
else null end
when P_ADDRESS_TYPE.ADDTYPE = 3 then
case when instr(NOM_GUARDIAN_ADD_DIM.ADDRESS, DECODE(P_PARAM_VALUE.ADDRESS,'ALL',NOM_GUARDIAN_ADD_DIM.ADDRESS, P_PARAM_VALUE.ADDRESS)) <> 0
then 1
else null end
when P_ADDRESS_TYPE.ADDTYPE = 4 then
case when instr(CORR_ADD_DIM.ADDRESS, DECODE(P_PARAM_VALUE.ADDRESS,'ALL',CORR_ADD_DIM.ADDRESS, P_PARAM_VALUE.ADDRESS)) <> 0
then 1
else null end
when P_ADDRESS_TYPE.ADDTYPE = 6 then
case when instr(MINOR_ADDRESS.ADDRESS, DECODE(P_PARAM_VALUE.ADDRESS,'ALL',MINOR_ADDRESS.ADDRESS, P_PARAM_VALUE.ADDRESS)) <> 0
then 1
else null end
else null end );The above query also tries to access some tables from another user DISADMIN. Could you please help me in solving this problem while using SQL Tuning Advisor ? I am the only DBA here.will the rows really be updated just by using the package?Considering DMLs
SQL> select * from test
2 /
NO
1
2
SQL> ed
Wrote file afiedt.buf
1 DECLARE
2 my_task_name VARCHAR2(30);
3 my_sqltext CLOB;
4 BEGIN
5 my_sqltext := 'insert into test values (3)';
6 my_task_name := DBMS_SQLTUNE.CREATE_TUNING_TASK(
7 sql_text => my_sqltext,
8 task_name => 'my_sql_tuning_task');
9* end;
SQL> /
PL/SQL procedure successfully completed.
SQL> BEGIN
2 DBMS_SQLTUNE.EXECUTE_TUNING_TASK( task_name => 'my_sql_tuning_task' );
3 END;
4 /
PL/SQL procedure successfully completed.
SQL> select * from test
2 /
NO
1
2
SQL> SELECT DBMS_SQLTUNE.REPORT_TUNING_TASK( 'my_sql_tuning_task')
2 FROM DUAL;
DBMS_SQLTUNE.REPORT_TUNING_TASK('MY_SQL_TUNING_TASK')
GENERAL INFORMATION SECTION
Tuning Task Name : my_sql_tuning_task
Tuning Task Owner : TEST
Scope : COMPREHENSIVE
Time Limit(seconds): 1800
Completion Status : COMPLETED
Started at : 03/27/2008 05:16:14
Completed at : 03/27/2008 05:16:16
DBMS_SQLTUNE.REPORT_TUNING_TASK('MY_SQL_TUNING_TASK')
Schema Name: TEST
SQL ID : gwkmgmyj9824t
SQL Text : insert into test values (3)
There are no recommendations to improve the statement.
-------------------------------------------------------------------------------Adith
Maybe you are looking for
-
Query related to UPN Suffix in Hierarchical domain architecture in Active Directory deployment
This is regarding a query related to UPN Suffix in Hierarchical domain architecture in Active Directory deployment. We use LDAP query (filter uPNSuffixes=* for the parent domain DN) to retrieve the upn suffixes configured in the AD Domain. This retur
-
How to code just like push the detail button in oo alv ?
I work with oo alv ,how to do it when I double clikc mouse then just like I push the detail button? what i want to do is when I double click mouse ,it works just like push the detail button on the toolbar , I did debug and get the function code just
-
here's one for all you java gurus: //import java.util.*; public class RowsofTen //static Scanner console = new Scanner(System.in); public static void main (String[] args) int i, j; for ( i = 11; i <= 40; i++) for (j = i; j <=
-
How to unzip a .tar.tar file
Hi , I have downloaded jexel api from net. But it come as jexcelapi_2_5_9.tar.tar. i tried to unzip using winzip. But its not working. Can anybody tell how to unzip this?
-
SDK function to determine if page has colors (cmyk)
Hello. We have PDF which is in PDF-X/1a format. We have there black/white pages, but also pages with images in CMYK format. We are using Acrobat scripting to process that pages. And we wnat to know programaticaaly if page has some colors on it. If pa