{"id":90800,"date":"2024-10-18T15:41:19","date_gmt":"2024-10-18T07:41:19","guid":{"rendered":"https:\/\/server.hk\/cnblog\/90800\/"},"modified":"2024-10-18T15:41:20","modified_gmt":"2024-10-18T07:41:20","slug":"ora-28056-writing-audit-records-to-windows-event-log-failed-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\/90800\/","title":{"rendered":"ORA-28056: Writing audit records to Windows Event Log failed ORACLE\u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-28056-writing-audit-records-to-windows-event-log-failed-%e7%9a%84%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9-cxlHsqpIiD\">ORA-28056: Writing audit records to Windows Event Log failed \u7684\u6545\u969c\u4fee\u5fa9<\/h1>\n<p>\u5728\u4f7f\u7528 Oracle \u6578\u64da\u5eab\u7684\u904e\u7a0b\u4e2d\uff0c\u53ef\u80fd\u6703\u9047\u5230\u5404\u7a2e\u932f\u8aa4\u4ee3\u78bc\uff0c\u5176\u4e2d\u4e4b\u4e00\u4fbf\u662f <code>ORA-28056<\/code>\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8868\u793a\u5728\u5c07\u5be9\u8a08\u8a18\u9304\u5beb\u5165 Windows \u4e8b\u4ef6\u65e5\u8a8c\u6642\u5931\u6557\u3002\u9019\u7bc7\u6587\u7ae0\u5c07\u6df1\u5165\u63a2\u8a0e\u6b64\u932f\u8aa4\u7684\u539f\u56e0\u53ca\u5176\u89e3\u6c7a\u65b9\u6848\uff0c\u5e6b\u52a9\u7528\u6236\u66f4\u6709\u6548\u5730\u9032\u884c\u6545\u969c\u6392\u9664\u3002<\/p>\n<h2 id=\"%e9%8c%af%e8%aa%a4%e5%8e%9f%e5%9b%a0%e5%88%86%e6%9e%90-cxlHsqpIiD\">\u932f\u8aa4\u539f\u56e0\u5206\u6790<\/h2>\n<p>\u7576 Oracle \u6578\u64da\u5eab\u5617\u8a66\u5c07\u5be9\u8a08\u8a18\u9304\u5beb\u5165 Windows \u4e8b\u4ef6\u65e5\u8a8c\u6642\uff0c\u53ef\u80fd\u6703\u56e0\u70ba\u4ee5\u4e0b\u5e7e\u500b\u539f\u56e0\u5c0e\u81f4 <code>ORA-28056<\/code> \u932f\u8aa4\uff1a<\/p>\n<ul>\n<li><strong>\u6b0a\u9650\u554f\u984c\uff1a<\/strong>Oracle \u670d\u52d9\u53ef\u80fd\u6c92\u6709\u8db3\u5920\u7684\u6b0a\u9650\u4f86\u5beb\u5165\u4e8b\u4ef6\u65e5\u8a8c\u3002\u9019\u901a\u5e38\u767c\u751f\u5728\u7528\u6236\u672a\u4ee5\u7ba1\u7406\u54e1\u8eab\u4efd\u904b\u884c Oracle \u670d\u52d9\u7684\u60c5\u6cc1\u4e0b\u3002<\/li>\n<li><strong>\u4e8b\u4ef6\u65e5\u8a8c\u5bb9\u91cf\u5df2\u6eff\uff1a<\/strong>\u5982\u679c Windows \u4e8b\u4ef6\u65e5\u8a8c\u7684\u5bb9\u91cf\u5df2\u6eff\uff0c\u5247\u7121\u6cd5\u518d\u5beb\u5165\u65b0\u7684\u8a18\u9304\uff0c\u9019\u6703\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002<\/li>\n<li><strong>\u914d\u7f6e\u554f\u984c\uff1a<\/strong>Oracle \u7684\u5be9\u8a08\u8a2d\u7f6e\u53ef\u80fd\u672a\u6b63\u78ba\u914d\u7f6e\uff0c\u5c0e\u81f4\u7121\u6cd5\u5c07\u8a18\u9304\u5beb\u5165\u4e8b\u4ef6\u65e5\u8a8c\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%ad%a5%e9%a9%9f-cxlHsqpIiD\">\u6545\u969c\u6392\u9664\u6b65\u9a5f<\/h2>\n<p>\u70ba\u4e86\u89e3\u6c7a <code>ORA-28056<\/code> \u932f\u8aa4\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u6545\u969c\u6392\u9664\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5-oracle-%e6%9c%8d%e5%8b%99%e7%9a%84%e6%ac%8a%e9%99%90-cxlHsqpIiD\">1. \u6aa2\u67e5 Oracle \u670d\u52d9\u7684\u6b0a\u9650<\/h3>\n<p>\u78ba\u4fdd Oracle \u670d\u52d9\u4ee5\u5177\u6709\u8db3\u5920\u6b0a\u9650\u7684\u7528\u6236\u8eab\u4efd\u904b\u884c\u3002\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u6b65\u9a5f\u6aa2\u67e5\u548c\u4fee\u6539\u670d\u52d9\u7684\u904b\u884c\u7528\u6236\uff1a<\/p>\n<pre><code>1. \u6253\u958b\u201c\u670d\u52d9\u201d\u7ba1\u7406\u5de5\u5177\u3002\n2. \u627e\u5230 Oracle \u670d\u52d9\uff08\u4f8b\u5982\uff0cOracleServiceORCL\uff09\u3002\n3. \u53f3\u9375\u55ae\u64ca\u670d\u52d9\uff0c\u9078\u64c7\u201c\u5c6c\u6027\u201d\u3002\n4. \u5728\u201c\u767b\u9304\u201d\u9078\u9805\u5361\u4e2d\uff0c\u78ba\u4fdd\u9078\u64c7\u7684\u7528\u6236\u5177\u6709\u7ba1\u7406\u54e1\u6b0a\u9650\u3002<\/code><\/pre>\n<h3 id=\"2-%e6%aa%a2%e6%9f%a5%e4%ba%8b%e4%bb%b6%e6%97%a5%e8%aa%8c%e5%ae%b9%e9%87%8f-cxlHsqpIiD\">2. \u6aa2\u67e5\u4e8b\u4ef6\u65e5\u8a8c\u5bb9\u91cf<\/h3>\n<p>\u6aa2\u67e5 Windows \u4e8b\u4ef6\u65e5\u8a8c\u7684\u5bb9\u91cf\uff0c\u78ba\u4fdd\u5176\u672a\u6eff\u3002\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u6aa2\u67e5\uff1a<\/p>\n<pre><code>1. \u6253\u958b\u201c\u4e8b\u4ef6\u67e5\u770b\u5668\u201d\u3002\n2. \u5c55\u958b\u201cWindows \u65e5\u8a8c\u201d\u3002\n3. \u53f3\u9375\u55ae\u64ca\u201c\u61c9\u7528\u7a0b\u5e8f\u201d\u6216\u201c\u5b89\u5168\u201d\u65e5\u8a8c\uff0c\u9078\u64c7\u201c\u5c6c\u6027\u201d\u3002\n4. \u6aa2\u67e5\u201c\u6700\u5927\u65e5\u8a8c\u5927\u5c0f\u201d\u8a2d\u7f6e\uff0c\u4e26\u78ba\u4fdd\u5176\u672a\u9054\u5230\u4e0a\u9650\u3002<\/code><\/pre>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5-oracle-%e5%af%a9%e8%a8%88%e8%a8%ad%e7%bd%ae-cxlHsqpIiD\">3. \u6aa2\u67e5 Oracle \u5be9\u8a08\u8a2d\u7f6e<\/h3>\n<p>\u78ba\u4fdd Oracle \u7684\u5be9\u8a08\u8a2d\u7f6e\u6b63\u78ba\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b SQL \u67e5\u8a62\u6aa2\u67e5\u7576\u524d\u7684\u5be9\u8a08\u8a2d\u7f6e\uff1a<\/p>\n<pre><code>SELECT * FROM DBA_PRIVS WHERE GRANTEE = 'SYS' AND PRIVILEGE = 'AUDIT ANY';<\/code><\/pre>\n<p>\u5982\u679c\u767c\u73fe\u8a2d\u7f6e\u4e0d\u6b63\u78ba\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9032\u884c\u4fee\u6b63\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET AUDIT_TRAIL = 'OS' SCOPE = SPFILE;<\/code><\/pre>\n<h2 id=\"%e7%b8%bd%e7%b5%90-cxlHsqpIiD\">\u7e3d\u7d50<\/h2>\n<p>\u5728\u8655\u7406 <code>ORA-28056<\/code> \u932f\u8aa4\u6642\uff0c\u4e86\u89e3\u5176\u6839\u672c\u539f\u56e0\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002\u901a\u904e\u6aa2\u67e5 Oracle \u670d\u52d9\u7684\u6b0a\u9650\u3001\u4e8b\u4ef6\u65e5\u8a8c\u7684\u5bb9\u91cf\u4ee5\u53ca\u5be9\u8a08\u8a2d\u7f6e\uff0c\u60a8\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5982\u679c\u60a8\u9700\u8981\u9032\u4e00\u6b65\u7684\u652f\u6301\u6216\u5c0b\u627e\u9ad8\u6548\u7684\u89e3\u6c7a\u65b9\u6848\uff0c\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\u4e14\u9ad8\u6548\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to troubleshoot and resolve ORA-28056 errors related to writing audit records to the Windows Event Log in Oracle. 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-90800","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90800","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=90800"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90800\/revisions"}],"predecessor-version":[{"id":90801,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90800\/revisions\/90801"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=90800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=90800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=90800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}