--创建表空间并分配其大小
create tablespace testDB datafile 'E:/oracle/product/10.2.0/oradata/orcl/zhou_test.DBF' size 100m;
--创建用户并为用户分配表空间
create user zhoushan_test identified by zhoushan_test
default tablespace testDB
--给已存在的用户分配表空间
alter user username default tablespace userspace;
--给用户分配权限
grant connect,dba,resource to zhoushan_test;
--将表空间ZSTA_DATA_TBS修改为自动增长,这样,一旦用完了,马上会自动增长100M
ALTER DATABASE DATAFILE 'd: bsSTA_DATA_TBS.ORA' AUTOEXTEND ON NEXT 100M