0
ActiveBase Ltd. All Rights reserved Welcome to ActiveBase SQL Expert™ Quick Tour. In the next few slides we will walk you ...
<ul><li>ActiveBase SQL Expert TM  is a powerful  SQL improvement tool to help find the best Oracle ‘ Hint ’ for ‘Select’ S...
ActiveBase Ltd. All Rights reserved Find ‘best Hint’ in 5 Steps ActiveBase SQL Expert™   SQL improvement made easy  TM Pro...
Defining database  connection <ul><li>Define database parameters for connecting to the database. ActiveBase SQL Expert TM ...
ActiveBase Ltd. All Rights reserved Click  Find Hotspots  to copy and paste a ‘Select’ request from Oracle SGA. Then click...
ActiveBase Ltd. All Rights reserved Click on  Options  to set the  benchmark execution parameters   Click on ‘  ’ to view ...
Step 3: Define Benchmark  Execution Parameters <ul><li>> Run original first </li></ul><ul><li>> Execute each alternative s...
ActiveBase Ltd. All Rights reserved <ul><li>For a 40 min. report with 1,000 alternatives, an automatic cancelling 50% of ‘...
ActiveBase Ltd. All Rights reserved <ul><li>Automatic cancelled  alternatives are colored in  red . </li></ul><ul><li>Comp...
ActiveBase Ltd. All Rights reserved It is useful for identifying the improved execution plan change (applied by the ‘Hint’...
Find Best Hint in the  Benchmark Results Audit Trail ActiveBase Ltd. All Rights reserved <ul><li>For the original and each...
Get best ‘Hint’ ActiveBase Ltd. All Rights reserved For more detailed information, please refer to our user manual  found ...
<ul><li>ActiveBase SQL Expert TM  is a powerful and  easy-to-use  tool for  helping DBAs and SQL developers  improve execu...
<ul><li>>  Now that you know how to use ActiveBase SQL Expert™ for improving your long running SQL statements, what can yo...
Upcoming SlideShare
Loading in...5
×

Expert Quick Tour

664

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
664
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • ActiveBase Ltd.
  • ActiveBase Ltd.
  • ActiveBase Ltd.
  • ActiveBase Ltd.
  • ActiveBase Ltd.
  • ActiveBase Ltd.
  • ActiveBase Ltd.
  • ActiveBase Ltd.
  • ActiveBase Ltd.
  • ActiveBase Ltd.
  • ActiveBase Ltd.
  • ActiveBase Ltd.
  • Transcript of "Expert Quick Tour"

    1. 1. ActiveBase Ltd. All Rights reserved Welcome to ActiveBase SQL Expert™ Quick Tour. In the next few slides we will walk you through the features of SQL Expert. You will appreciate how easy it is to find Hints that will improve the execution time of your SQL statements by sometimes 100’s%. <ul><ul><li>No SQL expertise needed, </li></ul></ul><ul><ul><li>All interactive, no programming, </li></ul></ul><ul><ul><li>Powerful execution options for quick results </li></ul></ul><ul><ul><li>Installed & operational in less than 10 min. </li></ul></ul>” With ActiveBase I easily improved SQL requests by x50 ” James B. , DBA, Leading telecom
    2. 2. <ul><li>ActiveBase SQL Expert TM is a powerful SQL improvement tool to help find the best Oracle ‘ Hint ’ for ‘Select’ SQL statements. </li></ul><ul><li>ActiveBase SQL Expert TM runs on a Windows client, connecting to Oracle databases. Through simple screens you will easily be able to: </li></ul><ul><ul><li>1. Identify long-running or resource-intensive SQL statements with potential performance issues </li></ul></ul><ul><ul><li>2. Analyze manually entered or previously identified ‘Select’ SQL requests for every possible execution plan </li></ul></ul><ul><ul><li>3. Run serially alternatives (SQL + Oracle ‘Hints’) against the Oracle database in order to obtain the most efficient Hint </li></ul></ul><ul><ul><li>4. View detailed execution statistics </li></ul></ul>General overview ActiveBase SQL Expert™ SQL improvement made easy TM ActiveBase Ltd. All Rights reserved
    3. 3. ActiveBase Ltd. All Rights reserved Find ‘best Hint’ in 5 Steps ActiveBase SQL Expert™ SQL improvement made easy TM Process Actions 1. Feed SQL request for improvement Add manually a SQL request or select it from Oracle SGA using ‘Hotspot’ panel. 2. Analyze possible Alternatives Let ActiveBase SQL Expert™ generate alternatives using ‘Hints’ that generate unique execution plans. Set analyzer level (depth of joins and object access options). 3. Set benchmark options Select the alternatives you want to benchmark and define alternative execution order. Set parameters for total execution time, automatic cancelling, session and parallel degree settings. 4. Run benchmark Let ActiveBase SQL Expert™ run each alternative against the database. Easily manage alternative executions in real-time through our colored panel. 5. Analyze results Detailed benchmark audit and execution summary table allows to quickly select the Hint that produces the best improvement.
    4. 4. Defining database connection <ul><li>Define database parameters for connecting to the database. ActiveBase SQL Expert TM opens a jdbc connection to analyze and run serially ( benchmark ) the different execution alternatives. </li></ul><ul><li>Note: to analyze different statements, DBA user name requires the following privileges: </li></ul>ActiveBase Ltd. All Rights reserved grant select any table to user_name grant select any dictionary to user_name grant alter session to user_name grant resumable to user_name grant become user to user_name ActiveBase SQL Expert™ SQL improvement made easy TM
    5. 5. ActiveBase Ltd. All Rights reserved Click Find Hotspots to copy and paste a ‘Select’ request from Oracle SGA. Then click on the Find Alternatives button. Step 1: Enter SQL request to improve ActiveBase SQL Expert™ SQL improvement made easy TM Copy and paste your long running ‘Select’ SQL request into the text area
    6. 6. ActiveBase Ltd. All Rights reserved Click on Options to set the benchmark execution parameters Click on ‘ ’ to view execution plan for a given Hint Add Alternative enables to manually add an alternative Analyzer level defines the number of hint combinations investigated on the SQL statement Alter Session enables to manually change benchmark session parameters Step 2: Analyze possible Alternatives ActiveBase SQL Expert™ SQL improvement made easy TM
    7. 7. Step 3: Define Benchmark Execution Parameters <ul><li>> Run original first </li></ul><ul><li>> Execute each alternative several times for benchmarking short requests (elapse<1 sec.) </li></ul><ul><li>> Limit total benchmark time (hours) </li></ul><ul><li>> Set parallel query degree for requests that run in parallel mode (e.g., disable parallel or wait for minimum number of PX servers before running each alternative) </li></ul><ul><li>> Set automatic execution canceling option for stopping alternatives that run more than X% the original time or best time. </li></ul>ActiveBase Ltd. All Rights reserved ActiveBase SQL Expert TM provides a set of parameters for efficient execution when finding the best Hint in the benchmark process. ActiveBase SQL Expert™ SQL improvement made easy TM
    8. 8. ActiveBase Ltd. All Rights reserved <ul><li>For a 40 min. report with 1,000 alternatives, an automatic cancelling 50% of ‘best’ is set. </li></ul><ul><ul><li>This means that the Execution of an Alternative will be stopped if it exceeds 50% of the time found for the current ‘best’ alternative . </li></ul></ul><ul><li>At first, the original 40 min. is the best, so automatically cancelling will stop alternatives running more than 20 min. </li></ul><ul><li>When an alternative runs less than 20 min, it will become the ‘best’, so cancellation will occur for other Alternatives running more than 10 min. and so on… </li></ul><ul><li>This allows to quickly benchmark all alternatives for the best ‘Hint’ </li></ul>ActiveBase SQL Expert™ SQL improvement made easy TM Example of Automatic Cancelling Option 50 Step 3: Define Benchmark Execution Parameters
    9. 9. ActiveBase Ltd. All Rights reserved <ul><li>Automatic cancelled alternatives are colored in red . </li></ul><ul><li>Completed executed alternatives are colored in green . </li></ul><ul><li>The best time alternative is colored in blue . </li></ul>Step 4: Run Benchmark ActiveBase SQL Expert™ SQL improvement made easy TM Click on Select all to mark alternatives for execution. Click on the Cost column for sorting execution order based on increasing Oracle cost value. Click Run to start the benchmark, which executes the checked alternatives in the order previously set. For requests with bind values click on Set bind to enter typical bind values. <ul><li>Original executed and appears first in the panel </li></ul>
    10. 10. ActiveBase Ltd. All Rights reserved It is useful for identifying the improved execution plan change (applied by the ‘Hint’) and to assess if it can improve other similar cases. If the improvement can be achieved in many other similar requests, evaluate ActiveBase Performance™ capability to add the ‘Hint’ automatically to all similar requests WITHOUT TOUCHING SOURCE CODE OR DATABASE!! <ul><li>Choose the ‘Hint’ to compare. </li></ul><ul><li>Click on Compare for comparing execution plans of different SQL ‘Hint’ alternatives. </li></ul>Step 5: Analysis ActiveBase SQL Expert™ SQL improvement made easy TM Compare Execution Plan of Alternatives
    11. 11. Find Best Hint in the Benchmark Results Audit Trail ActiveBase Ltd. All Rights reserved <ul><li>For the original and each alternative, </li></ul><ul><li>the audit includes: </li></ul><ul><li>SQL text including the Oracle ‘Hint’ </li></ul><ul><li>Full SQL execution statistics </li></ul><ul><li>Statement Execution plan </li></ul>   Open the [installation directory] ActiveBase Expertlog directory View the Expert audit file : expert-[date/time].out The file includes detailed session statistics of the benchmark, in the order of execution. ActiveBase SQL Expert™ SQL improvement made easy TM Step 5: Analysis
    12. 12. Get best ‘Hint’ ActiveBase Ltd. All Rights reserved For more detailed information, please refer to our user manual found in start->programs->ActiveBase Expert->user manual A pop-up window is presented. Copy the ‘Hint’ text and paste it to the beginning of your original SQL text. ActiveBase SQL Expert™ SQL improvement made easy TM To get the best ‘Hint’, go to the 'Best alternative' line colored in blue and double click on the 'Hint' column. Step 5: Analysis
    13. 13. <ul><li>ActiveBase SQL Expert TM is a powerful and easy-to-use tool for helping DBAs and SQL developers improve execution of SQL statements by finding the best ‘Hint’ based on the actual state of their Oracle database. </li></ul><ul><li>Supporting Oracle8 – 11g, optimization is based on each version’s optimization capabilities. </li></ul><ul><li>It saves time by automatically analyzing and benchmarking alternatives, using a complete set of execution parameters to quickly identify the best alternative - getting the most out of your existing indexes and database CBO. </li></ul><ul><li>Improvements are logged for off-line analysis </li></ul>ActiveBase Ltd. All Rights reserved ActiveBase SQL Expert™ SQL improvement made easy TM Summary
    14. 14. <ul><li>> Now that you know how to use ActiveBase SQL Expert™ for improving your long running SQL statements, what can you do next? </li></ul><ul><li>ActiveBase offers several products to help you be even more efficient and productive: </li></ul><ul><ul><li>ActiveBase Tuning Robot™ , a server version of ActiveBase SQL Expert™, for automatically identifying the SQL statements that need to be improved and finding their ‘Best Hint’. </li></ul></ul><ul><ul><li>ActiveBase Performance™ , an inline-proxy installed between applications and the Oracle database. It intercepts SQL requests on their way to the database in real-time, identifies the ones for which a ‘Best Hint’ has been found, automatically appends this Hint to the SQL and sends it to Oracle for optimized execution. </li></ul></ul>ActiveBase Ltd. All Rights reserved What next ? ActiveBase SQL Expert™ SQL improvement made easy TM
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×