{"id":195269,"date":"2024-11-13T13:37:20","date_gmt":"2024-11-13T05:37:20","guid":{"rendered":"https:\/\/server.hk\/cnblog\/195269\/"},"modified":"2024-11-13T13:37:21","modified_gmt":"2024-11-13T05:37:21","slug":"%e5%84%aa%e5%8c%96%e6%95%b8%e6%93%9a%e5%ba%ab%e5%a4%a7%e5%b9%85%e5%ba%a6%e6%8f%90%e9%ab%98oracle%e7%9a%84%e6%80%a7%e8%83%bd","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/195269\/","title":{"rendered":"\u512a\u5316\u6578\u64da\u5eab\u5927\u5e45\u5ea6\u63d0\u9ad8Oracle\u7684\u6027\u80fd"},"content":{"rendered":"<h1 id=\"%e5%84%aa%e5%8c%96%e6%95%b8%e6%93%9a%e5%ba%ab%e5%a4%a7%e5%b9%85%e5%ba%a6%e6%8f%90%e9%ab%98oracle%e7%9a%84%e6%80%a7%e8%83%bd-PCdBWIcZyU\">\u512a\u5316\u6578\u64da\u5eab\u5927\u5e45\u5ea6\u63d0\u9ad8Oracle\u7684\u6027\u80fd<\/h1>\n<p>\u5728\u7576\u4eca\u6578\u64da\u9a45\u52d5\u7684\u4e16\u754c\u4e2d\uff0c\u6578\u64da\u5eab\u7684\u6027\u80fd\u5c0d\u65bc\u4f01\u696d\u7684\u904b\u71df\u81f3\u95dc\u91cd\u8981\u3002Oracle\u6578\u64da\u5eab\u4f5c\u70ba\u4e00\u500b\u5f37\u5927\u7684\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bc\u5404\u7a2e\u884c\u696d\u3002\u7136\u800c\uff0c\u96a8\u8457\u6578\u64da\u91cf\u7684\u589e\u9577\u548c\u696d\u52d9\u9700\u6c42\u7684\u8b8a\u5316\uff0c\u512a\u5316Oracle\u6578\u64da\u5eab\u7684\u6027\u80fd\u8b8a\u5f97\u6108\u52a0\u91cd\u8981\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u4e00\u4e9b\u6709\u6548\u7684\u512a\u5316\u7b56\u7565\uff0c\u4ee5\u63d0\u9ad8Oracle\u6578\u64da\u5eab\u7684\u6027\u80fd\u3002<\/p>\n<h2 id=\"1-%e7%a1%ac%e9%ab%94%e8%b3%87%e6%ba%90%e7%9a%84%e9%85%8d%e7%bd%ae-PCdBWIcZyU\">1. \u786c\u9ad4\u8cc7\u6e90\u7684\u914d\u7f6e<\/h2>\n<p>\u9996\u5148\uff0c\u78ba\u4fdd\u786c\u9ad4\u8cc7\u6e90\u7684\u914d\u7f6e\u80fd\u5920\u6eff\u8db3\u6578\u64da\u5eab\u7684\u9700\u6c42\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002\u9019\u5305\u62ecCPU\u3001\u5167\u5b58\u548c\u5b58\u5132\u8a2d\u5099\u7684\u9078\u64c7\u3002\u5c0d\u65bcOracle\u6578\u64da\u5eab\u4f86\u8aaa\uff0c\u5efa\u8b70\u4f7f\u7528\u9ad8\u6027\u80fd\u7684SSD\u5b58\u5132\uff0c\u56e0\u70ba\u5176\u8b80\u5beb\u901f\u5ea6\u9060\u9ad8\u65bc\u50b3\u7d71\u7684HDD\u3002\u6b64\u5916\uff0c\u589e\u52a0\u5167\u5b58\u53ef\u4ee5\u63d0\u9ad8\u6578\u64da\u5eab\u7684\u7de9\u5b58\u80fd\u529b\uff0c\u5f9e\u800c\u6e1b\u5c11\u78c1\u789fI\/O\u64cd\u4f5c\u7684\u983b\u7387\u3002<\/p>\n<h2 id=\"2-%e6%95%b8%e6%93%9a%e5%ba%ab%e8%a8%ad%e8%a8%88%e7%9a%84%e5%84%aa%e5%8c%96-PCdBWIcZyU\">2. \u6578\u64da\u5eab\u8a2d\u8a08\u7684\u512a\u5316<\/h2>\n<p>\u6578\u64da\u5eab\u7684\u8a2d\u8a08\u5c0d\u6027\u80fd\u6709\u8457\u76f4\u63a5\u7684\u5f71\u97ff\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u8a2d\u8a08\u512a\u5316\u7684\u5efa\u8b70\uff1a<\/p>\n<ul>\n<li><strong>\u6b63\u898f\u5316\u8207\u53cd\u6b63\u898f\u5316\uff1a<\/strong>\u5728\u8a2d\u8a08\u6578\u64da\u5eab\u6642\uff0c\u61c9\u6839\u64da\u5be6\u969b\u9700\u6c42\u9032\u884c\u6b63\u898f\u5316\uff0c\u4ee5\u6d88\u9664\u5197\u9918\u6578\u64da\u3002\u7136\u800c\uff0c\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u53cd\u6b63\u898f\u5316\u53ef\u4ee5\u63d0\u9ad8\u67e5\u8a62\u6027\u80fd\uff0c\u7279\u5225\u662f\u7576\u67e5\u8a62\u6d89\u53ca\u591a\u500b\u8868\u6642\u3002<\/li>\n<li><strong>\u7d22\u5f15\u7684\u4f7f\u7528\uff1a<\/strong>\u9069\u7576\u5730\u4f7f\u7528\u7d22\u5f15\u53ef\u4ee5\u986f\u8457\u63d0\u9ad8\u67e5\u8a62\u6027\u80fd\u3002\u5c0d\u65bc\u7d93\u5e38\u67e5\u8a62\u7684\u5217\uff0c\u61c9\u8003\u616e\u5275\u5efa\u7d22\u5f15\uff0c\u4f46\u904e\u591a\u7684\u7d22\u5f15\u6703\u5f71\u97ff\u5beb\u5165\u6027\u80fd\uff0c\u56e0\u6b64\u9700\u8981\u5e73\u8861\u3002<\/li>\n<\/ul>\n<h2 id=\"3-%e6%9f%a5%e8%a9%a2%e6%80%a7%e8%83%bd%e7%9a%84%e5%84%aa%e5%8c%96-PCdBWIcZyU\">3. \u67e5\u8a62\u6027\u80fd\u7684\u512a\u5316<\/h2>\n<p>\u67e5\u8a62\u6027\u80fd\u7684\u512a\u5316\u662f\u63d0\u9ad8Oracle\u6578\u64da\u5eab\u6027\u80fd\u7684\u95dc\u9375\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u7684\u512a\u5316\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li><strong>\u4f7f\u7528\u57f7\u884c\u8a08\u5283\uff1a<\/strong>\u901a\u904e\u5206\u6790\u67e5\u8a62\u7684\u57f7\u884c\u8a08\u5283\uff0c\u53ef\u4ee5\u627e\u51fa\u6027\u80fd\u74f6\u9838\u3002\u4f7f\u7528Oracle\u7684EXPLAIN PLAN\u547d\u4ee4\u4f86\u67e5\u770b\u67e5\u8a62\u7684\u57f7\u884c\u8def\u5f91\uff0c\u4e26\u6839\u64da\u7d50\u679c\u9032\u884c\u8abf\u6574\u3002<\/li>\n<li><strong>\u907f\u514d\u4f7f\u7528SELECT *\uff1a<\/strong>\u5728\u67e5\u8a62\u4e2d\u907f\u514d\u4f7f\u7528SELECT *\uff0c\u800c\u662f\u660e\u78ba\u6307\u5b9a\u9700\u8981\u7684\u5217\uff0c\u9019\u6a23\u53ef\u4ee5\u6e1b\u5c11\u6578\u64da\u50b3\u8f38\u7684\u91cf\u3002<\/li>\n<li><strong>\u4f7f\u7528\u5408\u9069\u7684JOIN\u985e\u578b\uff1a<\/strong>\u6839\u64da\u6578\u64da\u7684\u7279\u6027\u9078\u64c7\u5408\u9069\u7684JOIN\u985e\u578b\uff0c\u4f8b\u5982INNER JOIN\u3001LEFT JOIN\u7b49\uff0c\u4ee5\u63d0\u9ad8\u67e5\u8a62\u6548\u7387\u3002<\/li>\n<\/ul>\n<h2 id=\"4-%e5%8f%83%e6%95%b8%e8%aa%bf%e6%95%b4-PCdBWIcZyU\">4. \u53c3\u6578\u8abf\u6574<\/h2>\n<p>Oracle\u6578\u64da\u5eab\u63d0\u4f9b\u4e86\u591a\u7a2e\u53c3\u6578\u4f86\u8abf\u6574\u6027\u80fd\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u91cd\u8981\u7684\u53c3\u6578\uff1a<\/p>\n<ul>\n<li><strong>SGA\u548cPGA\u7684\u914d\u7f6e\uff1a<\/strong>\u7cfb\u7d71\u5168\u5c40\u5340\uff08SGA\uff09\u548c\u7a0b\u5e8f\u5168\u5c40\u5340\uff08PGA\uff09\u7684\u5927\u5c0f\u61c9\u6839\u64da\u5be6\u969b\u9700\u6c42\u9032\u884c\u8abf\u6574\uff0c\u4ee5\u78ba\u4fdd\u6578\u64da\u5eab\u80fd\u5920\u9ad8\u6548\u904b\u884c\u3002<\/li>\n<li><strong>\u67e5\u8a62\u7de9\u5b58\uff1a<\/strong>\u555f\u7528\u67e5\u8a62\u7de9\u5b58\u53ef\u4ee5\u63d0\u9ad8\u91cd\u8907\u67e5\u8a62\u7684\u6027\u80fd\uff0c\u6e1b\u5c11\u5c0d\u78c1\u789f\u7684\u8a2a\u554f\u3002<\/li>\n<\/ul>\n<h2 id=\"5-%e5%ae%9a%e6%9c%9f%e7%b6%ad%e8%ad%b7-PCdBWIcZyU\">5. \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\u9019\u5305\u62ec\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\u788e\u7247\u5316\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>\u5b9a\u671f\u66f4\u65b0\u7d71\u8a08\u4fe1\u606f\u53ef\u4ee5\u5e6b\u52a9Oracle\u512a\u5316\u5668\u751f\u6210\u66f4\u597d\u7684\u57f7\u884c\u8a08\u5283\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-PCdBWIcZyU\">\u7e3d\u7d50<\/h2>\n<p>\u901a\u904e\u4ee5\u4e0a\u5e7e\u7a2e\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u512a\u5316Oracle\u6578\u64da\u5eab\u7684\u6027\u80fd\uff0c\u5f9e\u800c\u63d0\u9ad8\u6574\u9ad4\u7cfb\u7d71\u7684\u6548\u7387\u3002\u7121\u8ad6\u662f\u786c\u9ad4\u8cc7\u6e90\u7684\u914d\u7f6e\u3001\u6578\u64da\u5eab\u8a2d\u8a08\u7684\u512a\u5316\uff0c\u9084\u662f\u67e5\u8a62\u6027\u80fd\u7684\u8abf\u6574\uff0c\u9019\u4e9b\u90fd\u662f\u63d0\u5347Oracle\u6027\u80fd\u7684\u91cd\u8981\u56e0\u7d20\u3002\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u9ad8\u6548\u7684\u89e3\u6c7a\u65b9\u6848\u4f86\u652f\u6301\u60a8\u7684\u696d\u52d9\u9700\u6c42\uff0c\u8003\u616e\u4f7f\u7528<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u6216<a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a>\uff0c\u4ee5\u7372\u5f97\u66f4\u597d\u7684\u6027\u80fd\u548c\u7a69\u5b9a\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u512a\u5316\u6578\u64da\u5eab\u53ef\u986f\u8457\u63d0\u5347Oracle\u6027\u80fd\uff0c\u900f\u904e\u7cbe\u7d30\u8abf\u6574\u548c\u6700\u4f73\u5be6\u8e10\uff0c\u5be6\u73fe\u66f4\u5feb\u7684\u67e5\u8a62\u901f\u5ea6\u548c\u66f4\u9ad8\u7684\u6548\u7387\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-195269","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/195269","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=195269"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/195269\/revisions"}],"predecessor-version":[{"id":195270,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/195269\/revisions\/195270"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=195269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=195269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=195269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}