ORA-24908: invalid recipient presentation attribute
Cause: The subscription handle passed into the OCI call does not have a valid recipient presentation attribute.
Action: Set the recipient presentation attribute using the OCIAttrSet() call
ORA-24908错误指明,在调用OCI应用程序环境接口过程时,提供的接收者属性无效。接收者可以是单个管道,也可以是Complex Object的Content、Collection、Reference等。
1、检查接收者属性,并确保其完整、正确,其结构如下:
typedef struct {
OCIEnv *envhp;
OCIError *errhp;
OCISvcCtx *svchp;
OCIServer *srvhp;
OCISession *authp;
OCIStmt *stmthp;
OCIDescribe *dschp;
OCISPool *poolhp;
OCIWFState *wfshp;
OCITrans *transhp;
} OCIHandleAlloc;
2、确保环境和接收者属性之间的标记一致,否则会导致此错误。
3、确保将接收者属性传入OCIEnvCreate、OCIEnvNlsCreate或OCIEnvCreate函数时,使用正确的参数类型。