=========== 导出 ============ exp 用户名 / 密码 @服务器 (localhost) file = 文件路径. dmp owner=(用户名)
=========== 导入 ==========
1, 使用 system 登录 sqlplussystem 用户名 conn /as sysdba;
drop user 用户名 cascade;
2, 创建用户, 并指定表空间, 还是原来的表空间 create user 用户名 identified by 密码 default tablespace 表空间名;
3, 授权 grant all privileges to 用户名; grant dba to 用户名;
4, 导入 imp 用户名 / 密码 @服务器 (localhost):1521/orcl file='文件名. dmp' full=y;
来源: http://www.bubuko.com/infodetail-2751698.html