{"id":93528,"date":"2024-10-19T14:45:18","date_gmt":"2024-10-19T06:45:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/93528\/"},"modified":"2024-10-19T14:45:19","modified_gmt":"2024-10-19T06:45:19","slug":"ora-55569-undo_retention-%e5%8f%83%e6%95%b8%e5%80%bc%e6%87%89%e8%87%b3%e5%a4%9a%e7%82%ba-string%ef%bc%8c_highthreshold_undoretention-%e8%a8%ad%e7%bd%ae%e3%80%82-oracle-%e5%a0%b1%e9%8c%af-%e6%95%85","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/93528\/","title":{"rendered":"ORA-55569: UNDO_RETENTION \u53c3\u6578\u503c\u61c9\u81f3\u591a\u70ba string\uff0c_highthreshold_undoretention \u8a2d\u7f6e\u3002 ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-55569-undo_retention-%e5%8f%83%e6%95%b8%e5%80%bc%e6%87%89%e8%87%b3%e5%a4%9a%e7%82%ba-string%ef%bc%8c_highthreshold_undoretention-%e8%a8%ad%e7%bd%ae-mSIJzZXEjR\">ORA-55569: UNDO_RETENTION \u53c3\u6578\u503c\u61c9\u81f3\u591a\u70ba string\uff0c_highthreshold_undoretention \u8a2d\u7f6e<\/h1>\n<p>\u5728\u4f7f\u7528 Oracle \u6578\u64da\u5eab\u6642\uff0c\u7ba1\u7406 UNDO \u7a7a\u9593\u662f\u78ba\u4fdd\u6578\u64da\u4e00\u81f4\u6027\u548c\u6027\u80fd\u7684\u95dc\u9375\u3002\u7576\u7cfb\u7d71\u5831\u544a\u932f\u8aa4 <code>ORA-55569<\/code> \u6642\uff0c\u901a\u5e38\u8868\u793a UNDO_RETENTION \u53c3\u6578\u7684\u8a2d\u7f6e\u4e0d\u6b63\u78ba\uff0c\u9019\u53ef\u80fd\u6703\u5c0e\u81f4\u6578\u64da\u6062\u5fa9\u548c\u67e5\u8a62\u7684\u554f\u984c\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u6b64\u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u53ca\u5176\u4fee\u5fa9\u65b9\u6cd5\u3002<\/p>\n<h2 id=\"ora-55569-%e9%8c%af%e8%aa%a4%e7%9a%84%e5%8e%9f%e5%9b%a0-mSIJzZXEjR\">ORA-55569 \u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<p>\u932f\u8aa4 <code>ORA-55569<\/code> \u901a\u5e38\u51fa\u73fe\u5728\u4ee5\u4e0b\u60c5\u6cc1\uff1a<\/p>\n<ul>\n<li>UNDO_RETENTION \u53c3\u6578\u7684\u503c\u8a2d\u7f6e\u904e\u4f4e\uff0c\u7121\u6cd5\u6eff\u8db3\u7576\u524d\u7684\u6578\u64da\u6062\u5fa9\u9700\u6c42\u3002<\/li>\n<li>\u7cfb\u7d71\u7684 UNDO \u7a7a\u9593\u4e0d\u8db3\uff0c\u5c0e\u81f4\u7121\u6cd5\u4fdd\u6301\u6240\u9700\u7684\u6578\u64da\u7248\u672c\u3002<\/li>\n<li>\u9ad8\u95be\u503c\u7684 UNDO \u4fdd\u7559\u6642\u9593\u8a2d\u7f6e\u4e0d\u7576\uff0c\u5f71\u97ff\u4e86\u6578\u64da\u7684\u53ef\u7528\u6027\u3002<\/li>\n<\/ul>\n<p>\u7576 UNDO_RETENTION \u7684\u503c\u8a2d\u7f6e\u4e0d\u7576\u6642\uff0cOracle \u6578\u64da\u5eab\u53ef\u80fd\u7121\u6cd5\u6b63\u78ba\u5730\u4fdd\u7559\u6240\u9700\u7684\u6578\u64da\u7248\u672c\uff0c\u9019\u6703\u5f71\u97ff\u5230\u67e5\u8a62\u7684\u7d50\u679c\u548c\u6578\u64da\u7684\u6062\u5fa9\u80fd\u529b\u3002<\/p>\n<h2 id=\"undo_retention-%e5%8f%83%e6%95%b8%e7%9a%84%e4%bd%9c%e7%94%a8-mSIJzZXEjR\">UNDO_RETENTION \u53c3\u6578\u7684\u4f5c\u7528<\/h2>\n<p>UNDO_RETENTION \u53c3\u6578\u5b9a\u7fa9\u4e86 Oracle \u6578\u64da\u5eab\u5728 UNDO \u7a7a\u9593\u4e2d\u4fdd\u7559\u6578\u64da\u7684\u6700\u5c0f\u6642\u9593\u3002\u9019\u500b\u53c3\u6578\u7684\u8a2d\u7f6e\u5c0d\u65bc\u652f\u6301\u9577\u6642\u9593\u904b\u884c\u7684\u67e5\u8a62\u548c\u6578\u64da\u6062\u5fa9\u81f3\u95dc\u91cd\u8981\u3002\u7576\u4e00\u500b\u4e8b\u52d9\u63d0\u4ea4\u5f8c\uff0cOracle \u9700\u8981\u4fdd\u7559\u8a72\u4e8b\u52d9\u7684 UNDO \u6578\u64da\uff0c\u4ee5\u4fbf\u5176\u4ed6\u4e8b\u52d9\u80fd\u5920\u6b63\u78ba\u5730\u67e5\u8a62\u5230\u8a72\u4e8b\u52d9\u63d0\u4ea4\u524d\u7684\u6578\u64da\u72c0\u614b\u3002<\/p>\n<h2 id=\"%e5%a6%82%e4%bd%95%e4%bf%ae%e5%be%a9-ora-55569-%e9%8c%af%e8%aa%a4-mSIJzZXEjR\">\u5982\u4f55\u4fee\u5fa9 ORA-55569 \u932f\u8aa4<\/h2>\n<p>\u4fee\u5fa9 <code>ORA-55569<\/code> \u932f\u8aa4\u7684\u6b65\u9a5f\u5982\u4e0b\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5-undo_retention-%e8%a8%ad%e7%bd%ae-mSIJzZXEjR\">1. \u6aa2\u67e5 UNDO_RETENTION \u8a2d\u7f6e<\/h3>\n<pre><code>SHOW PARAMETER UNDO_RETENTION;<\/code><\/pre>\n<p>\u4f7f\u7528\u4e0a\u8ff0\u547d\u4ee4\u6aa2\u67e5\u7576\u524d\u7684 UNDO_RETENTION \u8a2d\u7f6e\u3002\u5982\u679c\u5176\u503c\u904e\u4f4e\uff0c\u5247\u9700\u8981\u9032\u884c\u8abf\u6574\u3002<\/p>\n<h3 id=\"2-%e8%aa%bf%e6%95%b4-undo_retention-%e5%8f%83%e6%95%b8-mSIJzZXEjR\">2. \u8abf\u6574 UNDO_RETENTION \u53c3\u6578<\/h3>\n<p>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u8abf\u6574 UNDO_RETENTION \u7684\u503c\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET UNDO_RETENTION = 3600;<\/code><\/pre>\n<p>\u9019\u88e1\u7684 <code>3600<\/code> \u8868\u793a\u5c07 UNDO_RETENTION \u8a2d\u7f6e\u70ba 1 \u5c0f\u6642\uff083600 \u79d2\uff09\u3002\u6839\u64da\u5be6\u969b\u9700\u6c42\uff0c\u53ef\u4ee5\u8abf\u6574\u6b64\u503c\u3002<\/p>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5-undo-%e7%a9%ba%e9%96%93%e7%9a%84%e4%bd%bf%e7%94%a8%e6%83%85%e6%b3%81-mSIJzZXEjR\">3. \u6aa2\u67e5 UNDO \u7a7a\u9593\u7684\u4f7f\u7528\u60c5\u6cc1<\/h3>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5 UNDO \u7a7a\u9593\u7684\u4f7f\u7528\u60c5\u6cc1\uff1a<\/p>\n<pre><code>SELECT tablespace_name, file_name, bytes, maxbytes, status FROM dba_data_files WHERE tablespace_name = 'UNDOTBS1';<\/code><\/pre>\n<p>\u78ba\u4fdd UNDO \u8868\u7a7a\u9593\u6709\u8db3\u5920\u7684\u7a7a\u9593\u4f86\u652f\u6301\u6240\u9700\u7684 UNDO_RETENTION \u8a2d\u7f6e\u3002<\/p>\n<h3 id=\"4-%e8%aa%bf%e6%95%b4%e9%ab%98%e9%96%be%e5%80%bc%e7%9a%84-undo-%e4%bf%9d%e7%95%99%e6%99%82%e9%96%93-mSIJzZXEjR\">4. \u8abf\u6574\u9ad8\u95be\u503c\u7684 UNDO \u4fdd\u7559\u6642\u9593<\/h3>\n<p>\u5982\u679c\u7cfb\u7d71\u4e2d\u8a2d\u7f6e\u4e86 <code>_highthreshold_undoretention<\/code>\uff0c\u5247\u9700\u8981\u78ba\u4fdd\u5176\u503c\u4e0d\u4f4e\u65bc UNDO_RETENTION \u7684\u8a2d\u7f6e\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5\uff1a<\/p>\n<pre><code>SHOW PARAMETER _highthreshold_undoretention;<\/code><\/pre>\n<p>\u5982\u679c\u9700\u8981\uff0c\u5247\u53ef\u4ee5\u8abf\u6574\u5176\u503c\u4ee5\u78ba\u4fdd\u7cfb\u7d71\u7684\u7a69\u5b9a\u6027\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-mSIJzZXEjR\">\u7e3d\u7d50<\/h2>\n<p>\u5728 Oracle \u6578\u64da\u5eab\u4e2d\uff0c\u6b63\u78ba\u8a2d\u7f6e UNDO_RETENTION \u53c3\u6578\u5c0d\u65bc\u6578\u64da\u7684\u5b8c\u6574\u6027\u548c\u67e5\u8a62\u6027\u80fd\u81f3\u95dc\u91cd\u8981\u3002\u7576\u9047\u5230 <code>ORA-55569<\/code> \u932f\u8aa4\u6642\uff0c\u901a\u904e\u6aa2\u67e5\u548c\u8abf\u6574\u76f8\u95dc\u53c3\u6578\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u554f\u984c\uff0c\u78ba\u4fdd\u7cfb\u7d71\u7684\u6b63\u5e38\u904b\u884c\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u53ef\u7528\u6027\u548c\u7a69\u5b9a\u6027\u7684\u61c9\u7528\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2f VPS<\/a> \u6216 <a href=\"https:\/\/server.hk\">\u96f2\u4f3a\u670d\u5668<\/a> \u89e3\u6c7a\u65b9\u6848\u4e5f\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-55569 \u932f\u8aa4\uff0c\u4e86\u89e3 UNDO_RETENTION \u53c3\u6578\u53ca _highthreshold_undoretention \u8a2d\u7f6e\uff0c\u63d0\u5347 Oracle \u6545\u969c\u4fee\u5fa9\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-93528","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/93528","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=93528"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/93528\/revisions"}],"predecessor-version":[{"id":93529,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/93528\/revisions\/93529"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=93528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=93528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=93528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}