DB2教程

DB2 检查数据库权限

使用以下语法检查在非限制性数据库上授予PUBLIC的数据库权限:
1、首先启动数据库。
db2start
2、激活选定的数据库" XYZ"。
db2 activate db XYZ
3、连接到名为" XYZ"的数据库。
db2 connect to XYZ
检查数据库权限
现在验证数据库的权限:
语法:
db2 "select substr(authority,1,25) as authority, d_user, d_group,
d_public, role_user, role_group, role_public,d_role from table(
sysproc.auth_list_authorities_for_authid ('public','g'))as t
order by authority"
示例:
检查数据库授权
昵称: 邮箱:
Copyright © 2022 立地货 All Rights Reserved.
备案号:京ICP备14037608号-4