{"id":81650,"date":"2024-10-16T17:39:19","date_gmt":"2024-10-16T09:39:19","guid":{"rendered":"https:\/\/server.hk\/cnblog\/81650\/"},"modified":"2024-10-16T17:39:20","modified_gmt":"2024-10-16T09:39:20","slug":"ora-00327-log-string-of-thread-string-physical-size-string-less-than-needed-string-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\/81650\/","title":{"rendered":"ORA-00327: log string of thread string, physical size string less than needed string ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-00327-log-string-of-thread-string-physical-size-string-less-than-needed-string-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-yAqVOxgsDh\">ORA-00327: log string of thread string, physical size string less than needed string ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528Oracle\u6578\u64da\u5eab\u7684\u904e\u7a0b\u4e2d\uff0c\u7ba1\u7406\u54e1\u53ef\u80fd\u6703\u9047\u5230\u5404\u7a2e\u932f\u8aa4\u4ee3\u78bc\uff0c\u5176\u4e2d\u4e4b\u4e00\u5c31\u662fORA-00327\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207\u65e5\u8a8c\u6587\u4ef6\u7684\u5927\u5c0f\u4e0d\u8db3\u4ee5\u6eff\u8db3\u6578\u64da\u5eab\u7684\u9700\u6c42\u6709\u95dc\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eORA-00327\u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u4fee\u5fa9\u65b9\u6cd5\uff0c\u5e6b\u52a9\u7528\u6236\u66f4\u597d\u5730\u7406\u89e3\u548c\u89e3\u6c7a\u9019\u4e00\u554f\u984c\u3002<\/p>\n<h2 id=\"ora-00327%e9%8c%af%e8%aa%a4%e7%9a%84%e5%8e%9f%e5%9b%a0-yAqVOxgsDh\">ORA-00327\u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<p>ORA-00327\u932f\u8aa4\u7684\u5177\u9ad4\u4fe1\u606f\u70ba\uff1a\u201clog string of thread string, physical size string less than needed string\u201d\u3002\u9019\u610f\u5473\u8457\u67d0\u500b\u7dda\u7a0b\u7684\u65e5\u8a8c\u6587\u4ef6\u7684\u7269\u7406\u5927\u5c0f\u5c0f\u65bc\u6240\u9700\u7684\u5927\u5c0f\u3002\u9019\u7a2e\u60c5\u6cc1\u901a\u5e38\u767c\u751f\u5728\u4ee5\u4e0b\u5e7e\u7a2e\u60c5\u6cc1\u4e0b\uff1a<\/p>\n<ul>\n<li><strong>\u65e5\u8a8c\u6587\u4ef6\u914d\u7f6e\u4e0d\u7576\uff1a<\/strong>\u5728\u6578\u64da\u5eab\u5275\u5efa\u6216\u914d\u7f6e\u904e\u7a0b\u4e2d\uff0c\u65e5\u8a8c\u6587\u4ef6\u7684\u5927\u5c0f\u53ef\u80fd\u672a\u6839\u64da\u5be6\u969b\u9700\u6c42\u9032\u884c\u8abf\u6574\u3002<\/li>\n<li><strong>\u9ad8\u8ca0\u8f09\u64cd\u4f5c\uff1a<\/strong>\u5728\u9ad8\u8ca0\u8f09\u7684\u60c5\u6cc1\u4e0b\uff0c\u6578\u64da\u5eab\u7684\u65e5\u8a8c\u5beb\u5165\u901f\u5ea6\u53ef\u80fd\u6703\u8d85\u904e\u65e5\u8a8c\u6587\u4ef6\u7684\u5927\u5c0f\uff0c\u5c0e\u81f4\u4e0d\u8db3\u3002<\/li>\n<li><strong>\u65e5\u8a8c\u6587\u4ef6\u640d\u58de\uff1a<\/strong>\u5982\u679c\u65e5\u8a8c\u6587\u4ef6\u640d\u58de\u6216\u4e1f\u5931\uff0c\u6578\u64da\u5eab\u5c07\u7121\u6cd5\u6b63\u5e38\u904b\u884c\uff0c\u4e26\u53ef\u80fd\u5f15\u767c\u6b64\u932f\u8aa4\u3002<\/li>\n<\/ul>\n<h2 id=\"ora-00327%e9%8c%af%e8%aa%a4%e7%9a%84%e5%bd%b1%e9%9f%bf-yAqVOxgsDh\">ORA-00327\u932f\u8aa4\u7684\u5f71\u97ff<\/h2>\n<p>\u7576\u51fa\u73feORA-00327\u932f\u8aa4\u6642\uff0c\u6578\u64da\u5eab\u5c07\u7121\u6cd5\u6b63\u5e38\u904b\u884c\uff0c\u9019\u53ef\u80fd\u6703\u5c0e\u81f4\u4ee5\u4e0b\u5f71\u97ff\uff1a<\/p>\n<ul>\n<li><strong>\u6578\u64da\u5eab\u7121\u6cd5\u555f\u52d5\uff1a<\/strong>\u5982\u679c\u4e3b\u65e5\u8a8c\u6587\u4ef6\u4e0d\u8db3\uff0c\u6578\u64da\u5eab\u5c07\u7121\u6cd5\u555f\u52d5\uff0c\u5f71\u97ff\u696d\u52d9\u904b\u884c\u3002<\/li>\n<li><strong>\u6578\u64da\u4e1f\u5931\u98a8\u96aa\uff1a<\/strong>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u672a\u80fd\u6b63\u78ba\u8655\u7406\u65e5\u8a8c\u6587\u4ef6\u53ef\u80fd\u6703\u5c0e\u81f4\u6578\u64da\u4e1f\u5931\u3002<\/li>\n<li><strong>\u6027\u80fd\u4e0b\u964d\uff1a<\/strong>\u5373\u4f7f\u6578\u64da\u5eab\u80fd\u5920\u555f\u52d5\uff0c\u6027\u80fd\u4e5f\u53ef\u80fd\u53d7\u5230\u5f71\u97ff\uff0c\u56e0\u70ba\u7cfb\u7d71\u9700\u8981\u4e0d\u65b7\u8655\u7406\u65e5\u8a8c\u6587\u4ef6\u7684\u554f\u984c\u3002<\/li>\n<\/ul>\n<h2 id=\"%e4%bf%ae%e5%be%a9ora-00327%e9%8c%af%e8%aa%a4%e7%9a%84%e6%96%b9%e6%b3%95-yAqVOxgsDh\">\u4fee\u5fa9ORA-00327\u932f\u8aa4\u7684\u65b9\u6cd5<\/h2>\n<p>\u70ba\u4e86\u89e3\u6c7aORA-00327\u932f\u8aa4\uff0c\u7ba1\u7406\u54e1\u53ef\u4ee5\u63a1\u53d6\u4ee5\u4e0b\u5e7e\u7a2e\u65b9\u6cd5\uff1a<\/p>\n<h3 id=\"1-%e5%a2%9e%e5%8a%a0%e6%97%a5%e8%aa%8c%e6%96%87%e4%bb%b6%e7%9a%84%e5%a4%a7%e5%b0%8f-yAqVOxgsDh\">1. \u589e\u52a0\u65e5\u8a8c\u6587\u4ef6\u7684\u5927\u5c0f<\/h3>\n<p>\u6700\u76f4\u63a5\u7684\u89e3\u6c7a\u65b9\u6848\u662f\u589e\u52a0\u65e5\u8a8c\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u547d\u4ee4\u4f86\u4fee\u6539\u65e5\u8a8c\u6587\u4ef6\u7684\u5927\u5c0f\uff1a<\/p>\n<pre><code>ALTER DATABASE DATAFILE '\u65e5\u8a8c\u6587\u4ef6\u8def\u5f91' RESIZE \u65b0\u5927\u5c0f;<\/code><\/pre>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u9700\u8981\u5c07\u65e5\u8a8c\u6587\u4ef6\u7684\u5927\u5c0f\u589e\u52a0\u52301GB\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>ALTER DATABASE DATAFILE '\/path\/to\/logfile.log' RESIZE 1G;<\/code><\/pre>\n<h3 id=\"2-%e6%b7%bb%e5%8a%a0%e6%96%b0%e7%9a%84%e6%97%a5%e8%aa%8c%e6%96%87%e4%bb%b6-yAqVOxgsDh\">2. \u6dfb\u52a0\u65b0\u7684\u65e5\u8a8c\u6587\u4ef6<\/h3>\n<p>\u5982\u679c\u73fe\u6709\u7684\u65e5\u8a8c\u6587\u4ef6\u7121\u6cd5\u6eff\u8db3\u9700\u6c42\uff0c\u53ef\u4ee5\u8003\u616e\u6dfb\u52a0\u65b0\u7684\u65e5\u8a8c\u6587\u4ef6\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u53ef\u4ee5\u6dfb\u52a0\u65b0\u7684\u65e5\u8a8c\u6587\u4ef6\uff1a<\/p>\n<pre><code>ALTER DATABASE ADD LOGFILE ('\u65b0\u65e5\u8a8c\u6587\u4ef6\u8def\u5f91') SIZE \u5927\u5c0f;<\/code><\/pre>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre><code>ALTER DATABASE ADD LOGFILE ('\/path\/to\/newlogfile.log') SIZE 1G;<\/code><\/pre>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5%e6%97%a5%e8%aa%8c%e6%96%87%e4%bb%b6%e7%9a%84%e7%8b%80%e6%85%8b-yAqVOxgsDh\">3. \u6aa2\u67e5\u65e5\u8a8c\u6587\u4ef6\u7684\u72c0\u614b<\/h3>\n<p>\u78ba\u4fdd\u6240\u6709\u65e5\u8a8c\u6587\u4ef6\u90fd\u8655\u65bc\u6b63\u5e38\u72c0\u614b\uff0c\u4e26\u4e14\u6c92\u6709\u640d\u58de\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5\u65e5\u8a8c\u6587\u4ef6\u7684\u72c0\u614b\uff1a<\/p>\n<pre><code>SELECT * FROM V$LOG;<\/code><\/pre>\n<p>\u9019\u5c07\u986f\u793a\u6240\u6709\u65e5\u8a8c\u6587\u4ef6\u7684\u72c0\u614b\uff0c\u5e6b\u52a9\u7ba1\u7406\u54e1\u8b58\u5225\u554f\u984c\u6240\u5728\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-yAqVOxgsDh\">\u7e3d\u7d50<\/h2>\n<p>ORA-00327\u932f\u8aa4\u662fOracle\u6578\u64da\u5eab\u7ba1\u7406\u4e2d\u5e38\u898b\u7684\u554f\u984c\u4e4b\u4e00\uff0c\u4e86\u89e3\u5176\u539f\u56e0\u548c\u89e3\u6c7a\u65b9\u6cd5\u5c0d\u65bc\u7dad\u8b77\u6578\u64da\u5eab\u7684\u7a69\u5b9a\u6027\u81f3\u95dc\u91cd\u8981\u3002\u901a\u904e\u9069\u7576\u5730\u914d\u7f6e\u65e5\u8a8c\u6587\u4ef6\u7684\u5927\u5c0f\u548c\u6578\u91cf\uff0c\u7ba1\u7406\u54e1\u53ef\u4ee5\u6709\u6548\u5730\u907f\u514d\u6b64\u985e\u932f\u8aa4\u7684\u767c\u751f\u3002\u82e5\u60a8\u9700\u8981\u9032\u4e00\u6b65\u7684\u652f\u6301\u6216\u89e3\u6c7a\u65b9\u6848\uff0c\u8acb\u8003\u616e\u4f7f\u7528<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u670d\u52d9\uff0c\u4ee5\u78ba\u4fdd\u60a8\u7684\u6578\u64da\u5eab\u904b\u884c\u7a69\u5b9a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ORA-00327 error indicates a log file&#8217;s physical size is insufficient for thread operations. Learn remote troubleshooting methods for Oracle database recovery.<\/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-81650","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81650","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=81650"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81650\/revisions"}],"predecessor-version":[{"id":81651,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81650\/revisions\/81651"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=81650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=81650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=81650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}