Answer the question
In order to leave comments, you need to log in
How to connect Oracle to Yii2 and not hang yourself?
I'm getting an error when using oracle db
Caused by: PDOException
could not find driver
extension = oci8_12c
extension = pdo_oci
Answer the question
In order to leave comments, you need to log in
I figured out the connection, it remains to teach him to see TNS-ki. But for people who will face a similar problem, I will sign:
1) You should have only 1 oci driver in global variables, and not two as I have above in the screenshots (1 driver from Oracle Client, another from instant client). If you have the oracle client installed, you don't need to install any instant client.
2) Give your server access to global Windows variables.
3) In php.ini, uncomment Oci (You should have 1 axis uncommented in total)
4) Catch the following error related to TNS) (Fixed, indicated the correct format for accessing TNS https://www.php.net/manual/en/ ref.pdo-oci.connecti...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question