{"id":711,"date":"2015-11-24T05:23:20","date_gmt":"2015-11-24T05:23:20","guid":{"rendered":"http:\/\/haisins.epac.to\/wordpress\/?p=711"},"modified":"2015-11-24T05:23:20","modified_gmt":"2015-11-24T05:23:20","slug":"se-%eb%b2%84%ec%a0%84%ec%97%90%ec%84%9c-%ed%85%8c%ec%9d%b4%eb%b8%94-io-%ed%99%95%ec%9d%b8%ed%95%98%eb%8a%94-%ec%bf%bc%eb%a6%ac","status":"publish","type":"post","link":"http:\/\/haisins.synology.me\/wordpress\/?p=711","title":{"rendered":"SE \ubc84\uc804\uc5d0\uc11c \ud14c\uc774\ube14  I\/O \ud655\uc778\ud558\ub294 \ucffc\ub9ac"},"content":{"rendered":"<p align=\"left\" style=\"word-break: keep-all;\"><span>SE<\/span>\ubc84\uc804\uc5d0\uc11c<span><br \/>\nv$segment_statistics view<\/span>\ub85c \uc870\ud68c\ud558\ub294 \ucffc\ub9ac\uc785\ub2c8\ub2e4<span>.<\/span><\/p>\n<\/p>\n<p align=\"left\" style=\"word-break: keep-all;\"><span>\uc774 \ucffc\ub9ac\ub294 dba_tab_modifications <\/span>\ud14c\uc774\ube14\uc5d0\uc11c<span> DML<\/span>\uc5d0 \uc758\ud574 \ubcc0\uacbd\ub41c<br \/>\n\uac74\uc218\uc640<span>&nbsp;<br \/>\ndba_tables<\/span>\uc758<span> num_rows<\/span>\ub97c \ube44\uad50\ud574<span> 10% <\/span>\uc774\uc0c1<br \/>\n\ubcc0\uacbd\ub41c \ud14c\uc774\ube14 \uc870\ud68c \ucffc\ub9ac\ub85c \ud655\uc815\uce58\ub77c\uace0 \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4<span>.<\/span><\/p>\n<p align=\"left\" style=\"word-break: keep-all;\"><\/p>\n<div class=\"txc-textbox\" style=\"border: 3px double rgb(193, 193, 193); padding: 10px; background-color: rgb(238, 238, 238);\">\n<p align=\"left\" style=\"word-break: keep-all;\"><span><span style=\"font-family: Dotum, \ub3cb\uc6c0;\">select table_owner,<br \/>\nm.table_name, num_rows,<\/span><\/span><\/p>\n<p><span style=\"font-family: Dotum, \ub3cb\uc6c0;\"><\/p>\n<p><\/span><\/p>\n<p align=\"left\" style=\"word-break: keep-all;\"><span><span style=\"font-family: Dotum, \ub3cb\uc6c0;\">round(num_rows\/10,0)<br \/>\n&#8220;NUM_ROWS\/10&#8221;,<\/span><\/span><\/p>\n<p><span style=\"font-family: Dotum, \ub3cb\uc6c0;\"><\/p>\n<p><\/span><\/p>\n<p align=\"left\" style=\"word-break: keep-all;\"><span><span style=\"font-family: Dotum, \ub3cb\uc6c0;\">inserts+updates+deletes<br \/>\n&#8220;to_changed&#8221;,<\/span><\/span><\/p>\n<p><span style=\"font-family: Dotum, \ub3cb\uc6c0;\"><\/p>\n<p><\/span><\/p>\n<p align=\"left\" style=\"word-break: keep-all;\"><span><span style=\"font-family: Dotum, \ub3cb\uc6c0;\">INSERTS,UPDATES,DELETES,TIMESTAMP,LAST_ANALYZED,<\/span><\/span><\/p>\n<p><span style=\"font-family: Dotum, \ub3cb\uc6c0;\"><\/p>\n<p><\/span><\/p>\n<p align=\"left\" style=\"word-break: keep-all;\"><span><span style=\"font-family: Dotum, \ub3cb\uc6c0;\">round(LAST_ANALYZED-TIMESTAMP,0)<br \/>\nGAP<\/span><\/span><\/p>\n<p><span style=\"font-family: Dotum, \ub3cb\uc6c0;\"><\/p>\n<p><\/span><\/p>\n<p align=\"left\" style=\"word-break: keep-all;\"><span><span style=\"font-family: Dotum, \ub3cb\uc6c0;\">from<br \/>\ndba_tab_modifications m, dba_tables t<\/span><\/span><\/p>\n<p><span style=\"font-family: Dotum, \ub3cb\uc6c0;\"><\/p>\n<p><\/span><\/p>\n<p align=\"left\" style=\"word-break: keep-all;\"><span><span style=\"font-family: Dotum, \ub3cb\uc6c0;\">where table_owner not<br \/>\nin (&#8216;SYS&#8217;)<\/span><\/span><\/p>\n<p><span style=\"font-family: Dotum, \ub3cb\uc6c0;\"><\/p>\n<p><\/span><\/p>\n<p align=\"left\" style=\"word-break: keep-all;\"><span><span style=\"font-family: Dotum, \ub3cb\uc6c0;\">and<br \/>\nt.table_name=m.table_name<\/span><\/span><\/p>\n<p><span style=\"font-family: Dotum, \ub3cb\uc6c0;\"><\/p>\n<p><\/span><\/p>\n<p align=\"left\" style=\"word-break: keep-all;\"><span><span style=\"font-family: Dotum, \ub3cb\uc6c0;\">and<br \/>\nt.owner=m.table_owner<\/span><\/span><\/p>\n<p><span style=\"font-family: Dotum, \ub3cb\uc6c0;\"><\/p>\n<p><\/span><\/p>\n<p align=\"left\" style=\"word-break: keep-all;\"><span><span style=\"font-family: Dotum, \ub3cb\uc6c0;\">and<br \/>\nround(num_rows\/10,0)-(inserts+updates+deletes)&lt;0<\/span><\/span><\/p>\n<p><span style=\"font-family: Dotum, \ub3cb\uc6c0;\"><\/p>\n<p><\/span><\/p>\n<p align=\"left\" style=\"word-break: keep-all;\"><span style=\"font-family: Dotum, \ub3cb\uc6c0; font-size: 10pt;\">order by LAST_ANALYZED-TIMESTAMP;<\/span><\/p>\n<\/div>\n<p><span style=\"font-size:10.0pt;font-family:\n&quot;\ub9d1\uc740 \uace0\ub515&quot;;mso-bidi-font-family:\uad74\ub9bc;mso-ansi-language:EN-US;mso-fareast-language:\nKO;mso-bidi-language:AR-SA\"><br \/><\/span><\/p>\n<p><span style=\"font-size: 10pt; font-family: Dotum, \ub3cb\uc6c0;\">V$<\/span><span style=\"font-size:10.0pt;font-family:\n&quot;\ub9d1\uc740 \uace0\ub515&quot;;mso-bidi-font-family:\uad74\ub9bc;mso-ansi-language:EN-US;mso-fareast-language:\nKO;mso-bidi-language:AR-SA\"><span style=\"font-family: Dotum, \ub3cb\uc6c0;\">\ubdf0\ub294 \uc778\uc2a4\ud134\uc2a4 \uae30\ub3d9\ud6c4 \ubd80\ud130 \ub370\uc774\ud130\uac00 \ucd95\uc801\ub418\ub294 \uac12\uc774\uae30 \ub54c\ubb38\uc5d0<\/span><span style=\"font-family: Dotum, \ub3cb\uc6c0;\">, <\/span><span style=\"font-family: Dotum, \ub3cb\uc6c0;\">\uc815\ud655\ud55c<br \/>\n\uac12\uc774\ub77c\uae30 \ubcf4\ub2e4\ub294 \ub300\ub7b5\uc801\uc778 \ucc38\uc870\uc6a9 \uc785\ub2c8\ub2e4.<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SE\ubc84\uc804\uc5d0\uc11c v$segment_statistics view\ub85c \uc870\ud68c\ud558\ub294 \ucffc\ub9ac\uc785\ub2c8\ub2e4. \uc774 \ucffc\ub9ac\ub294 dba_tab_modifications \ud14c\uc774\ube14\uc5d0\uc11c DML\uc5d0 \uc758\ud574 \ubcc0\uacbd\ub41c \uac74\uc218\uc640&nbsp; dba_tables\uc758 num_rows\ub97c \ube44\uad50\ud574 10% \uc774\uc0c1 \ubcc0\uacbd\ub41c \ud14c\uc774\ube14 \uc870\ud68c \ucffc\ub9ac\ub85c \ud655\uc815\uce58\ub77c\uace0 \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4. select table_owner, m.table_name, num_rows, round(num_rows\/10,0) &#8220;NUM_ROWS\/10&#8221;, inserts+updates+deletes &#8220;to_changed&#8221;, INSERTS,UPDATES,DELETES,TIMESTAMP,LAST_ANALYZED, round(LAST_ANALYZED-TIMESTAMP,0) GAP from dba_tab_modifications m, dba_tables t where table_owner not in (&#8216;SYS&#8217;) and t.table_name=m.table_name and t.owner=m.table_owner and round(num_rows\/10,0)-(inserts+updates+deletes)&lt;0 order by [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"spay_email":""},"categories":[11],"tags":[396,397],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/711"}],"collection":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=711"}],"version-history":[{"count":0,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/711\/revisions"}],"wp:attachment":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=711"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}