全部選項
CREATE USER username IDENTIFIED BY password
OR IDENTIFIED EXETERNALLY
OR IDENTIFIED GLOBALLY AS ‘CN=user'
[DEFAULT TABLESPACE tablespace]
[TEMPORARY TABLESPACE temptablespace]
[QUOTA [integer K[M] ] [UNLIMITED] ] ON tablespace
[,QUOTA [integer K[M] ] [UNLIMITED] ] ON tablespace
[PROFILES profile_name]
[PASSWORD EXPIRE]
[ACCOUNT LOCK or ACCOUNT UNLOCK]
基本的連接
grant connect,resource to user;
grant create session to user;
例子:
CREATE USER odsc_iocent IDENTIFIED BY ods_c123
DEFAULT TABLESPACE DATA_CENT TEMPORARY TABLESPACE TEMP
QUOTA UNLIMITED ON DATA_CENT
ACCOUNT UNLOCK;
--注意不要給臨時表空間QUOTA UNLIMITED不然會報錯
基本的連接
grant connect,resource to
odsc_iocent;
grant create session to odsc_iocent