2016-04-21 40 views
-1

我正在观察使用db2 z/OS撤销操作的奇怪行为。我得到错误 “DB2 SQL错误:SQLCODE = -556,SQLSTATE = 42504,SQLERRMC = USER3;如果我尝试撤销某些特权, CREATETAB;在DSN00016; TESTJDBC,DRIVER = 3.67.28“ 根据错误代码,它表示”无法撤消用户不具有的特权“。在z/OS上撤销DB2的错误

但我看到分配给用户的特权。

如果分配相同的权限,然后尝试撤销成功撤销。

帮我这个

+0

张贴您运行可能会有所帮助的实际语句。 – mustaccio

回答

0

如果是别人授予的特权,那么DB2可能会抱怨,你是不是设保人。您可以尝试在REVOKE的末尾添加BY <other_grantor>BY ALL

Here'■从知识中心的相关片段:

If the BY clause is not specified, the authorization ID of the statement must have granted at least one of the specified privileges to every authorization-name specified in the FROM clause (including PUBLIC, if specified). If the BY clause is specified, the authorization ID of the statement must have SECADM or ACCESSCTRL authority.