Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> LOB Initialization Error
Hi,
The foll. code is being used to initialize a LOB Locator but it reports an error - OCI_INVALID_HANDLE for the OCILobGetLength call.
OCILobLocator* blob = 0;
ub4 lobEmpty = 0;
int initialized;
ub4 loblen;
status = OCIDescriptorAlloc((dvoid *) envhp, (dvoid **) &blob, (ub4) OCI_DTYPE_LOB, (size_t) 0, (dvoid **) 0); // the envhp has already been allocated
status = OCIAttrSet(blob, OCI_DTYPE_LOB, &lobEmpty, 0, OCI_ATTR_LOBEMPTY, errhp); // setting it to empty
status = OCILobLocatorIsInit(envhp, errhp, blob, &initialized); // verifies that the blob was initialized to empty status = OCILobGetLength(svchp, errhp, blob , &loblen);//OCI_INVALID_HANDLE error
Thanks
DB
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Received on Wed Jul 14 1999 - 15:44:10 CDT