WIN下新增DB2使用者

2021-05-25 11:24:08 字數 850 閱讀 3047

1.db2 connect to test user dbauser using pwd

2. db2 grant connect on database to user dm 

3. db2 disconnect test   

4. db2 connect to test user dm using dm

以上只是在db2中新增了記錄.但os中並沒有.會報錯

sql30082n  安全性處理失敗,原因為 "24"("username and/or password invalid")。

sqlstate=08001

然後在os中新增使用者》

1.控制面板-管理工具-本地使用者和組-使用者-新增新使用者

2.使用者名稱,把下次登入設定密碼去掉,勾上密碼不過期

3.右鍵設定密碼,或提示讓你去ctrl+alt+del中修改密碼

使用者新增成功.

補充,給使用者新增許可權:

使用grant命令付給user 許可權,或使用控制中心 新增使用者即可。

建立的普通使用者預設擁有如下許可權

db2 => get authorizations

administrative authorizations for current user

indirect createtab authority               = yes

indirect bindadd authority                 = yes

indirect connect authority                 = yes

indirect implicit_schema authority         = yes

DB2使用者許可權控制

db2使用者許可權控制 1 構造例項 我們已經在db2使用者db2inst1下建立好資料庫test,下邊存在test table表和test procedure儲存過程。我們已經建立好乙個空的 使用者agent user db2inst1和agent user都是作業系統使用者 和db2inst1設...

db2 常量表 DB2檢視使用者表與指定使用者表表結構

1.在dos中檢視使用者表 1.1檢視表 db2 list tables for user 1.2 檢視表結構 db2 describe table a 2.在db2連線工具中 這裡以sqldbx為例子 2.1檢視使用者表清單 select rtrim tabschema as contname,r...

DB2 賬戶及使用者標識

我的筆記本hostname是 ibmt602007d64,安裝db2資料庫失敗。由於安裝資料庫已經有很多版本及平台的經驗了。但是對這個問題的原因卻感覺很詫異,db2也沒有報錯資訊提示。最後總算明白我的電腦為什麼不能安裝成功了。那是因為hostname使用了ibm開頭,因此安裝例項的時候,使用者預設也...