General
cancel
Showing results for 
Search instead for 
Did you mean: 

Porting to Idanium SQL 2131 "Runtime context in use" on Itanium 11.23 with Oracle 9.2.0.4

Malin Goodwin
Occasional Visitor

Porting to Idanium SQL 2131 "Runtime context in use" on Itanium 11.23 with Oracle 9.2.0.4

Our software runs successfully with Oracle 9.2.0.4 on Alpha Platform OSF 5.1 and PA-RISC platform with HP-UX 11.11. We are now porting to Itanium HP-UX 11.23, and see problems.
The error SQL 2131 occurrs in the statement EXEC SQL CONTEXT USE :_osqlctx; The _osqlctx variable holds the context. The CONTEXT USE statement is executed several times in the same thread (main thread). The value of the context-variable is not changed.
After successfully performing the CONTEXT USE statement a few times the error suddenly appears.
With slight code changes (like rearranging a few lines of code) the error appears at
different times - but always on CONTEXT USE.
This code runs successfully on pa-risc and alpha platforms.

We are building with -mt flag and also tried bulding with -DPTHREAD_COMPAT_MODE.

Any tips or pointers are appreciated