开发者

How to connect to Oracle9i and Oracle 10/11g simultaneously in PHP

开发者 https://www.devze.com 2023-03-05 22:18 出处:网络
for开发者_运维问答 my project i need to connect to two different oracle DB located in two different servers.

for开发者_运维问答 my project i need to connect to two different oracle DB located in two different servers. Which oci should i use in order for me to able to connect to both servers simultaneously in PHP.

Thanks.


Just open two connection handles?

$conn1 = oci_connect('username', 'password', '9i-connect-string');
$conn2 = oci_connect('username2', 'password', '10g-connect-string');


Use the newest client, in this case the 11gR2 client. This connects to all your listed versions without problems. You connect using SQL*net.

0

精彩评论

暂无评论...
验证码 换一张
取 消