{"id":89366,"date":"2024-10-18T11:18:20","date_gmt":"2024-10-18T03:18:20","guid":{"rendered":"https:\/\/server.hk\/cnblog\/89366\/"},"modified":"2024-10-18T11:18:20","modified_gmt":"2024-10-18T03:18:20","slug":"ora-25426-%e9%81%a0%e7%a8%8b%e5%af%a6%e4%be%8b%e4%b8%8d%e6%94%af%e6%8c%81%e5%85%b1%e4%ba%ab%e6%95%b8%e6%93%9a%e5%ba%ab%e9%8f%88%e6%8e%a5-oracle-%e5%a0%b1%e9%8c%af-%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/89366\/","title":{"rendered":"ORA-25426: \u9060\u7a0b\u5be6\u4f8b\u4e0d\u652f\u6301\u5171\u4eab\u6578\u64da\u5eab\u93c8\u63a5 ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-25426-%e9%81%a0%e7%a8%8b%e5%af%a6%e4%be%8b%e4%b8%8d%e6%94%af%e6%8c%81%e5%85%b1%e4%ba%ab%e6%95%b8%e6%93%9a%e5%ba%ab%e9%8f%88%e6%8e%a5-oracle-%e5%a0%b1%e9%8c%af-%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9-GNlnYeRptr\">ORA-25426: \u9060\u7a0b\u5be6\u4f8b\u4e0d\u652f\u6301\u5171\u4eab\u6578\u64da\u5eab\u93c8\u63a5 ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528 Oracle \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\u662f <code>ORA-25426<\/code>\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u51fa\u73fe\u5728\u5617\u8a66\u5efa\u7acb\u9060\u7a0b\u6578\u64da\u5eab\u9023\u63a5\u6642\uff0c\u4e26\u4e14\u63d0\u793a\u201c\u9060\u7a0b\u5be6\u4f8b\u4e0d\u652f\u6301\u5171\u4eab\u6578\u64da\u5eab\u93c8\u63a5\u201d\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u8a72\u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u89e3\u6c7a\u65b9\u6848\u3002<\/p>\n<h2 id=\"%e9%8c%af%e8%aa%a4%e5%8e%9f%e5%9b%a0-GNlnYeRptr\">\u932f\u8aa4\u539f\u56e0<\/h2>\n<p><code>ORA-25426<\/code> \u932f\u8aa4\u901a\u5e38\u767c\u751f\u5728\u4ee5\u4e0b\u60c5\u6cc1\uff1a<\/p>\n<ul>\n<li>\u9060\u7a0b\u6578\u64da\u5eab\u672a\u555f\u7528\u5171\u4eab\u6578\u64da\u5eab\u93c8\u63a5\u529f\u80fd\u3002<\/li>\n<li>\u6578\u64da\u5eab\u7684\u7248\u672c\u4e0d\u652f\u6301\u5171\u4eab\u9023\u63a5\u3002<\/li>\n<li>\u7db2\u7d61\u914d\u7f6e\u554f\u984c\uff0c\u5c0e\u81f4\u7121\u6cd5\u6b63\u78ba\u9023\u63a5\u5230\u9060\u7a0b\u6578\u64da\u5eab\u3002<\/li>\n<li>Oracle Net \u914d\u7f6e\u4e0d\u6b63\u78ba\uff0c\u7279\u5225\u662f <code>tnsnames.ora<\/code> \u6587\u4ef6\u4e2d\u7684\u8a2d\u7f6e\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%bd%b1%e9%9f%bf-GNlnYeRptr\">\u5f71\u97ff<\/h2>\n<p>\u7576\u51fa\u73fe <code>ORA-25426<\/code> \u932f\u8aa4\u6642\uff0c\u61c9\u7528\u7a0b\u5e8f\u5c07\u7121\u6cd5\u8a2a\u554f\u9060\u7a0b\u6578\u64da\u5eab\uff0c\u9019\u53ef\u80fd\u6703\u5c0e\u81f4\u696d\u52d9\u6d41\u7a0b\u4e2d\u65b7\uff0c\u5f71\u97ff\u6578\u64da\u7684\u5be6\u6642\u8a2a\u554f\u548c\u8655\u7406\u3002\u9019\u5c0d\u65bc\u4f9d\u8cf4\u65bc\u6578\u64da\u5eab\u7684\u61c9\u7528\u7a0b\u5e8f\u4f86\u8aaa\uff0c\u53ef\u80fd\u6703\u9020\u6210\u56b4\u91cd\u7684\u5f8c\u679c\u3002<\/p>\n<h2 id=\"%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e6%ad%a5%e9%a9%9f-GNlnYeRptr\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u8981\u89e3\u6c7a <code>ORA-25426<\/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%e9%81%a0%e7%a8%8b%e6%95%b8%e6%93%9a%e5%ba%ab%e8%a8%ad%e7%bd%ae-GNlnYeRptr\">1. \u6aa2\u67e5\u9060\u7a0b\u6578\u64da\u5eab\u8a2d\u7f6e<\/h3>\n<p>\u9996\u5148\uff0c\u78ba\u4fdd\u9060\u7a0b\u6578\u64da\u5eab\u5df2\u555f\u7528\u5171\u4eab\u6578\u64da\u5eab\u93c8\u63a5\u529f\u80fd\u3002\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b SQL \u67e5\u8a62\u4f86\u6aa2\u67e5\uff1a<\/p>\n<pre><code>SELECT * FROM v$database_link;<\/code><\/pre>\n<p>\u5982\u679c\u6c92\u6709\u8fd4\u56de\u4efb\u4f55\u7d50\u679c\uff0c\u5247\u8868\u793a\u9060\u7a0b\u6578\u64da\u5eab\u672a\u8a2d\u7f6e\u5171\u4eab\u93c8\u63a5\u3002<\/p>\n<h3 id=\"2-%e6%aa%a2%e6%9f%a5-oracle-%e7%89%88%e6%9c%ac-GNlnYeRptr\">2. \u6aa2\u67e5 Oracle \u7248\u672c<\/h3>\n<p>\u78ba\u4fdd\u4f7f\u7528\u7684 Oracle \u7248\u672c\u652f\u6301\u5171\u4eab\u6578\u64da\u5eab\u93c8\u63a5\u3002\u67d0\u4e9b\u820a\u7248\u672c\u53ef\u80fd\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5efa\u8b70\u5347\u7d1a\u5230\u6700\u65b0\u7248\u672c\u3002<\/p>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5%e7%b6%b2%e7%b5%a1%e9%85%8d%e7%bd%ae-GNlnYeRptr\">3. \u6aa2\u67e5\u7db2\u7d61\u914d\u7f6e<\/h3>\n<p>\u6aa2\u67e5\u7db2\u7d61\u9023\u63a5\u662f\u5426\u6b63\u5e38\u3002\u53ef\u4ee5\u4f7f\u7528 <code>tnsping<\/code> \u547d\u4ee4\u4f86\u6e2c\u8a66\u9023\u63a5\uff1a<\/p>\n<pre><code>tnsping your_remote_db<\/code><\/pre>\n<p>\u5982\u679c\u7121\u6cd5\u9023\u63a5\uff0c\u5247\u9700\u8981\u6aa2\u67e5\u9632\u706b\u7246\u8a2d\u7f6e\u548c\u7db2\u7d61\u8def\u7531\u3002<\/p>\n<h3 id=\"4-%e6%aa%a2%e6%9f%a5-tns-%e9%85%8d%e7%bd%ae-GNlnYeRptr\">4. \u6aa2\u67e5 TNS \u914d\u7f6e<\/h3>\n<p>\u6aa2\u67e5 <code>tnsnames.ora<\/code> \u6587\u4ef6\u4e2d\u7684\u914d\u7f6e\uff0c\u78ba\u4fdd\u6240\u6709\u53c3\u6578\u6b63\u78ba\u7121\u8aa4\u3002\u4ee5\u4e0b\u662f\u4e00\u500b\u793a\u4f8b\u914d\u7f6e\uff1a<\/p>\n<pre><code>YOUR_REMOTE_DB =\n  (DESCRIPTION =\n    (ADDRESS = (PROTOCOL = TCP)(HOST = your_remote_host)(PORT = your_remote_port))\n    (CONNECT_DATA =\n      (SERVICE_NAME = your_service_name)\n    )\n  )<\/code><\/pre>\n<h3 id=\"5-%e9%87%8d%e6%96%b0%e5%95%9f%e5%8b%95%e6%95%b8%e6%93%9a%e5%ba%ab-GNlnYeRptr\">5. \u91cd\u65b0\u555f\u52d5\u6578\u64da\u5eab<\/h3>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u91cd\u65b0\u555f\u52d5\u9060\u7a0b\u6578\u64da\u5eab\u53ef\u80fd\u6703\u89e3\u6c7a\u554f\u984c\u3002\u9019\u53ef\u4ee5\u6e05\u9664\u4efb\u4f55\u66ab\u6642\u7684\u6545\u969c\u6216\u914d\u7f6e\u554f\u984c\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-GNlnYeRptr\">\u7e3d\u7d50<\/h2>\n<p>\u5728\u8655\u7406 <code>ORA-25426<\/code> \u932f\u8aa4\u6642\uff0c\u4e86\u89e3\u5176\u6839\u672c\u539f\u56e0\u548c\u89e3\u6c7a\u6b65\u9a5f\u81f3\u95dc\u91cd\u8981\u3002\u901a\u904e\u6aa2\u67e5\u9060\u7a0b\u6578\u64da\u5eab\u8a2d\u7f6e\u3001Oracle \u7248\u672c\u3001\u7db2\u7d61\u914d\u7f6e\u548c TNS \u914d\u7f6e\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u6392\u9664\u6545\u969c\uff0c\u6062\u5fa9\u6b63\u5e38\u7684\u6578\u64da\u5eab\u9023\u63a5\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u548c\u9ad8\u6548\u6578\u64da\u8655\u7406\u7684\u4f01\u696d\u4f86\u8aaa\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u6216 <a href=\"https:\/\/server.hk\">\u4e91\u670d\u52a1\u5668<\/a> \u89e3\u6c7a\u65b9\u6848\u4e5f\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u4ee5\u78ba\u4fdd\u6578\u64da\u7684\u5b89\u5168\u548c\u53ef\u7528\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-25426 \u932f\u8aa4\uff0c\u4e86\u89e3\u9060\u7a0b\u5be6\u4f8b\u4e0d\u652f\u6301\u5171\u4eab\u6578\u64da\u5eab\u93c8\u63a5\u7684\u539f\u56e0\u53ca\u6545\u969c\u4fee\u5fa9\u65b9\u6cd5\uff0c\u63d0\u5347 Oracle \u6578\u64da\u5eab\u6027\u80fd\u3002<\/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-89366","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/89366","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=89366"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/89366\/revisions"}],"predecessor-version":[{"id":89367,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/89366\/revisions\/89367"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=89366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=89366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=89366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}