M
M
Maxim Barulin2016-10-05 19:33:29
PHP
Maxim Barulin, 2016-10-05 19:33:29

How to connect from php to different Oracle versions (11 and 9)?

Hello!
There is a need to connect to two different versions of oracle - 9 and 11.
Initially, everything is configured for version 11 and works fine. Installed instantclient_12_1 and required environment variables.
Then there was a necessity to be connected to the 9th version. And then the problems began, since these versions are not compatible with each other and the 12th client refuses to connect to the 9th version of the database.

SQLSTATE[HY000]: OCISessionBegin: ORA-03134: Connections to this server version are no longer supported. (ext\pdo_oci\oci_driver.c:686)


Installed a separate php, connected another version of the library
extension=php_oci8.dll
;extension=php_oci8_12c.dll ;instead of this one
:extension=php_oci8_11g.dll ;does not work with this one either Installed

11.2 Instant Client added it to the Path

In phpinfo only the Oracle Compile- version changes time Instant Client Version 10.2, 11.2
The version of Oracle Run-time Client Library Version 12.1.0.2.0 remains the same

Can I somehow connect to two such versions of oracle?

PS: for complete happiness, all this works on ms server 2008r2 under iis

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Barulin, 2016-10-06
@Slavenin999

hmm ... given the current realities and the end of support for version 9 in 2010, it’s no longer possible ....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question