1.打开sqlplus登录并创建导出数据存放目录
sqlplus/ as sysdba 直接回车不用输入密码
create or replace directory databak as 'D:\bak\temp';
select * from dba_directories;--查看路径是否设置成功
2.赋予用户读写权限
grant read,write on directory databak to blog; --blog用户名
3.用户全数据导出
expdp blog/123456@orcl directory=databak dumpfile=blog.dmp
logfile=blog.log schemas=blog
4.导入数据
impdp user/pwd@orcl directory=databak dumpfile=blog.dmp logfile=blog.log schemas=blog