MacLochlainns Weblog

Michael McLaughlin’s Technical Blog

Site Admin

Configuring Zend Server

with one comment

I got all the screen shots out last night, then I realized that the configuration instructions were missing. They’ve been added now, and you can check if you’re interested.

In the process, I noticed that Zend Server Community Edition is using connection pooling by default with Oracle. This means that the TNS alias must be qualified by a hostname.

For example, on your local PC with Oracle Database 10g Express Edition, the default TNS alias is XE. You can’t use that anymore when you’re running the Zend Server. You must qualify it as localhost/XE or hostname/XE as the connection string. A natural alternative is to insert a fully qualified TNS network map

Here are three possible connection patterns:

I’m sure it was in the documents but then again, I didn’t read them. ;)

Written by maclochlainn

July 2nd, 2009 at 11:39 pm

One Response to 'Configuring Zend Server'

Subscribe to comments with RSS or TrackBack to 'Configuring Zend Server'.

  1. Since Zend Server uses Oracle Instant Client it is “remote” from any database and doesn’t automatically have access to the ORACLE_HOME directory. If you want to use a TNS connect name in the oci_connect() call, you need to explicitly tell PHP where to find the tnsnames.ora file which maps the connect name to the connect descriptor. You can do this by setting the TNS_ADMIN variable to the directory containing tnsnames.ora.

    Chris jones

    7 Jul 09 at 11:47 am

Leave a Reply