--创建表空间
create tablespace ekpj
logging
datafile'D:\oracleDateBase\ekpj.dbf'
size 50m
autoextend on
next 50m maxsize 2048m
extent management local;
--创建新用户
create user bamtest identified by bamtest default tablespace ekptest;
--授权
grant connect,resource,dba to bamtest;
--删除用户
drop user bamtest cascade;
--导入
imp bamtest/bamtest@orcl file='e:\bamtest.dmp' full=y
--导出
exp bamtest/bamtest@orcl file='e:\bamtest.dmp'