Hi
How do i make a call to OCIAttrGet function
ub4 *sizep;
OraText *banner;
retval = OCIAttrGet(srvhp, OCI_HTYPE_SERVER, (dvoid *)&banner,(ub4 *)&sizep,OCI_ATTR_AUDIT_BANNER, errhp);
if (retval != OCI_SUCCESS) {
printf("FAILED: OCIAttrGet(), RC = %d\n", retval);
return OCI_ERROR;
}
printf ("%s/n", banner);
When i try this in code i get a failure
FAILED: OCIAttrGet(), RC = -1 any ideas ?
I want to retrieve the banner text SEC_USER_UNAUTHORIZED_ACCESS_BANNER which is specified in the sqlnet.ora
And a little more error checking is telling me
Error - ORA-24315: illegal attribute type
FAILED: OCIAttrGet(), RC = 43
Edited by: 899881 on Feb 27, 2012 8:41 PM