#36250 [Fbk->Opn]: PHP Causes ORA-07445 Core dump in Oracle server 9.2.x

From: Date: Mon, 06 Mar 2006 21:19:54 +0000
Subject: #36250 [Fbk->Opn]: PHP Causes ORA-07445 Core dump in Oracle server 9.2.x
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93991@lists.php.net to get a copy of this message
ID: 36250 User updated by: fred dot cohen at iridium dot com Reported By: fred dot cohen at iridium dot com -Status: Feedback +Status: Open Bug Type: OCI8 related Operating System: Solaris 9 PHP Version: 5.1.2 New Comment: That's what Oracle is telling us. This is directly from our ticket with them: I think there are 2 things you can do to fix your problem. 1. Install the 10.2 listener in the box where your 10.1.x or your 9.x database are running and use that listener to listen for your databases. 2. Fix the OCI8 driver for PHP so it does not use OCIPING at all We're awaiting further response from Oracle because their response conflicts with all the documentation I've been able to find on OCI and the OCIPing function. Previous Comments: ------------------------------------------------------------------------ [2006-03-05 08:43:35] tony2001@php.net So you're effectively saying that OCIPing() which exists in OIC is not supported by Oracle servers 8 and 9 and causes them to crash? This sounds really.. hmm.. weird, because I was recommended to use OCIPing() namely by Oracle developers. ------------------------------------------------------------------------ [2006-03-04 07:41:10] fred dot cohen at iridium dot com It might be a good idea get the Server Version with a call to OCIServerVersion rather than relying on the OCI_xx_VERSION defines. Any of the developers care to comment? #if OCI_MAJOR_VERSION >= 10 && OCI_MINOR_VERSION >= 2 /* OCIPing() is usable only in 10.2 */ OCI_G(errcode) = PHP_OCI_CALL(OCIPing, (connection->svc, OCI_G(err), OCI_DEFAULT)); #else char version[256]; /* use good old OCIServerVersion() by default */ OCI_G(errcode) = PHP_OCI_CALL(OCIServerVersion, (connection->server, OCI_G(err), (text*)version, sizeof(version), OCI_HTYPE_SERVER)); #endif ------------------------------------------------------------------------ [2006-03-04 07:33:51] fred dot cohen at iridium dot com Oracle is claiming OCIPing isn't a supported in anything less than oracle 10.2 ------------------------------------------------------------------------ [2006-02-01 19:49:51] fred dot cohen at iridium dot com Description: ------------ This isn't a bug in PHP, but I'm submitting it since Oracle currently has no patch available and it's cause isn't obvious. Using the Instant Client 10.2 and PHP 5.1.2 connecting to Oracle 9.2.0.7 we began seeing ORA-07445 errors immediately after upgrading to the versions listed. They may appear to occur intermittently, but they can happen as frequently as the oci8.ping_interval value. I've traced it down to the OCIPing call in the oci extension. It turns out any calls to OCIPing cause the error in the server. Workaround: In php.ini [oci8] section, set: oci8.ping_interval=-1 I'll provide updates about possible patches from Oracle as soon as they're able to respond. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36250&edit=1

« previous php.bugs (#93991) next »