What is the difference between DELTA & TOTAL columns in dba_hist_sqlstat Oracle?












0















I am using the following query to measure the performance improvement between two views



SELECT PARSING_SCHEMA_NAME,
SQL_TEXT,
OPTIMIZER_COST,
FETCHES_TOTAL,
FETCHES_DELTA,
EXECUTIONS_TOTAL,
EXECUTIONS_DELTA,
PARSE_CALLS_TOTAL,
PARSE_CALLS_DELTA,
DISK_READS_TOTAL,
DISK_READS_DELTA,
BUFFER_GETS_TOTAL,
BUFFER_GETS_DELTA,
ROWS_PROCESSED_TOTAL,
ROWS_PROCESSED_DELTA,
CPU_TIME_TOTAL,
CPU_TIME_DELTA,
ELAPSED_TIME_TOTAL,
ELAPSED_TIME_DELTA,
elapsed_time_delta / 1000 / 1000 AS elapsed_sec,
stat.snap_id,
TO_CHAR(SNAP.END_INTERVAL_TIME, 'dd.mm hh24:mi:ss') AS SNAPTIME,
txt.sql_id
FROM dba_hist_sqlstat stat,
dba_hist_sqltext txt,
dba_hist_snapshot snap
WHERE stat.sql_id = txt.sql_id
AND STAT.SNAP_ID = SNAP.SNAP_ID
AND SNAP.BEGIN_INTERVAL_TIME >= SYSDATE - 10
AND (
LOWER(SQL_TEXT) LIKE '%view1_name%'
OR LOWER(SQL_TEXT) LIKE '%view2_name%'
)
AND PARSING_SCHEMA_NAME NOT IN ('SYS', 'SYSMAN')
ORDER BY elapsed_time_delta ASC;


What is the difference between DELTA & TOTAL columns in the above query? Which set of columns are to be considered when measuring the performance change between the views?










share|improve this question





























    0















    I am using the following query to measure the performance improvement between two views



    SELECT PARSING_SCHEMA_NAME,
    SQL_TEXT,
    OPTIMIZER_COST,
    FETCHES_TOTAL,
    FETCHES_DELTA,
    EXECUTIONS_TOTAL,
    EXECUTIONS_DELTA,
    PARSE_CALLS_TOTAL,
    PARSE_CALLS_DELTA,
    DISK_READS_TOTAL,
    DISK_READS_DELTA,
    BUFFER_GETS_TOTAL,
    BUFFER_GETS_DELTA,
    ROWS_PROCESSED_TOTAL,
    ROWS_PROCESSED_DELTA,
    CPU_TIME_TOTAL,
    CPU_TIME_DELTA,
    ELAPSED_TIME_TOTAL,
    ELAPSED_TIME_DELTA,
    elapsed_time_delta / 1000 / 1000 AS elapsed_sec,
    stat.snap_id,
    TO_CHAR(SNAP.END_INTERVAL_TIME, 'dd.mm hh24:mi:ss') AS SNAPTIME,
    txt.sql_id
    FROM dba_hist_sqlstat stat,
    dba_hist_sqltext txt,
    dba_hist_snapshot snap
    WHERE stat.sql_id = txt.sql_id
    AND STAT.SNAP_ID = SNAP.SNAP_ID
    AND SNAP.BEGIN_INTERVAL_TIME >= SYSDATE - 10
    AND (
    LOWER(SQL_TEXT) LIKE '%view1_name%'
    OR LOWER(SQL_TEXT) LIKE '%view2_name%'
    )
    AND PARSING_SCHEMA_NAME NOT IN ('SYS', 'SYSMAN')
    ORDER BY elapsed_time_delta ASC;


    What is the difference between DELTA & TOTAL columns in the above query? Which set of columns are to be considered when measuring the performance change between the views?










    share|improve this question



























      0












      0








      0








      I am using the following query to measure the performance improvement between two views



      SELECT PARSING_SCHEMA_NAME,
      SQL_TEXT,
      OPTIMIZER_COST,
      FETCHES_TOTAL,
      FETCHES_DELTA,
      EXECUTIONS_TOTAL,
      EXECUTIONS_DELTA,
      PARSE_CALLS_TOTAL,
      PARSE_CALLS_DELTA,
      DISK_READS_TOTAL,
      DISK_READS_DELTA,
      BUFFER_GETS_TOTAL,
      BUFFER_GETS_DELTA,
      ROWS_PROCESSED_TOTAL,
      ROWS_PROCESSED_DELTA,
      CPU_TIME_TOTAL,
      CPU_TIME_DELTA,
      ELAPSED_TIME_TOTAL,
      ELAPSED_TIME_DELTA,
      elapsed_time_delta / 1000 / 1000 AS elapsed_sec,
      stat.snap_id,
      TO_CHAR(SNAP.END_INTERVAL_TIME, 'dd.mm hh24:mi:ss') AS SNAPTIME,
      txt.sql_id
      FROM dba_hist_sqlstat stat,
      dba_hist_sqltext txt,
      dba_hist_snapshot snap
      WHERE stat.sql_id = txt.sql_id
      AND STAT.SNAP_ID = SNAP.SNAP_ID
      AND SNAP.BEGIN_INTERVAL_TIME >= SYSDATE - 10
      AND (
      LOWER(SQL_TEXT) LIKE '%view1_name%'
      OR LOWER(SQL_TEXT) LIKE '%view2_name%'
      )
      AND PARSING_SCHEMA_NAME NOT IN ('SYS', 'SYSMAN')
      ORDER BY elapsed_time_delta ASC;


      What is the difference between DELTA & TOTAL columns in the above query? Which set of columns are to be considered when measuring the performance change between the views?










      share|improve this question
















      I am using the following query to measure the performance improvement between two views



      SELECT PARSING_SCHEMA_NAME,
      SQL_TEXT,
      OPTIMIZER_COST,
      FETCHES_TOTAL,
      FETCHES_DELTA,
      EXECUTIONS_TOTAL,
      EXECUTIONS_DELTA,
      PARSE_CALLS_TOTAL,
      PARSE_CALLS_DELTA,
      DISK_READS_TOTAL,
      DISK_READS_DELTA,
      BUFFER_GETS_TOTAL,
      BUFFER_GETS_DELTA,
      ROWS_PROCESSED_TOTAL,
      ROWS_PROCESSED_DELTA,
      CPU_TIME_TOTAL,
      CPU_TIME_DELTA,
      ELAPSED_TIME_TOTAL,
      ELAPSED_TIME_DELTA,
      elapsed_time_delta / 1000 / 1000 AS elapsed_sec,
      stat.snap_id,
      TO_CHAR(SNAP.END_INTERVAL_TIME, 'dd.mm hh24:mi:ss') AS SNAPTIME,
      txt.sql_id
      FROM dba_hist_sqlstat stat,
      dba_hist_sqltext txt,
      dba_hist_snapshot snap
      WHERE stat.sql_id = txt.sql_id
      AND STAT.SNAP_ID = SNAP.SNAP_ID
      AND SNAP.BEGIN_INTERVAL_TIME >= SYSDATE - 10
      AND (
      LOWER(SQL_TEXT) LIKE '%view1_name%'
      OR LOWER(SQL_TEXT) LIKE '%view2_name%'
      )
      AND PARSING_SCHEMA_NAME NOT IN ('SYS', 'SYSMAN')
      ORDER BY elapsed_time_delta ASC;


      What is the difference between DELTA & TOTAL columns in the above query? Which set of columns are to be considered when measuring the performance change between the views?







      database-administration oracle-11g






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 17 '18 at 23:27









      Burgi

      4,441102945




      4,441102945










      asked Mar 9 '17 at 9:43









      MohanMohan

      101




      101






















          1 Answer
          1






          active

          oldest

          votes


















          0














          CPU Time Total means that your statement used CPU for that amount of seconds. It's the cumulative value of CPU time parsing/executing/fetching.



          CPU Time Delta is measuring usage between polling cycles.



          The logic of this is the following: it helps you separate those sessions which are currently using a lot of CPU time (sort them by CPU Delta) versus those which have, over their lifetime, used a lot of CPU time (sort them by CPU Total).






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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%2fsuperuser.com%2fquestions%2f1186849%2fwhat-is-the-difference-between-delta-total-columns-in-dba-hist-sqlstat-oracle%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            CPU Time Total means that your statement used CPU for that amount of seconds. It's the cumulative value of CPU time parsing/executing/fetching.



            CPU Time Delta is measuring usage between polling cycles.



            The logic of this is the following: it helps you separate those sessions which are currently using a lot of CPU time (sort them by CPU Delta) versus those which have, over their lifetime, used a lot of CPU time (sort them by CPU Total).






            share|improve this answer




























              0














              CPU Time Total means that your statement used CPU for that amount of seconds. It's the cumulative value of CPU time parsing/executing/fetching.



              CPU Time Delta is measuring usage between polling cycles.



              The logic of this is the following: it helps you separate those sessions which are currently using a lot of CPU time (sort them by CPU Delta) versus those which have, over their lifetime, used a lot of CPU time (sort them by CPU Total).






              share|improve this answer


























                0












                0








                0







                CPU Time Total means that your statement used CPU for that amount of seconds. It's the cumulative value of CPU time parsing/executing/fetching.



                CPU Time Delta is measuring usage between polling cycles.



                The logic of this is the following: it helps you separate those sessions which are currently using a lot of CPU time (sort them by CPU Delta) versus those which have, over their lifetime, used a lot of CPU time (sort them by CPU Total).






                share|improve this answer













                CPU Time Total means that your statement used CPU for that amount of seconds. It's the cumulative value of CPU time parsing/executing/fetching.



                CPU Time Delta is measuring usage between polling cycles.



                The logic of this is the following: it helps you separate those sessions which are currently using a lot of CPU time (sort them by CPU Delta) versus those which have, over their lifetime, used a lot of CPU time (sort them by CPU Total).







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 9 '17 at 10:08









                OvermindOvermind

                7,98831631




                7,98831631






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f1186849%2fwhat-is-the-difference-between-delta-total-columns-in-dba-hist-sqlstat-oracle%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

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                     ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕