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

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -