{"id":96112,"date":"2024-10-20T06:42:18","date_gmt":"2024-10-19T22:42:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/96112\/"},"modified":"2024-10-20T06:42:18","modified_gmt":"2024-10-19T22:42:18","slug":"oracle%e7%b3%bb%e7%b5%b1%e8%a1%a8%e7%a9%ba%e9%96%93system%e8%88%87sysaux%e7%9a%84%e4%bd%bf%e7%94%a8%e7%8e%87","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/96112\/","title":{"rendered":"Oracle\u7cfb\u7d71\u8868\u7a7a\u9593system\u8207sysaux\u7684\u4f7f\u7528\u7387"},"content":{"rendered":"<h1 id=\"oracle%e7%b3%bb%e7%b5%b1%e8%a1%a8%e7%a9%ba%e9%96%93system%e8%88%87sysaux%e7%9a%84%e4%bd%bf%e7%94%a8%e7%8e%87-KPigQQnSSV\">Oracle\u7cfb\u7d71\u8868\u7a7a\u9593system\u8207sysaux\u7684\u4f7f\u7528\u7387<\/h1>\n<p>\u5728Oracle\u6578\u64da\u5eab\u4e2d\uff0c\u8868\u7a7a\u9593\u662f\u7528\u4f86\u5b58\u5132\u6578\u64da\u7684\u908f\u8f2f\u7d50\u69cb\u3002\u6bcf\u500bOracle\u6578\u64da\u5eab\u90fd\u6703\u81ea\u52d5\u5275\u5efa\u4e00\u4e9b\u9810\u8a2d\u7684\u8868\u7a7a\u9593\uff0c\u5176\u4e2d\u6700\u91cd\u8981\u7684\u5169\u500b\u662fsystem\u548csysaux\u3002\u9019\u5169\u500b\u8868\u7a7a\u9593\u7684\u4f7f\u7528\u7387\u5c0d\u65bc\u6578\u64da\u5eab\u7684\u6027\u80fd\u548c\u7a69\u5b9a\u6027\u81f3\u95dc\u91cd\u8981\uff0c\u56e0\u6b64\u4e86\u89e3\u5b83\u5011\u7684\u4f7f\u7528\u60c5\u6cc1\u662f\u6bcf\u4f4d\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u7684\u57fa\u672c\u4efb\u52d9\u3002<\/p>\n<h2 id=\"system%e8%a1%a8%e7%a9%ba%e9%96%93-KPigQQnSSV\">System\u8868\u7a7a\u9593<\/h2>\n<p>System\u8868\u7a7a\u9593\u662fOracle\u6578\u64da\u5eab\u7684\u6838\u5fc3\u7d44\u4ef6\u4e4b\u4e00\u3002\u5b83\u5305\u542b\u4e86\u6578\u64da\u5b57\u5178\u3001\u7cfb\u7d71\u5143\u6578\u64da\u4ee5\u53ca\u6578\u64da\u5eab\u7684\u6838\u5fc3\u7d50\u69cb\u3002\u9019\u4e9b\u6578\u64da\u5c0d\u65bc\u6578\u64da\u5eab\u7684\u904b\u884c\u81f3\u95dc\u91cd\u8981\uff0c\u56e0\u6b64system\u8868\u7a7a\u9593\u7684\u4f7f\u7528\u7387\u9700\u8981\u7279\u5225\u95dc\u6ce8\u3002<\/p>\n<h3 id=\"system%e8%a1%a8%e7%a9%ba%e9%96%93%e7%9a%84%e7%b5%90%e6%a7%8b-KPigQQnSSV\">System\u8868\u7a7a\u9593\u7684\u7d50\u69cb<\/h3>\n<ul>\n<li>\u6578\u64da\u5b57\u5178\uff1a\u5b58\u5132\u6709\u95dc\u6578\u64da\u5eab\u7d50\u69cb\u7684\u4fe1\u606f\uff0c\u5982\u8868\u3001\u7d22\u5f15\u3001\u7528\u6236\u7b49\u3002<\/li>\n<li>\u7cfb\u7d71\u5143\u6578\u64da\uff1a\u5305\u62ec\u7528\u65bc\u7ba1\u7406\u6578\u64da\u5eab\u7684\u5404\u7a2e\u7cfb\u7d71\u4fe1\u606f\u3002<\/li>\n<li>\u6838\u5fc3\u7d50\u69cb\uff1a\u5982PL\/SQL\u5305\u3001\u89f8\u767c\u5668\u7b49\u3002<\/li>\n<\/ul>\n<h3 id=\"%e5%a6%82%e4%bd%95%e6%aa%a2%e6%9f%a5system%e8%a1%a8%e7%a9%ba%e9%96%93%e7%9a%84%e4%bd%bf%e7%94%a8%e7%8e%87-KPigQQnSSV\">\u5982\u4f55\u6aa2\u67e5System\u8868\u7a7a\u9593\u7684\u4f7f\u7528\u7387<\/h3>\n<p>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u67e5\u8a62\u4f86\u6aa2\u67e5system\u8868\u7a7a\u9593\u7684\u4f7f\u7528\u7387\uff1a<\/p>\n<pre><code>SELECT \n    tablespace_name, \n    SUM(bytes) \/ 1024 \/ 1024 AS total_mb, \n    SUM(bytes) \/ 1024 \/ 1024 - SUM(free_bytes) \/ 1024 \/ 1024 AS used_mb, \n    SUM(free_bytes) \/ 1024 \/ 1024 AS free_mb \nFROM \n    dba_data_files \nWHERE \n    tablespace_name = 'SYSTEM' \nGROUP BY \n    tablespace_name;<\/code><\/pre>\n<h2 id=\"sysaux%e8%a1%a8%e7%a9%ba%e9%96%93-KPigQQnSSV\">Sysaux\u8868\u7a7a\u9593<\/h2>\n<p>Sysaux\u8868\u7a7a\u9593\u662fOracle 11g\u53ca\u4ee5\u5f8c\u7248\u672c\u5f15\u5165\u7684\u4e00\u500b\u65b0\u8868\u7a7a\u9593\uff0c\u65e8\u5728\u6e1b\u5c11system\u8868\u7a7a\u9593\u7684\u8ca0\u64d4\u3002\u5b83\u7528\u65bc\u5b58\u5132\u591a\u7a2eOracle\u529f\u80fd\u7684\u5143\u6578\u64da\uff0c\u5305\u62ecAWR\uff08\u81ea\u52d5\u5de5\u4f5c\u8ca0\u8f09\u5831\u544a\uff09\u3001OEM\uff08Oracle Enterprise Manager\uff09\u7b49\u3002<\/p>\n<h3 id=\"sysaux%e8%a1%a8%e7%a9%ba%e9%96%93%e7%9a%84%e7%b5%90%e6%a7%8b-KPigQQnSSV\">Sysaux\u8868\u7a7a\u9593\u7684\u7d50\u69cb<\/h3>\n<ul>\n<li>AWR\uff1a\u81ea\u52d5\u5de5\u4f5c\u8ca0\u8f09\u5831\u544a\uff0c\u63d0\u4f9b\u6027\u80fd\u6578\u64da\u3002<\/li>\n<li>OEM\uff1aOracle\u4f01\u696d\u7ba1\u7406\u5668\u7684\u5143\u6578\u64da\u3002<\/li>\n<li>\u5176\u4ed6\u529f\u80fd\uff1a\u5982Oracle Streams\u3001Oracle Text\u7b49\u3002<\/li>\n<\/ul>\n<h3 id=\"%e5%a6%82%e4%bd%95%e6%aa%a2%e6%9f%a5sysaux%e8%a1%a8%e7%a9%ba%e9%96%93%e7%9a%84%e4%bd%bf%e7%94%a8%e7%8e%87-KPigQQnSSV\">\u5982\u4f55\u6aa2\u67e5Sysaux\u8868\u7a7a\u9593\u7684\u4f7f\u7528\u7387<\/h3>\n<p>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u67e5\u8a62\u4f86\u6aa2\u67e5sysaux\u8868\u7a7a\u9593\u7684\u4f7f\u7528\u7387\uff1a<\/p>\n<pre><code>SELECT \n    tablespace_name, \n    SUM(bytes) \/ 1024 \/ 1024 AS total_mb, \n    SUM(bytes) \/ 1024 \/ 1024 - SUM(free_bytes) \/ 1024 \/ 1024 AS used_mb, \n    SUM(free_bytes) \/ 1024 \/ 1024 AS free_mb \nFROM \n    dba_data_files \nWHERE \n    tablespace_name = 'SYSAUX' \nGROUP BY \n    tablespace_name;<\/code><\/pre>\n<h2 id=\"system%e8%88%87sysaux%e7%9a%84%e4%bd%bf%e7%94%a8%e7%8e%87%e6%af%94%e8%bc%83-KPigQQnSSV\">System\u8207Sysaux\u7684\u4f7f\u7528\u7387\u6bd4\u8f03<\/h2>\n<p>\u5728\u5be6\u969b\u904b\u884c\u4e2d\uff0csystem\u548csysaux\u8868\u7a7a\u9593\u7684\u4f7f\u7528\u7387\u53ef\u80fd\u6703\u96a8\u8457\u6578\u64da\u5eab\u7684\u589e\u9577\u800c\u8b8a\u5316\u3002\u4e00\u822c\u4f86\u8aaa\uff0csystem\u8868\u7a7a\u9593\u7684\u4f7f\u7528\u7387\u61c9\u4fdd\u6301\u5728\u5408\u7406\u7bc4\u570d\u5167\uff0c\u901a\u5e38\u4e0d\u61c9\u8d85\u904e80%\u3002\u800csysaux\u8868\u7a7a\u9593\u7684\u4f7f\u7528\u7387\u5247\u53d6\u6c7a\u65bc\u555f\u7528\u7684\u529f\u80fd\u548c\u61c9\u7528\u7a0b\u5e8f\u7684\u9700\u6c42\u3002<\/p>\n<h3 id=\"%e6%9c%80%e4%bd%b3%e5%af%a6%e8%b8%90-KPigQQnSSV\">\u6700\u4f73\u5be6\u8e10<\/h3>\n<ul>\n<li>\u5b9a\u671f\u6aa2\u67e5\u8868\u7a7a\u9593\u7684\u4f7f\u7528\u7387\uff0c\u53ca\u6642\u6e05\u7406\u4e0d\u5fc5\u8981\u7684\u6578\u64da\u3002<\/li>\n<li>\u5c0d\u65bc\u9577\u671f\u4e0d\u4f7f\u7528\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u8003\u616e\u7981\u7528\u4ee5\u6e1b\u5c11sysaux\u7684\u8ca0\u64d4\u3002<\/li>\n<li>\u76e3\u63a7\u6578\u64da\u5eab\u6027\u80fd\uff0c\u78ba\u4fdd\u8868\u7a7a\u9593\u4e0d\u6703\u6210\u70ba\u6027\u80fd\u74f6\u9838\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-KPigQQnSSV\">\u7e3d\u7d50<\/h2>\n<p>\u4e86\u89e3Oracle\u6578\u64da\u5eab\u4e2dsystem\u8207sysaux\u8868\u7a7a\u9593\u7684\u4f7f\u7528\u7387\u5c0d\u65bc\u7dad\u8b77\u6578\u64da\u5eab\u7684\u5065\u5eb7\u81f3\u95dc\u91cd\u8981\u3002\u901a\u904e\u5b9a\u671f\u6aa2\u67e5\u548c\u7ba1\u7406\u9019\u4e9b\u8868\u7a7a\u9593\uff0c\u53ef\u4ee5\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u7a69\u5b9a\u6027\u548c\u6027\u80fd\u3002\u5982\u679c\u60a8\u9700\u8981\u9032\u4e00\u6b65\u7684\u652f\u6301\u6216\u89e3\u6c7a\u65b9\u6848\uff0c\u8acb\u8003\u616e\u6211\u5011\u7684<a href=\"https:\/\/server.hk\">VPS<\/a>\u670d\u52d9\uff0c\u70ba\u60a8\u7684\u6578\u64da\u5eab\u63d0\u4f9b\u7a69\u5b9a\u7684\u904b\u884c\u74b0\u5883\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3Oracle\u7cfb\u7d71\u8868\u7a7a\u9593system\u8207sysaux\u7684\u4f7f\u7528\u7387\uff0c\u638c\u63e1\u6578\u64da\u5eab\u6027\u80fd\u8207\u8cc7\u6e90\u7ba1\u7406\u7684\u95dc\u9375\u6307\u6a19\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-96112","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/96112","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=96112"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/96112\/revisions"}],"predecessor-version":[{"id":96113,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/96112\/revisions\/96113"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=96112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=96112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=96112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}