How to Create New User in Oracle
Step 1 建立使用者帳號
create user
UserName
identified by
Password
;
或
create user
UserName
identified by
Password
default tablespace
TableSpace
;
Step 2 授權使用者
grant all privileges to
UserName
;
// 一次全部授權
或分別授權
grant create session to
UserName
;
// 授權使用者使其能夠登錄
grant create table to
UserName
;
// 授權使用者使其能夠建立資料表
Step 3 指定空間配額
alter user
UserName
quota unlimited on
TableSpace
;
// 不限制大小
或
alter user
UserName
quota 10m on
TableSpace
;
// 設定 10 Mega
Oracle How To