An error is reported when pdo is connected to oracle.

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.