如果已有先删除
sqlplus sys/orcl as sysdba
drop user oawf1;
drop tablespace oawf1;
然后手动删除表空间文件。
//Oracle 创建表空间 创建用户 授予表空间 授予dba权限 导入dmp数据文件
//命令行以dba身份登录
sqlplus sys/orcl as sysdba
//创建表空间
create tablespace oawf1 datafile 'e:/oawf1.dbf' size 100M autoextend on next 100M maxsize unlimited;
//创建用户
create user oawf1 identified by oawf1;
//设置表空间给用户
alter user oawf1 default tablespace oawf1;
//授予dba权限
grant dba to oawf1;
//提交
commit;
exit
//命令行导入
imp oawf1/oawf1 full=y file=f:/82.dmp log=f:/82.log