{"id":90842,"date":"2024-10-18T16:04:18","date_gmt":"2024-10-18T08:04:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/90842\/"},"modified":"2024-10-18T16:04:18","modified_gmt":"2024-10-18T08:04:18","slug":"ora-28143-invalid-argument-passed-to-fga-add_policy-procedure-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\/90842\/","title":{"rendered":"ORA-28143: Invalid argument passed to FGA ADD_POLICY procedure ORACLE\u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-28143-invalid-argument-passed-to-fga-add_policy-procedure-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-AdGDxcLoAp\">ORA-28143: Invalid argument passed to FGA ADD_POLICY procedure 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-28143\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207Fine-Grained Auditing (FGA) \u7684ADD_POLICY\u7a0b\u5e8f\u6709\u95dc\uff0c\u7576\u50b3\u905e\u7d66\u8a72\u7a0b\u5e8f\u7684\u53c3\u6578\u7121\u6548\u6642\uff0c\u5c31\u6703\u5f15\u767c\u6b64\u932f\u8aa4\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eORA-28143\u7684\u539f\u56e0\u3001\u89e3\u6c7a\u65b9\u6848\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u9060\u7a0b\u8655\u7406\u3002<\/p>\n<h2 id=\"ora-28143%e7%9a%84%e5%8e%9f%e5%9b%a0-AdGDxcLoAp\">ORA-28143\u7684\u539f\u56e0<\/h2>\n<p>ORA-28143\u932f\u8aa4\u901a\u5e38\u51fa\u73fe\u5728\u4ee5\u4e0b\u5e7e\u7a2e\u60c5\u6cc1\u4e0b\uff1a<\/p>\n<ul>\n<li><strong>\u7121\u6548\u7684\u53c3\u6578\uff1a<\/strong>\u7576\u4f7f\u7528FGA\u7684ADD_POLICY\u7a0b\u5e8f\u6642\uff0c\u5982\u679c\u50b3\u905e\u7684\u53c3\u6578\u4e0d\u7b26\u5408\u9810\u671f\u683c\u5f0f\u6216\u985e\u578b\uff0c\u5247\u6703\u5f15\u767c\u6b64\u932f\u8aa4\u3002<\/li>\n<li><strong>\u7f3a\u5c11\u5fc5\u8981\u7684\u6b0a\u9650\uff1a<\/strong>\u7528\u6236\u53ef\u80fd\u6c92\u6709\u8db3\u5920\u7684\u6b0a\u9650\u4f86\u57f7\u884cADD_POLICY\u64cd\u4f5c\uff0c\u9019\u4e5f\u53ef\u80fd\u5c0e\u81f4\u932f\u8aa4\u3002<\/li>\n<li><strong>\u6578\u64da\u5eab\u7248\u672c\u4e0d\u517c\u5bb9\uff1a<\/strong>\u67d0\u4e9bOracle\u7248\u672c\u53ef\u80fd\u4e0d\u652f\u6301\u7279\u5b9a\u7684FGA\u529f\u80fd\uff0c\u9019\u4e5f\u53ef\u80fd\u662f\u932f\u8aa4\u7684\u6839\u6e90\u3002<\/li>\n<\/ul>\n<h2 id=\"%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%a1%88-AdGDxcLoAp\">\u89e3\u6c7a\u65b9\u6848<\/h2>\n<p>\u8981\u89e3\u6c7aORA-28143\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%8f%83%e6%95%b8-AdGDxcLoAp\">1. \u6aa2\u67e5\u53c3\u6578<\/h3>\n<p>\u9996\u5148\uff0c\u6aa2\u67e5\u50b3\u905e\u7d66ADD_POLICY\u7a0b\u5e8f\u7684\u6240\u6709\u53c3\u6578\u3002\u78ba\u4fdd\u5b83\u5011\u7b26\u5408Oracle\u7684\u8981\u6c42\u3002\u4f8b\u5982\uff0c\u4ee5\u4e0b\u662f\u4e00\u500b\u6b63\u78ba\u7684ADD_POLICY\u8abf\u7528\u793a\u4f8b\uff1a<\/p>\n<pre><code>BEGIN\n    DBMS_FGA.ADD_POLICY(\n        object_schema   =&gt; 'HR',\n        object_name     =&gt; 'EMPLOYEES',\n        policy_name     =&gt; 'emp_audit_policy',\n        audit_condition =&gt; 'salary &gt; 10000',\n        audit_column    =&gt; 'salary'\n    );\nEND;\n<\/code><\/pre>\n<p>\u5728\u9019\u500b\u4f8b\u5b50\u4e2d\uff0c\u78ba\u4fdd\u6240\u6709\u53c3\u6578\u7684\u985e\u578b\u548c\u683c\u5f0f\u90fd\u662f\u6b63\u78ba\u7684\u3002<\/p>\n<h3 id=\"2-%e6%aa%a2%e6%9f%a5%e7%94%a8%e6%88%b6%e6%ac%8a%e9%99%90-AdGDxcLoAp\">2. \u6aa2\u67e5\u7528\u6236\u6b0a\u9650<\/h3>\n<p>\u78ba\u4fdd\u57f7\u884cADD_POLICY\u7684\u7528\u6236\u64c1\u6709\u8db3\u5920\u7684\u6b0a\u9650\u3002\u7528\u6236\u9700\u8981\u5177\u5099\u4ee5\u4e0b\u6b0a\u9650\uff1a<\/p>\n<ul>\n<li><strong>EXECUTE\u6a29\u9650\uff1a<\/strong>\u7528\u6236\u5fc5\u9808\u64c1\u6709DBMS_FGA\u5305\u7684EXECUTE\u6b0a\u9650\u3002<\/li>\n<li><strong>\u5c0d\u8c61\u6b0a\u9650\uff1a<\/strong>\u7528\u6236\u5fc5\u9808\u5c0d\u76ee\u6a19\u5c0d\u8c61\u64c1\u6709\u9069\u7576\u7684\u6b0a\u9650\u3002<\/li>\n<\/ul>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5%e6%95%b8%e6%93%9a%e5%ba%ab%e7%89%88%e6%9c%ac-AdGDxcLoAp\">3. \u6aa2\u67e5\u6578\u64da\u5eab\u7248\u672c<\/h3>\n<p>\u5982\u679c\u4ee5\u4e0a\u5169\u500b\u6b65\u9a5f\u90fd\u6c92\u6709\u89e3\u6c7a\u554f\u984c\uff0c\u5247\u9700\u8981\u6aa2\u67e5Oracle\u6578\u64da\u5eab\u7684\u7248\u672c\u3002\u67d0\u4e9b\u7248\u672c\u53ef\u80fd\u4e0d\u652f\u6301\u7279\u5b9a\u7684FGA\u529f\u80fd\uff0c\u5efa\u8b70\u53c3\u8003Oracle\u5b98\u65b9\u6587\u6a94\u4ee5\u7372\u53d6\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n<h2 id=\"%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86-AdGDxcLoAp\">\u9060\u7a0b\u8655\u7406<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u9032\u884c\u9060\u7a0b\u8655\u7406\u4f86\u89e3\u6c7aORA-28143\u932f\u8aa4\u3002\u9019\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u65b9\u5f0f\u5be6\u73fe\uff1a<\/p>\n<ul>\n<li><strong>\u4f7f\u7528\u9060\u7a0b\u684c\u9762\u5de5\u5177\uff1a<\/strong>\u53ef\u4ee5\u4f7f\u7528\u5982TeamViewer\u6216AnyDesk\u7b49\u5de5\u5177\uff0c\u8b93\u5c08\u696d\u4eba\u54e1\u9060\u7a0b\u8a2a\u554f\u6578\u64da\u5eab\u9032\u884c\u6545\u969c\u6392\u9664\u3002<\/li>\n<li><strong>SSH\u9023\u63a5\uff1a<\/strong>\u5982\u679c\u6578\u64da\u5eab\u904b\u884c\u5728Linux\u4f3a\u670d\u5668\u4e0a\uff0c\u53ef\u4ee5\u901a\u904eSSH\u9023\u63a5\u9032\u884c\u9060\u7a0b\u7ba1\u7406\u548c\u6545\u969c\u6392\u9664\u3002<\/li>\n<\/ul>\n<p>\u5728\u9032\u884c\u9060\u7a0b\u8655\u7406\u6642\uff0c\u52d9\u5fc5\u78ba\u4fdd\u9075\u5faa\u5b89\u5168\u6700\u4f73\u5be6\u8e10\uff0c\u4ee5\u4fdd\u8b77\u6578\u64da\u7684\u5b89\u5168\u6027\u548c\u5b8c\u6574\u6027\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-AdGDxcLoAp\">\u7e3d\u7d50<\/h2>\n<p>ORA-28143\u932f\u8aa4\u901a\u5e38\u662f\u7531\u65bc\u7121\u6548\u7684\u53c3\u6578\u3001\u7f3a\u5c11\u6b0a\u9650\u6216\u6578\u64da\u5eab\u7248\u672c\u4e0d\u517c\u5bb9\u5f15\u8d77\u7684\u3002\u901a\u904e\u6aa2\u67e5\u53c3\u6578\u3001\u7528\u6236\u6b0a\u9650\u548c\u6578\u64da\u5eab\u7248\u672c\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u9060\u7a0b\u8655\u7406\u53ef\u80fd\u662f\u5fc5\u8981\u7684\uff0c\u9019\u53ef\u4ee5\u901a\u904e\u9060\u7a0b\u684c\u9762\u5de5\u5177\u6216SSH\u9023\u63a5\u4f86\u5be6\u73fe\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u548c\u9ad8\u6548\u7684\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\uff0c\u8003\u616e\u4f7f\u7528<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u6216<a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a>\u4f86\u652f\u6301\u60a8\u7684\u696d\u52d9\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to troubleshoot the ORA-28143 error in Oracle related to the FGA ADD_POLICY procedure, including remote handling and repair 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-90842","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90842","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=90842"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90842\/revisions"}],"predecessor-version":[{"id":90843,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90842\/revisions\/90843"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=90842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=90842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=90842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}