oracle 导入导出数据,创建表空间,创建用户,授权

--创建表空间
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/[email protected] file='e:\bamtest.dmp' full=y
--导出
exp bamtest/[email protected] file='e:\bamtest.dmp'

猜你喜欢

转载自wison.iteye.com/blog/1807994