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

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현