Skip to content

Instructions for connecting the Oracle 10g database to PHP with the PDO extension, though this instruction is valid for later Oracle database versions as well.

Notifications You must be signed in to change notification settings

nobir/ConntectOracle10gOrLaterToPhpWithThePdoExtension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Requirements

  • XAMPP
  • Oracle 10g XE or later
  • Oracle Instance Client for 10g or later

Installation

  • Install all the software mentioned in the #Requirements section.

  • Copy and paste the oracle (which I have provided in this repository) folder to the C:\ drive.

  • Set the environment variable C:\oracle\instantclient_10_2\

  • Now open this C:\xampp\php\php.ini file and enable extension=pdo_oci by removing ;.

    Example: ;extension=pdo_oci to extension=pdo_oci

  • Start the XAMPP software and run the Apache server.

  • I have also provided a test.php file. Please copy it into this C:\xampp\htdocs\ folder.

  • Open it in your text editor and change your $db_password, which were provided by you during the Oracle database installation.

  • For testing, in your browser, go to this URL: https://localhost/test.php. this will show you all the users on the oracle database.

Note: If you want to download other Oracle instance clients depending on which version of Oracle database you have used, you can find them at the below link.

About

Instructions for connecting the Oracle 10g database to PHP with the PDO extension, though this instruction is valid for later Oracle database versions as well.

Topics

Resources

Stars

Watchers

Forks

Languages