/*分為四步 */
/*第1步:創(chuàng)建臨時(shí)表空間 ?*/
create temporary tablespace user_temp
tempfile 'D:\oracle\oradata\Oracle9i\user_temp.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
/*第2步:創(chuàng)建數(shù)據(jù)表空間 ?*/
create tablespace user_data
logging
datafile 'D:\oracle\oradata\Oracle9i\user_data.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
/*第3步:創(chuàng)建用戶并指定表空間 ?*/
create user username identified by password
default tablespace user_data
temporary tablespace user_temp;
/*第4步:給用戶授予權(quán)限 ?*/
grant connect,resource,dba to username;