Connect php to oracle

Source: Internet
Author: User
Php connects to oracle in the oracle linux redhat5.5 operating system using pdo_oci. But the following error is reported. please help me. please be patient !!

SQLSTATE [HY000]: OCINlsCharSetNameToId: unknown character set name (/software/php-5.6.16/ext/pdo_oci/oci_driver.c: 610) SQLSTATE [HY000]: OCINlsCharSetNameToId: unknown character set name (/software/php-5.6.16/ext/fig/oci_driver.c: 610)


Reply to discussion (solution)

You have not installed the Oracle client.

The computer is also an oracle Server. oracle 11g R2 has been installed on this computer.

Re-apply: The Oracle client and server are installed separately.
Search your machine for the oci. dll file

I am a linux operating system, and there is no such thing as oci. dll. When installing the oracle service software, isn't the client installed with it? there is no problem connecting to the service machine. the connection method is sqlplus system/oracle @ orcl.

That is, oci. so, which has been separately installed since oracle 10.
Check whether the client is correctly installed. It won't go crazy.

OCINlsCharSetNameToId: unknown character set name
It's not a problem when you install the client, it's a problem with your connection string.

Sorry, no worries. Then let me install the client again. thank you!

That is, oci. so, which has been separately installed since oracle 10.
Check whether the client is correctly installed. It won't go crazy.

OCINlsCharSetNameToId: unknown character set name
It's not a problem when you install the client, it's a problem with your connection string.




The oracle11g client is also installed, and the error is the same.

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.