--创建表空间和数据库文件及默认表空间大小
create tablespace TableSpace_Test datafile ‘E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\DataBase_Test.DBF‘ size 200m;
--设置数据库自动增长
alter database datafile ‘E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\DataBase_Test.DBF‘ autoextend on;
--创建用户
create user User_Test identified by Password_Test default tablespace TableSpace_Test account unlock;
--给用户授权
grant create table,create view,create trigger, create sequence,create procedure to User_Test;
grant dba to User_Test;
--修改表空间大小
alter database datafile ‘E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\DataBase_Test.DBF‘ resize 500m;
---*************导入数据库后(dmp)表空间不正确解决办法************************
revoke unlimited tablespace from User_Test
alter user User_Test default tablespace TableSpace_Test
alter user User_Test quota unlimited on TableSpace_Test
alter user User_Test quota 0 on system
---**************************************************************************
原文:http://www.cnblogs.com/lichuangblog/p/6867800.html