Loading ...
Sorry, an error occurred while loading the content.

PHP Oracle connect problem

Expand Messages
  • Anestis Pavlidis
    Geia sas, prospatho na syndeso PHP me remote server tis Oracle. eho Apache 1.3 kai PHP 5.1.6 hrisimopoiontas to parakato kodika poy brika sto php.net: $tns =
    Message 1 of 2 , Aug 31, 2006
    • 0 Attachment
      Geia sas,

      prospatho na syndeso PHP me remote server tis Oracle.

      eho Apache 1.3 kai PHP 5.1.6

      hrisimopoiontas to parakato kodika poy brika sto php.net:

      $tns = "
      (DESCRIPTION =
      (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = yourip)(PORT = 1521))
      )
      (CONNECT_DATA =
      (SERVICE_NAME = orcl)
      )
      )
      ";
      $db_username = "youname";
      $db_password = "yourpassword";
      try{
      $conn = new PDO("oci:dbname=".$tns,$db_username,$db_password);
      }catch(PDOException $e){
      echo ($e->getMessage());
      }
      ?>

      pairno to eksis error:

      SQLSTATE[]: pdo_oci_handle_factory: OCI_INVALID_HANDLE (/Users/liyanage/svn/entropy/
      universalbuild/src/php-5.1.6/ext/pdo_oci/oci_driver.c:463)

      Ksereis kaneis poy ofeiletai?

      Yparxei periptosi na leipei kati sto topiko moy mixanima? opos px kapoios client i driver pou einai anagkaios? An nai poios, pos mporo na tsekaro an iparxei, ki an den yparxei pos ton vrisko kai ton egathisto?

      Eyharisto,
      Anestis


      Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail.
    • gfx3D
      Κοιτα στο link που παραθέτω, μήπως βρεις κάτι. http://forums.oracle.com/forums/message.jspa?messageID=1129000 ... From:
      Message 2 of 2 , Aug 31, 2006
      • 0 Attachment
        
        Κοιτα στο link που παραθέτω, μήπως βρεις κάτι.
         
         
         
        ----- Original Message -----
        Sent: Thursday, August 31, 2006 5:09 PM
        Subject: [php_greek] PHP Oracle connect problem

        Geia sas,

        prospatho na syndeso PHP me remote server tis Oracle.

        eho Apache 1.3 kai PHP 5.1.6

        hrisimopoiontas to parakato kodika poy brika sto php.net:

        $tns = "
        (DESCRIPTION =
        (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = yourip)(PORT = 1521))
        )
        (CONNECT_DATA =
        (SERVICE_NAME = orcl)
        )
        )
        ";
        $db_username = "youname";
        $db_password = "yourpassword" ;
        try{
        $conn = new PDO("oci:dbname= ".$tns,$db_ username, $db_password) ;
        }catch(PDOException $e){
        echo ($e->getMessage() );
        }
        ?>

        pairno to eksis error:

        SQLSTATE[]: pdo_oci_handle_ factory: OCI_INVALID_ HANDLE (/Users/liyanage/ svn/entropy/
        universalbuild/ src/php-5. 1.6/ext/pdo_ oci/oci_driver. c:463)

        Ksereis kaneis poy ofeiletai?

        Yparxei periptosi na leipei kati sto topiko moy mixanima? opos px kapoios client i driver pou einai anagkaios? An nai poios, pos mporo na tsekaro an iparxei, ki an den yparxei pos ton vrisko kai ton egathisto?

        Eyharisto,
        Anestis


        Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail.

      Your message has been successfully submitted and would be delivered to recipients shortly.