create tablespace [表空间名] datafile '/u01/app/oracle/oradata/XE/control.dbf' --表空间文件
size 50M --初始空间 autoextend on next 1M maxsize 100M;--最大空间oracle
create user [用户名] identified by [密码]
default tablespace [表空间名];app
grant resource,connect to 用户名;
--将资源和连接权限给用户alter user [用户名] default tablespace [表空间名];