{"id":90382,"date":"2024-10-18T14:44:19","date_gmt":"2024-10-18T06:44:19","guid":{"rendered":"https:\/\/server.hk\/cnblog\/90382\/"},"modified":"2024-10-18T14:44:20","modified_gmt":"2024-10-18T06:44:20","slug":"ora-27376-event-condition-cannot-be-null-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\/90382\/","title":{"rendered":"ORA-27376: event condition cannot be NULL ORACLE\u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-27376-event-condition-cannot-be-null-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-OIYoCwxHOz\">ORA-27376: event condition cannot be NULL 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\u5c31\u662fORA-27376\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207Oracle\u7684\u4f5c\u696d\u7cfb\u7d71\u904e\u7a0b\u6709\u95dc\uff0c\u7279\u5225\u662f\u5728\u4f7f\u7528DBMS_SCHEDULER\u9032\u884c\u4f5c\u696d\u8abf\u5ea6\u6642\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eORA-27376\u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u6545\u969c\u4fee\u5fa9\u3002<\/p>\n<h2 id=\"ora-27376%e9%8c%af%e8%aa%a4%e7%9a%84%e5%8e%9f%e5%9b%a0-OIYoCwxHOz\">ORA-27376\u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<p>ORA-27376\u932f\u8aa4\u7684\u4e3b\u8981\u539f\u56e0\u662f\u4e8b\u4ef6\u689d\u4ef6\u70baNULL\u3002\u9019\u610f\u5473\u8457\u5728\u8abf\u5ea6\u4f5c\u696d\u6642\uff0cOracle\u7121\u6cd5\u627e\u5230\u6709\u6548\u7684\u4e8b\u4ef6\u689d\u4ef6\u4f86\u89f8\u767c\u4f5c\u696d\u3002\u9019\u7a2e\u60c5\u6cc1\u901a\u5e38\u767c\u751f\u5728\u4ee5\u4e0b\u5e7e\u7a2e\u60c5\u6cc1\u4e0b\uff1a<\/p>\n<ul>\n<li><strong>\u4f5c\u696d\u5b9a\u7fa9\u4e0d\u5b8c\u6574\uff1a<\/strong>\u5982\u679c\u5728\u5275\u5efa\u4f5c\u696d\u6642\u672a\u6b63\u78ba\u8a2d\u7f6e\u4e8b\u4ef6\u689d\u4ef6\uff0c\u5247\u53ef\u80fd\u6703\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002<\/li>\n<li><strong>\u4f5c\u696d\u8abf\u5ea6\u5668\u914d\u7f6e\u554f\u984c\uff1a<\/strong>\u5982\u679c\u8abf\u5ea6\u5668\u7684\u914d\u7f6e\u4e0d\u6b63\u78ba\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4\u4e8b\u4ef6\u689d\u4ef6\u7121\u6cd5\u6b63\u78ba\u8b58\u5225\u3002<\/li>\n<li><strong>\u6578\u64da\u5eab\u7248\u672c\u554f\u984c\uff1a<\/strong>\u67d0\u4e9b\u7248\u672c\u7684Oracle\u6578\u64da\u5eab\u53ef\u80fd\u5b58\u5728\u5df2\u77e5\u7684\u932f\u8aa4\uff0c\u5c0e\u81f4\u6b64\u554f\u984c\u7684\u51fa\u73fe\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%a6%82%e4%bd%95%e4%bf%ae%e5%be%a9ora-27376%e9%8c%af%e8%aa%a4-OIYoCwxHOz\">\u5982\u4f55\u4fee\u5fa9ORA-27376\u932f\u8aa4<\/h2>\n<p>\u4fee\u5fa9ORA-27376\u932f\u8aa4\u7684\u904e\u7a0b\u901a\u5e38\u6d89\u53ca\u4ee5\u4e0b\u5e7e\u500b\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e4%bd%9c%e6%a5%ad%e5%ae%9a%e7%be%a9-OIYoCwxHOz\">1. \u6aa2\u67e5\u4f5c\u696d\u5b9a\u7fa9<\/h3>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u6aa2\u67e5\u8abf\u5ea6\u4f5c\u696d\u7684\u5b9a\u7fa9\u3002\u4f7f\u7528\u4ee5\u4e0bSQL\u67e5\u8a62\u4f86\u67e5\u770b\u4f5c\u696d\u7684\u8a73\u7d30\u4fe1\u606f\uff1a<\/p>\n<pre><code>SELECT job_name, event_condition FROM dba_scheduler_jobs WHERE job_name = 'YOUR_JOB_NAME';<\/code><\/pre>\n<p>\u78ba\u4fddevent_condition\u5b57\u6bb5\u4e0d\u70baNULL\u3002\u5982\u679c\u70baNULL\uff0c\u60a8\u9700\u8981\u91cd\u65b0\u5b9a\u7fa9\u4f5c\u696d\uff0c\u4e26\u70ba\u5176\u8a2d\u7f6e\u6709\u6548\u7684\u4e8b\u4ef6\u689d\u4ef6\u3002<\/p>\n<h3 id=\"2-%e6%9b%b4%e6%96%b0%e4%bd%9c%e6%a5%ad%e5%ae%9a%e7%be%a9-OIYoCwxHOz\">2. \u66f4\u65b0\u4f5c\u696d\u5b9a\u7fa9<\/h3>\n<p>\u5982\u679c\u767c\u73feevent_condition\u70baNULL\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u8a9e\u53e5\u4f86\u66f4\u65b0\u4f5c\u696d\u5b9a\u7fa9\uff1a<\/p>\n<pre><code>BEGIN\n    DBMS_SCHEDULER.SET_ATTRIBUTE('YOUR_JOB_NAME', 'event_condition', 'YOUR_EVENT_CONDITION');\nEND;<\/code><\/pre>\n<p>\u8acb\u6839\u64da\u60a8\u7684\u9700\u6c42\u66ff\u63db&#8217;YOUR_EVENT_CONDITION&#8217;\u3002<\/p>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5%e8%aa%bf%e5%ba%a6%e5%99%a8%e9%85%8d%e7%bd%ae-OIYoCwxHOz\">3. \u6aa2\u67e5\u8abf\u5ea6\u5668\u914d\u7f6e<\/h3>\n<p>\u78ba\u4fddOracle\u8abf\u5ea6\u5668\u7684\u914d\u7f6e\u6b63\u78ba\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u67e5\u8a62\u4f86\u6aa2\u67e5\u8abf\u5ea6\u5668\u7684\u72c0\u614b\uff1a<\/p>\n<pre><code>SELECT * FROM dba_scheduler_global_parameters;<\/code><\/pre>\n<p>\u6aa2\u67e5\u6240\u6709\u76f8\u95dc\u53c3\u6578\uff0c\u78ba\u4fdd\u5b83\u5011\u7684\u8a2d\u7f6e\u7b26\u5408\u60a8\u7684\u9700\u6c42\u3002<\/p>\n<h3 id=\"4-%e6%9b%b4%e6%96%b0%e6%95%b8%e6%93%9a%e5%ba%ab%e7%89%88%e6%9c%ac-OIYoCwxHOz\">4. \u66f4\u65b0\u6578\u64da\u5eab\u7248\u672c<\/h3>\n<p>\u5982\u679c\u60a8\u4f7f\u7528\u7684Oracle\u7248\u672c\u5b58\u5728\u5df2\u77e5\u7684\u932f\u8aa4\uff0c\u8003\u616e\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\u3002Oracle\u5b98\u65b9\u7db2\u7ad9\u4e0a\u6703\u63d0\u4f9b\u6700\u65b0\u7248\u672c\u7684\u66f4\u65b0\u548c\u4fee\u88dc\u7a0b\u5e8f\u3002<\/p>\n<h2 id=\"%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86ora-27376%e9%8c%af%e8%aa%a4-OIYoCwxHOz\">\u9060\u7a0b\u8655\u7406ORA-27376\u932f\u8aa4<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u60a8\u53ef\u80fd\u7121\u6cd5\u76f4\u63a5\u8a2a\u554f\u6578\u64da\u5eab\u9032\u884c\u6545\u969c\u6392\u9664\u3002\u9019\u6642\uff0c\u9060\u7a0b\u8655\u7406\u6210\u70ba\u4e00\u500b\u6709\u6548\u7684\u89e3\u6c7a\u65b9\u6848\u3002\u60a8\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u65b9\u5f0f\u9032\u884c\u9060\u7a0b\u8655\u7406\uff1a<\/p>\n<ul>\n<li><strong>\u4f7f\u7528SSH\u9023\u63a5\uff1a<\/strong>\u5982\u679c\u60a8\u7684\u6578\u64da\u5eab\u904b\u884c\u5728VPS\u4e0a\uff0c\u60a8\u53ef\u4ee5\u901a\u904eSSH\u9023\u63a5\u5230\u4f3a\u670d\u5668\uff0c\u7136\u5f8c\u57f7\u884c\u4e0a\u8ff0SQL\u67e5\u8a62\u548c\u66f4\u65b0\u64cd\u4f5c\u3002<\/li>\n<li><strong>\u4f7f\u7528\u9060\u7a0b\u684c\u9762\u5de5\u5177\uff1a<\/strong>\u5982\u679c\u60a8\u7684\u4f3a\u670d\u5668\u652f\u6301\u9060\u7a0b\u684c\u9762\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u76f8\u95dc\u5de5\u5177\u9032\u884c\u9023\u63a5\uff0c\u4e26\u9032\u884c\u6545\u969c\u6392\u9664\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-OIYoCwxHOz\">\u7e3d\u7d50<\/h2>\n<p>ORA-27376\u932f\u8aa4\u901a\u5e38\u662f\u7531\u65bc\u4e8b\u4ef6\u689d\u4ef6\u70baNULL\u5f15\u8d77\u7684\uff0c\u9019\u53ef\u80fd\u662f\u7531\u65bc\u4f5c\u696d\u5b9a\u7fa9\u4e0d\u5b8c\u6574\u3001\u8abf\u5ea6\u5668\u914d\u7f6e\u554f\u984c\u6216\u6578\u64da\u5eab\u7248\u672c\u554f\u984c\u3002\u901a\u904e\u6aa2\u67e5\u4f5c\u696d\u5b9a\u7fa9\u3001\u66f4\u65b0\u4f5c\u696d\u3001\u6aa2\u67e5\u8abf\u5ea6\u5668\u914d\u7f6e\u4ee5\u53ca\u5fc5\u8981\u6642\u66f4\u65b0\u6578\u64da\u5eab\u7248\u672c\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u4fee\u5fa9\u6b64\u932f\u8aa4\u3002\u6b64\u5916\uff0c\u9060\u7a0b\u8655\u7406\u4e5f\u70ba\u7121\u6cd5\u76f4\u63a5\u8a2a\u554f\u6578\u64da\u5eab\u7684\u60c5\u6cc1\u63d0\u4f9b\u4e86\u4fbf\u5229\u3002<\/p>\n<p>\u5982\u679c\u60a8\u9700\u8981\u66f4\u591a\u6709\u95dc<em><a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a><\/em>\u548c<em><a href=\"https:\/\/server.hk\">\u4f3a\u670d\u5668<\/a><\/em>\u7684\u8cc7\u8a0a\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u7372\u53d6\u66f4\u591a\u8a73\u7d30\u8cc7\u6599\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to troubleshoot and resolve the ORA-27376 error in Oracle, addressing the &#8220;event condition cannot be NULL&#8221; issue 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-90382","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90382","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=90382"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90382\/revisions"}],"predecessor-version":[{"id":90383,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90382\/revisions\/90383"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=90382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=90382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=90382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}