OCIMessageOpen error [message #130738] |
Tue, 02 August 2005 03:45 |
nidrle.vaclav
Messages: 1 Registered: August 2005
|
Junior Member |
|
|
Hello,
I want to get messages from message file using OCI, but when I call OCIMessageOpen function, I get OCI-21614 error. The description of this error is not found in OCI error messages file so I get "OCI-21614: Message 21614 not found; product=RDBMS; facility=OCI".
My code looks like this:
char *getMessage(OCIExtProcContext *with_context, int msg_number)
{
OCIEnv *envhnd; /* For OCI Environment Handle */
OCISvcCtx *svchnd; /* For OCI Service Handle */
OCIError *errhnd; /* For OCI Error Handle */
OCIMsg *msghnd; /* For OCI Message handle */
OraText *proc = "${ORACLE_HOME}/RDBMS";
OraText *fac = "IMP";
OraText *msgptr;
OraText errbuf[512];
ub4 buflen;
ub4 errcode;
ub4 err;
err = OCIExtProcGetEnv(with_context, &envhnd, &svchnd, &errhnd);
if ((err != OCI_SUCCESS) && (err != OCI_SUCCESS_WITH_INFO)) {
... /* processing of error */
}
err = OCIMessageOpen((dvoid *)envhnd, errhnd, &msghnd, proc, fac, OCI_DURATION_CALL);
/* I get OCI-21614 error after OCIMessageOpen*/
if (err != OCI_SUCCESS) {
OCIErrorGet ((dvoid *) errhnd, (ub4) 1, (OraText *) NULL, &errcode, errbuf, (ub4) sizeof(errbuf), (ub4) OCI_HTYPE_ERROR);
/* Here I get Message 21614 not found; */
}
... /* the rest of function */
}
Any ideas what can be wrong?
Thanx.
|
|
|