db2查看当前用户模式及当前用户的权限


 

 

1、连接数据库:db2 connect to appdb

2、查询当前用户模式:select current schema from sysibm.sysdummy1 或 select current schema from sysibm.dual

3、切换用户模式:set current schema toms

4、切换用户: db2 connect to appdbuser market using market 

5、给其他用户授权:db2 grant dbadm on database to user market

6、查看当前用户的权限: db2 get authorizations

 


<!-----------db2查看当前用户的权限:http://blog.itpub.net/298599/viewspace-666757/


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM