Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: coredump because of OCIEnvInit

Re: coredump because of OCIEnvInit

From: Rauf Sarwar <rs_arwar_at_hotmail.com>
Date: 12 Jul 2002 21:11:18 -0700
Message-ID: <92eeeff0.0207122011.154f5acd@posting.google.com>


"Radu B" <borsaru_at_cytanet.com.cy> wrote in message news:<agn9oa$huh$1_at_news.cytanet.com.cy>...
> Hi,
>
> I have a program that connects to a Oracle 8.1.6 database. The program is
> giving me coredump and when I debug it I found that the problem comes inside
> OCIEnvInit function. The server is a HP-UX 11.00 machine with a PA-RISC
> processors.
>
> Here is the output from the debugger:
>
> ***********************************
>
> gdb) run
>
> Starting program:
>
> /hplc004_clarify3/users/home/clkrishna/New_Install/traveler/bin/trav
>
> check -lef
>
> 07-12 16:48:54 Starting Traveler Server
>
> Free space on disk: 1003MB
>
> Name:
>
> /net/hplc004/clarify/vol3/users/home/clkrishna/New_Install/traveler/scripts/
>
> writeScript.sh Reference: [outBatch][PostWriteScript]
>
> Message: Is readable.
>
> 07-12 16:48:54 Build for Oracle
>
> 07-12 16:48:54 Connecting CLH0PD7:sa
>
> 07-12 16:48:54 Library: ORACLE8
>
> Breakpoint 1, 0x3c9748 in OCIEnvInit ()
>
> (gdb) s
>
> Single stepping until exit from function OCIEnvInit,
>
> which has no line number information.
>
> Breakpoint 3, 0x3fced0 in kpuinit ()
>
> (gdb) s
>
> Single stepping until exit from function kpuinit,
>
> which has no line number information.
>
> Breakpoint 2, 0x558ffc in kopfinit ()
>
> (gdb) s
>
> Single stepping until exit from function kopfinit,
>
> which has no line number information.
>
> Program received signal SIGSEGV, Segmentation fault.
>
> 0x559090 in kopfinit ()
>
> ************************************
>
> The program is running fine on a similar machine.
>
> Does anyone know about this error and how can this be solved.
>
> Rgds,
>
> Radu B.

First of all 8.1.6 is desupported by Oracle. You should upgrade to atleast 8.1.7.x (8.1.7.4 recommended patchset) if possible.

Secondly, you should use OCIEnvCreate() in your application instead of OCIEnvInit() or OCIInitialize(). Later two functions are only there for backward compatability to versions prior to 8.1.5.

HTH
//Rauf Sarwar Received on Fri Jul 12 2002 - 23:11:18 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US