Skip to content

Instantly share code, notes, and snippets.

@jeanne007
Last active April 25, 2024 06:10
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save jeanne007/ffe6db1b6d539544d634006d25aa32c3 to your computer and use it in GitHub Desktop.
Save jeanne007/ffe6db1b6d539544d634006d25aa32c3 to your computer and use it in GitHub Desktop.
How to install OCI8 in windows

How to install OCI8 in windows

Instantclient Version 12.2.0.1.0

Xampp
php 7.2.4
Windows 10

Step 1

Download OCI8 2.1.8 - 7.2 Thread Safe (TS) x86

Step 2

Extract the file to xampp\ext

Step 3

Add code to file xampp\php.ini

extension=php_oci8.dll

Step 4

Download the "Instant Client Package - Basic" for Windows from the OTN Instant Client page. http://www.oracle.com/technetwork/topics/winsoft-085727.html

Because PHP is 32 bit, use the 32 bit version of Instant Client. (http://www.oracle.com/technetwork/articles/technote-php-instant-084410.html)

Instant Client Package - Basic Version 12.2.0.1.0

Step 5

Extract the Instant Client folder to C:\instantclient_12_2

Step 6

Edit the Windows PATH environment setting and add this path

C:\instantclient_12_2

Step 7

Restart

@zxygel
Copy link

zxygel commented Oct 31, 2019

Hi! I followed all the steps but the errors still there. - yajra/laravel-oci8 v6.0.2 requires ext-oci8 >=2.0.0 -> the requested PHP extension oci8 is missing from your system.

@mrtnsrgr
Copy link

mrtnsrgr commented Jan 6, 2020

you have solution ? i still error same you

@eteisman
Copy link

Check you php.ini file. For me the problem was that I edited the wrong php.ini file.

@dipu157
Copy link

dipu157 commented Oct 12, 2021

is the process same for php 7.4 and php 8.0 ????

@lPatricio
Copy link

with php 8 is the same?

@lunainfotech
Copy link

Yes its working with php8 and Laravel 9 too.

@din2011
Copy link

din2011 commented Oct 8, 2023

i followed for IIS but still not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment