How to connect to Oracle9i and Oracle 10/11g simultaneously in PHP
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.
精彩评论