1. 连接数据库:db2 connect to study
2. 查询当前用户模式:select current schema from sysibm.sysdummy1 或 select current schema from sysibm.dual
3. 切换用户模式:set current schema toms
4. 切换用户: db2 connect to cpsdb user Administrator using 111111
5. 给其他用户授权:db2 grant dbadm on database to user odsuser
6. 查看当前用户的权限: db2 get authorizations
最后
以上就是执着舞蹈最近收集整理的关于DB2如何查看当前用户模式及切换用户的全部内容,更多相关DB2如何查看当前用户模式及切换用户内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复