SQL5193N The current session user does not have usage privilege on any enabled workloads

南笙酒味 提交于 2019-12-12 06:30:42

问题


I'm getting the error while querying DB2 database 'SQL5193N The current session user does not have usage privilege on any enabled workloads'

How should I check if a user has usage permission on workloads?


回答1:


To granting the USAGE privilege on a workload. You can use;
http://www.ibm.com/support/knowledgecenter/SSEPGG_11.1.0/com.ibm.db2.luw.admin.wlm.doc/doc/t0051489.html

To check whether the user has DBADM authority:

db2 "SELECT DISTINCT GRANTEETYPE, GRANTEE, DBADMAUTH from SYSCAT.DBAUTH"

To grant the DBADM authority to the user using the following command:

db2 "GRANT DBADM ON DATABASE TO USER <USERID>"


来源:https://stackoverflow.com/questions/39703712/sql5193n-the-current-session-user-does-not-have-usage-privilege-on-any-enabled-w

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!