sql - Unable to execute command [create sequence hibernate_sequence start with 1 increment by 1] -


i getting unsufficient privilages error while generating sequence.

  @id   @generatedvalue(strategy = generationtype.sequence, generator = "eventid_seq")   @sequencegenerator(name = "eventid_seq", sequencename = "event_seq",allocationsize = 1)   private int eventid ; 

and have tried following commands using sys , xyz user.

grant usage on sequence xyz.eventid_seq xyz 

it giving me 'missing or invalid privilege' error.

please help. thanks

if sequence in xyz schema don't need grant use it. may need grant create sequence user utilised connect database (i guess xyz):

grant create sequence xyz; 

Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -