用户不允许执行授权操作

问题描述 投票:0回答:1

我向数据库上的用户授予了连接权限:

$ db2 grant connect on database to user dbuser

DB20000I  The SQL command completed successfully.

但是当我尝试授予select权限或dbadm时,它会给我一个错误,说用户没有授予权限,但我用于连接,选择和dbam

$ db2 grant dbadm on database to user dbuser

DB21034E  The command was processed as an SQL statement because it was not a 
valid Command Line Processor command.  During SQL processing it returned:
SQL0552N  "TSSADM" does not have the privilege to perform operation "GRANT".  
SQLSTATE=42502
db2 db2-luw
1个回答
0
投票

根据GRANT (database authorities) statement,您的用户必须在数据库中拥有SECADM权限才能授予DBADM。您的用户是否拥有此权限?

© www.soinside.com 2019 - 2024. All rights reserved.