Re: HELP: Shared memory and Oracle

From: Matthew C. Sargent <sarge_at_Rational.COM>
Date: Wed, 3 Nov 1993 03:23:14 GMT
Message-ID: <1993Nov3.032314.14715_at_rational.com>


Bob Burgess (burgess_at_lims.lockheed.com) wrote:
: I'm having a confusing time with Oracle 7.0.12 running on Solaris 2.2.
 

: My application uses Oracle Pro*C routines that I have written and fully
: tested. It also uses shared memory routines that I have written and fully
: tested. That is, as individual components, both my Pro*C routines and my
: shared memory routines work fine.
 

: But now I need to link them within a single program and use them as I
: intended.
 

: The problem: when I compile, link, and run my program with the shared
: memory calls, my Oracle FETCH routine core dumps with an ORA-01003 error.
: If I comment out the shared memory calls and compile/link/run again, it
: works fine (as far as FETCHing the proper info from the database).
 

: I've looked in all the installation and administration guides I can find,
: but nowhere does it give adequate insight as to what I should do (as far as
: I can tell). If you can help me, it is MUCH appreciated.
 

: It's driving me crazy...
 

: -- Bob Burgess
 

: 408/987-4397 <<<--->>> burgess_at_lims.lockheed.com

--
Bob,

From my use of the OCI routines in Ada (a thin binding to the 
C language versions) I have found that the OCI's rely heavily
on all sorts of pointers to memory. The Cursor data structure
alone uses pointers to tons of stuff. My guess is that
your shared memory and the memopry that the OCI is using 
are in conflict. I would try stepping into the oci calls that setup
before your fetch. Parse, etc. 

Matt
=============================================================
| Matthew C. Sargent         |  My opinions are my own. Any |
| sarge_at_rational.com         |  similarity between them and |
|                            |  other opinions, living or   |
|                            |  dead, is accidental.        |
 =============================================================
Received on Wed Nov 03 1993 - 04:23:14 CET

Original text of this message