{"id":90868,"date":"2024-10-18T16:17:21","date_gmt":"2024-10-18T08:17:21","guid":{"rendered":"https:\/\/server.hk\/cnblog\/90868\/"},"modified":"2024-10-18T16:17:22","modified_gmt":"2024-10-18T08:17:22","slug":"ora-28234-key-length-too-short-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\/90868\/","title":{"rendered":"ORA-28234: key length too short ORACLE\u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-28234-key-length-too-short-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-UNRSLnoFbA\">ORA-28234: key length too short 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\u958b\u767c\u8005\u548c\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u53ef\u80fd\u6703\u9047\u5230\u5404\u7a2e\u932f\u8aa4\u4ee3\u78bc\uff0c\u5176\u4e2d\u4e4b\u4e00\u4fbf\u662fORA-28234\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207\u6578\u64da\u52a0\u5bc6\u548c\u5b89\u5168\u6027\u6709\u95dc\uff0c\u7279\u5225\u662f\u5728\u4f7f\u7528Oracle\u7684\u900f\u660e\u6578\u64da\u52a0\u5bc6\uff08TDE\uff09\u529f\u80fd\u6642\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eORA-28234\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u6545\u969c\u4fee\u5fa9\u3002<\/p>\n<h2 id=\"ora-28234%e7%9a%84%e5%8e%9f%e5%9b%a0-UNRSLnoFbA\">ORA-28234\u7684\u539f\u56e0<\/h2>\n<p>ORA-28234\u932f\u8aa4\u7684\u4e3b\u8981\u539f\u56e0\u662f\u5bc6\u9470\u9577\u5ea6\u4e0d\u8db3\u3002\u7576\u4f7f\u7528Oracle\u7684\u52a0\u5bc6\u529f\u80fd\u6642\uff0c\u7cfb\u7d71\u8981\u6c42\u5bc6\u9470\u7684\u9577\u5ea6\u5fc5\u9808\u7b26\u5408\u7279\u5b9a\u7684\u6a19\u6e96\u3002\u5982\u679c\u5bc6\u9470\u9577\u5ea6\u4f4e\u65bc\u8981\u6c42\uff0c\u5247\u6703\u89f8\u767c\u6b64\u932f\u8aa4\u3002\u9019\u901a\u5e38\u767c\u751f\u5728\u4ee5\u4e0b\u60c5\u6cc1\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528\u4e0d\u5408\u898f\u7684\u52a0\u5bc6\u7b97\u6cd5\u3002<\/li>\n<li>\u5728\u5275\u5efa\u6216\u4fee\u6539\u52a0\u5bc6\u8868\u7a7a\u9593\u6642\uff0c\u672a\u6b63\u78ba\u8a2d\u7f6e\u5bc6\u9470\u9577\u5ea6\u3002<\/li>\n<li>\u6578\u64da\u5eab\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u5b58\u5728\u932f\u8aa4\u6216\u4e0d\u4e00\u81f4\u7684\u8a2d\u7f6e\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%bd%b1%e9%9f%bf-UNRSLnoFbA\">\u5f71\u97ff<\/h2>\n<p>\u7576\u51fa\u73feORA-28234\u932f\u8aa4\u6642\uff0c\u5c07\u6703\u5f71\u97ff\u5230\u6578\u64da\u7684\u52a0\u5bc6\u548c\u89e3\u5bc6\u904e\u7a0b\uff0c\u9032\u800c\u5f71\u97ff\u5230\u6578\u64da\u7684\u5b89\u5168\u6027\u548c\u53ef\u7528\u6027\u3002\u9019\u53ef\u80fd\u5c0e\u81f4\u61c9\u7528\u7a0b\u5e8f\u7121\u6cd5\u6b63\u5e38\u904b\u884c\uff0c\u4e26\u4e14\u53ef\u80fd\u6703\u5f71\u97ff\u5230\u7528\u6236\u7684\u6578\u64da\u8a2a\u554f\u6b0a\u9650\u3002<\/p>\n<h2 id=\"%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e6%ad%a5%e9%a9%9f-UNRSLnoFbA\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u8981\u4fee\u5fa9ORA-28234\u932f\u8aa4\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e5%af%86%e9%91%b0%e9%95%b7%e5%ba%a6-UNRSLnoFbA\">1. \u6aa2\u67e5\u5bc6\u9470\u9577\u5ea6<\/h3>\n<p>\u9996\u5148\uff0c\u6aa2\u67e5\u7576\u524d\u4f7f\u7528\u7684\u52a0\u5bc6\u5bc6\u9470\u9577\u5ea6\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u67e5\u8a62\u4f86\u6aa2\u67e5\u5bc6\u9470\u7684\u8a2d\u7f6e\uff1a<\/p>\n<pre><code>SELECT * FROM DBA_ENCRYPTION_KEYS;<\/code><\/pre>\n<p>\u78ba\u4fdd\u5bc6\u9470\u9577\u5ea6\u7b26\u5408Oracle\u7684\u8981\u6c42\uff0c\u901a\u5e38\u70ba128\u4f4d\u6216256\u4f4d\u3002<\/p>\n<h3 id=\"2-%e4%bf%ae%e6%94%b9%e5%8a%a0%e5%af%86%e8%a8%ad%e7%bd%ae-UNRSLnoFbA\">2. \u4fee\u6539\u52a0\u5bc6\u8a2d\u7f6e<\/h3>\n<p>\u5982\u679c\u767c\u73fe\u5bc6\u9470\u9577\u5ea6\u4e0d\u7b26\u5408\u8981\u6c42\uff0c\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0bSQL\u547d\u4ee4\u4f86\u4fee\u6539\u52a0\u5bc6\u8a2d\u7f6e\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET ENCRYPTION KEY IDENTIFIED BY 'your_secure_password';<\/code><\/pre>\n<p>\u78ba\u4fdd\u4f7f\u7528\u5f37\u5bc6\u78bc\u4f86\u4fdd\u8b77\u52a0\u5bc6\u5bc6\u9470\u3002<\/p>\n<h3 id=\"3-%e9%87%8d%e6%96%b0%e5%89%b5%e5%bb%ba%e5%8a%a0%e5%af%86%e8%a1%a8%e7%a9%ba%e9%96%93-UNRSLnoFbA\">3. \u91cd\u65b0\u5275\u5efa\u52a0\u5bc6\u8868\u7a7a\u9593<\/h3>\n<p>\u5982\u679c\u554f\u984c\u4ecd\u7136\u5b58\u5728\uff0c\u8003\u616e\u91cd\u65b0\u5275\u5efa\u52a0\u5bc6\u8868\u7a7a\u9593\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>CREATE TABLESPACE your_tablespace_name \nDATAFILE 'your_datafile.dbf' \nENCRYPTION USING 'AES256' \nDEFAULT STORAGE (ENCRYPTION);<\/code><\/pre>\n<p>\u9019\u6a23\u53ef\u4ee5\u78ba\u4fdd\u65b0\u7684\u8868\u7a7a\u9593\u4f7f\u7528\u6b63\u78ba\u7684\u52a0\u5bc6\u8a2d\u7f6e\u3002<\/p>\n<h3 id=\"4-%e6%aa%a2%e6%9f%a5%e6%95%b8%e6%93%9a%e5%ba%ab%e9%85%8d%e7%bd%ae-UNRSLnoFbA\">4. \u6aa2\u67e5\u6578\u64da\u5eab\u914d\u7f6e<\/h3>\n<p>\u6700\u5f8c\uff0c\u6aa2\u67e5\u6578\u64da\u5eab\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u78ba\u4fdd\u6240\u6709\u7684\u52a0\u5bc6\u8a2d\u7f6e\u90fd\u662f\u4e00\u81f4\u7684\u3002\u7279\u5225\u662f\u8981\u6aa2\u67e5\u4ee5\u4e0b\u53c3\u6578\uff1a<\/p>\n<ul>\n<li>ENCRYPTION_WALLET_LOCATION<\/li>\n<li>ENCRYPTION_KEYSTORE_LOCATION<\/li>\n<\/ul>\n<p>\u78ba\u4fdd\u9019\u4e9b\u53c3\u6578\u6307\u5411\u6b63\u78ba\u7684\u8def\u5f91\uff0c\u4e26\u4e14\u914d\u7f6e\u6b63\u78ba\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-UNRSLnoFbA\">\u7d50\u8ad6<\/h2>\n<p>ORA-28234\u932f\u8aa4\u662fOracle\u6578\u64da\u5eab\u4e2d\u5e38\u898b\u7684\u554f\u984c\u4e4b\u4e00\uff0c\u4e3b\u8981\u7531\u65bc\u5bc6\u9470\u9577\u5ea6\u4e0d\u8db3\u5f15\u8d77\u3002\u901a\u904e\u6aa2\u67e5\u548c\u4fee\u6539\u52a0\u5bc6\u8a2d\u7f6e\u3001\u91cd\u65b0\u5275\u5efa\u52a0\u5bc6\u8868\u7a7a\u9593\u4ee5\u53ca\u6aa2\u67e5\u6578\u64da\u5eab\u914d\u7f6e\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u5b89\u5168\u6027\u6578\u64da\u5b58\u5132\u7684\u4f01\u696d\u4f86\u8aaa\uff0c\u6b63\u78ba\u914d\u7f6e\u52a0\u5bc6\u8a2d\u7f6e\u81f3\u95dc\u91cd\u8981\u3002<\/p>\n<p>\u5982\u9700\u9032\u4e00\u6b65\u4e86\u89e3\u6709\u95dc\u6578\u64da\u5eab\u7ba1\u7406\u548c\u5b89\u5168\u6027\u7684\u8cc7\u8a0a\uff0c\u60a8\u53ef\u4ee5\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\uff0c\u7372\u53d6\u66f4\u591a\u6709\u95dc<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u548c<a href=\"https:\/\/server.hk\">\u96f2\u4f3a\u670d\u5668<\/a>\u7684\u8cc7\u8a0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to troubleshoot and resolve ORA-28234: key length too short errors in Oracle with effective remote handling techniques.<\/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-90868","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90868","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=90868"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90868\/revisions"}],"predecessor-version":[{"id":90869,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90868\/revisions\/90869"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=90868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=90868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=90868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}