hello gregsimpson have you try the solution you gave me
i'm working under a w2k server with the DB2 version 7.2.0
the system successfully give the usage privilege to public BUT the users can not use the sequence they don't have the right to do it if you agree here's my personal e-mail:
vincent.m@m6net.fr thanks for your help
Please follow the links at the bottom of this reply. They look likely to be the solution to your problem. It details a fix pack which you may need to install. Look at
JR16205 GRANT USAGE ON SEQUENCE DOES NOT BEHAVE CORRECTLY.
APAR Description:
PROBLEM SUMMARY: The values command returns SQL0551N error
even when the public is granted usage on the sequence..
.
db2 grant usage on sequence user1.seq1 to public
db2 connect to madinc user user2 using pwd
db2 values(nextval for user1.seq1) --> SQL0551N
TEMPORARY FIX: none
ERROR DESCRIPTION:
Grant usage on sequence behaves incorrectly. Here is a scenario
- db2 connect to madinc user user1 using pwd
- db2 create sequence seq1
- db2 grant usage on sequence user1.seq1 to public
- db2 connect to madinc user user2 using pwd
- db2 values(newtval for user1.seq1)
SQL0551N "USER2" does not have the privilege to perform operatio
n "USAGE" on object "USER1.SEQ1". SQLSTATE=4501
LOCAL FIX:
none
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.