{"id":93902,"date":"2024-10-19T17:52:20","date_gmt":"2024-10-19T09:52:20","guid":{"rendered":"https:\/\/server.hk\/cnblog\/93902\/"},"modified":"2024-10-19T17:52:20","modified_gmt":"2024-10-19T09:52:20","slug":"oracle-drcp%e8%88%87php%e7%9a%84%e4%b8%8d%e5%90%8c%e4%b9%8b%e8%99%95","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/93902\/","title":{"rendered":"Oracle DRCP\u8207PHP\u7684\u4e0d\u540c\u4e4b\u8655"},"content":{"rendered":"<h1 id=\"oracle-drcp%e8%88%87php%e7%9a%84%e4%b8%8d%e5%90%8c%e4%b9%8b%e8%99%95-RqJrihmdxN\">Oracle DRCP\u8207PHP\u7684\u4e0d\u540c\u4e4b\u8655<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u7db2\u7d61\u61c9\u7528\u958b\u767c\u4e2d\uff0c\u6578\u64da\u5eab\u7684\u6027\u80fd\u548c\u53ef\u64f4\u5c55\u6027\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002Oracle\u7684\u6578\u64da\u5eab\u9023\u63a5\u6c60\uff08DRCP\uff09\u548cPHP\u7684\u6578\u64da\u5eab\u9023\u63a5\u65b9\u5f0f\u5404\u6709\u5176\u7279\u9ede\u548c\u9069\u7528\u5834\u666f\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u9019\u5169\u8005\u4e4b\u9593\u7684\u4e0d\u540c\u4e4b\u8655\uff0c\u5e6b\u52a9\u958b\u767c\u8005\u66f4\u597d\u5730\u9078\u64c7\u5408\u9069\u7684\u6280\u8853\u65b9\u6848\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%aforacle-drcp%ef%bc%9f-RqJrihmdxN\">\u4ec0\u9ebc\u662fOracle DRCP\uff1f<\/h2>\n<p>Oracle\u7684\u6578\u64da\u5eab\u9023\u63a5\u6c60\uff08Database Resident Connection Pooling\uff0c\u7c21\u7a31DRCP\uff09\u662f\u4e00\u7a2e\u7528\u65bc\u7ba1\u7406\u6578\u64da\u5eab\u9023\u63a5\u7684\u6280\u8853\u3002\u5b83\u5141\u8a31\u591a\u500b\u61c9\u7528\u7a0b\u5e8f\u5171\u4eab\u4e00\u7d44\u6578\u64da\u5eab\u9023\u63a5\uff0c\u5f9e\u800c\u6e1b\u5c11\u9023\u63a5\u7684\u958b\u92b7\u548c\u5ef6\u9072\u3002DRCP\u7279\u5225\u9069\u5408\u65bc\u9700\u8981\u9ad8\u4e26\u767c\u7684\u74b0\u5883\uff0c\u56e0\u70ba\u5b83\u80fd\u5920\u52d5\u614b\u5730\u5206\u914d\u548c\u56de\u6536\u9023\u63a5\u3002<\/p>\n<h3 id=\"drcp%e7%9a%84%e5%84%aa%e5%8b%a2-RqJrihmdxN\">DRCP\u7684\u512a\u52e2<\/h3>\n<ul>\n<li><strong>\u6027\u80fd\u63d0\u5347\uff1a<\/strong>\u901a\u904e\u91cd\u7528\u9023\u63a5\uff0c\u6e1b\u5c11\u4e86\u6bcf\u6b21\u8acb\u6c42\u7684\u9023\u63a5\u5efa\u7acb\u6642\u9593\u3002<\/li>\n<li><strong>\u8cc7\u6e90\u7bc0\u7701\uff1a<\/strong>\u6e1b\u5c11\u4e86\u6578\u64da\u5eab\u7684\u9023\u63a5\u6578\u91cf\uff0c\u964d\u4f4e\u4e86\u8cc7\u6e90\u6d88\u8017\u3002<\/li>\n<li><strong>\u52d5\u614b\u8abf\u6574\uff1a<\/strong>\u6839\u64da\u5be6\u969b\u9700\u6c42\u52d5\u614b\u8abf\u6574\u9023\u63a5\u6578\u91cf\uff0c\u63d0\u5347\u4e86\u9748\u6d3b\u6027\u3002<\/li>\n<\/ul>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%afphp%e7%9a%84%e6%95%b8%e6%93%9a%e5%ba%ab%e9%80%a3%e6%8e%a5%ef%bc%9f-RqJrihmdxN\">\u4ec0\u9ebc\u662fPHP\u7684\u6578\u64da\u5eab\u9023\u63a5\uff1f<\/h2>\n<p>PHP\u662f\u4e00\u7a2e\u5ee3\u6cdb\u4f7f\u7528\u7684\u958b\u6e90\u8173\u672c\u8a9e\u8a00\uff0c\u901a\u5e38\u7528\u65bc\u7db2\u9801\u958b\u767c\u3002PHP\u63d0\u4f9b\u4e86\u591a\u7a2e\u65b9\u5f0f\u4f86\u9023\u63a5\u6578\u64da\u5eab\uff0c\u5305\u62ec\u4f7f\u7528PDO\uff08PHP Data Objects\uff09\u548cMySQLi\uff08MySQL Improved Extension\uff09\u3002\u9019\u4e9b\u9023\u63a5\u65b9\u5f0f\u901a\u5e38\u662f\u6bcf\u6b21\u8acb\u6c42\u90fd\u5efa\u7acb\u65b0\u7684\u9023\u63a5\uff0c\u6216\u8005\u4f7f\u7528\u6301\u4e45\u9023\u63a5\u3002<\/p>\n<h3 id=\"php%e6%95%b8%e6%93%9a%e5%ba%ab%e9%80%a3%e6%8e%a5%e7%9a%84%e7%89%b9%e9%bb%9e-RqJrihmdxN\">PHP\u6578\u64da\u5eab\u9023\u63a5\u7684\u7279\u9ede<\/h3>\n<ul>\n<li><strong>\u7c21\u55ae\u6613\u7528\uff1a<\/strong>PHP\u7684\u6578\u64da\u5eab\u9023\u63a5\u65b9\u5f0f\u76f8\u5c0d\u7c21\u55ae\uff0c\u9069\u5408\u5feb\u901f\u958b\u767c\u3002<\/li>\n<li><strong>\u9748\u6d3b\u6027\uff1a<\/strong>\u652f\u6301\u591a\u7a2e\u6578\u64da\u5eab\u7cfb\u7d71\uff0c\u5982MySQL\u3001PostgreSQL\u7b49\u3002<\/li>\n<li><strong>\u6301\u4e45\u9023\u63a5\uff1a<\/strong>\u53ef\u4ee5\u9078\u64c7\u4f7f\u7528\u6301\u4e45\u9023\u63a5\u4f86\u6e1b\u5c11\u9023\u63a5\u958b\u92b7\uff0c\u4f46\u53ef\u80fd\u6703\u5c0e\u81f4\u8cc7\u6e90\u6d6a\u8cbb\u3002<\/li>\n<\/ul>\n<h2 id=\"drcp%e8%88%87php%e6%95%b8%e6%93%9a%e5%ba%ab%e9%80%a3%e6%8e%a5%e7%9a%84%e6%af%94%e8%bc%83-RqJrihmdxN\">DRCP\u8207PHP\u6578\u64da\u5eab\u9023\u63a5\u7684\u6bd4\u8f03<\/h2>\n<p>\u5728\u9078\u64c7\u4f7f\u7528Oracle DRCP\u9084\u662fPHP\u7684\u6578\u64da\u5eab\u9023\u63a5\u6642\uff0c\u958b\u767c\u8005\u9700\u8981\u8003\u616e\u4ee5\u4e0b\u5e7e\u500b\u65b9\u9762\uff1a<\/p>\n<h3 id=\"1-%e6%80%a7%e8%83%bd-RqJrihmdxN\">1. \u6027\u80fd<\/h3>\n<p>DRCP\u5728\u9ad8\u4e26\u767c\u74b0\u5883\u4e0b\u8868\u73fe\u512a\u7570\uff0c\u56e0\u70ba\u5b83\u80fd\u5920\u6709\u6548\u5730\u7ba1\u7406\u548c\u91cd\u7528\u9023\u63a5\u3002\u800cPHP\u7684\u6578\u64da\u5eab\u9023\u63a5\u5728\u4f4e\u4e26\u767c\u60c5\u6cc1\u4e0b\u4e5f\u80fd\u5920\u6b63\u5e38\u904b\u884c\uff0c\u4f46\u5728\u9ad8\u4e26\u767c\u6642\u53ef\u80fd\u6703\u51fa\u73fe\u6027\u80fd\u74f6\u9838\u3002<\/p>\n<h3 id=\"2-%e8%b3%87%e6%ba%90%e7%ae%a1%e7%90%86-RqJrihmdxN\">2. \u8cc7\u6e90\u7ba1\u7406<\/h3>\n<p>DRCP\u80fd\u5920\u52d5\u614b\u8abf\u6574\u9023\u63a5\u6578\u91cf\uff0c\u5f9e\u800c\u66f4\u6709\u6548\u5730\u5229\u7528\u8cc7\u6e90\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0cPHP\u7684\u6301\u4e45\u9023\u63a5\u53ef\u80fd\u6703\u5c0e\u81f4\u8cc7\u6e90\u7684\u6d6a\u8cbb\uff0c\u7279\u5225\u662f\u5728\u9577\u6642\u9593\u4e0d\u6d3b\u52d5\u7684\u60c5\u6cc1\u4e0b\u3002<\/p>\n<h3 id=\"3-%e5%af%a6%e6%96%bd%e9%9b%a3%e5%ba%a6-RqJrihmdxN\">3. \u5be6\u65bd\u96e3\u5ea6<\/h3>\n<p>\u4f7f\u7528DRCP\u9700\u8981\u4e00\u5b9a\u7684\u914d\u7f6e\u548c\u7ba1\u7406\uff0c\u800cPHP\u7684\u6578\u64da\u5eab\u9023\u63a5\u76f8\u5c0d\u7c21\u55ae\uff0c\u958b\u767c\u8005\u53ef\u4ee5\u5feb\u901f\u4e0a\u624b\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-RqJrihmdxN\">\u7d50\u8ad6<\/h2>\n<p>\u7e3d\u7684\u4f86\u8aaa\uff0cOracle DRCP\u548cPHP\u7684\u6578\u64da\u5eab\u9023\u63a5\u5404\u6709\u5176\u512a\u7f3a\u9ede\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u6027\u80fd\u548c\u9ad8\u4e26\u767c\u7684\u61c9\u7528\uff0cDRCP\u662f\u4e00\u500b\u7406\u60f3\u7684\u9078\u64c7\uff1b\u800c\u5c0d\u65bc\u5c0f\u578b\u6216\u4e2d\u578b\u61c9\u7528\uff0cPHP\u7684\u6578\u64da\u5eab\u9023\u63a5\u5247\u63d0\u4f9b\u4e86\u66f4\u5927\u7684\u9748\u6d3b\u6027\u548c\u7c21\u4fbf\u6027\u3002\u958b\u767c\u8005\u61c9\u6839\u64da\u5177\u9ad4\u9700\u6c42\u9078\u64c7\u5408\u9069\u7684\u6280\u8853\u65b9\u6848\uff0c\u4ee5\u9054\u5230\u6700\u4f73\u7684\u6027\u80fd\u548c\u8cc7\u6e90\u5229\u7528\u7387\u3002<\/p>\n<p>\u5982\u9700\u4e86\u89e3\u66f4\u591a\u6709\u95dc\u65bc<code>VPS<\/code>\u3001<code>\u9999\u6e2fVPS<\/code>\u53ca\u5176\u4ed6<code>\u4f3a\u670d\u5668<\/code>\u89e3\u6c7a\u65b9\u6848\u7684\u4fe1\u606f\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9 <a href=\"https:\/\/server.hk\">Server.HK<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22Oracle DRCP\u8207PHP\u7684\u4e3b\u8981\u5340\u5225\uff0c\u4e86\u89e3\u5b83\u5011\u5728\u6578\u64da\u5eab\u9023\u63a5\u548c\u6027\u80fd\u512a\u5316\u65b9\u9762\u7684\u4e0d\u540c\u61c9\u7528\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-93902","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/93902","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=93902"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/93902\/revisions"}],"predecessor-version":[{"id":93903,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/93902\/revisions\/93903"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=93902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=93902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=93902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}