{"id":95204,"date":"2024-10-19T23:06:17","date_gmt":"2024-10-19T15:06:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/95204\/"},"modified":"2024-10-19T23:06:18","modified_gmt":"2024-10-19T15:06:18","slug":"oracle%e6%9e%b6%e6%a7%8b%e7%9a%84%e5%9f%ba%e7%a4%8e%e7%9f%a5%e8%ad%98%e6%a6%82%e8%bf%b0","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/95204\/","title":{"rendered":"Oracle\u67b6\u69cb\u7684\u57fa\u790e\u77e5\u8b58\u6982\u8ff0"},"content":{"rendered":"<h1 id=\"oracle%e6%9e%b6%e6%a7%8b%e7%9a%84%e5%9f%ba%e7%a4%8e%e7%9f%a5%e8%ad%98%e6%a6%82%e8%bf%b0-LvLyrdUppu\">Oracle\u67b6\u69cb\u7684\u57fa\u790e\u77e5\u8b58\u6982\u8ff0<\/h1>\n<p>Oracle\u662f\u4e00\u500b\u5ee3\u6cdb\u4f7f\u7528\u7684\u95dc\u806f\u5f0f\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff08RDBMS\uff09\uff0c\u5176\u67b6\u69cb\u8a2d\u8a08\u65e8\u5728\u63d0\u4f9b\u9ad8\u6548\u80fd\u3001\u53ef\u64f4\u5c55\u6027\u548c\u53ef\u9760\u6027\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eOracle\u67b6\u69cb\u7684\u57fa\u672c\u7d44\u6210\u90e8\u5206\uff0c\u5e6b\u52a9\u8b80\u8005\u7406\u89e3\u5176\u904b\u4f5c\u539f\u7406\u53ca\u7279\u9ede\u3002<\/p>\n<h2 id=\"1-oracle%e6%9e%b6%e6%a7%8b%e7%9a%84%e5%9f%ba%e6%9c%ac%e7%b5%84%e6%88%90-LvLyrdUppu\">1. Oracle\u67b6\u69cb\u7684\u57fa\u672c\u7d44\u6210<\/h2>\n<p>Oracle\u7684\u67b6\u69cb\u4e3b\u8981\u7531\u4ee5\u4e0b\u5e7e\u500b\u90e8\u5206\u7d44\u6210\uff1a<\/p>\n<ul>\n<li><strong>\u5be6\u4f8b\uff08Instance\uff09<\/strong>\uff1a\u5be6\u4f8b\u662fOracle\u6578\u64da\u5eab\u7684\u904b\u884c\u74b0\u5883\uff0c\u5305\u62ec\u4e00\u7d44\u5167\u5b58\u7d50\u69cb\u548c\u80cc\u666f\u9032\u7a0b\u3002\u5167\u5b58\u7d50\u69cb\u4e3b\u8981\u5305\u62ec\u7cfb\u7d71\u5168\u5c40\u5340\uff08SGA\uff09\u548c\u7a0b\u5e8f\u5168\u5c40\u5340\uff08PGA\uff09\u3002<\/li>\n<li><strong>\u6578\u64da\u5eab\uff08Database\uff09<\/strong>\uff1a\u6578\u64da\u5eab\u662f\u5b58\u5132\u6578\u64da\u7684\u7269\u7406\u6587\u4ef6\u96c6\u5408\uff0c\u901a\u5e38\u5305\u62ec\u6578\u64da\u6587\u4ef6\u3001\u63a7\u5236\u6587\u4ef6\u548c\u65e5\u8a8c\u6587\u4ef6\u3002<\/li>\n<li><strong>\u7528\u6236\uff08User\uff09<\/strong>\uff1a\u7528\u6236\u662f\u8a2a\u554f\u6578\u64da\u5eab\u7684\u5be6\u9ad4\uff0c\u901a\u5e38\u7531\u7528\u6236\u540d\u548c\u5bc6\u78bc\u7d44\u6210\uff0c\u4e26\u64c1\u6709\u4e0d\u540c\u7684\u6b0a\u9650\u548c\u89d2\u8272\u3002<\/li>\n<\/ul>\n<h2 id=\"2-%e5%af%a6%e4%be%8b%e7%9a%84%e7%b5%84%e6%88%90-LvLyrdUppu\">2. \u5be6\u4f8b\u7684\u7d44\u6210<\/h2>\n<p>Oracle\u5be6\u4f8b\u7684\u6838\u5fc3\u662f\u7cfb\u7d71\u5168\u5c40\u5340\uff08SGA\uff09\u548c\u7a0b\u5e8f\u5168\u5c40\u5340\uff08PGA\uff09\u3002<\/p>\n<h3 id=\"2-1-%e7%b3%bb%e7%b5%b1%e5%85%a8%e5%b1%80%e5%8d%80%ef%bc%88sga%ef%bc%89-LvLyrdUppu\">2.1 \u7cfb\u7d71\u5168\u5c40\u5340\uff08SGA\uff09<\/h3>\n<p>SGA\u662f\u4e00\u500b\u5171\u4eab\u7684\u5167\u5b58\u5340\u57df\uff0c\u5b58\u5132\u4e86\u6578\u64da\u5eab\u7684\u7de9\u5b58\u3001\u57f7\u884c\u8a08\u5283\u548c\u5176\u4ed6\u91cd\u8981\u4fe1\u606f\u3002SGA\u7684\u4e3b\u8981\u7d44\u6210\u90e8\u5206\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>\u6578\u64da\u7de9\u5b58\uff08Database Buffer Cache\uff09<\/strong>\uff1a\u7528\u65bc\u5b58\u5132\u6700\u8fd1\u8a2a\u554f\u7684\u6578\u64da\u584a\uff0c\u4ee5\u63d0\u9ad8\u67e5\u8a62\u6027\u80fd\u3002<\/li>\n<li><strong>\u5171\u4eab\u6c60\uff08Shared Pool\uff09<\/strong>\uff1a\u5b58\u5132SQL\u8a9e\u53e5\u7684\u89e3\u6790\u7d50\u679c\u548c\u57f7\u884c\u8a08\u5283\uff0c\u6e1b\u5c11\u91cd\u8907\u89e3\u6790\u7684\u958b\u92b7\u3002<\/li>\n<li><strong>\u65e5\u8a8c\u7de9\u5b58\uff08Redo Log Buffer\uff09<\/strong>\uff1a\u7528\u65bc\u5b58\u5132\u5373\u5c07\u5beb\u5165\u91cd\u505a\u65e5\u8a8c\u7684\u6578\u64da\uff0c\u78ba\u4fdd\u6578\u64da\u7684\u6301\u4e45\u6027\u3002<\/li>\n<\/ul>\n<h3 id=\"2-2-%e7%a8%8b%e5%ba%8f%e5%85%a8%e5%b1%80%e5%8d%80%ef%bc%88pga%ef%bc%89-LvLyrdUppu\">2.2 \u7a0b\u5e8f\u5168\u5c40\u5340\uff08PGA\uff09<\/h3>\n<p>PGA\u662f\u5c08\u7528\u65bc\u55ae\u500b\u7528\u6236\u9032\u7a0b\u7684\u5167\u5b58\u5340\u57df\uff0c\u4e3b\u8981\u7528\u65bc\u5b58\u5132\u7528\u6236\u6703\u8a71\u7684\u6578\u64da\u548c\u63a7\u5236\u4fe1\u606f\u3002PGA\u7684\u7d44\u6210\u90e8\u5206\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>\u6392\u5e8f\u5340\uff08Sort Area\uff09<\/strong>\uff1a\u7528\u65bc\u5b58\u5132\u6392\u5e8f\u64cd\u4f5c\u7684\u4e2d\u9593\u7d50\u679c\u3002<\/li>\n<li><strong>\u6703\u8a71\u4fe1\u606f\uff08Session Information\uff09<\/strong>\uff1a\u5b58\u5132\u7528\u6236\u6703\u8a71\u7684\u72c0\u614b\u548c\u8b8a\u91cf\u3002<\/li>\n<\/ul>\n<h2 id=\"3-%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e7%b5%84%e6%88%90-LvLyrdUppu\">3. \u6578\u64da\u5eab\u7684\u7d44\u6210<\/h2>\n<p>Oracle\u6578\u64da\u5eab\u7531\u591a\u500b\u6587\u4ef6\u7d44\u6210\uff0c\u4e3b\u8981\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>\u6578\u64da\u6587\u4ef6\uff08Data Files\uff09<\/strong>\uff1a\u5b58\u5132\u5be6\u969b\u7684\u6578\u64da\u548c\u6578\u64da\u7d50\u69cb\u3002<\/li>\n<li><strong>\u63a7\u5236\u6587\u4ef6\uff08Control Files\uff09<\/strong>\uff1a\u8a18\u9304\u6578\u64da\u5eab\u7684\u7d50\u69cb\u548c\u72c0\u614b\u4fe1\u606f\u3002<\/li>\n<li><strong>\u91cd\u505a\u65e5\u8a8c\u6587\u4ef6\uff08Redo Log Files\uff09<\/strong>\uff1a\u8a18\u9304\u6240\u6709\u5c0d\u6578\u64da\u5eab\u7684\u66f4\u6539\uff0c\u4ee5\u4fbf\u5728\u6545\u969c\u6642\u6062\u5fa9\u6578\u64da\u3002<\/li>\n<\/ul>\n<h2 id=\"4-%e8%83%8c%e6%99%af%e9%80%b2%e7%a8%8b-LvLyrdUppu\">4. \u80cc\u666f\u9032\u7a0b<\/h2>\n<p>Oracle\u5be6\u4f8b\u904b\u884c\u6642\u6703\u555f\u52d5\u591a\u500b\u80cc\u666f\u9032\u7a0b\uff0c\u9019\u4e9b\u9032\u7a0b\u8ca0\u8cac\u57f7\u884c\u5404\u7a2e\u4efb\u52d9\uff0c\u5982\u6578\u64da\u5beb\u5165\u3001\u67e5\u8a62\u8655\u7406\u548c\u8cc7\u6e90\u7ba1\u7406\u3002\u5e38\u898b\u7684\u80cc\u666f\u9032\u7a0b\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>DBWn\uff08Database Writer\uff09<\/strong>\uff1a\u8ca0\u8cac\u5c07\u7de9\u5b58\u4e2d\u7684\u6578\u64da\u5beb\u5165\u6578\u64da\u6587\u4ef6\u3002<\/li>\n<li><strong>LGWR\uff08Log Writer\uff09<\/strong>\uff1a\u8ca0\u8cac\u5c07\u91cd\u505a\u65e5\u8a8c\u7de9\u5b58\u4e2d\u7684\u6578\u64da\u5beb\u5165\u91cd\u505a\u65e5\u8a8c\u6587\u4ef6\u3002<\/li>\n<li><strong>CKPT\uff08Checkpoint\uff09<\/strong>\uff1a\u8ca0\u8cac\u66f4\u65b0\u63a7\u5236\u6587\u4ef6\u548c\u6578\u64da\u6587\u4ef6\u7684\u6a19\u8a18\uff0c\u4ee5\u78ba\u4fdd\u6578\u64da\u7684\u4e00\u81f4\u6027\u3002<\/li>\n<\/ul>\n<h2 id=\"5-%e7%b8%bd%e7%b5%90-LvLyrdUppu\">5. \u7e3d\u7d50<\/h2>\n<p>Oracle\u67b6\u69cb\u7684\u8a2d\u8a08\u4f7f\u5176\u80fd\u5920\u9ad8\u6548\u5730\u8655\u7406\u5927\u91cf\u6578\u64da\uff0c\u4e26\u63d0\u4f9b\u7a69\u5b9a\u7684\u6027\u80fd\u3002\u4e86\u89e3Oracle\u7684\u57fa\u672c\u7d44\u6210\u90e8\u5206\u548c\u904b\u4f5c\u539f\u7406\uff0c\u5c0d\u65bc\u6578\u64da\u5eab\u7ba1\u7406\u548c\u512a\u5316\u81f3\u95dc\u91cd\u8981\u3002\u82e5\u60a8\u5c0d\u65bc\u5982\u4f55\u5728\u9999\u6e2f\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\u6709\u8208\u8da3\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u7372\u53d6\u66f4\u591a\u8cc7\u8a0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3Oracle\u67b6\u69cb\u7684\u57fa\u672c\u6982\u5ff5\uff0c\u5305\u62ec\u5176\u7d44\u4ef6\u3001\u6578\u64da\u5eab\u7d50\u69cb\u53ca\u904b\u4f5c\u539f\u7406\uff0c\u52a9\u60a8\u638c\u63e1Oracle\u6280\u8853\u7684\u6838\u5fc3\u8981\u7d20\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-95204","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/95204","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=95204"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/95204\/revisions"}],"predecessor-version":[{"id":95205,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/95204\/revisions\/95205"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=95204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=95204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=95204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}