{"id":94258,"date":"2024-10-19T18:48:17","date_gmt":"2024-10-19T10:48:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/94258\/"},"modified":"2024-10-19T18:48:18","modified_gmt":"2024-10-19T10:48:18","slug":"oracle-smon%e9%80%b2%e7%a8%8b%e7%9a%84%e6%93%8d%e4%bd%9c%e6%b5%81%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/94258\/","title":{"rendered":"Oracle SMON\u9032\u7a0b\u7684\u64cd\u4f5c\u6d41\u7a0b"},"content":{"rendered":"<h1 id=\"oracle-smon%e9%80%b2%e7%a8%8b%e7%9a%84%e6%93%8d%e4%bd%9c%e6%b5%81%e7%a8%8b-CNvXaFLQLt\">Oracle SMON\u9032\u7a0b\u7684\u64cd\u4f5c\u6d41\u7a0b<\/h1>\n<p>\u5728Oracle\u6578\u64da\u5eab\u4e2d\uff0cSMON\uff08System Monitor\uff09\u9032\u7a0b\u662f\u4e00\u500b\u95dc\u9375\u7684\u80cc\u666f\u9032\u7a0b\uff0c\u8ca0\u8cac\u7dad\u8b77\u6578\u64da\u5eab\u7684\u6574\u9ad4\u5065\u5eb7\u548c\u4e00\u81f4\u6027\u3002\u4e86\u89e3SMON\u7684\u64cd\u4f5c\u6d41\u7a0b\u5c0d\u65bc\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u4f86\u8aaa\u81f3\u95dc\u91cd\u8981\uff0c\u56e0\u70ba\u5b83\u76f4\u63a5\u5f71\u97ff\u5230\u6578\u64da\u5eab\u7684\u6027\u80fd\u548c\u7a69\u5b9a\u6027\u3002<\/p>\n<h2 id=\"smon%e7%9a%84%e4%b8%bb%e8%a6%81%e5%8a%9f%e8%83%bd-CNvXaFLQLt\">SMON\u7684\u4e3b\u8981\u529f\u80fd<\/h2>\n<p>SMON\u7684\u4e3b\u8981\u529f\u80fd\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>\u6062\u5fa9\u64cd\u4f5c\uff1a<\/strong>\u5728\u6578\u64da\u5eab\u610f\u5916\u5d29\u6f70\u5f8c\uff0cSMON\u8ca0\u8cac\u6062\u5fa9\u672a\u63d0\u4ea4\u7684\u4e8b\u52d9\uff0c\u78ba\u4fdd\u6578\u64da\u7684\u4e00\u81f4\u6027\u3002<\/li>\n<li><strong>\u6e05\u7406\u81e8\u6642\u6bb5\uff1a<\/strong>SMON\u6703\u5b9a\u671f\u6e05\u7406\u4e0d\u518d\u4f7f\u7528\u7684\u81e8\u6642\u6bb5\uff0c\u91cb\u653e\u7a7a\u9593\u4ee5\u4f9b\u5176\u4ed6\u4e8b\u52d9\u4f7f\u7528\u3002<\/li>\n<li><strong>\u5408\u4f75\u6578\u64da\u584a\uff1a<\/strong>\u5728\u6578\u64da\u5eab\u904b\u884c\u904e\u7a0b\u4e2d\uff0cSMON\u6703\u5408\u4f75\u6578\u64da\u584a\uff0c\u6e1b\u5c11\u788e\u7247\uff0c\u63d0\u9ad8\u5b58\u53d6\u6548\u7387\u3002<\/li>\n<li><strong>\u76e3\u63a7\u6578\u64da\u5eab\u72c0\u614b\uff1a<\/strong>SMON\u6301\u7e8c\u76e3\u63a7\u6578\u64da\u5eab\u7684\u72c0\u614b\uff0c\u78ba\u4fdd\u6240\u6709\u9032\u7a0b\u6b63\u5e38\u904b\u884c\u3002<\/li>\n<\/ul>\n<h2 id=\"smon%e7%9a%84%e6%93%8d%e4%bd%9c%e6%b5%81%e7%a8%8b-CNvXaFLQLt\">SMON\u7684\u64cd\u4f5c\u6d41\u7a0b<\/h2>\n<p>SMON\u7684\u64cd\u4f5c\u6d41\u7a0b\u53ef\u4ee5\u5206\u70ba\u4ee5\u4e0b\u5e7e\u500b\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e5%95%9f%e5%8b%95%e9%9a%8e%e6%ae%b5-CNvXaFLQLt\">1. \u555f\u52d5\u968e\u6bb5<\/h3>\n<p>\u7576Oracle\u6578\u64da\u5eab\u555f\u52d5\u6642\uff0cSMON\u9032\u7a0b\u6703\u81ea\u52d5\u555f\u52d5\u3002\u5b83\u6703\u6aa2\u67e5\u6578\u64da\u5eab\u7684\u72c0\u614b\uff0c\u4e26\u78ba\u4fdd\u6240\u6709\u5fc5\u8981\u7684\u8cc7\u6e90\u90fd\u5df2\u7d93\u6e96\u5099\u597d\u3002<\/p>\n<h3 id=\"2-%e6%81%a2%e5%be%a9%e6%9c%aa%e6%8f%90%e4%ba%a4%e7%9a%84%e4%ba%8b%e5%8b%99-CNvXaFLQLt\">2. \u6062\u5fa9\u672a\u63d0\u4ea4\u7684\u4e8b\u52d9<\/h3>\n<p>\u5728\u6578\u64da\u5eab\u5d29\u6f70\u5f8c\uff0cSMON\u6703\u6aa2\u67e5\u6240\u6709\u7684\u4e8b\u52d9\uff0c\u4e26\u6062\u5fa9\u90a3\u4e9b\u672a\u63d0\u4ea4\u7684\u4e8b\u52d9\u3002\u9019\u4e00\u904e\u7a0b\u662f\u901a\u904e\u6aa2\u67e5\u91cd\u505a\u65e5\u8a8c\u4f86\u5b8c\u6210\u7684\uff0c\u78ba\u4fdd\u6578\u64da\u7684\u4e00\u81f4\u6027\u3002<\/p>\n<pre><code>-- \u6062\u5fa9\u672a\u63d0\u4ea4\u4e8b\u52d9\u7684\u793a\u4f8b\nSELECT * FROM v$transaction WHERE status = 'ACTIVE';\n<\/code><\/pre>\n<h3 id=\"3-%e6%b8%85%e7%90%86%e8%87%a8%e6%99%82%e6%ae%b5-CNvXaFLQLt\">3. \u6e05\u7406\u81e8\u6642\u6bb5<\/h3>\n<p>SMON\u6703\u5b9a\u671f\u6aa2\u67e5\u81e8\u6642\u6bb5\u7684\u4f7f\u7528\u60c5\u6cc1\uff0c\u4e26\u6e05\u7406\u90a3\u4e9b\u4e0d\u518d\u4f7f\u7528\u7684\u6bb5\u3002\u9019\u6a23\u53ef\u4ee5\u91cb\u653e\u7a7a\u9593\uff0c\u4f9b\u65b0\u7684\u4e8b\u52d9\u4f7f\u7528\u3002<\/p>\n<pre><code>-- \u6e05\u7406\u81e8\u6642\u6bb5\u7684\u793a\u4f8b\nALTER TABLESPACE temp DROP UNUSED SPACE;\n<\/code><\/pre>\n<h3 id=\"4-%e5%90%88%e4%bd%b5%e6%95%b8%e6%93%9a%e5%a1%8a-CNvXaFLQLt\">4. \u5408\u4f75\u6578\u64da\u584a<\/h3>\n<p>\u5728\u6578\u64da\u5eab\u904b\u884c\u904e\u7a0b\u4e2d\uff0cSMON\u6703\u5b9a\u671f\u5408\u4f75\u6578\u64da\u584a\uff0c\u4ee5\u6e1b\u5c11\u788e\u7247\u3002\u9019\u4e00\u904e\u7a0b\u6709\u52a9\u65bc\u63d0\u9ad8\u6578\u64da\u7684\u5b58\u53d6\u6548\u7387\u3002<\/p>\n<h3 id=\"5-%e7%9b%a3%e6%8e%a7%e6%95%b8%e6%93%9a%e5%ba%ab%e7%8b%80%e6%85%8b-CNvXaFLQLt\">5. \u76e3\u63a7\u6578\u64da\u5eab\u72c0\u614b<\/h3>\n<p>SMON\u6301\u7e8c\u76e3\u63a7\u6578\u64da\u5eab\u7684\u72c0\u614b\uff0c\u78ba\u4fdd\u6240\u6709\u9032\u7a0b\u6b63\u5e38\u904b\u884c\u3002\u5982\u679c\u767c\u73fe\u7570\u5e38\uff0cSMON\u6703\u81ea\u52d5\u555f\u52d5\u76f8\u61c9\u7684\u6062\u5fa9\u7a0b\u5e8f\u3002<\/p>\n<h2 id=\"smon%e7%9a%84%e6%80%a7%e8%83%bd%e5%bd%b1%e9%9f%bf-CNvXaFLQLt\">SMON\u7684\u6027\u80fd\u5f71\u97ff<\/h2>\n<p>SMON\u7684\u904b\u884c\u5c0d\u6578\u64da\u5eab\u7684\u6027\u80fd\u6709\u8457\u76f4\u63a5\u7684\u5f71\u97ff\u3002\u7576SMON\u904b\u884c\u6548\u7387\u9ad8\u6642\uff0c\u6578\u64da\u5eab\u7684\u6574\u9ad4\u6027\u80fd\u6703\u5f97\u5230\u63d0\u5347\u3002\u7136\u800c\uff0c\u5982\u679cSMON\u9032\u7a0b\u51fa\u73fe\u554f\u984c\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4\u6578\u64da\u5eab\u7684\u6027\u80fd\u4e0b\u964d\uff0c\u751a\u81f3\u51fa\u73fe\u5d29\u6f70\u3002\u56e0\u6b64\uff0c\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u9700\u8981\u5b9a\u671f\u76e3\u63a7SMON\u7684\u904b\u884c\u72c0\u614b\uff0c\u53ca\u6642\u8655\u7406\u6f5b\u5728\u7684\u554f\u984c\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-CNvXaFLQLt\">\u7d50\u8ad6<\/h2>\n<p>\u7e3d\u7d50\u4f86\u8aaa\uff0cOracle SMON\u9032\u7a0b\u5728\u6578\u64da\u5eab\u7684\u904b\u884c\u4e2d\u626e\u6f14\u8457\u81f3\u95dc\u91cd\u8981\u7684\u89d2\u8272\u3002\u5b83\u4e0d\u50c5\u8ca0\u8cac\u6062\u5fa9\u672a\u63d0\u4ea4\u7684\u4e8b\u52d9\uff0c\u9084\u6e05\u7406\u81e8\u6642\u6bb5\u3001\u5408\u4f75\u6578\u64da\u584a\u4ee5\u53ca\u76e3\u63a7\u6578\u64da\u5eab\u72c0\u614b\u3002\u4e86\u89e3SMON\u7684\u64cd\u4f5c\u6d41\u7a0b\u6709\u52a9\u65bc\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u66f4\u597d\u5730\u7dad\u8b77\u6578\u64da\u5eab\u7684\u5065\u5eb7\u548c\u6027\u80fd\u3002<\/p>\n<p>\u5982\u9700\u4e86\u89e3\u66f4\u591a\u6709\u95dc\u65bc <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u53ca\u5176\u4ed6\u4f3a\u670d\u5668\u89e3\u6c7a\u65b9\u6848\u7684\u4fe1\u606f\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3Oracle SMON\u8fdb\u7a0b\u7684\u64cd\u4f5c\u6d41\u7a0b\uff0c\u5305\u62ec\u6062\u590d\u3001\u6e05\u7406\u548c\u7ba1\u7406\u4e34\u65f6\u6bb5\uff0c\u786e\u4fdd\u6570\u636e\u5e93\u7684\u9ad8\u6548\u8fd0\u884c\u4e0e\u7a33\u5b9a\u6027\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-94258","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/94258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=94258"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/94258\/revisions"}],"predecessor-version":[{"id":94259,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/94258\/revisions\/94259"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=94258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=94258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=94258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}