--创建表空间和数据库文件及默认表空间大小
create tablespace twf_orcl datafile 'D:oracleinstallproduct11.2.0ORADATAORCL wf_orcl.DBF' size 200m;
--设置数据库自动增长
alter database datafile 'D:oracleinstallproduct11.2.0ORADATAORCL wf_orcl.DBF' autoextend on;
--创建用户
create user user_twf identified by "twf892305" default tablespace twf_orcl account unlock;
--给用户授权
grant create table,create view,create trigger, create sequence,create procedure to user_twf;
grant dba to user_twf;
--修改表空间大小
alter database datafile 'D:oracleinstallproduct11.2.0ORADATAORCL wf_orcl.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
---**************************************************************************