{"id":4996,"date":"2024-11-14T08:25:47","date_gmt":"2024-11-14T00:25:47","guid":{"rendered":"https:\/\/fwq.ai\/blog\/4996\/"},"modified":"2024-11-14T08:25:47","modified_gmt":"2024-11-14T00:25:47","slug":"oracle%e5%90%af%e5%8a%a8%e6%85%a2%e6%80%8e%e4%b9%88%e5%8a%9e","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/4996\/","title":{"rendered":"oracle\u542f\u52a8\u6162\u600e\u4e48\u529e"},"content":{"rendered":"<blockquote><p>\n  \u901a\u8fc7\u4f18\u5316 oracle \u542f\u52a8\u8fc7\u7a0b\uff0c\u53ef\u4ee5\u51cf\u5c11\u542f\u52a8\u65f6\u95f4\u3002\u5177\u4f53\u63aa\u65bd\u5305\u62ec\uff1a\u68c0\u67e5\u65e5\u5fd7\u6587\u4ef6\u4ee5\u67e5\u627e\u9519\u8bef\u6216\u8b66\u544a\u3002\u7981\u7528\u4e0d\u5fc5\u8981\u7684\u670d\u52a1\uff0c\u4f8b\u5982\u8c03\u5ea6\u5668\u670d\u52a1\u3002\u4f18\u5316\u53c2\u6570\u6587\u4ef6\uff0c\u8bbe\u7f6e\u5185\u5b58\u76ee\u6807\u3001\u4f18\u5316\u6a21\u5f0f\u548c\u5e76\u884c\u6267\u884c\u3002\u4f18\u5316\u6570\u636e\u5e93\u7ed3\u6784\uff0c\u521b\u5efa\u7d22\u5f15\u3001\u5220\u9664\u4e0d\u5fc5\u8981\u5bf9\u8c61\u3002\u68c0\u67e5\u78c1\u76d8 i\/o\uff0c\u4f7f\u7528\u56fa\u6001\u786c\u76d8\u63d0\u9ad8\u6027\u80fd\u3002\u4f7f\u7528\u542f\u52a8\u811a\u672c\u6267\u884c\u81ea\u52a8\u5316\u4efb\u52a1\u4f18\u5316\u542f\u52a8\u8fc7\u7a0b\u3002\u5b9a\u671f\u8fdb\u884c\u7ef4\u62a4\u4efb\u52a1\uff0c\u5982\u91cd\u5efa\u7d22\u5f15\u548c\u5206\u6790\u8868\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/21\/2024052109242090462.jpg\" class=\"aligncenter\" title=\"oracle\u542f\u52a8\u6162\u600e\u4e48\u529e\u63d2\u56fe\" alt=\"oracle\u542f\u52a8\u6162\u600e\u4e48\u529e\u63d2\u56fe\" \/><\/p>\n<p><strong>Oracle \u542f\u52a8\u6162\u7684\u89e3\u51b3\u65b9\u6848<\/strong><\/p>\n<p><strong>\u95ee\u9898\uff1a<\/strong>Oracle \u542f\u52a8\u6162\u600e\u4e48\u529e\uff1f<\/p>\n<p><strong>\u56de\u7b54\uff1a<\/strong>\u4f18\u5316 Oracle \u542f\u52a8\u8fc7\u7a0b\u4ee5\u51cf\u5c11\u542f\u52a8\u65f6\u95f4\u3002<\/p>\n<p><strong>\u8be6\u7ec6\u8bf4\u660e\uff1a<\/strong><\/p>\n<p><strong>1. \u68c0\u67e5\u65e5\u5fd7\u6587\u4ef6\uff1a<\/strong><\/p>\n<ul>\n<li>\u5ba1\u67e5\u65e5\u5fd7\u6587\u4ef6\uff08\u5982 alert_SID.log\uff09\u4ee5\u67e5\u627e\u542f\u52a8\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u9519\u8bef\u6216\u8b66\u544a\u3002<\/li>\n<li>\u8fd9\u4e9b\u9519\u8bef\u6216\u8b66\u544a\u53ef\u80fd\u6307\u793a\u6f5c\u5728\u95ee\u9898\uff0c\u9700\u8981\u89e3\u51b3\u3002<\/li>\n<\/ul>\n<p><strong>2. \u7981\u7528\u4e0d\u5fc5\u8981\u7684\u670d\u52a1\uff1a<\/strong><\/p>\n<ul>\n<li>\u5728\u542f\u52a8\u8fc7\u7a0b\u4e2d\uff0cOracle \u52a0\u8f7d\u8bb8\u591a\u670d\u52a1\u3002<\/li>\n<li>\u8bc6\u522b\u5e76\u7981\u7528\u4e0d\u9700\u8981\u7684\u670d\u52a1\u53ef\u4ee5\u663e\u7740\u51cf\u5c11\u542f\u52a8\u65f6\u95f4\u3002<\/li>\n<li>\u4f8b\u5982\uff0c\u53ef\u4ee5\u7981\u7528 Oracle Job Scheduler\uff08\u8c03\u5ea6\u5668\u670d\u52a1\uff09\u3002<\/li>\n<\/ul>\n<p><strong>3. \u4f18\u5316\u53c2\u6570\u6587\u4ef6\uff1a<\/strong><\/p>\n<ul>\n<li>Oracle \u7684\u53c2\u6570\u6587\u4ef6\uff08initSID.ora\uff09\u5305\u542b\u5f71\u54cd\u542f\u52a8\u8fc7\u7a0b\u7684\u8bbe\u7f6e\u3002<\/li>\n<li>\n<p>\u4f18\u5316\u4ee5\u4e0b\u8bbe\u7f6e\uff1a<\/p>\n<ul>\n<li> <strong>inMemoryMaxTarget:<\/strong> \u5c06\u6b64\u53c2\u6570\u8bbe\u7f6e\u4e3a\u53ef\u7528\u7684 RAM \u5927\u5c0f\uff0c\u4ee5\u52a0\u5feb\u5185\u5b58\u7ed3\u6784\u7684\u52a0\u8f7d\u901f\u5ea6\u3002<\/li>\n<li> <strong>optimizer_mode:<\/strong> \u5bf9\u4e8e\u8f83\u5c0f\u7684\u6570\u636e\u5e93\uff0c\u5c06\u6b64\u53c2\u6570\u8bbe\u7f6e\u4e3a ALL_ROWS\uff0c\u5b83\u91c7\u7528\u57fa\u4e8e\u884c\u7684\u65b9\u6cd5\u8fdb\u884c\u4f18\u5316\u3002<\/li>\n<li> <strong>parallel_execution:<\/strong> \u5bf9\u4e8e\u591a\u5904\u7406\u5668\u7cfb\u7edf\uff0c\u542f\u7528\u6b64\u53c2\u6570\u4ee5\u5229\u7528\u5e76\u884c\u6267\u884c\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>4. \u4f18\u5316\u6570\u636e\u5e93\u7ed3\u6784\uff1a<\/strong><\/p>\n<ul>\n<li>\u6570\u636e\u5e93\u7ed3\u6784\u7684\u4f18\u5316\u53ef\u4ee5\u51cf\u5c11\u542f\u52a8\u8fc7\u7a0b\u4e2d\u52a0\u8f7d\u5bf9\u8c61\u6240\u9700\u7684\u65f6\u95f4\u3002<\/li>\n<li>\u521b\u5efa\u7d22\u5f15\u548c\u5206\u533a\u8868\u4ee5\u63d0\u9ad8\u67e5\u8be2\u6027\u80fd\u3002<\/li>\n<li>\u5220\u9664\u4e0d\u5fc5\u8981\u7684\u5bf9\u8c61\u548c\u6570\u636e\u3002<\/li>\n<\/ul>\n<p><strong>5. \u68c0\u67e5\u78c1\u76d8 I\/O\uff1a<\/strong><\/p>\n<ul>\n<li>\u542f\u52a8\u8fc7\u7a0b\u6d89\u53ca\u4ece\u78c1\u76d8\u8bfb\u53d6\u5927\u91cf\u6570\u636e\u3002<\/li>\n<li>\u4f7f\u7528\u5de5\u5177\uff08\u5982 iotop\uff09\u76d1\u63a7\u78c1\u76d8 I\/O\uff0c\u5e76\u786e\u4fdd\u6ca1\u6709\u74f6\u9888\u3002<\/li>\n<li>\u8003\u8651\u4f7f\u7528\u56fa\u6001\u786c\u76d8 (SSD) \u6765\u63d0\u9ad8\u78c1\u76d8\u6027\u80fd\u3002<\/li>\n<\/ul>\n<p><strong>6. \u4f7f\u7528\u542f\u52a8\u811a\u672c\uff1a<\/strong><\/p>\n<ul>\n<li>\u521b\u5efa\u4e00\u4e2a\u542f\u52a8\u811a\u672c\u6765\u4f18\u5316 Oracle \u542f\u52a8\u8fc7\u7a0b\u3002<\/li>\n<li>\n<p>\u8be5\u811a\u672c\u53ef\u4ee5\u6267\u884c\u4ee5\u4e0b\u4efb\u52a1\uff1a<\/p>\n<ul>\n<li>\u505c\u6b62\u4e0d\u5fc5\u8981\u7684\u670d\u52a1<\/li>\n<li>\u8bbe\u7f6e\u53c2\u6570\u6587\u4ef6<\/li>\n<li>\u542f\u52a8\u6570\u636e\u5e93<\/li>\n<li>\u76d1\u63a7\u542f\u52a8\u8fdb\u5ea6<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>7. \u5b9a\u671f\u7ef4\u62a4\uff1a<\/strong><\/p>\n<ul>\n<li>\u5b9a\u671f\u8fd0\u884c\u7ef4\u62a4\u4efb\u52a1\uff0c\u5982\u91cd\u5efa\u7d22\u5f15\u3001\u5206\u6790\u8868\u548c\u6e05\u7406\u65e5\u5fd7\u6587\u4ef6\u3002<\/li>\n<li>\u8fd9\u4e9b\u4efb\u52a1\u53ef\u4ee5\u63d0\u9ad8\u6570\u636e\u5e93\u6027\u80fd\uff0c\u5305\u62ec\u542f\u52a8\u65f6\u95f4\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u542f\u52a8\u6162\u600e\u4e48\u529e\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fc7\u4f18\u5316 oracle \u542f\u52a8\u8fc7\u7a0b\uff0c\u53ef\u4ee5\u51cf\u5c11\u542f\u52a8\u65f6\u95f4\u3002\u5177\u4f53\u63aa\u65bd\u5305\u62ec\uff1a\u68c0\u67e5\u65e5\u5fd7\u6587\u4ef6\u4ee5\u67e5\u627e\u9519\u8bef\u6216\u8b66\u544a\u3002\u7981\u7528\u4e0d\u5fc5\u8981\u7684\u670d\u52a1\uff0c\u4f8b\u5982\u8c03\u5ea6\u5668\u670d\u52a1\u3002\u4f18\u5316\u53c2\u6570\u6587\u4ef6\uff0c\u8bbe\u7f6e\u5185\u5b58\u76ee\u6807\u3001\u4f18\u5316\u6a21\u5f0f\u548c\u5e76\u884c\u6267\u884c\u3002\u4f18\u5316\u6570\u636e\u5e93\u7ed3\u6784\uff0c\u521b\u5efa\u7d22\u5f15\u3001\u5220\u9664\u4e0d\u5fc5\u8981\u5bf9\u8c61\u3002\u68c0\u67e5\u78c1\u76d8 i\/o\uff0c\u4f7f\u7528\u56fa\u6001\u786c\u76d8\u63d0\u9ad8\u6027\u80fd\u3002\u4f7f\u7528\u542f\u52a8\u811a\u672c\u6267\u884c\u81ea\u52a8\u5316\u4efb\u52a1\u4f18\u5316\u542f\u52a8\u8fc7\u7a0b\u3002\u5b9a\u671f\u8fdb\u884c\u7ef4\u62a4\u4efb\u52a1\uff0c\u5982\u91cd\u5efa\u7d22\u5f15\u548c\u5206\u6790\u8868\u3002 Oracle \u542f\u52a8\u6162\u7684\u89e3\u51b3\u65b9\u6848 \u95ee\u9898\uff1aOracle \u542f\u52a8\u6162\u600e\u4e48\u529e\uff1f \u56de\u7b54\uff1a\u4f18\u5316 Oracle \u542f\u52a8\u8fc7\u7a0b\u4ee5\u51cf\u5c11\u542f\u52a8\u65f6\u95f4\u3002 \u8be6\u7ec6\u8bf4\u660e\uff1a 1. \u68c0\u67e5\u65e5\u5fd7\u6587\u4ef6\uff1a \u5ba1\u67e5\u65e5\u5fd7\u6587\u4ef6\uff08\u5982 alert_SID.log\uff09\u4ee5\u67e5\u627e\u542f\u52a8\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u9519\u8bef\u6216\u8b66\u544a\u3002 \u8fd9\u4e9b\u9519\u8bef\u6216\u8b66\u544a\u53ef\u80fd\u6307\u793a\u6f5c\u5728\u95ee\u9898\uff0c\u9700\u8981\u89e3\u51b3\u3002 2. \u7981\u7528\u4e0d\u5fc5\u8981\u7684\u670d\u52a1\uff1a \u5728\u542f\u52a8\u8fc7\u7a0b\u4e2d\uff0cOracle \u52a0\u8f7d\u8bb8\u591a\u670d\u52a1\u3002 \u8bc6\u522b\u5e76\u7981\u7528\u4e0d\u9700\u8981\u7684\u670d\u52a1\u53ef\u4ee5\u663e\u7740\u51cf\u5c11\u542f\u52a8\u65f6\u95f4\u3002 \u4f8b\u5982\uff0c\u53ef\u4ee5\u7981\u7528 Oracle Job Scheduler\uff08\u8c03\u5ea6\u5668\u670d\u52a1\uff09\u3002 3. \u4f18\u5316\u53c2\u6570\u6587\u4ef6\uff1a Oracle \u7684\u53c2\u6570\u6587\u4ef6\uff08initSID.ora\uff09\u5305\u542b\u5f71\u54cd\u542f\u52a8\u8fc7\u7a0b\u7684\u8bbe\u7f6e\u3002 \u4f18\u5316\u4ee5\u4e0b\u8bbe\u7f6e\uff1a inMemoryMaxTarget: \u5c06\u6b64\u53c2\u6570\u8bbe\u7f6e\u4e3a\u53ef\u7528\u7684 RAM \u5927\u5c0f\uff0c\u4ee5\u52a0\u5feb\u5185\u5b58\u7ed3\u6784\u7684\u52a0\u8f7d\u901f\u5ea6\u3002 optimizer_mode: \u5bf9\u4e8e\u8f83\u5c0f\u7684\u6570\u636e\u5e93\uff0c\u5c06\u6b64\u53c2\u6570\u8bbe\u7f6e\u4e3a ALL_ROWS\uff0c\u5b83\u91c7\u7528\u57fa\u4e8e\u884c\u7684\u65b9\u6cd5\u8fdb\u884c\u4f18\u5316\u3002 parallel_execution: \u5bf9\u4e8e\u591a\u5904\u7406\u5668\u7cfb\u7edf\uff0c\u542f\u7528\u6b64\u53c2\u6570\u4ee5\u5229\u7528\u5e76\u884c\u6267\u884c\u3002 4. \u4f18\u5316\u6570\u636e\u5e93\u7ed3\u6784\uff1a \u6570\u636e\u5e93\u7ed3\u6784\u7684\u4f18\u5316\u53ef\u4ee5\u51cf\u5c11\u542f\u52a8\u8fc7\u7a0b\u4e2d\u52a0\u8f7d\u5bf9\u8c61\u6240\u9700\u7684\u65f6\u95f4\u3002 \u521b\u5efa\u7d22\u5f15\u548c\u5206\u533a\u8868\u4ee5\u63d0\u9ad8\u67e5\u8be2\u6027\u80fd\u3002 \u5220\u9664\u4e0d\u5fc5\u8981\u7684\u5bf9\u8c61\u548c\u6570\u636e\u3002 5. \u68c0\u67e5\u78c1\u76d8 I\/O\uff1a \u542f\u52a8\u8fc7\u7a0b\u6d89\u53ca\u4ece\u78c1\u76d8\u8bfb\u53d6\u5927\u91cf\u6570\u636e\u3002 \u4f7f\u7528\u5de5\u5177\uff08\u5982 iotop\uff09\u76d1\u63a7\u78c1\u76d8 I\/O\uff0c\u5e76\u786e\u4fdd\u6ca1\u6709\u74f6\u9888\u3002 \u8003\u8651\u4f7f\u7528\u56fa\u6001\u786c\u76d8 (SSD) \u6765\u63d0\u9ad8\u78c1\u76d8\u6027\u80fd\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-4996","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/4996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=4996"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/4996\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=4996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=4996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=4996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}