Skip navigation

The first time we install xampp for windows, by default, the only active database connection is MySQL. Therefore, if user wants to activate connection to oracle database, user needs to set it up first. How to activate/set up oracle database connection in xampp for windows? Here are some things i did to successfully activate oracle connection:

  1. To check whether your oracle setting has been activated or not, go to phpinfo, look for string oci8. If string found it indicate that connection to oracle is available, otherwise to activate connection do the following steps:
  2. Open all php.ini files in xampp folder (or you can open only the currently used php.ini file by looking at the phpinfo), then make the following necessary changes:
  3. Find string extension=php_oci8.dll. You’ll find there’s a semicolon ‘;‘ ahead of the string.
  4. Remove the semicolon to activate the oracle extension.
  5. Save the php.ini file.
  6. Install oracle client. Simply just install it on your computer, there is no settings required. You can download it from this oracle site.
  7. Activate or restart xampp.
  8. To make sure that connection to oracle database has successfully activated, go to phpinfo. Find string: oci8. If founded, then now xampp can communicate with oracle database.

Works for me :)

Advertisement

12 Comments

  1. Thanks!
    This post has been very useful: now I can work with Oracle ^__^

  2. you’re welcome, thank you for leaving comment :)

  3. Hi Frnd
    im using xampp latest version oracle claint 9i, & oracle9i database in the remote server in a lan. I’ve made the settings as u told, but i couldn,t c oci details in phpinfo().
    pls do the needful

  4. Lots of of people talk about this issue but you wrote down some true words.

    • Simple words. I like your comment, thanks there :D

  5. Thanks!

    I have to delete oracle 8.05 client (from registry) and it works.

    Bye!

  6. Please help me configuring XAMPP because Im a new user of ORACLE,,,,can you send the full details i want to downlaod or to install

    • go to this site .html to find out the latest version of xampp development. The contents are from apachefriends who maintain the xampp development

      it gives complete direction of how to install xampp and also provides the download links.

      Then to configure the oracle,you may follow the steps in here.

      Good luck :D

  7. If I had a quarter for each time I came to solvetheproblems.wordpress.com.. Incredible post.

  8. This didn’t work for me at first. Later I went back into php.ini, found the [OCI8] section, and uncommented the following lines:

    oci8.max_persistent = -1

    oci8.persistent_timeout = -1

    oci8.ping_interval = 60

    I have no idea if these really helped or if I just needed to shut down my machine and completely restart (this also happened), but OCI8 showed up in my phpinfo after these changes.

    • in my case, i just restart the xampp and then i can find the OCI8 string.

      Perhaps you’re using other version of xampp and requires other setting :)

  9. Thanks a lot for this, I wish everyone would note the solution to their everyday work problems onto a blog.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.