{"id":90904,"date":"2024-10-18T16:35:17","date_gmt":"2024-10-18T08:35:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/90904\/"},"modified":"2024-10-18T16:35:18","modified_gmt":"2024-10-18T08:35:18","slug":"ora-28370-encrypt-storage-option-not-allowed-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\/90904\/","title":{"rendered":"ORA-28370: ENCRYPT storage option not allowed ORACLE\u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-28370-encrypt-storage-option-not-allowed-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-pAbrekgkZR\">ORA-28370: ENCRYPT storage option not allowed ORACLE\u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528Oracle\u6578\u64da\u5eab\u6642\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-28370\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207\u6578\u64da\u5eab\u7684\u52a0\u5bc6\u5b58\u5132\u9078\u9805\u6709\u95dc\uff0c\u7279\u5225\u662f\u5728\u5617\u8a66\u5275\u5efa\u6216\u4fee\u6539\u8868\u6642\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eORA-28370\u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u6545\u969c\u4fee\u5fa9\u3002<\/p>\n<h2 id=\"ora-28370%e9%8c%af%e8%aa%a4%e7%9a%84%e5%8e%9f%e5%9b%a0-pAbrekgkZR\">ORA-28370\u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<p>ORA-28370\u932f\u8aa4\u7684\u4e3b\u8981\u539f\u56e0\u662f\u6578\u64da\u5eab\u7684\u52a0\u5bc6\u5b58\u5132\u9078\u9805\u672a\u88ab\u5141\u8a31\u3002\u9019\u901a\u5e38\u767c\u751f\u5728\u4ee5\u4e0b\u60c5\u6cc1\uff1a<\/p>\n<ul>\n<li>\u6578\u64da\u5eab\u672a\u555f\u7528\u52a0\u5bc6\u529f\u80fd\u3002<\/li>\n<li>\u7528\u6236\u5617\u8a66\u5728\u4e0d\u652f\u6301\u52a0\u5bc6\u7684\u8868\u7a7a\u9593\u4e2d\u5275\u5efa\u52a0\u5bc6\u5217\u3002<\/li>\n<li>\u6578\u64da\u5eab\u7248\u672c\u4e0d\u652f\u6301\u6240\u9700\u7684\u52a0\u5bc6\u529f\u80fd\u3002<\/li>\n<\/ul>\n<p>\u4f8b\u5982\uff0c\u7576\u7528\u6236\u5617\u8a66\u57f7\u884c\u4ee5\u4e0bSQL\u8a9e\u53e5\u6642\uff0c\u53ef\u80fd\u6703\u9047\u5230\u6b64\u932f\u8aa4\uff1a<\/p>\n<pre><code>CREATE TABLE sensitive_data (\n    id NUMBER,\n    data VARCHAR2(100) ENCRYPT\n) TABLESPACE users;<\/code><\/pre>\n<p>\u5982\u679c\u8868\u7a7a\u9593\u201cusers\u201d\u672a\u555f\u7528\u52a0\u5bc6\uff0c\u5247\u6703\u8fd4\u56deORA-28370\u932f\u8aa4\u3002<\/p>\n<h2 id=\"%e5%a6%82%e4%bd%95%e4%bf%ae%e5%be%a9ora-28370%e9%8c%af%e8%aa%a4-pAbrekgkZR\">\u5982\u4f55\u4fee\u5fa9ORA-28370\u932f\u8aa4<\/h2>\n<p>\u4fee\u5fa9ORA-28370\u932f\u8aa4\u7684\u6b65\u9a5f\u5982\u4e0b\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e6%95%b8%e6%93%9a%e5%ba%ab%e7%89%88%e6%9c%ac-pAbrekgkZR\">1. \u6aa2\u67e5\u6578\u64da\u5eab\u7248\u672c<\/h3>\n<p>\u9996\u5148\uff0c\u78ba\u4fdd\u60a8\u7684Oracle\u6578\u64da\u5eab\u7248\u672c\u652f\u6301\u52a0\u5bc6\u529f\u80fd\u3002Oracle 12c\u53ca\u4ee5\u4e0a\u7248\u672c\u63d0\u4f9b\u4e86\u66f4\u5f37\u5927\u7684\u52a0\u5bc6\u9078\u9805\u3002\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f\u8f03\u820a\u7248\u672c\uff0c\u8003\u616e\u5347\u7d1a\u6578\u64da\u5eab\u3002<\/p>\n<h3 id=\"2-%e5%95%9f%e7%94%a8%e5%8a%a0%e5%af%86%e5%8a%9f%e8%83%bd-pAbrekgkZR\">2. \u555f\u7528\u52a0\u5bc6\u529f\u80fd<\/h3>\n<p>\u5982\u679c\u6578\u64da\u5eab\u7248\u672c\u652f\u6301\u52a0\u5bc6\uff0c\u5247\u9700\u8981\u78ba\u4fdd\u52a0\u5bc6\u529f\u80fd\u5df2\u555f\u7528\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u67e5\u8a62\u4f86\u6aa2\u67e5\u52a0\u5bc6\u8a2d\u7f6e\uff1a<\/p>\n<pre><code>SELECT * FROM v$encryption_wallet;<\/code><\/pre>\n<p>\u5982\u679c\u8fd4\u56de\u7684\u7d50\u679c\u986f\u793a\u201cOPEN\u201d\u72c0\u614b\uff0c\u5247\u8868\u793a\u52a0\u5bc6\u529f\u80fd\u5df2\u555f\u7528\u3002\u5982\u679c\u986f\u793a\u201cCLOSED\u201d\uff0c\u5247\u9700\u8981\u6253\u958b\u52a0\u5bc6\u9322\u5305\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET ENCRYPTION WALLET OPEN IDENTIFIED BY \"your_password\";<\/code><\/pre>\n<h3 id=\"3-%e5%89%b5%e5%bb%ba%e6%94%af%e6%8c%81%e5%8a%a0%e5%af%86%e7%9a%84%e8%a1%a8%e7%a9%ba%e9%96%93-pAbrekgkZR\">3. \u5275\u5efa\u652f\u6301\u52a0\u5bc6\u7684\u8868\u7a7a\u9593<\/h3>\n<p>\u5982\u679c\u60a8\u9700\u8981\u5728\u8868\u4e2d\u4f7f\u7528\u52a0\u5bc6\u5217\uff0c\u5247\u5fc5\u9808\u5275\u5efa\u4e00\u500b\u652f\u6301\u52a0\u5bc6\u7684\u8868\u7a7a\u9593\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u8a9e\u53e5\u5275\u5efa\u4e00\u500b\u52a0\u5bc6\u7684\u8868\u7a7a\u9593\uff1a<\/p>\n<pre><code>CREATE TABLESPACE encrypted_space \nDATAFILE 'encrypted_space.dbf' \nSIZE 100M \nENCRYPTION USING 'AES256' DEFAULT STORAGE (ENCRYPT);<\/code><\/pre>\n<p>\u7136\u5f8c\uff0c\u60a8\u53ef\u4ee5\u5728\u6b64\u8868\u7a7a\u9593\u4e2d\u5275\u5efa\u8868\uff0c\u4e26\u4f7f\u7528\u52a0\u5bc6\u5217\u3002<\/p>\n<h3 id=\"4-%e4%bf%ae%e6%94%b9%e7%8f%be%e6%9c%89%e8%a1%a8%e7%9a%84%e5%ad%98%e5%84%b2%e9%81%b8%e9%a0%85-pAbrekgkZR\">4. \u4fee\u6539\u73fe\u6709\u8868\u7684\u5b58\u5132\u9078\u9805<\/h3>\n<p>\u5982\u679c\u60a8\u5df2\u7d93\u6709\u4e00\u500b\u8868\u4e26\u5e0c\u671b\u5c07\u5176\u5217\u8a2d\u7f6e\u70ba\u52a0\u5bc6\uff0c\u5247\u9700\u8981\u4f7f\u7528ALTER TABLE\u8a9e\u53e5\u4f86\u4fee\u6539\u5b58\u5132\u9078\u9805\uff1a<\/p>\n<pre><code>ALTER TABLE sensitive_data MODIFY (data ENCRYPT);<\/code><\/pre>\n<p>\u8acb\u6ce8\u610f\uff0c\u9019\u9700\u8981\u8868\u7a7a\u9593\u652f\u6301\u52a0\u5bc6\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-pAbrekgkZR\">\u7d50\u8ad6<\/h2>\n<p>ORA-28370\u932f\u8aa4\u901a\u5e38\u662f\u7531\u65bc\u6578\u64da\u5eab\u672a\u555f\u7528\u52a0\u5bc6\u529f\u80fd\u6216\u4f7f\u7528\u4e86\u4e0d\u652f\u6301\u52a0\u5bc6\u7684\u8868\u7a7a\u9593\u6240\u5f15\u8d77\u7684\u3002\u901a\u904e\u6aa2\u67e5\u6578\u64da\u5eab\u7248\u672c\u3001\u555f\u7528\u52a0\u5bc6\u529f\u80fd\u3001\u5275\u5efa\u652f\u6301\u52a0\u5bc6\u7684\u8868\u7a7a\u9593\u4ee5\u53ca\u4fee\u6539\u73fe\u6709\u8868\u7684\u5b58\u5132\u9078\u9805\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002<\/p>\n<p>\u5c0d\u65bc\u9700\u8981\u9ad8\u6548\u80fd\u548c\u5b89\u5168\u6027\u7684\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u6216 <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002\u4e86\u89e3\u66f4\u591a\u95dc\u65bc\u6211\u5011\u7684 <a href=\"https:\/\/server.hk\">\u96f2\u4f3a\u670d\u5668<\/a> \u670d\u52d9\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to troubleshoot and resolve the ORA-28370 error in Oracle related to the ENCRYPT storage option with remote handling solutions.<\/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-90904","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90904","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=90904"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90904\/revisions"}],"predecessor-version":[{"id":90905,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90904\/revisions\/90905"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=90904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=90904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=90904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}