--创建表空间
CREATE TABLESPACE maildata DATAFILE 'D:\oracle\oradata\YWSK\portaldata01.dbf' SIZE 2048M;
--创建用户
CREATE USER portal
IDENTIFIED BY portal
DEFAULT TABLESPACE portal
TEMPORARY TABLESPACE temp
PROFILE DEFAULT;
GRANT CONNECT TO portal;
GRANT RESOURCE TO portal;
--表空间分配命令
alter user username quota unlimited on tablespace_name;