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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.