Home » Developer & Programmer » Precompilers, OCI & OCCI » OCIDirPathPrepare in oracle 9i
OCIDirPathPrepare in oracle 9i [message #93714] Wed, 30 October 2002 23:31 Go to next message
fareeda@pspl.co.in
Messages: 4
Registered: October 2002
Junior Member
hi,

This is a question regarding oci libraries in 9i.
We have been working using following with Oracle 8.1.7
for direct path initialization.

status = OCIDirPathPrepare(tableInfo.dpctx_ctl,m_latContextH,m_errorH);

When we try the same using oci libraries of 9.2.0, we get a core dump at this point:

Here is the stack trace:

[[1]] kpudpxp_genCaseSensName(0x0, 0x0, 0x2a6438, 0x2a5fa8, 0x1, 0x2e), at 0xfe9ffc04
[[2]] kpudpxp_ctxPrepare(0x208cb4, 0x208cb4, 0x200764, 0x2a6438, 0x4f, 0x200764), at 0xfe9f59c0
[[3]] LATDBInterface::initLoad(0x2a481c, 0x304f000, 0x1, 0x0, 0xffbef758, 0x4), at 0xa5128

I read somewhere that this is a known issue and the new api needs an extra parameter, but could get no other info yet.
Any suggestions? Or any place where i can find a list of such changes in the new APIs?

Thanks
Fareeda
Re: OCIDirPathPrepare in oracle 9i [message #93744 is a reply to message #93714] Mon, 09 December 2002 04:15 Go to previous message
fareeda@pspl.co.in
Messages: 4
Registered: October 2002
Junior Member
FYI,

following worked for us. in case anyone wishes to know the solution, here it is:

#ifdef ORA9
char tableSchema[[]] = "";
status = OCIAttrSet((dvoid *)dpctx, (ub4)OCI_HTYPE_DIRPATH_CTX, (dvoid *)tableSchema,(ub4)strlen(tableSchema), (ub4)OCI_ATTR_SCHEMA_NAME, m_errorH);
#endif

Note that this was done for Oracle 9i only.
Regards
Fareeda
Previous Topic: Support of Long Long data type
Next Topic: connectivity in c++ and oracle
Goto Forum:
  


Current Time: Sun Nov 24 15:02:05 CST 2024