Results 1 to 4 of 4
  1. #1
    Join Date
    May 2002
    Posts
    7

    Unanswered: PHP and oci8 Oracle problem

    Hi everyone,

    Pls help me to solve this problem. I'm trying to do a simple connection to oracle db using oci8. But I recieve this error and don't know how to proceed.

    I get the code from an article - 'Simple Connection to Oracle' at http://www.thickbook.com/extra/php_oracle.phtml but I change the sql to fit my db.

    Error displyed:

    Warning: _oci_open_server: ORA-12560: TNS: protocol adapter error in c:\apache\htdocs\oci_php.php on line 4

    Couldn't logon.

    which means I was unable to connect to Oracle db.

    PLs help.

    Thank you in advance.

    Danny

  2. #2
    Join Date
    May 2002
    Posts
    7

    System Configuration

    Addtional to the message before, I'm using PHP 4.1.1, Apache 1.3.12, Oracle 9i all on platform Win98.

    Thanks again.

  3. #3
    Join Date
    Oct 2003
    Location
    Slovakia
    Posts
    482

    Re: System Configuration

    Originally posted by danny
    Addtional to the message before, I'm using PHP 4.1.1, Apache 1.3.12, Oracle 9i all on platform Win98.

    Thanks again.
    Do you have entry for your database in tnsnames.ora file?
    Oracle Listener is started?

  4. #4
    Join Date
    Oct 2003
    Posts
    2

    Re: PHP and oci8 Oracle problem


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •