系统平台:
Linux x86-64 Red Hat Enterprise Linux 7
版本:
4.5
hibernate 自增主键调用序列,在插入数据时报错:对于序列“seq_xxl_job_xxx”权限不足。

查看序列所有者。
|
highgo=# \ds seq_a
List of relations
Schema | Name | Type | Owner
--------+-------+----------+--------
public | seq_a | sequence | sysdba
(1 row) |
所有者登陆进行赋权。
|
grant usage on SEQUENCE seq_name to PUBLIC ; |
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69994931/viewspace-2857633/
,如需转载,请注明出处,否则将追究法律责任。