SlideShare a Scribd company logo
SQLT	
  XPLORE	
  
The	
  SQLT	
  XPLAIN	
  Hidden	
  Child	
  
Carlos	
  Sierra	
  -­‐	
  Enkitec	
  
Carlos	
  Sierra	
  
• 
• 
• 
• 

Enkitec	
  Consultant	
  
Oracle	
  Performance	
  
SQL	
  Tuning	
  
PL/SQL	
  

11/12/13	
  

Enkitec	
  (c)	
  

2	
  
SQLT	
  XPLORE	
  
• 
• 
• 
• 

IntroducDon	
  
Input	
  and	
  Output	
  
Screen	
  Shots	
  
Demo	
  

11/12/13	
  

Enkitec	
  (c)	
  

3	
  
SQLTXPLAIN	
  (SQLT)	
  
• 
• 
• 
• 
• 

Free	
  SQL	
  Tuning	
  Tool	
  
Oracle	
  10g	
  to	
  12c	
  
Linux/UNIX/Windows	
  
Available	
  @	
  MOS	
  215187.1	
  
Includes	
  SQLT	
  Test	
  Case	
  (TC)	
  and	
  XPLORE	
  

11/12/13	
  

Enkitec	
  (c)	
  

4	
  
SQLT	
  Test	
  Case	
  (TC)	
  
•  Metadata	
  to	
  create	
  a	
  SQL	
  Tuning	
  test	
  case	
  
–  SQL	
  Text	
  with	
  bind	
  variables	
  and	
  their	
  values	
  
–  Schema	
  Objects	
  creaDon	
  script	
  
–  CBO	
  StaDsDcs	
  
–  Schema	
  Objects	
  mapping	
  

11/12/13	
  

Enkitec	
  (c)	
  

5	
  
What	
  is	
  SQLT	
  XPLORE?	
  
•  Brute	
  Force	
  stand-­‐alone	
  module	
  	
  
•  Under	
  sqlt/utl/xplore	
  out	
  of	
  sqlt.zip	
  
•  Acts	
  on	
  top	
  of	
  a	
  SQLT	
  TC	
  	
  
–  Or	
  any	
  SQL	
  on	
  a	
  Test	
  System	
  

•  Discovers	
  several	
  ExecuDon	
  Plans	
  
11/12/13	
  

Enkitec	
  (c)	
  

6	
  
XPLORE	
  Mechanics	
  
•  Iterates	
  over	
  	
  
–  CBO	
  Parameters	
  and	
  Fix	
  Control	
  

•  For	
  each	
  iteraDon	
  
–  Executes	
  input	
  SQL	
  
–  Captures	
  Plan	
  

•  Reports	
  Summary	
  
11/12/13	
  

Enkitec	
  (c)	
  

7	
  
XPLORE	
  Input	
  and	
  Output	
  
•  Inputs	
  one	
  script	
  with	
  one	
  SQL	
  
•  Outputs	
  a	
  zip	
  with	
  
–  HTML	
  Report	
  
–  SQL	
  Monitor	
  zip	
  
–  Staging	
  SQL	
  Script	
  
–  ExecuDon	
  Log	
  
11/12/13	
  

Enkitec	
  (c)	
  

8	
  
XPLORE	
  HTML	
  Report	
  
• 
• 
• 
• 
• 

Plans	
  Summary	
  
Discovered	
  Plans	
  
Baseline	
  
Completed	
  Tests	
  for	
  each	
  Plan	
  
ExecuDon	
  Plans	
  

11/12/13	
  

Enkitec	
  (c)	
  

9	
  
SQL	
  Monitor	
  ZIP	
  
•  Only	
  on	
  11g	
  
•  Requires	
  Oracle	
  Tuning	
  Pack	
  
–  Controlled	
  by	
  XPLORE	
  execuDon	
  parameter	
  

•  You	
  may	
  need	
  to	
  embed	
  /*+	
  MONITOR	
  */	
  hint	
  
•  One	
  SQL	
  Monitor	
  Report	
  for	
  each	
  iteraDon	
  
11/12/13	
  

Enkitec	
  (c)	
  

10	
  
11/12/13	
  

Enkitec	
  (c)	
  

11	
  
When	
  to	
  use	
  XPLORE?	
  
•  SQL	
  performance	
  analysis	
  	
  
–  Afer	
  a	
  database	
  sofware	
  upgrade	
  

•  Bad	
  Plan	
  is	
  reproducible	
  on	
  Test	
  System	
  
•  Good	
  Plan	
  can	
  be	
  obtained	
  using	
  OpDmizer	
  
Features	
  Enabled	
  (OFE)	
  set	
  to	
  prior	
  release	
  
•  You	
  want	
  to	
  narrow	
  reason	
  of	
  regression	
  
11/12/13	
  

Enkitec	
  (c)	
  

12	
  
MulDple	
  Uses	
  
•  SQL	
  Performance	
  Regression	
  afer	
  Upgrade	
  
•  Long	
  Parse	
  Time	
  Analysis	
  
•  Wrong	
  Results	
  Analysis	
  
–  DiagnosDc	
  of	
  Query	
  TransformaDons	
  Errors	
  

•  Discover	
  effect	
  of	
  “disabled”	
  fixes	
  
•  Find	
  a	
  beler	
  performing	
  Plan	
  
11/12/13	
  

Enkitec	
  (c)	
  

13	
  
When	
  NOT	
  to	
  use	
  XPLORE?	
  
•  When	
  your	
  SQL	
  to	
  be	
  analyzed	
  may	
  corrupt	
  or	
  
update	
  data	
  
•  When	
  using	
  XPLORE	
  with	
  data	
  and	
  each	
  
iteraDon	
  takes	
  more	
  than	
  a	
  few	
  seconds	
  

11/12/13	
  

Enkitec	
  (c)	
  

14	
  
XPLORE	
  Prerequisites	
  
•  Create	
  a	
  SQL	
  Script	
  with	
  one	
  SQL	
  
–  Binds	
  are	
  allowed	
  

•  SQL	
  on	
  script	
  must	
  include	
  /*	
  ^^unique_id	
  */	
  
•  Script	
  must	
  be	
  capable	
  to	
  execute	
  stand	
  alone	
  
•  SQL	
  may	
  or	
  may	
  not	
  return	
  rows	
  	
  
–  XPLORE	
  works	
  with	
  and	
  without	
  data	
  
11/12/13	
  

Enkitec	
  (c)	
  

15	
  
XPLORE	
  InstallaDon	
  
•  Place	
  your	
  input	
  SQL	
  Script	
  into	
  sqlt/utl/xplore	
  
•  Execute	
  sqlt/utl/xplore/install.sql	
  as	
  SYS	
  
•  Input	
  test	
  case	
  user	
  and	
  its	
  password	
  
–  XPLORE	
  will	
  be	
  executed	
  as	
  test	
  case	
  user	
  

11/12/13	
  

Enkitec	
  (c)	
  

16	
  
Uninstalling	
  XPLORE	
  
•  Execute	
  sqlt/utl/xplore/uninstall.sql	
  as	
  SYS	
  
•  Provide	
  test	
  case	
  user	
  when	
  asked	
  

11/12/13	
  

Enkitec	
  (c)	
  

17	
  
XPLORE	
  use	
  
• 
• 
• 
• 
• 

Navigate	
  to	
  sqlt/utl/xplore/	
  
Connect	
  as	
  the	
  test	
  case	
  user	
  
Set	
  the	
  CBO	
  environment	
  (opDonal)	
  
Execute	
  create_xplore_script.sql	
  
Execute	
  dynamically	
  generated	
  xplore_script	
  

11/12/13	
  

Enkitec	
  (c)	
  

18	
  
Create	
  XPLORE	
  Script	
  Parameters	
  
• 
• 
• 
• 
• 

XPLORE	
  Method:	
  [	
  XECUTE	
  |	
  XPLAIN	
  ]	
  
Include	
  CBO	
  Parameters:	
  [	
  Y	
  |	
  N	
  ]	
  
Include	
  Exadata	
  Parameters:	
  [	
  Y	
  |	
  N	
  ]	
  
Include	
  Fix	
  Control:	
  [	
  Y	
  |	
  N	
  ]	
  
Generate	
  SQL	
  Monitor	
  Reports:	
  [	
  N	
  |	
  Y	
  ]	
  

11/12/13	
  

Enkitec	
  (c)	
  

19	
  
XPLORE	
  Script	
  Parameters	
  
•  Script	
  to	
  be	
  executed	
  on	
  each	
  iteraDon	
  
–  Script	
  must	
  reside	
  on	
  sqlt/utl/xplore	
  
–  Must	
  contain	
  /*	
  ^^unique_id	
  */	
  
–  Must	
  be	
  capable	
  of	
  stand-­‐alone	
  error-­‐free	
  exec	
  

•  Password	
  for	
  test	
  case	
  user	
  
–  Each	
  iteraDon	
  re-­‐connects	
  and	
  sets	
  CBO	
  env	
  (opt)	
  
11/12/13	
  

Enkitec	
  (c)	
  

20	
  
Input	
  tc.sql	
  Sample	
  

11/12/13	
  

Enkitec	
  (c)	
  

21	
  
11/12/13	
  

Enkitec	
  (c)	
  

22	
  
11/12/13	
  

Enkitec	
  (c)	
  

23	
  
Input	
  q1.sql	
  Sample	
  

11/12/13	
  

Enkitec	
  (c)	
  

24	
  
11/12/13	
  

Enkitec	
  (c)	
  

25	
  
11/12/13	
  

Enkitec	
  (c)	
  

26	
  
Input	
  q2.sql	
  Sample	
  

11/12/13	
  

Enkitec	
  (c)	
  

27	
  
11/12/13	
  

Enkitec	
  (c)	
  

28	
  
11/12/13	
  

Enkitec	
  (c)	
  

29	
  
11/12/13	
  

Enkitec	
  (c)	
  

30	
  
Input	
  q3.sql	
  Sample	
  

11/12/13	
  

Enkitec	
  (c)	
  

31	
  
11/12/13	
  

Enkitec	
  (c)	
  

32	
  
11/12/13	
  

Enkitec	
  (c)	
  

33	
  
Demo	
  Time	
  

11/12/13	
  

Enkitec	
  (c)	
  

34	
  
References	
  
•  SQLTXPLAIN	
  (SQLT)	
  
–  MOS	
  215187.1	
  

11/12/13	
  

Enkitec	
  (c)	
  

35	
  
Carlos	
  Sierra	
  Contact	
  Info	
  
•  carlos.sierra@enkitec.com	
  
•  csierra_usa	
  
•  carlos-­‐sierra.net	
  
11/12/13	
  

Enkitec	
  (c)	
  

36	
  

More Related Content

PPTX
SQLT XPLORE: The SQLT XPLAIN hidden child
PPSX
How a Developer can Troubleshoot a SQL performing poorly on a Production DB
PDF
Sql tuning made easier with sqltxplain (sqlt)
PPTX
Understanding How is that Adaptive Cursor Sharing (ACS) produces multiple Opt...
PPTX
SQL Tuning made easier with SQLTXPLAIN (SQLT)
PPTX
SQL Tuning 101
PPSX
Introducing the eDB360 Tool
PDF
SQL Tuning Tools of the Trade
SQLT XPLORE: The SQLT XPLAIN hidden child
How a Developer can Troubleshoot a SQL performing poorly on a Production DB
Sql tuning made easier with sqltxplain (sqlt)
Understanding How is that Adaptive Cursor Sharing (ACS) produces multiple Opt...
SQL Tuning made easier with SQLTXPLAIN (SQLT)
SQL Tuning 101
Introducing the eDB360 Tool
SQL Tuning Tools of the Trade

What's hot (20)

PDF
Understanding how is that adaptive cursor sharing (acs) produces multiple opt...
PPSX
Oracle Performance Tools of the Trade
PPTX
Understanding my database through SQL*Plus using the free tool eDB360
PPTX
Understanding SQL Trace, TKPROF and Execution Plan for beginners
PPSX
Introducing the eDB360 Tool
PPTX
Adapting and adopting spm v04
PPTX
Using SQL Plan Management (SPM) to balance Plan Flexibility and Plan Stability
PPSX
Oracle Performance Tuning Fundamentals
PPTX
Hitchhiker's Guide to free Oracle tuning tools
PDF
Exachk and oem12c
PDF
Free oracle performance tools
PDF
Oracle SQL tuning with SQL Plan Management
PDF
Apache Solr: Upgrading Your Upgrade Experience - Hrishikesh Gadre, Lucidworks
PDF
How many ways to monitor oracle golden gate - OOW14
PPTX
AWR Warehouse - An Introduction (HKOUG)
PDF
AMIS Oracle OpenWorld 2013 Review Part 3 - Fusion Middleware
PPTX
Terraform & Oracle Cloud Infrastructure
PPTX
SQLServerDays2012_SSIS_CDC
PPTX
Improving oracle12c security
PPTX
SIMD inside and outside oracle 12c
Understanding how is that adaptive cursor sharing (acs) produces multiple opt...
Oracle Performance Tools of the Trade
Understanding my database through SQL*Plus using the free tool eDB360
Understanding SQL Trace, TKPROF and Execution Plan for beginners
Introducing the eDB360 Tool
Adapting and adopting spm v04
Using SQL Plan Management (SPM) to balance Plan Flexibility and Plan Stability
Oracle Performance Tuning Fundamentals
Hitchhiker's Guide to free Oracle tuning tools
Exachk and oem12c
Free oracle performance tools
Oracle SQL tuning with SQL Plan Management
Apache Solr: Upgrading Your Upgrade Experience - Hrishikesh Gadre, Lucidworks
How many ways to monitor oracle golden gate - OOW14
AWR Warehouse - An Introduction (HKOUG)
AMIS Oracle OpenWorld 2013 Review Part 3 - Fusion Middleware
Terraform & Oracle Cloud Infrastructure
SQLServerDays2012_SSIS_CDC
Improving oracle12c security
SIMD inside and outside oracle 12c
Ad

Similar to SQLT XPLORE - The SQLT XPLAIN Hidden Child (20)

PPTX
Tanel Poder Oracle Scripts and Tools (2010)
PPTX
SQLcl overview - A new Command Line Interface for Oracle Database
PDF
Tanel Poder - Scripts and Tools short
PDF
Erik_van_Roon.pdf
PPTX
SQL TUNING 101
PDF
Oracle SQLcl
PPTX
Is SQLcl the Next Generation of SQL*Plus?
PDF
MOUG17: DB Security; Secure your Data
PDF
MOUG17: SQLT Utility for Tuning - Practical Examples
PPTX
DBA Commands and Concepts That Every Developer Should Know - Part 2
PPTX
DBA Commands and Concepts That Every Developer Should Know - Part 2
PDF
SQLcl the next generation of SQLPlus?
PPTX
Oracle SQL Developer Tips & Tricks
PDF
Oracle Performance Tools of the Trade
PPTX
SQL TUNING 101
PPTX
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
PPTX
DBA Commands and Concepts That Every Developer Should Know
PPTX
Oracle SQLcl: Formatting your Query Results
PDF
Oracle sql developer_slides
PDF
Sql tuning tools of the trade
Tanel Poder Oracle Scripts and Tools (2010)
SQLcl overview - A new Command Line Interface for Oracle Database
Tanel Poder - Scripts and Tools short
Erik_van_Roon.pdf
SQL TUNING 101
Oracle SQLcl
Is SQLcl the Next Generation of SQL*Plus?
MOUG17: DB Security; Secure your Data
MOUG17: SQLT Utility for Tuning - Practical Examples
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2
SQLcl the next generation of SQLPlus?
Oracle SQL Developer Tips & Tricks
Oracle Performance Tools of the Trade
SQL TUNING 101
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
DBA Commands and Concepts That Every Developer Should Know
Oracle SQLcl: Formatting your Query Results
Oracle sql developer_slides
Sql tuning tools of the trade
Ad

More from Enkitec (20)

PDF
Using Angular JS in APEX
PDF
Controlling execution plans 2014
PDF
Engineered Systems: Environment-as-a-Service Demonstration
PDF
Think Exa!
PDF
In Memory Database In Action by Tanel Poder and Kerry Osborne
PDF
In Search of Plan Stability - Part 1
PDF
Mini Session - Using GDB for Profiling
PDF
Profiling Oracle with GDB
PDF
Oracle Performance Tuning Fundamentals
PDF
Using SQL Plan Management (SPM) to Balance Plan Flexibility and Plan Stability
PDF
Oracle GoldenGate Architecture Performance
PDF
OGG Architecture Performance
PDF
APEX Security Primer
PDF
How Many Ways Can I Manage Oracle GoldenGate?
PDF
Profiling the logwriter and database writer
PDF
Fatkulin hotsos 2014
PDF
Combining ACS Flexibility with SPM Stability
PDF
Why You May Not Need Offloading
PDF
LOBS, BLOBS, CLOBS: Dealing with Attachments in APEX
PDF
Creating a Business Oriented UI in APEX
Using Angular JS in APEX
Controlling execution plans 2014
Engineered Systems: Environment-as-a-Service Demonstration
Think Exa!
In Memory Database In Action by Tanel Poder and Kerry Osborne
In Search of Plan Stability - Part 1
Mini Session - Using GDB for Profiling
Profiling Oracle with GDB
Oracle Performance Tuning Fundamentals
Using SQL Plan Management (SPM) to Balance Plan Flexibility and Plan Stability
Oracle GoldenGate Architecture Performance
OGG Architecture Performance
APEX Security Primer
How Many Ways Can I Manage Oracle GoldenGate?
Profiling the logwriter and database writer
Fatkulin hotsos 2014
Combining ACS Flexibility with SPM Stability
Why You May Not Need Offloading
LOBS, BLOBS, CLOBS: Dealing with Attachments in APEX
Creating a Business Oriented UI in APEX

Recently uploaded (20)

PDF
KodekX | Application Modernization Development
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Encapsulation theory and applications.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
A Presentation on Artificial Intelligence
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Approach and Philosophy of On baking technology
PPTX
MYSQL Presentation for SQL database connectivity
PPT
Teaching material agriculture food technology
KodekX | Application Modernization Development
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Encapsulation theory and applications.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Agricultural_Statistics_at_a_Glance_2022_0.pdf
A Presentation on Artificial Intelligence
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation_ Review paper, used for researhc scholars
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Mobile App Security Testing_ A Comprehensive Guide.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Chapter 3 Spatial Domain Image Processing.pdf
Network Security Unit 5.pdf for BCA BBA.
Digital-Transformation-Roadmap-for-Companies.pptx
NewMind AI Monthly Chronicles - July 2025
Approach and Philosophy of On baking technology
MYSQL Presentation for SQL database connectivity
Teaching material agriculture food technology

SQLT XPLORE - The SQLT XPLAIN Hidden Child

  • 1. SQLT  XPLORE   The  SQLT  XPLAIN  Hidden  Child   Carlos  Sierra  -­‐  Enkitec  
  • 2. Carlos  Sierra   •  •  •  •  Enkitec  Consultant   Oracle  Performance   SQL  Tuning   PL/SQL   11/12/13   Enkitec  (c)   2  
  • 3. SQLT  XPLORE   •  •  •  •  IntroducDon   Input  and  Output   Screen  Shots   Demo   11/12/13   Enkitec  (c)   3  
  • 4. SQLTXPLAIN  (SQLT)   •  •  •  •  •  Free  SQL  Tuning  Tool   Oracle  10g  to  12c   Linux/UNIX/Windows   Available  @  MOS  215187.1   Includes  SQLT  Test  Case  (TC)  and  XPLORE   11/12/13   Enkitec  (c)   4  
  • 5. SQLT  Test  Case  (TC)   •  Metadata  to  create  a  SQL  Tuning  test  case   –  SQL  Text  with  bind  variables  and  their  values   –  Schema  Objects  creaDon  script   –  CBO  StaDsDcs   –  Schema  Objects  mapping   11/12/13   Enkitec  (c)   5  
  • 6. What  is  SQLT  XPLORE?   •  Brute  Force  stand-­‐alone  module     •  Under  sqlt/utl/xplore  out  of  sqlt.zip   •  Acts  on  top  of  a  SQLT  TC     –  Or  any  SQL  on  a  Test  System   •  Discovers  several  ExecuDon  Plans   11/12/13   Enkitec  (c)   6  
  • 7. XPLORE  Mechanics   •  Iterates  over     –  CBO  Parameters  and  Fix  Control   •  For  each  iteraDon   –  Executes  input  SQL   –  Captures  Plan   •  Reports  Summary   11/12/13   Enkitec  (c)   7  
  • 8. XPLORE  Input  and  Output   •  Inputs  one  script  with  one  SQL   •  Outputs  a  zip  with   –  HTML  Report   –  SQL  Monitor  zip   –  Staging  SQL  Script   –  ExecuDon  Log   11/12/13   Enkitec  (c)   8  
  • 9. XPLORE  HTML  Report   •  •  •  •  •  Plans  Summary   Discovered  Plans   Baseline   Completed  Tests  for  each  Plan   ExecuDon  Plans   11/12/13   Enkitec  (c)   9  
  • 10. SQL  Monitor  ZIP   •  Only  on  11g   •  Requires  Oracle  Tuning  Pack   –  Controlled  by  XPLORE  execuDon  parameter   •  You  may  need  to  embed  /*+  MONITOR  */  hint   •  One  SQL  Monitor  Report  for  each  iteraDon   11/12/13   Enkitec  (c)   10  
  • 12. When  to  use  XPLORE?   •  SQL  performance  analysis     –  Afer  a  database  sofware  upgrade   •  Bad  Plan  is  reproducible  on  Test  System   •  Good  Plan  can  be  obtained  using  OpDmizer   Features  Enabled  (OFE)  set  to  prior  release   •  You  want  to  narrow  reason  of  regression   11/12/13   Enkitec  (c)   12  
  • 13. MulDple  Uses   •  SQL  Performance  Regression  afer  Upgrade   •  Long  Parse  Time  Analysis   •  Wrong  Results  Analysis   –  DiagnosDc  of  Query  TransformaDons  Errors   •  Discover  effect  of  “disabled”  fixes   •  Find  a  beler  performing  Plan   11/12/13   Enkitec  (c)   13  
  • 14. When  NOT  to  use  XPLORE?   •  When  your  SQL  to  be  analyzed  may  corrupt  or   update  data   •  When  using  XPLORE  with  data  and  each   iteraDon  takes  more  than  a  few  seconds   11/12/13   Enkitec  (c)   14  
  • 15. XPLORE  Prerequisites   •  Create  a  SQL  Script  with  one  SQL   –  Binds  are  allowed   •  SQL  on  script  must  include  /*  ^^unique_id  */   •  Script  must  be  capable  to  execute  stand  alone   •  SQL  may  or  may  not  return  rows     –  XPLORE  works  with  and  without  data   11/12/13   Enkitec  (c)   15  
  • 16. XPLORE  InstallaDon   •  Place  your  input  SQL  Script  into  sqlt/utl/xplore   •  Execute  sqlt/utl/xplore/install.sql  as  SYS   •  Input  test  case  user  and  its  password   –  XPLORE  will  be  executed  as  test  case  user   11/12/13   Enkitec  (c)   16  
  • 17. Uninstalling  XPLORE   •  Execute  sqlt/utl/xplore/uninstall.sql  as  SYS   •  Provide  test  case  user  when  asked   11/12/13   Enkitec  (c)   17  
  • 18. XPLORE  use   •  •  •  •  •  Navigate  to  sqlt/utl/xplore/   Connect  as  the  test  case  user   Set  the  CBO  environment  (opDonal)   Execute  create_xplore_script.sql   Execute  dynamically  generated  xplore_script   11/12/13   Enkitec  (c)   18  
  • 19. Create  XPLORE  Script  Parameters   •  •  •  •  •  XPLORE  Method:  [  XECUTE  |  XPLAIN  ]   Include  CBO  Parameters:  [  Y  |  N  ]   Include  Exadata  Parameters:  [  Y  |  N  ]   Include  Fix  Control:  [  Y  |  N  ]   Generate  SQL  Monitor  Reports:  [  N  |  Y  ]   11/12/13   Enkitec  (c)   19  
  • 20. XPLORE  Script  Parameters   •  Script  to  be  executed  on  each  iteraDon   –  Script  must  reside  on  sqlt/utl/xplore   –  Must  contain  /*  ^^unique_id  */   –  Must  be  capable  of  stand-­‐alone  error-­‐free  exec   •  Password  for  test  case  user   –  Each  iteraDon  re-­‐connects  and  sets  CBO  env  (opt)   11/12/13   Enkitec  (c)   20  
  • 21. Input  tc.sql  Sample   11/12/13   Enkitec  (c)   21  
  • 24. Input  q1.sql  Sample   11/12/13   Enkitec  (c)   24  
  • 27. Input  q2.sql  Sample   11/12/13   Enkitec  (c)   27  
  • 31. Input  q3.sql  Sample   11/12/13   Enkitec  (c)   31  
  • 34. Demo  Time   11/12/13   Enkitec  (c)   34  
  • 35. References   •  SQLTXPLAIN  (SQLT)   –  MOS  215187.1   11/12/13   Enkitec  (c)   35  
  • 36. Carlos  Sierra  Contact  Info   •  carlos.sierra@enkitec.com   •  csierra_usa   •  carlos-­‐sierra.net   11/12/13   Enkitec  (c)   36