Precompilers and OCI (MOSC)

MOSC Banner

OCCI BlobData address pass to a stored procedure (PL/SQL)

edited Dec 15, 2011 9:01AM in Precompilers and OCI (MOSC) 5 commentsAnswered ✓
Hi,

I'm running on Solaris 64 bit, Oracle 10.2.0.5. I receive a "const unsigned char*" blob that needs to be inserted/updated. I have the following OCCI that

works fine. I need to change it so that it calls a store procedure to perform the update/insert. I need to change the code so that the user only has

execute permissions to the PL/SQL package - using definers rights. Currently the user needs insert, update, dalete, select permissions to the table(s).

int MyDb::setRec(const char* Id, const unsigned char* blobData, const long bufSize)
{
   Blob blob;
   int bystesWritten = 0;
   int offset = 1;

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center