cancel
Showing results for 
Search instead for 
Did you mean: 

Stored Procedure error while activating - insufficient priv

SergioG_TX
Active Contributor
0 Kudos

All,

thank you for reading this question.

I am creating a stored procedure and all or a sudden I hit a road block. I have been creating them just fine and i am not sure why this one would be any different.

I am creating the stored proc on the same package where other sps are created and activated fine.

My stored pro performs a delete / insert / update on a CDS table from a SCHEMA  which i have all access INSERT / ALTER / CREATE ANY / DELETE / UPDATE / TRIGGERS / DEBUG you name it.

the stored proc activates fine if i comment out my code.. but that's of no help for me. I have already tried deleting it and recreating it with out any luck. i also created a stored proc with a different name.

on the trace file i see the following error:

error code: 40305, error message: Could not create catalog object: insufficient privilege; Not authorized, object: package ...

as mentioned before, I already have other stored procs on the same package which are working fine.

my stored proc (.hdbprocedure) declaration is as follow (i created it like all others via the wizard):

PROCEDURE  "SCHEMA"."path.to::sp"()

LANGUAGE SQLSCRIPT

SQL SECURITY INVOKER

AS

BEGIN

-- logic

END

I am on SP 11 -- 1.0.112.02 .. this just started happening today

very weird - anyone?

Accepted Solutions (1)

Accepted Solutions (1)

chandan_praharaj
Contributor
0 Kudos

Let me give it a try.

Do you have any other CRUD Stored Proc on the same schema? I can guess you have this Schema , as a brand new schema, and _SYS_REPO doesnot have access granted for your schema.

Can you please check that.

Regards,

Chandan

Answers (1)

Answers (1)

former_member183326
Active Contributor
0 Kudos

Please run the authorization trace to check the OID you are failing to access. Find the owner of this OID and then get the owner of the object to grant your user the privilege.