Re: ocilogon

From: Date: Tue, 30 Mar 2004 22:08:55 +0000
Subject: Re: ocilogon
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181867@lists.php.net to get a copy of this message
Adam Williams wrote:
Hi, what is the syntax for using ocilogon() to connect to a remote server? The remote server's name is zed.mdah.state.ms.us (ip is 10.8.5.4) and the database is zed.aleph0. Locally on zed I can do ociogon("user","pw","zed.alpeh0") and connect fine, but on a remote server I try ociogon("user","pw","zed.alpeh0@10.8.5.4") but it errors out with an oci_open_server error. I tried going to www.php.net/ocilogon but the page doesn't exist, so does anyone know how the proper connect line to connect to a remote server that runs oracle? Thanks!
You may want to use something like this as your DB string: (DESCRIPTION= (ADDRESS_LIST=
    (ADDRESS =
      (COMMUNITY = tcp_comm.world)
      (PROTOCOL = TCP)
      (Host = 10.8.5.4)
      (Port = 1521)
    )
) (CONNECT_DATA =
    (SID = zed.alpeh0)
       (GLOBAL_NAME = zed.alpeh0.world)
) ) -- paperCrane <Justin Patrin>

« previous php.general (#181867) next »