Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OCIAttrGet function

902884Feb 27 2012 — edited Feb 29 2012
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2012
Added on Feb 27 2012
11 comments
266 views