When pdo is connected to oracle, an error is reported. it has been developed on its own pc and is now transferred to the server. After the program is copied to the server and runs, an error occurs when the pdo object is created, and the cocould not find driver is reported. After checking that php. ini can be opened, I even admitted my pc to the server. Then I checked phpinfo. my pc's pdo driver has enabled oci, but I didn't have it on the server. I forgot what else to do .. Hope you can prompt me...
Reply to discussion (solution)
Install the oracle client
Additionally, oracle is not installed on the server. Is it possible to install a client?
No matter where the oracle server is located, you must install a client.
Where is your oracle? On your PC?
Don't shut down?
No matter where the oracle server is located, you must install a client.
Where is your oracle? On your PC?
Don't shut down?
Well .. Accessing the client. My oracle is on my pc. what does it mean to shut down .... Close normally...
Install the oracle client
Eldest brother, can I have instantclient_11_2 on hand? How can this problem be used? I just referenced its folder when using plsql.
According to my pc, I copied the dll files starting with three o under instantclient_11_2 to apache/bin. now I can see oci in phpinfo-> pdodrivers, prompt for TNS no listener 12541 error
Oracle is on your pc, and application is on the server.
After you shut down the pc, can Applications on the server still work?
Instantclient_11_2 is the client installer? Run it all the way to confirm it.
The file cannot be copied as you do, because it is related to the registry.
TNS no listener 12541 indicates that the listener is not started.
You do not have any oracle servers. how do you listen?
I don't know where oracle comes from. now the oracle major account can easily download the CD. There is everything in it.
Oracle is on your pc, and application is on the server.
After you shut down the pc, can Applications on the server still work?
Instantclient_11_2 is the client installer? Run it all the way to confirm it.
The file cannot be copied as you do, because it is related to the registry.
TNS no listener 12541 indicates that the listener is not started.
You do not have any oracle servers. how do you listen?
I don't know where oracle comes from. now the oracle major account can easily download the CD. There is everything in it.
The pc is not closed, and both of them are open. I use this program once instead of hanging it all the time. The oracle client is also installed, and the prompt is the same. I can run this program locally on the pc. the pc is installed with oracle11g + instantclient_11_2 + plsql, which is from the official website. So annoying, it took a long time...