文章詳情頁
DB2如何查看當(dāng)前用戶模式及切換用戶
1. 連接數(shù)據(jù)庫:db2 connect to study
2. 查詢當(dāng)前用戶模式: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. 給其他用戶授權(quán):db2 grant dbadm on database to user odsuser
6. 查看當(dāng)前用戶的權(quán)限: db2 get authorizations
標(biāo)簽:
DB2
相關(guān)文章:
1. DB2 9(Viper)快速入門2. DB2用戶定義函數(shù)實現(xiàn)多種語言的排序3. DB2獲取當(dāng)前用戶表、字段、索引等詳細(xì)信息4. 教你快速掌握DB2數(shù)據(jù)庫創(chuàng)建外鍵時的選項5. DB2診斷系列之捕獲SQL執(zhí)行情況6. 全面解析DB2 V9.1復(fù)制技術(shù)的新特性和改進(jìn)7. 快速解決DB2創(chuàng)建存儲過程時所遇到的錯誤8. 實例講解DB2數(shù)據(jù)庫中SELECT語句高級用法9. 深入了解DB2 Universal Database進(jìn)程10. DB2數(shù)據(jù)庫代碼頁不兼容的問題的另類解決
排行榜
