oci8 php extension Bus error (core dumped)

Ion-Mihai Tetcu itetcu at FreeBSD.org
Fri May 18 16:39:09 UTC 2007


On Wed, 9 May 2007 15:44:54 -0600
Sally Janghos <list at deeboz.ca> wrote:

> I'm experiencing a Bus error (core dumped) when running a
> oci_connect.  Can anyone give me some advise to start troubleshooting?
> 
> Here is what I've got on my system (the Oracle 10g Express instance
> is on a WinXP box):
> 
> FreeBSD 6.1-RELEASE-p2
> 
> PHP 5.2.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Mar 21 2007
> 20:28:04) Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend
> Technologies
> 
> OCI8 Support => enabled
> Version => 1.2.3
> Revision => $Revision: 1.269.2.16.2.30 $
> Active Persistent Connections => 0
> Active Connections => 0
> Oracle Version =>
> Compile-time ORACLE_HOME =>
> Libraries Used =>
> Temporary Lob support => disabled
> Collections support => disabled
> 
> Directive => Local Value => Master Value
> oci8.default_prefetch => 10 => 10
> oci8.max_persistent => -1 => -1
> oci8.old_oci_close_semantics => 0 => 0
> oci8.persistent_timeout => -1 => -1
> oci8.ping_interval => 60 => 60
> oci8.privileged_connect => Off => Off
> oci8.statement_cache_size => 20 => 20
> 
> The script I'm trying to run:
> 
> <?php
>   PutEnv("ORACLE_SID=EX");
>   PutEnv("ORACLE_HOME=/usr/local/oracle8-client");
>   $c=oci_connect("user", "passwd", "EX");
> ?>

Please check your 
/usr/local/oracle8-client/network/admin/tnsnames.ora

So you have 'EX' defined correctly in there ?
Does it match the corresponding config on your windows box ?

--
IOnut


More information about the freebsd-database mailing list