DB2: GRANT 语句 &访问权
我应该给数据库用户什么权限来执行 REFRESH TABLE SOME_MQT;陈述? GRANT ALL ON SOME_MQT TO USER %USER_NAME 是否足够? DB2版本:9.5.3
What rights should I give to DB user to execute REFRESH TABLE SOME_MQT; statement? Is it enough GRANT ALL ON SOME_MQT TO USER %USER_NAME ?
DB2 version: 9.5.3
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
REFRESH TABLE 语句的文档似乎对此非常清楚。
我不确定 GRANT ALL 是否足够。 dbms 使用 GRANT ALL 授予所有可能权限的子集并不罕见。但测试起来很容易。只需对物化视图(不一定是有问题的视图;使用临时视图)授予 ALL 并让用户尝试刷新它。
The documentation for the REFRESH TABLE Statement seems pretty clear on that.
I'm not sure whether GRANT ALL is enough. It's not unusual for a dbms to grant a subset of all possible privileges using GRANT ALL. But it's easy enough to test. Just GRANT ALL on a materialized view (not necessarily the view in question; use a scratch view) and let the user try to refresh it.