{"id":81532,"date":"2024-10-16T16:38:15","date_gmt":"2024-10-16T08:38:15","guid":{"rendered":"https:\/\/server.hk\/cnblog\/81532\/"},"modified":"2024-10-16T16:38:15","modified_gmt":"2024-10-16T08:38:15","slug":"ora-00090-failed-to-allocate-memory-for-cluster-database-oradebug-command-oracle%e5%a0%b1%e9%8c%af%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/81532\/","title":{"rendered":"ORA-00090: failed to allocate memory for cluster database ORADEBUG command ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-00090-%e7%84%a1%e6%b3%95%e7%82%ba%e5%8f%a2%e9%9b%86%e6%95%b8%e6%93%9a%e5%ba%ab%e5%88%86%e9%85%8d%e5%85%a7%e5%ad%98%e7%9a%84%e6%95%85%e9%9a%9c%e8%99%95%e7%90%86-jSTSXMhUSE\">ORA-00090: \u7121\u6cd5\u70ba\u53e2\u96c6\u6578\u64da\u5eab\u5206\u914d\u5167\u5b58\u7684\u6545\u969c\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528Oracle\u6578\u64da\u5eab\u6642\uff0c\u9047\u5230\u932f\u8aa4\u4ee3\u78bcORA-00090\u53ef\u80fd\u6703\u8b93\u7ba1\u7406\u54e1\u611f\u5230\u56f0\u60d1\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8868\u793a\u7cfb\u7d71\u5728\u5617\u8a66\u57f7\u884cORADEBUG\u547d\u4ee4\u6642\uff0c\u7121\u6cd5\u70ba\u53e2\u96c6\u6578\u64da\u5eab\u5206\u914d\u8db3\u5920\u7684\u5167\u5b58\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u9019\u4e00\u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u89e3\u6c7a\u65b9\u6848\u3002<\/p>\n<h2 id=\"ora-00090%e9%8c%af%e8%aa%a4%e7%9a%84%e5%8e%9f%e5%9b%a0-jSTSXMhUSE\">ORA-00090\u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<p>ORA-00090\u932f\u8aa4\u901a\u5e38\u51fa\u73fe\u5728\u4ee5\u4e0b\u5e7e\u7a2e\u60c5\u6cc1\u4e0b\uff1a<\/p>\n<ul>\n<li><strong>\u5167\u5b58\u4e0d\u8db3\uff1a<\/strong>\u7576\u7cfb\u7d71\u7684\u53ef\u7528\u5167\u5b58\u4e0d\u8db3\u4ee5\u652f\u6301\u7576\u524d\u7684\u64cd\u4f5c\u6642\uff0c\u6703\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002\u9019\u53ef\u80fd\u662f\u7531\u65bc\u5176\u4ed6\u9032\u7a0b\u4f54\u7528\u4e86\u904e\u591a\u7684\u5167\u5b58\u3002<\/li>\n<li><strong>\u914d\u7f6e\u554f\u984c\uff1a<\/strong>Oracle\u6578\u64da\u5eab\u7684\u5167\u5b58\u53c3\u6578\u914d\u7f6e\u4e0d\u7576\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4\u5167\u5b58\u5206\u914d\u5931\u6557\u3002\u4f8b\u5982\uff0cSGA\uff08\u7cfb\u7d71\u5168\u5c40\u5340\uff09\u6216PGA\uff08\u7a0b\u5e8f\u5168\u5c40\u5340\uff09\u7684\u8a2d\u7f6e\u4e0d\u5408\u7406\u3002<\/li>\n<li><strong>\u53e2\u96c6\u74b0\u5883\u554f\u984c\uff1a<\/strong>\u5728\u53e2\u96c6\u74b0\u5883\u4e2d\uff0c\u7bc0\u9ede\u4e4b\u9593\u7684\u8cc7\u6e90\u5206\u914d\u4e0d\u5747\u53ef\u80fd\u6703\u5c0e\u81f4\u67d0\u4e9b\u7bc0\u9ede\u7121\u6cd5\u7372\u5f97\u6240\u9700\u7684\u5167\u5b58\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%bd%b1%e9%9f%bf-jSTSXMhUSE\">\u5f71\u97ff<\/h2>\n<p>\u7576\u51fa\u73feORA-00090\u932f\u8aa4\u6642\uff0c\u53ef\u80fd\u6703\u5c0d\u6578\u64da\u5eab\u7684\u6b63\u5e38\u904b\u884c\u9020\u6210\u56b4\u91cd\u5f71\u97ff\u3002\u5177\u9ad4\u5f71\u97ff\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u7121\u6cd5\u57f7\u884cORADEBUG\u547d\u4ee4\uff0c\u9019\u6703\u5f71\u97ff\u6545\u969c\u6392\u67e5\u548c\u6027\u80fd\u8abf\u512a\u3002<\/li>\n<li>\u53ef\u80fd\u5c0e\u81f4\u6578\u64da\u5eab\u6027\u80fd\u4e0b\u964d\uff0c\u5f71\u97ff\u7528\u6236\u7684\u6b63\u5e38\u64cd\u4f5c\u3002<\/li>\n<li>\u5728\u53e2\u96c6\u74b0\u5883\u4e2d\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4\u6574\u500b\u53e2\u96c6\u7684\u7a69\u5b9a\u6027\u4e0b\u964d\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%ad%a5%e9%a9%9f-jSTSXMhUSE\">\u6545\u969c\u6392\u9664\u6b65\u9a5f<\/h2>\n<p>\u70ba\u4e86\u89e3\u6c7aORA-00090\u932f\u8aa4\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u6545\u969c\u6392\u9664\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e5%85%a7%e5%ad%98%e4%bd%bf%e7%94%a8%e6%83%85%e6%b3%81-jSTSXMhUSE\">1. \u6aa2\u67e5\u5167\u5b58\u4f7f\u7528\u60c5\u6cc1<\/h3>\n<pre><code>SELECT * FROM v$memory_dynamic_components;<\/code><\/pre>\n<p>\u4f7f\u7528\u4e0a\u8ff0\u67e5\u8a62\u4f86\u6aa2\u67e5\u7576\u524d\u7684\u5167\u5b58\u4f7f\u7528\u60c5\u6cc1\uff0c\u78ba\u4fdd\u7cfb\u7d71\u6709\u8db3\u5920\u7684\u53ef\u7528\u5167\u5b58\u3002<\/p>\n<h3 id=\"2-%e8%aa%bf%e6%95%b4%e5%85%a7%e5%ad%98%e5%8f%83%e6%95%b8-jSTSXMhUSE\">2. \u8abf\u6574\u5167\u5b58\u53c3\u6578<\/h3>\n<p>\u6839\u64da\u6aa2\u67e5\u7d50\u679c\uff0c\u8abf\u6574SGA\u548cPGA\u7684\u5927\u5c0f\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u4fee\u6539\u53c3\u6578\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET sga_target = '2G' SCOPE = BOTH;<\/code><\/pre>\n<h3 id=\"3-%e7%9b%a3%e6%8e%a7%e5%8f%a2%e9%9b%86%e7%92%b0%e5%a2%83-jSTSXMhUSE\">3. \u76e3\u63a7\u53e2\u96c6\u74b0\u5883<\/h3>\n<p>\u5982\u679c\u5728\u53e2\u96c6\u74b0\u5883\u4e2d\u904b\u884c\uff0c\u78ba\u4fdd\u6240\u6709\u7bc0\u9ede\u7684\u5167\u5b58\u914d\u7f6e\u4e00\u81f4\uff0c\u4e26\u4e14\u8cc7\u6e90\u5206\u914d\u5408\u7406\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5\u53e2\u96c6\u72c0\u614b\uff1a<\/p>\n<pre><code>SELECT * FROM v$cluster;<\/code><\/pre>\n<h3 id=\"4-%e9%87%8d%e5%95%9f%e6%95%b8%e6%93%9a%e5%ba%ab-jSTSXMhUSE\">4. \u91cd\u555f\u6578\u64da\u5eab<\/h3>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u91cd\u555f\u6578\u64da\u5eab\u53ef\u80fd\u6703\u91cb\u653e\u88ab\u4f54\u7528\u7684\u5167\u5b58\uff0c\u5f9e\u800c\u89e3\u6c7a\u554f\u984c\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-jSTSXMhUSE\">\u7d50\u8ad6<\/h2>\n<p>ORA-00090\u932f\u8aa4\u662f\u4e00\u500b\u5e38\u898b\u7684Oracle\u6578\u64da\u5eab\u554f\u984c\uff0c\u901a\u5e38\u8207\u5167\u5b58\u5206\u914d\u6709\u95dc\u3002\u901a\u904e\u6aa2\u67e5\u5167\u5b58\u4f7f\u7528\u60c5\u6cc1\u3001\u8abf\u6574\u5167\u5b58\u53c3\u6578\u3001\u76e3\u63a7\u53e2\u96c6\u74b0\u5883\u4ee5\u53ca\u5fc5\u8981\u6642\u91cd\u555f\u6578\u64da\u5eab\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u904b\u884c\u7684\u61c9\u7528\u7a0b\u5e8f\uff0c\u53ca\u6642\u8655\u7406\u9019\u985e\u932f\u8aa4\u81f3\u95dc\u91cd\u8981\u3002<\/p>\n<p>\u5982\u9700\u9032\u4e00\u6b65\u4e86\u89e3\u5982\u4f55\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u65b9\u6848\u4ee5\u652f\u6301\u60a8\u7684\u6578\u64da\u5eab\u904b\u884c\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u7372\u53d6\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to troubleshoot the ORA-00090 error related to memory allocation in Oracle cluster databases using ORADEBUG commands for effective remote resolution.<\/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-81532","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81532","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=81532"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81532\/revisions"}],"predecessor-version":[{"id":81533,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81532\/revisions\/81533"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=81532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=81532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=81532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}