{"id":89900,"date":"2024-10-18T13:46:16","date_gmt":"2024-10-18T05:46:16","guid":{"rendered":"https:\/\/server.hk\/cnblog\/89900\/"},"modified":"2024-10-18T13:46:17","modified_gmt":"2024-10-18T05:46:17","slug":"ora-27018-blksize-is-not-a-multiple-of-the-minimum-physical-block-size-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\/89900\/","title":{"rendered":"ORA-27018: BLKSIZE is not a multiple of the minimum physical block size ORACLE\u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-27018-blksize-is-not-a-multiple-of-the-minimum-physical-block-size-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-cISNpNihAp\">ORA-27018: BLKSIZE is not a multiple of the minimum physical block size ORACLE\u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528Oracle\u6578\u64da\u5eab\u6642\uff0c\u9047\u5230\u932f\u8aa4\u4ee3\u78bcORA-27018\u662f\u76f8\u5c0d\u5e38\u898b\u7684\u554f\u984c\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8868\u793a\u6240\u8a2d\u7f6e\u7684BLKSIZE\uff08\u584a\u5927\u5c0f\uff09\u4e26\u4e0d\u662f\u6700\u5c0f\u7269\u7406\u584a\u5927\u5c0f\u7684\u500d\u6578\u3002\u9019\u7bc7\u6587\u7ae0\u5c07\u6df1\u5165\u63a2\u8a0eORA-27018\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u6545\u969c\u4fee\u5fa9\u3002<\/p>\n<h2 id=\"ora-27018%e7%9a%84%e5%8e%9f%e5%9b%a0-cISNpNihAp\">ORA-27018\u7684\u539f\u56e0<\/h2>\n<p>ORA-27018\u932f\u8aa4\u901a\u5e38\u51fa\u73fe\u5728\u4ee5\u4e0b\u60c5\u6cc1\uff1a<\/p>\n<ul>\n<li>\u5728\u5275\u5efa\u6578\u64da\u6587\u4ef6\u6642\uff0c\u6307\u5b9a\u7684BLKSIZE\u8207\u64cd\u4f5c\u7cfb\u7d71\u7684\u6700\u5c0f\u7269\u7406\u584a\u5927\u5c0f\u4e0d\u5339\u914d\u3002<\/li>\n<li>\u5728\u6578\u64da\u5eab\u7684\u521d\u59cb\u5316\u53c3\u6578\u4e2d\uff0cBLKSIZE\u8a2d\u7f6e\u4e0d\u6b63\u78ba\u3002<\/li>\n<li>\u5728\u4f7f\u7528\u67d0\u4e9b\u5b58\u5132\u8a2d\u5099\u6642\uff0c\u9019\u4e9b\u8a2d\u5099\u7684\u7269\u7406\u584a\u5927\u5c0f\u8207Oracle\u7684\u8a2d\u7f6e\u4e0d\u4e00\u81f4\u3002<\/li>\n<\/ul>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u60a8\u7684\u64cd\u4f5c\u7cfb\u7d71\u7684\u6700\u5c0f\u7269\u7406\u584a\u5927\u5c0f\u70ba4096\u5b57\u7bc0\uff0c\u800c\u60a8\u5728\u5275\u5efa\u6578\u64da\u6587\u4ef6\u6642\u6307\u5b9a\u7684BLKSIZE\u70ba2048\u5b57\u7bc0\uff0c\u5247\u6703\u5c0e\u81f4ORA-27018\u932f\u8aa4\u3002<\/p>\n<h2 id=\"%e5%bd%b1%e9%9f%bf-cISNpNihAp\">\u5f71\u97ff<\/h2>\n<p>\u9019\u500b\u932f\u8aa4\u6703\u5c0e\u81f4\u6578\u64da\u5eab\u7121\u6cd5\u6b63\u5e38\u555f\u52d5\u6216\u7121\u6cd5\u5275\u5efa\u65b0\u7684\u6578\u64da\u6587\u4ef6\uff0c\u5f9e\u800c\u5f71\u97ff\u5230\u6574\u500b\u7cfb\u7d71\u7684\u904b\u884c\u3002\u7279\u5225\u662f\u5728\u9ad8\u53ef\u7528\u6027\u74b0\u5883\u4e2d\uff0c\u9019\u7a2e\u932f\u8aa4\u53ef\u80fd\u6703\u5c0e\u81f4\u696d\u52d9\u4e2d\u65b7\uff0c\u5f71\u97ff\u7528\u6236\u9ad4\u9a57\u3002<\/p>\n<h2 id=\"%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e6%ad%a5%e9%a9%9f-cISNpNihAp\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u8981\u4fee\u5fa9ORA-27018\u932f\u8aa4\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\uff1a<\/p>\n<h3 id=\"1-%e7%a2%ba%e8%aa%8d%e6%9c%80%e5%b0%8f%e7%89%a9%e7%90%86%e5%a1%8a%e5%a4%a7%e5%b0%8f-cISNpNihAp\">1. \u78ba\u8a8d\u6700\u5c0f\u7269\u7406\u584a\u5927\u5c0f<\/h3>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u78ba\u8a8d\u64cd\u4f5c\u7cfb\u7d71\u7684\u6700\u5c0f\u7269\u7406\u584a\u5927\u5c0f\u3002\u9019\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u4f86\u7372\u53d6\uff1a<\/p>\n<pre><code>getconf PAGESIZE<\/code><\/pre>\n<p>\u9019\u5c07\u8fd4\u56de\u7cfb\u7d71\u7684\u6700\u5c0f\u7269\u7406\u584a\u5927\u5c0f\uff0c\u901a\u5e38\u70ba4096\u5b57\u7bc0\u3002<\/p>\n<h3 id=\"2-%e6%aa%a2%e6%9f%a5blksize%e8%a8%ad%e7%bd%ae-cISNpNihAp\">2. \u6aa2\u67e5BLKSIZE\u8a2d\u7f6e<\/h3>\n<p>\u63a5\u4e0b\u4f86\uff0c\u6aa2\u67e5Oracle\u6578\u64da\u5eab\u7684BLKSIZE\u8a2d\u7f6e\u3002\u60a8\u53ef\u4ee5\u901a\u904e\u67e5\u8a62\u6578\u64da\u5b57\u5178\u4f86\u7372\u53d6\u7576\u524d\u7684BLKSIZE\u8a2d\u7f6e\uff1a<\/p>\n<pre><code>SELECT value FROM v$parameter WHERE name = 'db_block_size';<\/code><\/pre>\n<p>\u78ba\u4fdd\u8fd4\u56de\u7684\u503c\u662f\u6700\u5c0f\u7269\u7406\u584a\u5927\u5c0f\u7684\u500d\u6578\u3002<\/p>\n<h3 id=\"3-%e4%bf%ae%e6%94%b9blksize%e8%a8%ad%e7%bd%ae-cISNpNihAp\">3. \u4fee\u6539BLKSIZE\u8a2d\u7f6e<\/h3>\n<p>\u5982\u679cBLKSIZE\u8a2d\u7f6e\u4e0d\u6b63\u78ba\uff0c\u60a8\u9700\u8981\u4fee\u6539\u5b83\u3002\u9019\u901a\u5e38\u9700\u8981\u91cd\u65b0\u5275\u5efa\u6578\u64da\u5eab\u6216\u6578\u64da\u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u5275\u5efa\u6578\u64da\u5eab\u6642\u8a2d\u7f6eBLKSIZE\u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code>CREATE DATABASE mydb\n   USER SYS IDENTIFIED BY password\n   USER SYSTEM IDENTIFIED BY password\n   LOGFILE GROUP 1 ('\/path\/to\/logfile1.log') SIZE 50M,\n           GROUP 2 ('\/path\/to\/logfile2.log') SIZE 50M\n   DATAFILE '\/path\/to\/datafile.dbf' SIZE 500M\n   EXTENT MANAGEMENT LOCAL\n   DEFAULT TEMPORARY TABLESPACE temp\n   UNDO TABLESPACE undotbs1\n   CHARACTER SET AL32UTF8\n   DB_BLOCK_SIZE 4096;<\/code><\/pre>\n<h3 id=\"4-%e6%b8%ac%e8%a9%a6%e5%92%8c%e9%a9%97%e8%ad%89-cISNpNihAp\">4. \u6e2c\u8a66\u548c\u9a57\u8b49<\/h3>\n<p>\u5728\u4fee\u6539\u5b8cBLKSIZE\u8a2d\u7f6e\u5f8c\uff0c\u91cd\u65b0\u555f\u52d5\u6578\u64da\u5eab\u4e26\u6aa2\u67e5\u662f\u5426\u4ecd\u7136\u51fa\u73feORA-27018\u932f\u8aa4\u3002\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u4f86\u9a57\u8b49\u6578\u64da\u5eab\u7684\u72c0\u614b\uff1a<\/p>\n<pre><code>SELECT status FROM v$instance;<\/code><\/pre>\n<p>\u5982\u679c\u72c0\u614b\u986f\u793a\u70ba\u201cOPEN\u201d\uff0c\u5247\u8868\u793a\u6578\u64da\u5eab\u5df2\u6210\u529f\u555f\u52d5\uff0c\u4e14\u554f\u984c\u5df2\u89e3\u6c7a\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-cISNpNihAp\">\u7d50\u8ad6<\/h2>\n<p>ORA-27018\u932f\u8aa4\u662f\u7531\u65bcBLKSIZE\u8a2d\u7f6e\u4e0d\u6b63\u78ba\u800c\u5c0e\u81f4\u7684\uff0c\u901a\u904e\u78ba\u8a8d\u6700\u5c0f\u7269\u7406\u584a\u5927\u5c0f\u3001\u6aa2\u67e5\u548c\u4fee\u6539BLKSIZE\u8a2d\u7f6e\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5c0d\u65bc\u4f7f\u7528Oracle\u6578\u64da\u5eab\u7684\u7528\u6236\u4f86\u8aaa\uff0c\u4e86\u89e3\u9019\u4e9b\u57fa\u672c\u7684\u6545\u969c\u6392\u9664\u6b65\u9a5f\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002<\/p>\n<p>\u5982\u679c\u60a8\u9700\u8981\u66f4\u591a\u6709\u95dc<code><a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a><\/code>\u6216\u5176\u4ed6<code><a href=\"https:\/\/server.hk\">\u4f3a\u670d\u5668<\/a><\/code>\u89e3\u6c7a\u65b9\u6848\u7684\u4fe1\u606f\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u7372\u53d6\u66f4\u591a\u8cc7\u6e90\u548c\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to resolve ORA-27018: BLKSIZE is not a multiple of the minimum physical block size in Oracle. Troubleshooting and remote handling tips included.<\/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-89900","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/89900","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=89900"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/89900\/revisions"}],"predecessor-version":[{"id":89901,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/89900\/revisions\/89901"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=89900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=89900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=89900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}