自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

DB2創(chuàng)建用戶的方法

數(shù)據(jù)庫
DB2數(shù)據(jù)庫是最受用戶歡迎的數(shù)據(jù)庫系統(tǒng)之一,下面就讓我們一起來了解一下DB2數(shù)據(jù)庫創(chuàng)建用戶和其他數(shù)據(jù)庫有何不同。

DB2創(chuàng)建用戶是很常見的操作,下面就為您詳細介紹DB2創(chuàng)建用戶的方法,如果您在DB2創(chuàng)建用戶方面遇到過類似的問題,不妨一看。

1.創(chuàng)建實例用戶
mkdir /db2/db2test 創(chuàng)建實例用戶目錄
smitty user
選擇Add a User
* User NAME                                          [db2test]                                                            
User ID                                                   []                                                                   
ADMINISTRATIVE USER?                       false                                                              
Primary GROUP                                     [db2iadm1]                                                          
Group SET                                           [staff]                                                             
ADMINISTRATIVE GROUPS                   []                                                                  
ROLES                                                         []                                                                  
Another user can SU TO USER?            true                                                               
SU GROUPS                                          [ALL]                                                               
HOME directory                                     [/db2/db2test]
Initial PROGRAM                                    [/usr/bin/ksh]

2.創(chuàng)建實例 DB2_install=/usr/opt/db2_08_01/instance
./db2icrt -u db2test db2test

3.創(chuàng)建數(shù)據(jù)庫
su - db2test
db2start     #此處不執(zhí)行啟動實例將報:SQL1032N No start database manager command was issued. SQLSTATE=57019
db2 create db db2test

4.刪除數(shù)據(jù)庫
db2 drop db db2test
db2stop

5.刪除實例
cd DB2_install
./db2idrop -f db2test # -f參數(shù)一定要添加否則刪除完了會報錯!

6.刪除用戶
smitty user
選擇Remove a User
* User NAME                                          [db2test]                                                           +
Remove AUTHENTICATION information?                  yes     

刪除用戶目錄
rm -rf db2test
 

 

 

 

【編輯推薦】

DB2性能優(yōu)化的十大注意事項

SQL SERVER連接DB2數(shù)據(jù)庫

DB2循環(huán)查詢的實現(xiàn)方法

DB2分區(qū)數(shù)據(jù)庫的前滾操作

兩種DB2分區(qū)數(shù)據(jù)庫恢復(fù)方式

責(zé)任編輯:段燃 來源: 互聯(lián)網(wǎng)
相關(guān)推薦

2010-11-03 13:55:39

創(chuàng)建DB2實例

2010-09-30 14:48:26

DB2查詢

2010-08-31 10:20:10

DB2MSCS集群

2010-09-30 10:04:06

DB2創(chuàng)建表空間

2010-11-03 14:16:29

DB2增量備份

2010-11-02 11:36:10

DB2索引創(chuàng)建

2010-08-31 16:13:40

DB2SQL函數(shù)

2010-11-02 14:45:12

DB2創(chuàng)建表空間

2010-11-03 09:34:39

DB2臨時表

2010-11-04 13:25:16

DB2在線導(dǎo)出

2010-11-02 13:40:34

DB2函數(shù)調(diào)用

2010-11-01 16:30:21

DB2表空間

2010-09-30 10:20:55

創(chuàng)建DB2數(shù)據(jù)庫

2010-11-03 16:32:10

DB2創(chuàng)建數(shù)據(jù)庫

2010-08-31 15:08:14

DB2INSERT優(yōu)化

2010-11-03 14:57:44

DB2備份所有表

2010-09-01 11:17:29

DB2備份

2010-09-01 14:00:01

DB2表空間

2010-11-02 11:08:11

DB2循環(huán)查詢

2010-11-02 11:43:11

DB2動態(tài)SQL
點贊
收藏

51CTO技術(shù)棧公眾號