{"id":461,"date":"2024-08-03T08:24:47","date_gmt":"2024-08-03T08:24:47","guid":{"rendered":"https:\/\/humtechno.com\/intro\/?p=461"},"modified":"2024-08-03T08:25:59","modified_gmt":"2024-08-03T08:25:59","slug":"oracle-check-archiving-generating","status":"publish","type":"post","link":"https:\/\/humtechno.com\/intro\/2024\/08\/03\/oracle-check-archiving-generating\/","title":{"rendered":"Oracle Check Archiving Generating"},"content":{"rendered":"\n\n\n\n<p><strong>Check how much Archive Files Generate During Specific Period of Time<\/strong><\/p>\n\n<p>SELECT TRUNC (first_time) &#8220;Date&#8221;, inst_id, TO_CHAR (first_time, &#8216;Dy&#8217;) &#8220;Day&#8221;,<br>COUNT (1) &#8220;Total&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;00&#8217;, 1, 0)) &#8220;h0&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;01&#8217;, 1, 0)) &#8220;h1&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;02&#8217;, 1, 0)) &#8220;h2&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;03&#8217;, 1, 0)) &#8220;h3&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;04&#8217;, 1, 0)) &#8220;h4&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;05&#8217;, 1, 0)) &#8220;h5&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;06&#8217;, 1, 0)) &#8220;h6&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;07&#8217;, 1, 0)) &#8220;h7&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;08&#8217;, 1, 0)) &#8220;h8&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;09&#8217;, 1, 0)) &#8220;h9&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;10&#8217;, 1, 0)) &#8220;h10&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;11&#8217;, 1, 0)) &#8220;h11&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;12&#8217;, 1, 0)) &#8220;h12&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;13&#8217;, 1, 0)) &#8220;h13&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;14&#8217;, 1, 0)) &#8220;h14&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;15&#8217;, 1, 0)) &#8220;h15&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;16&#8217;, 1, 0)) &#8220;h16&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;17&#8217;, 1, 0)) &#8220;h17&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;18&#8217;, 1, 0)) &#8220;h18&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;19&#8217;, 1, 0)) &#8220;h19&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;20&#8217;, 1, 0)) &#8220;h20&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;21&#8217;, 1, 0)) &#8220;h21&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;22&#8217;, 1, 0)) &#8220;h22&#8221;,<br>SUM (DECODE (TO_CHAR (first_time, &#8216;hh24&#8242;), &#8217;23&#8217;, 1, 0)) &#8220;h23&#8221;,<br>ROUND (COUNT (1) \/ 24, 2) &#8220;Avg&#8221;<br>FROM gv$log_history<br>WHERE thread# = inst_id<br>AND first_time &gt; sysdate -7<br>GROUP BY TRUNC (first_time), inst_id, TO_CHAR (first_time, &#8216;Dy&#8217;)<br>ORDER BY 1,2;<\/p>\n\n<p><br><\/p>\n\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":333,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[3],"tags":[56,55],"class_list":["post-461","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oracle","tag-archiving-generation-trend","tag-oracle-archiving-generating"],"_links":{"self":[{"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/posts\/461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/comments?post=461"}],"version-history":[{"count":2,"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/posts\/461\/revisions"}],"predecessor-version":[{"id":463,"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/posts\/461\/revisions\/463"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/media\/333"}],"wp:attachment":[{"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/media?parent=461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/categories?post=461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/tags?post=461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}