cancel
Showing results for 
Search instead for 
Did you mean: 

Missing privilege - DELETE statement in procedure

Former Member
0 Kudos

Hello experts,

I am facing a problem for my procedure. I am not able to active the procedure if I use DELETE statement in the produce. When I use only selects, it is working fine. The SYSTEM user has access to the schema with full rights, including DELETE.

PROCEDURE "SYSTEM"."DEV_COL.procedures::FI" ( )

  LANGUAGE SQLSCRIPT

  SQL SECURITY INVOKER

  DEFAULT SCHEMA UXX790

  AS

BEGIN

/*****************************

  Write your procedure logic

*****************************/

-- SELECT vbeln

--count(*)

  DELETE

  from vbapold

  where erdat < ADD_days(now(), -1700);

END;

Did anybody had the same issue? I run HANA rev70.

BR
Tamas

Accepted Solutions (1)

Accepted Solutions (1)

lbreddemann
Active Contributor
0 Kudos

Hi Tamas

if this is a repository procedure user _SYS_REPO has to have the DELETE privilege with grant option as well.

- Lars

Former Member
0 Kudos

Thanks Lars,

that was the missing one.

BR
Tamas

Answers (0)