{"id":90972,"date":"2024-10-18T17:15:18","date_gmt":"2024-10-18T09:15:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/90972\/"},"modified":"2024-10-18T17:15:19","modified_gmt":"2024-10-18T09:15:19","slug":"ora-29263-http-protocol-error-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\/90972\/","title":{"rendered":"ORA-29263: HTTP protocol error ORACLE\u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-29263-http-protocol-error-%e7%9a%84%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e8%88%87%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86-RgpsrErYTk\">ORA-29263: HTTP Protocol Error \u7684\u6545\u969c\u4fee\u5fa9\u8207\u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528 Oracle \u6578\u64da\u5eab\u9032\u884c\u7db2\u7d61\u8acb\u6c42\u6642\uff0c\u958b\u767c\u8005\u53ef\u80fd\u6703\u9047\u5230\u932f\u8aa4\u4ee3\u78bc <strong>ORA-29263<\/strong>\uff0c\u9019\u662f\u4e00\u500b HTTP \u5354\u8b70\u932f\u8aa4\uff0c\u901a\u5e38\u8868\u793a\u5728\u9032\u884c HTTP \u8acb\u6c42\u6642\u51fa\u73fe\u4e86\u554f\u984c\u3002\u9019\u7bc7\u6587\u7ae0\u5c07\u6df1\u5165\u63a2\u8a0e\u6b64\u932f\u8aa4\u7684\u539f\u56e0\u3001\u89e3\u6c7a\u65b9\u6848\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u9060\u7a0b\u8655\u7406\u3002<\/p>\n<h2 id=\"ora-29263-%e9%8c%af%e8%aa%a4%e7%9a%84%e5%8e%9f%e5%9b%a0-RgpsrErYTk\">ORA-29263 \u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<p>ORA-29263 \u932f\u8aa4\u901a\u5e38\u767c\u751f\u5728\u4f7f\u7528 Oracle \u7684 UTL_HTTP \u5305\u9032\u884c HTTP \u8acb\u6c42\u6642\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u7684\u539f\u56e0\uff1a<\/p>\n<ul>\n<li><strong>\u7db2\u7d61\u9023\u63a5\u554f\u984c\uff1a<\/strong>\u5982\u679c Oracle \u6578\u64da\u5eab\u7121\u6cd5\u9023\u63a5\u5230\u76ee\u6a19 URL\uff0c\u5247\u6703\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002\u9019\u53ef\u80fd\u662f\u7531\u65bc\u9632\u706b\u7246\u8a2d\u7f6e\u3001\u7db2\u7d61\u4e2d\u65b7\u6216 DNS \u914d\u7f6e\u932f\u8aa4\u3002<\/li>\n<li><strong>\u7121\u6548\u7684 URL\uff1a<\/strong>\u8acb\u6c42\u7684 URL \u53ef\u80fd\u4e0d\u6b63\u78ba\u6216\u7121\u6cd5\u8a2a\u554f\uff0c\u9019\u6703\u5c0e\u81f4 HTTP \u8acb\u6c42\u5931\u6557\u3002<\/li>\n<li><strong>HTTP \u5354\u8b70\u7248\u672c\u4e0d\u5339\u914d\uff1a<\/strong>\u67d0\u4e9b\u670d\u52d9\u5668\u53ef\u80fd\u4e0d\u652f\u6301\u7279\u5b9a\u7684 HTTP \u5354\u8b70\u7248\u672c\uff0c\u9019\u6703\u5c0e\u81f4\u8acb\u6c42\u5931\u6557\u3002<\/li>\n<li><strong>SSL\/TLS \u554f\u984c\uff1a<\/strong>\u5982\u679c\u4f7f\u7528 HTTPS \u5354\u8b70\uff0cSSL\/TLS \u914d\u7f6e\u4e0d\u6b63\u78ba\u4e5f\u6703\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002<\/li>\n<\/ul>\n<h2 id=\"%e8%a7%a3%e6%b1%ba-ora-29263-%e9%8c%af%e8%aa%a4%e7%9a%84%e6%96%b9%e6%b3%95-RgpsrErYTk\">\u89e3\u6c7a ORA-29263 \u932f\u8aa4\u7684\u65b9\u6cd5<\/h2>\n<p>\u8981\u89e3\u6c7a ORA-29263 \u932f\u8aa4\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u6392\u67e5\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e7%b6%b2%e7%b5%a1%e9%80%a3%e6%8e%a5-RgpsrErYTk\">1. \u6aa2\u67e5\u7db2\u7d61\u9023\u63a5<\/h3>\n<p>\u9996\u5148\uff0c\u78ba\u4fdd Oracle \u6578\u64da\u5eab\u80fd\u5920\u8a2a\u554f\u5916\u90e8\u7db2\u7d61\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b SQL \u67e5\u8a62\u4f86\u6e2c\u8a66\u9023\u63a5\uff1a<\/p>\n<pre><code>DECLARE\n    l_http_request UTL_HTTP.req;\n    l_http_response UTL_HTTP.resp;\nBEGIN\n    l_http_request := UTL_HTTP.begin_request('http:\/\/www.example.com');\n    l_http_response := UTL_HTTP.get_response(l_http_request);\n    UTL_HTTP.end_response(l_http_response);\n    DBMS_OUTPUT.put_line('Connection successful');\nEXCEPTION\n    WHEN OTHERS THEN\n        DBMS_OUTPUT.put_line('Error: ' || SQLERRM);\nEND;<\/code><\/pre>\n<h3 id=\"2-%e9%a9%97%e8%ad%89-url-%e7%9a%84%e6%9c%89%e6%95%88%e6%80%a7-RgpsrErYTk\">2. \u9a57\u8b49 URL \u7684\u6709\u6548\u6027<\/h3>\n<p>\u78ba\u4fdd\u8acb\u6c42\u7684 URL \u662f\u6b63\u78ba\u7684\uff0c\u4e26\u4e14\u53ef\u4ee5\u5728\u700f\u89bd\u5668\u4e2d\u6b63\u5e38\u8a2a\u554f\u3002\u5982\u679c URL \u7121\u6cd5\u8a2a\u554f\uff0c\u5247\u9700\u8981\u4fee\u6b63\u5b83\u3002<\/p>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5-http-%e5%8d%94%e8%ad%b0%e7%89%88%e6%9c%ac-RgpsrErYTk\">3. \u6aa2\u67e5 HTTP \u5354\u8b70\u7248\u672c<\/h3>\n<p>\u5982\u679c\u670d\u52d9\u5668\u4e0d\u652f\u6301\u67d0\u500b HTTP \u5354\u8b70\u7248\u672c\uff0c\u5247\u9700\u8981\u8abf\u6574\u8acb\u6c42\u7684\u5354\u8b70\u7248\u672c\u3002\u53ef\u4ee5\u5728 UTL_HTTP \u4e2d\u6307\u5b9a\u5354\u8b70\u7248\u672c\u3002<\/p>\n<h3 id=\"4-ssl-tls-%e9%85%8d%e7%bd%ae-RgpsrErYTk\">4. SSL\/TLS \u914d\u7f6e<\/h3>\n<p>\u5982\u679c\u4f7f\u7528 HTTPS\uff0c\u8acb\u78ba\u4fdd SSL\/TLS \u914d\u7f6e\u6b63\u78ba\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u78bc\u4f86\u8a2d\u7f6e SSL \u53c3\u6578\uff1a<\/p>\n<pre><code>UTL_HTTP.set_proxy(NULL);\nUTL_HTTP.set_wallet('file:\/path\/to\/wallet', 'wallet_password');<\/code><\/pre>\n<h2 id=\"%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86-ora-29263-%e9%8c%af%e8%aa%a4-RgpsrErYTk\">\u9060\u7a0b\u8655\u7406 ORA-29263 \u932f\u8aa4<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u9060\u7a0b\u8655\u7406 ORA-29263 \u932f\u8aa4\u3002\u9019\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\uff1a<\/p>\n<ul>\n<li><strong>\u4f7f\u7528\u9060\u7a0b\u684c\u9762\u5de5\u5177\uff1a<\/strong>\u53ef\u4ee5\u4f7f\u7528\u9060\u7a0b\u684c\u9762\u5de5\u5177\u9023\u63a5\u5230 Oracle \u6578\u64da\u5eab\u6240\u5728\u7684\u4f3a\u670d\u5668\uff0c\u9032\u884c\u76f4\u63a5\u7684\u6545\u969c\u6392\u67e5\u3002<\/li>\n<li><strong>\u65e5\u8a8c\u6a94\u6848\u5206\u6790\uff1a<\/strong>\u6aa2\u67e5 Oracle \u7684\u65e5\u8a8c\u6a94\u6848\uff0c\u5c0b\u627e\u8207 HTTP \u8acb\u6c42\u76f8\u95dc\u7684\u932f\u8aa4\u4fe1\u606f\uff0c\u9019\u6709\u52a9\u65bc\u5b9a\u4f4d\u554f\u984c\u3002<\/li>\n<li><strong>\u806f\u7e6b\u7db2\u7d61\u7ba1\u7406\u54e1\uff1a<\/strong>\u5982\u679c\u61f7\u7591\u662f\u7db2\u7d61\u554f\u984c\uff0c\u61c9\u806f\u7e6b\u7db2\u7d61\u7ba1\u7406\u54e1\u9032\u884c\u9032\u4e00\u6b65\u7684\u8a3a\u65b7\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-RgpsrErYTk\">\u7e3d\u7d50<\/h2>\n<p>ORA-29263 \u932f\u8aa4\u662f\u4e00\u500b\u5e38\u898b\u7684 HTTP \u5354\u8b70\u932f\u8aa4\uff0c\u901a\u5e38\u7531\u65bc\u7db2\u7d61\u9023\u63a5\u554f\u984c\u3001\u7121\u6548\u7684 URL \u6216 SSL\/TLS \u914d\u7f6e\u4e0d\u7576\u5f15\u8d77\u3002\u901a\u904e\u6aa2\u67e5\u7db2\u7d61\u9023\u63a5\u3001\u9a57\u8b49 URL\u3001\u8abf\u6574 HTTP \u5354\u8b70\u7248\u672c\u4ee5\u53ca\u6b63\u78ba\u914d\u7f6e SSL\/TLS\uff0c\u53ef\u4ee5\u6709\u6548\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5728\u8655\u7406\u6b64\u932f\u8aa4\u6642\uff0c\u9060\u7a0b\u684c\u9762\u5de5\u5177\u548c\u65e5\u8a8c\u6a94\u6848\u5206\u6790\u4e5f\u662f\u975e\u5e38\u6709\u7528\u7684\u624b\u6bb5\u3002<\/p>\n<p>\u5982\u679c\u60a8\u9700\u8981\u7a69\u5b9a\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2f VPS<\/a> \u670d\u52d9\u4f86\u652f\u6301\u60a8\u7684 Oracle \u6578\u64da\u5eab\u61c9\u7528\uff0c\u8acb\u8003\u616e\u6211\u5011\u7684\u89e3\u6c7a\u65b9\u6848\u3002\u6211\u5011\u63d0\u4f9b\u9ad8\u6548\u80fd\u7684 <a href=\"https:\/\/server.hk\">\u4e91\u4f3a\u670d\u5668<\/a>\uff0c\u4ee5\u6eff\u8db3\u60a8\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to troubleshoot and resolve ORA-29263: HTTP protocol error in Oracle, including remote handling techniques for effective 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-90972","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90972","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=90972"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90972\/revisions"}],"predecessor-version":[{"id":90973,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90972\/revisions\/90973"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=90972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=90972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=90972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}