Visual/debugging enhancements for Oracle SQL explain plans?Understanding the results of Execute Explain Plan in Oracle SQL DeveloperOracle query using 'like' on indexed number column, poor performanceOracle EXECUTE IMMEDIATE changes explain plan of queryINSERT into temporary table GTT very slow from PL/SQLOracle SQL developer - Indexes and Execution plansSQL Execution PlanAnalysis of Oracle Explain Plan - Oracle Doing Full Table Accessperformance issues using UNIONIndex not being used in the QueryDifferent Explain Plans in SQL Developer vs Explain Plan for command

Could the museum Saturn V's be refitted for one more flight?

What Exploit Are These User Agents Trying to Use?

Was the old ablative pronoun "med" or "mēd"?

Does Dispel Magic work on Tiny Hut?

Are British MPs missing the point, with these 'Indicative Votes'?

How can I deal with my CEO asking me to hire someone with a higher salary than me, a co-founder?

Where would I need my direct neural interface to be implanted?

Mathematica command that allows it to read my intentions

Does int main() need a declaration on C++?

GFCI outlets - can they be repaired? Are they really needed at the end of a circuit?

In Bayesian inference, why are some terms dropped from the posterior predictive?

Is it possible to map the firing of neurons in the human brain so as to stimulate artificial memories in someone else?

Is this draw by repetition?

files created then deleted at every second in tmp directory

Is this answer explanation correct?

How many wives did king shaul have

How exploitable/balanced is this homebrew spell: Spell Permanency?

Is it possible to create a QR code using text?

How to find if SQL server backup is encrypted with TDE without restoring the backup

Why were 5.25" floppy drives cheaper than 8"?

Placement of More Information/Help Icon button for Radio Buttons

Can compressed videos be decoded back to their uncompresed original format?

Venezuelan girlfriend wants to travel the USA to be with me. What is the process?

Is there a hemisphere-neutral way of specifying a season?



Visual/debugging enhancements for Oracle SQL explain plans?


Understanding the results of Execute Explain Plan in Oracle SQL DeveloperOracle query using 'like' on indexed number column, poor performanceOracle EXECUTE IMMEDIATE changes explain plan of queryINSERT into temporary table GTT very slow from PL/SQLOracle SQL developer - Indexes and Execution plansSQL Execution PlanAnalysis of Oracle Explain Plan - Oracle Doing Full Table Accessperformance issues using UNIONIndex not being used in the QueryDifferent Explain Plans in SQL Developer vs Explain Plan for command













0















I am using Eclipse (and its Data Tools Plugin) for DB/BI development and like to have some more visual/debugging aid in examining huge explain plans with e.g. up to 500 lines, e.g.:



----------------------------------------------------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
----------------------------------------------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 4077K| 21G| | 7224K (3)| 00:04:43 |
| 1 | SORT AGGREGATE | | 1 | 15 | | | |
|* 2 | TABLE ACCESS BY INDEX ROWID BATCHED | TAB1 | 1 | 15 | | 2 (0)| 00:00:01 |
|* 3 | INDEX RANGE SCAN | IDX_FK_1111111111 | 1 | | | 1 (0)| 00:00:01 |
| 4 | SORT AGGREGATE | | 1 | 15 | | | |
|* 5 | TABLE ACCESS BY INDEX ROWID BATCHED | TAB1 | 1 | 15 | | 2 (0)| 00:00:01 |
|* 6 | INDEX RANGE SCAN | IDX_FK_2222222222 | 1 | | | 1 (0)| 00:00:01 |
| 7 | WINDOW SORT | | 153 | 5967 | | 32 (7)| 00:00:01 |
|* 8 | HASH JOIN | | 153 | 5967 | | 31 (4)| 00:00:01 |
...


It would be nice to stay in Eclipse so I do not have to setup/change environments.



(I think SQL Developer and/or Toad had some graphic explain plan viewer with hierarchic collapse/expand functionality where there is also some Toad Eclipse Plugin available that I did not like because it was quite intrusive regarding project manipulation.)



But please feel free to add other answers for similar tools and maybe screenshots for users with similar needs but different environments.










share|improve this question






















  • I had problems with Oracle's OEPE Eclipse Plugin, but it had a nice context menu text and graphic explain plan feature: oracle.com/technetwork/developer-tools/eclipse/documentation/…

    – Andreas Dietrich
    Mar 21 at 20:45















0















I am using Eclipse (and its Data Tools Plugin) for DB/BI development and like to have some more visual/debugging aid in examining huge explain plans with e.g. up to 500 lines, e.g.:



----------------------------------------------------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
----------------------------------------------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 4077K| 21G| | 7224K (3)| 00:04:43 |
| 1 | SORT AGGREGATE | | 1 | 15 | | | |
|* 2 | TABLE ACCESS BY INDEX ROWID BATCHED | TAB1 | 1 | 15 | | 2 (0)| 00:00:01 |
|* 3 | INDEX RANGE SCAN | IDX_FK_1111111111 | 1 | | | 1 (0)| 00:00:01 |
| 4 | SORT AGGREGATE | | 1 | 15 | | | |
|* 5 | TABLE ACCESS BY INDEX ROWID BATCHED | TAB1 | 1 | 15 | | 2 (0)| 00:00:01 |
|* 6 | INDEX RANGE SCAN | IDX_FK_2222222222 | 1 | | | 1 (0)| 00:00:01 |
| 7 | WINDOW SORT | | 153 | 5967 | | 32 (7)| 00:00:01 |
|* 8 | HASH JOIN | | 153 | 5967 | | 31 (4)| 00:00:01 |
...


It would be nice to stay in Eclipse so I do not have to setup/change environments.



(I think SQL Developer and/or Toad had some graphic explain plan viewer with hierarchic collapse/expand functionality where there is also some Toad Eclipse Plugin available that I did not like because it was quite intrusive regarding project manipulation.)



But please feel free to add other answers for similar tools and maybe screenshots for users with similar needs but different environments.










share|improve this question






















  • I had problems with Oracle's OEPE Eclipse Plugin, but it had a nice context menu text and graphic explain plan feature: oracle.com/technetwork/developer-tools/eclipse/documentation/…

    – Andreas Dietrich
    Mar 21 at 20:45













0












0








0


1






I am using Eclipse (and its Data Tools Plugin) for DB/BI development and like to have some more visual/debugging aid in examining huge explain plans with e.g. up to 500 lines, e.g.:



----------------------------------------------------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
----------------------------------------------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 4077K| 21G| | 7224K (3)| 00:04:43 |
| 1 | SORT AGGREGATE | | 1 | 15 | | | |
|* 2 | TABLE ACCESS BY INDEX ROWID BATCHED | TAB1 | 1 | 15 | | 2 (0)| 00:00:01 |
|* 3 | INDEX RANGE SCAN | IDX_FK_1111111111 | 1 | | | 1 (0)| 00:00:01 |
| 4 | SORT AGGREGATE | | 1 | 15 | | | |
|* 5 | TABLE ACCESS BY INDEX ROWID BATCHED | TAB1 | 1 | 15 | | 2 (0)| 00:00:01 |
|* 6 | INDEX RANGE SCAN | IDX_FK_2222222222 | 1 | | | 1 (0)| 00:00:01 |
| 7 | WINDOW SORT | | 153 | 5967 | | 32 (7)| 00:00:01 |
|* 8 | HASH JOIN | | 153 | 5967 | | 31 (4)| 00:00:01 |
...


It would be nice to stay in Eclipse so I do not have to setup/change environments.



(I think SQL Developer and/or Toad had some graphic explain plan viewer with hierarchic collapse/expand functionality where there is also some Toad Eclipse Plugin available that I did not like because it was quite intrusive regarding project manipulation.)



But please feel free to add other answers for similar tools and maybe screenshots for users with similar needs but different environments.










share|improve this question














I am using Eclipse (and its Data Tools Plugin) for DB/BI development and like to have some more visual/debugging aid in examining huge explain plans with e.g. up to 500 lines, e.g.:



----------------------------------------------------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
----------------------------------------------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 4077K| 21G| | 7224K (3)| 00:04:43 |
| 1 | SORT AGGREGATE | | 1 | 15 | | | |
|* 2 | TABLE ACCESS BY INDEX ROWID BATCHED | TAB1 | 1 | 15 | | 2 (0)| 00:00:01 |
|* 3 | INDEX RANGE SCAN | IDX_FK_1111111111 | 1 | | | 1 (0)| 00:00:01 |
| 4 | SORT AGGREGATE | | 1 | 15 | | | |
|* 5 | TABLE ACCESS BY INDEX ROWID BATCHED | TAB1 | 1 | 15 | | 2 (0)| 00:00:01 |
|* 6 | INDEX RANGE SCAN | IDX_FK_2222222222 | 1 | | | 1 (0)| 00:00:01 |
| 7 | WINDOW SORT | | 153 | 5967 | | 32 (7)| 00:00:01 |
|* 8 | HASH JOIN | | 153 | 5967 | | 31 (4)| 00:00:01 |
...


It would be nice to stay in Eclipse so I do not have to setup/change environments.



(I think SQL Developer and/or Toad had some graphic explain plan viewer with hierarchic collapse/expand functionality where there is also some Toad Eclipse Plugin available that I did not like because it was quite intrusive regarding project manipulation.)



But please feel free to add other answers for similar tools and maybe screenshots for users with similar needs but different environments.







sql oracle eclipse-plugin sql-execution-plan oracledb






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 21 at 20:42









Andreas DietrichAndreas Dietrich

2,17422265




2,17422265












  • I had problems with Oracle's OEPE Eclipse Plugin, but it had a nice context menu text and graphic explain plan feature: oracle.com/technetwork/developer-tools/eclipse/documentation/…

    – Andreas Dietrich
    Mar 21 at 20:45

















  • I had problems with Oracle's OEPE Eclipse Plugin, but it had a nice context menu text and graphic explain plan feature: oracle.com/technetwork/developer-tools/eclipse/documentation/…

    – Andreas Dietrich
    Mar 21 at 20:45
















I had problems with Oracle's OEPE Eclipse Plugin, but it had a nice context menu text and graphic explain plan feature: oracle.com/technetwork/developer-tools/eclipse/documentation/…

– Andreas Dietrich
Mar 21 at 20:45





I had problems with Oracle's OEPE Eclipse Plugin, but it had a nice context menu text and graphic explain plan feature: oracle.com/technetwork/developer-tools/eclipse/documentation/…

– Andreas Dietrich
Mar 21 at 20:45












2 Answers
2






active

oldest

votes


















1














What you really want to use is SQL Monitor.



https://sqlmaria.com/2017/08/01/getting-the-most-out-of-oracle-sql-monitor/






share|improve this answer























  • thanks! looks good. although it looks as if one has to set it up (as web application server) or at least start it on the oracle host, which may not easily be possible?

    – Andreas Dietrich
    Mar 22 at 7:24







  • 1





    You do not need to set it up. It’s on by default. If you want to watch the queries live, then you need to use either EM or EMEcpress. But if you just want to view the final output, just generate the html file and open in a browser :)

    – BobC
    Mar 23 at 0:43


















0














With the following simple regex find/replace strings applied to the text explain plan one can get a nice result:

(e.g. enabling/pushing the Editbox Eclipse Plugin Button in an explain-plan-containing Editor (View) in Eclipse - any other editor with similar block display/highlight features will also do)



find: ^( |[^|]+d |)(s+)



replace: $2$1



will produce the following output (moving the operation indentions to the beginning of each line):



enter image description here



to get this kind of coloring one has to adjust Editbox (Eclipse -> Window -> Preferences-> Editbox -> Others) this way:




  • Highlight selected box:


    • color <Custom> <Red>, width <2>


  • Color levels: 14


  • Gradient tool: (e.g.) from color <white> to & <dark green> (and maybe push Generate)

enter image description here



(By the way: Hovering over such a block one can press ALT+Z which will text-select the whole block e.g. for easy copy/paste. (on appropriately indented SQLs also useful for partial code execution))






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55288928%2fvisual-debugging-enhancements-for-oracle-sql-explain-plans%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    What you really want to use is SQL Monitor.



    https://sqlmaria.com/2017/08/01/getting-the-most-out-of-oracle-sql-monitor/






    share|improve this answer























    • thanks! looks good. although it looks as if one has to set it up (as web application server) or at least start it on the oracle host, which may not easily be possible?

      – Andreas Dietrich
      Mar 22 at 7:24







    • 1





      You do not need to set it up. It’s on by default. If you want to watch the queries live, then you need to use either EM or EMEcpress. But if you just want to view the final output, just generate the html file and open in a browser :)

      – BobC
      Mar 23 at 0:43















    1














    What you really want to use is SQL Monitor.



    https://sqlmaria.com/2017/08/01/getting-the-most-out-of-oracle-sql-monitor/






    share|improve this answer























    • thanks! looks good. although it looks as if one has to set it up (as web application server) or at least start it on the oracle host, which may not easily be possible?

      – Andreas Dietrich
      Mar 22 at 7:24







    • 1





      You do not need to set it up. It’s on by default. If you want to watch the queries live, then you need to use either EM or EMEcpress. But if you just want to view the final output, just generate the html file and open in a browser :)

      – BobC
      Mar 23 at 0:43













    1












    1








    1







    What you really want to use is SQL Monitor.



    https://sqlmaria.com/2017/08/01/getting-the-most-out-of-oracle-sql-monitor/






    share|improve this answer













    What you really want to use is SQL Monitor.



    https://sqlmaria.com/2017/08/01/getting-the-most-out-of-oracle-sql-monitor/







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 22 at 3:20









    BobCBobC

    2,9621613




    2,9621613












    • thanks! looks good. although it looks as if one has to set it up (as web application server) or at least start it on the oracle host, which may not easily be possible?

      – Andreas Dietrich
      Mar 22 at 7:24







    • 1





      You do not need to set it up. It’s on by default. If you want to watch the queries live, then you need to use either EM or EMEcpress. But if you just want to view the final output, just generate the html file and open in a browser :)

      – BobC
      Mar 23 at 0:43

















    • thanks! looks good. although it looks as if one has to set it up (as web application server) or at least start it on the oracle host, which may not easily be possible?

      – Andreas Dietrich
      Mar 22 at 7:24







    • 1





      You do not need to set it up. It’s on by default. If you want to watch the queries live, then you need to use either EM or EMEcpress. But if you just want to view the final output, just generate the html file and open in a browser :)

      – BobC
      Mar 23 at 0:43
















    thanks! looks good. although it looks as if one has to set it up (as web application server) or at least start it on the oracle host, which may not easily be possible?

    – Andreas Dietrich
    Mar 22 at 7:24






    thanks! looks good. although it looks as if one has to set it up (as web application server) or at least start it on the oracle host, which may not easily be possible?

    – Andreas Dietrich
    Mar 22 at 7:24





    1




    1





    You do not need to set it up. It’s on by default. If you want to watch the queries live, then you need to use either EM or EMEcpress. But if you just want to view the final output, just generate the html file and open in a browser :)

    – BobC
    Mar 23 at 0:43





    You do not need to set it up. It’s on by default. If you want to watch the queries live, then you need to use either EM or EMEcpress. But if you just want to view the final output, just generate the html file and open in a browser :)

    – BobC
    Mar 23 at 0:43













    0














    With the following simple regex find/replace strings applied to the text explain plan one can get a nice result:

    (e.g. enabling/pushing the Editbox Eclipse Plugin Button in an explain-plan-containing Editor (View) in Eclipse - any other editor with similar block display/highlight features will also do)



    find: ^( |[^|]+d |)(s+)



    replace: $2$1



    will produce the following output (moving the operation indentions to the beginning of each line):



    enter image description here



    to get this kind of coloring one has to adjust Editbox (Eclipse -> Window -> Preferences-> Editbox -> Others) this way:




    • Highlight selected box:


      • color <Custom> <Red>, width <2>


    • Color levels: 14


    • Gradient tool: (e.g.) from color <white> to & <dark green> (and maybe push Generate)

    enter image description here



    (By the way: Hovering over such a block one can press ALT+Z which will text-select the whole block e.g. for easy copy/paste. (on appropriately indented SQLs also useful for partial code execution))






    share|improve this answer



























      0














      With the following simple regex find/replace strings applied to the text explain plan one can get a nice result:

      (e.g. enabling/pushing the Editbox Eclipse Plugin Button in an explain-plan-containing Editor (View) in Eclipse - any other editor with similar block display/highlight features will also do)



      find: ^( |[^|]+d |)(s+)



      replace: $2$1



      will produce the following output (moving the operation indentions to the beginning of each line):



      enter image description here



      to get this kind of coloring one has to adjust Editbox (Eclipse -> Window -> Preferences-> Editbox -> Others) this way:




      • Highlight selected box:


        • color <Custom> <Red>, width <2>


      • Color levels: 14


      • Gradient tool: (e.g.) from color <white> to & <dark green> (and maybe push Generate)

      enter image description here



      (By the way: Hovering over such a block one can press ALT+Z which will text-select the whole block e.g. for easy copy/paste. (on appropriately indented SQLs also useful for partial code execution))






      share|improve this answer

























        0












        0








        0







        With the following simple regex find/replace strings applied to the text explain plan one can get a nice result:

        (e.g. enabling/pushing the Editbox Eclipse Plugin Button in an explain-plan-containing Editor (View) in Eclipse - any other editor with similar block display/highlight features will also do)



        find: ^( |[^|]+d |)(s+)



        replace: $2$1



        will produce the following output (moving the operation indentions to the beginning of each line):



        enter image description here



        to get this kind of coloring one has to adjust Editbox (Eclipse -> Window -> Preferences-> Editbox -> Others) this way:




        • Highlight selected box:


          • color <Custom> <Red>, width <2>


        • Color levels: 14


        • Gradient tool: (e.g.) from color <white> to & <dark green> (and maybe push Generate)

        enter image description here



        (By the way: Hovering over such a block one can press ALT+Z which will text-select the whole block e.g. for easy copy/paste. (on appropriately indented SQLs also useful for partial code execution))






        share|improve this answer













        With the following simple regex find/replace strings applied to the text explain plan one can get a nice result:

        (e.g. enabling/pushing the Editbox Eclipse Plugin Button in an explain-plan-containing Editor (View) in Eclipse - any other editor with similar block display/highlight features will also do)



        find: ^( |[^|]+d |)(s+)



        replace: $2$1



        will produce the following output (moving the operation indentions to the beginning of each line):



        enter image description here



        to get this kind of coloring one has to adjust Editbox (Eclipse -> Window -> Preferences-> Editbox -> Others) this way:




        • Highlight selected box:


          • color <Custom> <Red>, width <2>


        • Color levels: 14


        • Gradient tool: (e.g.) from color <white> to & <dark green> (and maybe push Generate)

        enter image description here



        (By the way: Hovering over such a block one can press ALT+Z which will text-select the whole block e.g. for easy copy/paste. (on appropriately indented SQLs also useful for partial code execution))







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 21 at 20:42









        Andreas DietrichAndreas Dietrich

        2,17422265




        2,17422265



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55288928%2fvisual-debugging-enhancements-for-oracle-sql-explain-plans%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript