Installing Oracle Client and PHP extensions under Windows

Source: Internet
Author: User

First to complain, according to this play to spend my big half a day, all the way to the pit!

My computer is Win7 64-bit.

The first step

Open the php.ini and remove the semicolon from the front of the Extension=php_oci8_12c.dll Extension=php_pdo_oci.dll.

; Extension=php_ldap. dllextension=php_mbstring. dllextension=php_exif.dll as        It depends on Itextension=php_mysqli.  Dllextension=php_oci8_12c.dll use with    Oracle Database 12c Instant client;extension=php_ Openssl. dll;extension=php_pdo_firebird. dllextension=php_pdo_mysql. dllextension=php_pdo_oci.dll

Step Two

Go to http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html to download the client (note here to put 32w and 64w down)

Then extract to any of your directory, two are extracted, the file name to change the names of the same

Step Three

Configure the environment variables, this is 32w, Windows only recognize 32 bits (that let us under 64w what to do below will say, I put my post, you according to your own actual directory configuration)

A. Nls_lang = simplified Chinese_china. Zhs16gbk

B. oracle_home = D:\instantclient_12_2

C. tns_admin = D:\instantclient_12_2

D. PATH = D:\instantclient_12_2

Configure environment Variables Remember to restart your computer

Phpinfo

Fourth Step

I'm a navicat connected Oracle.

Connection information is filled in normally, sid what do not make mistakes on the line, and then connect error!

Resolve the error:

Navicat, tools, Options->oci

This must be noted to point to your 64w folder inside the Oci.dll (I was in this pit for a long time)

Installing Oracle Client and PHP extensions under Windows

Related Article

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.