{"id":161107,"date":"2024-11-04T03:40:24","date_gmt":"2024-11-03T19:40:24","guid":{"rendered":"https:\/\/server.hk\/cnblog\/161107\/"},"modified":"2024-11-04T03:40:25","modified_gmt":"2024-11-03T19:40:25","slug":"%e7%8d%b2%e5%be%97-oracle-%e7%b3%bb%e7%b5%b1%e6%80%a7%e8%83%bd%e7%9a%84%e5%85%b8%e5%9e%8b%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/161107\/","title":{"rendered":"\u7372\u5f97 Oracle \u7cfb\u7d71\u6027\u80fd\u7684\u5178\u578b\u65b9\u6848"},"content":{"rendered":"<h1 id=\"%e7%8d%b2%e5%be%97-oracle-%e7%b3%bb%e7%b5%b1%e6%80%a7%e8%83%bd%e7%9a%84%e5%85%b8%e5%9e%8b%e6%96%b9%e6%a1%88-DnncRofBmW\">\u7372\u5f97 Oracle \u7cfb\u7d71\u6027\u80fd\u7684\u5178\u578b\u65b9\u6848<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u5546\u696d\u74b0\u5883\u4e2d\uff0c\u4f01\u696d\u5c0d\u65bc\u6578\u64da\u5eab\u7cfb\u7d71\u7684\u6027\u80fd\u8981\u6c42\u8d8a\u4f86\u8d8a\u9ad8\u3002Oracle \u4f5c\u70ba\u4e00\u500b\u9818\u5148\u7684\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u63d0\u4f9b\u4e86\u591a\u7a2e\u529f\u80fd\u4f86\u512a\u5316\u6027\u80fd\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u4e00\u4e9b\u7372\u5f97 Oracle \u7cfb\u7d71\u6027\u80fd\u7684\u5178\u578b\u65b9\u6848\uff0c\u5e6b\u52a9\u4f01\u696d\u66f4\u6709\u6548\u5730\u5229\u7528\u5176\u8cc7\u6e90\u3002<\/p>\n<h2 id=\"1-%e7%a1%ac%e9%ab%94%e9%85%8d%e7%bd%ae%e7%9a%84%e5%84%aa%e5%8c%96-DnncRofBmW\">1. \u786c\u9ad4\u914d\u7f6e\u7684\u512a\u5316<\/h2>\n<p>\u786c\u9ad4\u662f\u5f71\u97ff Oracle \u7cfb\u7d71\u6027\u80fd\u7684\u95dc\u9375\u56e0\u7d20\u4e4b\u4e00\u3002\u9078\u64c7\u5408\u9069\u7684\u4f3a\u670d\u5668\u914d\u7f6e\u53ef\u4ee5\u986f\u8457\u63d0\u9ad8\u6578\u64da\u5eab\u7684\u904b\u884c\u6548\u7387\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5efa\u8b70\uff1a<\/p>\n<ul>\n<li><strong>CPU\uff1a<\/strong>\u9078\u64c7\u591a\u6838\u5fc3\u7684\u8655\u7406\u5668\uff0c\u80fd\u5920\u540c\u6642\u8655\u7406\u591a\u500b\u8acb\u6c42\uff0c\u5f9e\u800c\u63d0\u9ad8\u4e26\u767c\u6027\u80fd\u3002<\/li>\n<li><strong>\u8a18\u61b6\u9ad4\uff1a<\/strong>\u589e\u52a0 RAM \u7684\u5bb9\u91cf\uff0c\u80fd\u5920\u6e1b\u5c11\u78c1\u789f I\/O \u64cd\u4f5c\uff0c\u63d0\u5347\u6578\u64da\u5b58\u53d6\u901f\u5ea6\u3002<\/li>\n<li><strong>\u5132\u5b58\u88dd\u7f6e\uff1a<\/strong>\u4f7f\u7528 SSD \u800c\u975e\u50b3\u7d71 HDD\uff0c\u80fd\u5920\u986f\u8457\u63d0\u9ad8\u6578\u64da\u8b80\u53d6\u548c\u5beb\u5165\u7684\u901f\u5ea6\u3002<\/li>\n<\/ul>\n<h2 id=\"2-%e6%95%b8%e6%93%9a%e5%ba%ab%e9%85%8d%e7%bd%ae%e7%9a%84%e8%aa%bf%e6%95%b4-DnncRofBmW\">2. \u6578\u64da\u5eab\u914d\u7f6e\u7684\u8abf\u6574<\/h2>\n<p>\u9664\u4e86\u786c\u9ad4\u914d\u7f6e\u5916\uff0c\u6578\u64da\u5eab\u7684\u914d\u7f6e\u4e5f\u5c0d\u6027\u80fd\u6709\u8457\u91cd\u8981\u5f71\u97ff\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u7684\u914d\u7f6e\u8abf\u6574\u65b9\u6848\uff1a<\/p>\n<ul>\n<li><strong>\u8abf\u6574 SGA \u548c PGA\uff1a<\/strong>\u6839\u64da\u61c9\u7528\u9700\u6c42\u8abf\u6574\u7cfb\u7d71\u5168\u5c40\u5340\uff08SGA\uff09\u548c\u7a0b\u5e8f\u5168\u5c40\u5340\uff08PGA\uff09\u7684\u5927\u5c0f\uff0c\u4ee5\u512a\u5316\u5167\u5b58\u4f7f\u7528\u3002<\/li>\n<li><strong>\u4f7f\u7528\u9069\u7576\u7684\u6578\u64da\u5eab\u53c3\u6578\uff1a<\/strong>\u6839\u64da\u5be6\u969b\u5de5\u4f5c\u8ca0\u8f09\u8abf\u6574\u53c3\u6578\uff0c\u5982 <code>DB_BLOCK_SIZE<\/code> \u548c <code>LOG_BUFFER<\/code>\uff0c\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002<\/li>\n<li><strong>\u555f\u7528\u81ea\u52d5\u8a18\u61b6\u9ad4\u7ba1\u7406\uff08AMM\uff09\uff1a<\/strong>\u9019\u53ef\u4ee5\u81ea\u52d5\u8abf\u6574 SGA \u548c PGA \u7684\u5927\u5c0f\uff0c\u6839\u64da\u7cfb\u7d71\u7684\u9700\u6c42\u9032\u884c\u52d5\u614b\u8abf\u6574\u3002<\/li>\n<\/ul>\n<h2 id=\"3-%e6%9f%a5%e8%a9%a2%e5%84%aa%e5%8c%96-DnncRofBmW\">3. \u67e5\u8a62\u512a\u5316<\/h2>\n<p>\u67e5\u8a62\u6027\u80fd\u662f\u5f71\u97ff\u6574\u9ad4\u7cfb\u7d71\u6027\u80fd\u7684\u53e6\u4e00\u500b\u91cd\u8981\u56e0\u7d20\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u67e5\u8a62\u512a\u5316\u7684\u6280\u5de7\uff1a<\/p>\n<ul>\n<li><strong>\u4f7f\u7528\u7d22\u5f15\uff1a<\/strong>\u70ba\u5e38\u7528\u7684\u67e5\u8a62\u5b57\u6bb5\u5efa\u7acb\u7d22\u5f15\uff0c\u53ef\u4ee5\u986f\u8457\u63d0\u9ad8\u67e5\u8a62\u901f\u5ea6\u3002<\/li>\n<li><strong>\u907f\u514d\u4f7f\u7528 SELECT *\uff1a<\/strong>\u50c5\u9078\u64c7\u9700\u8981\u7684\u5b57\u6bb5\uff0c\u6e1b\u5c11\u6578\u64da\u50b3\u8f38\u91cf\u3002<\/li>\n<li><strong>\u4f7f\u7528\u57f7\u884c\u8a08\u5283\u5206\u6790\uff1a<\/strong>\u901a\u904e\u5206\u6790\u57f7\u884c\u8a08\u5283\uff0c\u627e\u51fa\u6027\u80fd\u74f6\u9838\uff0c\u4e26\u9032\u884c\u76f8\u61c9\u7684\u512a\u5316\u3002<\/li>\n<\/ul>\n<h2 id=\"4-%e5%ae%9a%e6%9c%9f%e7%b6%ad%e8%ad%b7-DnncRofBmW\">4. \u5b9a\u671f\u7dad\u8b77<\/h2>\n<p>\u5b9a\u671f\u7684\u6578\u64da\u5eab\u7dad\u8b77\u5c0d\u65bc\u4fdd\u6301\u6027\u80fd\u81f3\u95dc\u91cd\u8981\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u7dad\u8b77\u5efa\u8b70\uff1a<\/p>\n<ul>\n<li><strong>\u91cd\u5efa\u7d22\u5f15\uff1a<\/strong>\u96a8\u8457\u6578\u64da\u7684\u589e\u9577\uff0c\u7d22\u5f15\u53ef\u80fd\u6703\u8b8a\u5f97\u4e0d\u518d\u9ad8\u6548\uff0c\u5b9a\u671f\u91cd\u5efa\u7d22\u5f15\u53ef\u4ee5\u63d0\u9ad8\u67e5\u8a62\u6027\u80fd\u3002<\/li>\n<li><strong>\u66f4\u65b0\u7d71\u8a08\u4fe1\u606f\uff1a<\/strong>\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u7d71\u8a08\u4fe1\u606f\u662f\u6700\u65b0\u7684\uff0c\u4ee5\u4fbf\u512a\u5316\u5668\u80fd\u5920\u505a\u51fa\u66f4\u597d\u7684\u6c7a\u7b56\u3002<\/li>\n<li><strong>\u6e05\u7406\u7121\u7528\u6578\u64da\uff1a<\/strong>\u5b9a\u671f\u522a\u9664\u904e\u671f\u6216\u4e0d\u518d\u9700\u8981\u7684\u6578\u64da\uff0c\u6e1b\u5c11\u6578\u64da\u5eab\u7684\u8ca0\u64d4\u3002<\/li>\n<\/ul>\n<h2 id=\"5-%e7%9b%a3%e6%8e%a7%e8%88%87%e8%aa%bf%e6%95%b4-DnncRofBmW\">5. \u76e3\u63a7\u8207\u8abf\u6574<\/h2>\n<p>\u6301\u7e8c\u7684\u76e3\u63a7\u548c\u8abf\u6574\u662f\u78ba\u4fdd Oracle \u7cfb\u7d71\u6027\u80fd\u7684\u95dc\u9375\u3002\u4f7f\u7528 Oracle \u63d0\u4f9b\u7684\u76e3\u63a7\u5de5\u5177\uff0c\u5982 AWR\uff08Automatic Workload Repository\uff09\u548c ASH\uff08Active Session History\uff09\uff0c\u53ef\u4ee5\u5e6b\u52a9\u8b58\u5225\u6027\u80fd\u554f\u984c\u4e26\u9032\u884c\u8abf\u6574\u3002<\/p>\n<h3 id=\"%e7%b5%90%e8%ab%96-DnncRofBmW\">\u7d50\u8ad6<\/h3>\n<p>\u7372\u5f97 Oracle \u7cfb\u7d71\u6027\u80fd\u7684\u5178\u578b\u65b9\u6848\u5305\u62ec\u786c\u9ad4\u914d\u7f6e\u7684\u512a\u5316\u3001\u6578\u64da\u5eab\u914d\u7f6e\u7684\u8abf\u6574\u3001\u67e5\u8a62\u512a\u5316\u3001\u5b9a\u671f\u7dad\u8b77\u4ee5\u53ca\u6301\u7e8c\u7684\u76e3\u63a7\u8207\u8abf\u6574\u3002\u9019\u4e9b\u63aa\u65bd\u80fd\u5920\u5e6b\u52a9\u4f01\u696d\u5145\u5206\u767c\u63ee Oracle \u6578\u64da\u5eab\u7684\u6f5b\u529b\uff0c\u63d0\u5347\u696d\u52d9\u904b\u71df\u6548\u7387\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u6027\u80fd\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\u7684\u4f01\u696d\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u6216 <a href=\"https:\/\/server.hk\">\u4e91\u670d\u52a1\u5668<\/a> \u4e5f\u662f\u4e00\u500b\u91cd\u8981\u7684\u8003\u91cf\u56e0\u7d20\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22\u7372\u5f97 Oracle \u7cfb\u7d71\u6027\u80fd\u7684\u5178\u578b\u65b9\u6848\uff0c\u63d0\u5347\u6548\u7387\u8207\u7a69\u5b9a\u6027\uff0c\u5be6\u73fe\u6700\u4f73\u5316\u7684\u6578\u64da\u7ba1\u7406\u8207\u61c9\u7528\u8868\u73fe\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-161107","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/161107","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=161107"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/161107\/revisions"}],"predecessor-version":[{"id":161108,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/161107\/revisions\/161108"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=161107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=161107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=161107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}