卖逼视频免费看片|狼人就干网中文字慕|成人av影院导航|人妻少妇精品无码专区二区妖婧|亚洲丝袜视频玖玖|一区二区免费中文|日本高清无码一区|国产91无码小说|国产黄片子视频91sese日韩|免费高清无码成人网站入口

Oracle如何刪除和新建用戶(hù)

方法一:使用PL/SQL工具 如果您沒(méi)有PL/SQL工具,可以采用以下方法: 使用Oracle用戶(hù)登錄到需要?jiǎng)?chuàng)建新用戶(hù)的數(shù)據(jù)庫(kù)服務(wù)器。 執(zhí)行下面的SQL語(yǔ)句: create

方法一:使用PL/SQL工具

如果您沒(méi)有PL/SQL工具,可以采用以下方法:

  1. 使用Oracle用戶(hù)登錄到需要?jiǎng)?chuàng)建新用戶(hù)的數(shù)據(jù)庫(kù)服務(wù)器。
  2. 執(zhí)行下面的SQL語(yǔ)句:
create user username identified by password; -- 創(chuàng)建用戶(hù)名和密碼
grant create session to username; -- 給該用戶(hù)賦權(quán)
grant unlimited tablespace to username; -- 給該用戶(hù)賦權(quán)
grant create table to username; -- 給該用戶(hù)賦權(quán)
grant drop any table to username; -- 給該用戶(hù)賦權(quán)
grant insert any table to username; -- 給該用戶(hù)賦權(quán)
grant update any table to username; -- 給該用戶(hù)賦權(quán)
grant dba to username; -- 給該用戶(hù)賦權(quán)
grant read, write on directory DMP to username; -- 給該用戶(hù)賦權(quán)
grant read, write on directory BSSDATE11B to username; -- 給該用戶(hù)賦權(quán)

再用剛才創(chuàng)建的用戶(hù)登錄數(shù)據(jù)庫(kù),您已經(jīng)成功創(chuàng)建了一個(gè)Oracle數(shù)據(jù)庫(kù)用戶(hù)。

方法二:使用SQL Plus命令

  1. 打開(kāi)命令控制窗口。
  2. 使用Oracle用戶(hù)登錄。
  3. 執(zhí)行以下語(yǔ)句:
sqlplus / as sysdba;
create user username identified by password; -- 創(chuàng)建用戶(hù)名和密碼
grant create session to username; -- 給該用戶(hù)賦權(quán)
grant unlimited tablespace to username; -- 給該用戶(hù)賦權(quán)
grant create table to username; -- 給該用戶(hù)賦權(quán)
grant drop any table to username; -- 給該用戶(hù)賦權(quán)
grant insert any table to username; -- 給該用戶(hù)賦權(quán)
grant update any table to username; -- 給該用戶(hù)賦權(quán)
grant dba to username; -- 給該用戶(hù)賦權(quán)
grant read, write on directory DMP to username; -- 給該用戶(hù)賦權(quán)
grant read, write on directory BSSDATE11B to username; -- 給該用戶(hù)賦權(quán)

每句執(zhí)行完后會(huì)告訴您執(zhí)行是否成功。最后,使用您剛創(chuàng)建的用戶(hù)登錄數(shù)據(jù)庫(kù),您已經(jīng)成功創(chuàng)建了一個(gè)可用的數(shù)據(jù)庫(kù)用戶(hù)。

標(biāo)簽: