Skip to Content

Stored Procedure error while activating - insufficient priv


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):






-- logic


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

very weird - anyone?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jul 21, 2016 at 11:43 PM

    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. 😊



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 22, 2016 at 10:36 AM

    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.

    Troubleshooting SAP HANA Authorisation issues

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.