需要加数据库的目录下:G:\app\sinosoft\product\12.1.0\dbhome_1\BIN cmd命令框执行
exp system/[email protected]/sinosoft file=d:\yjzygl.dmp owner=(yjzygl,other)
exp yjzygl/[email protected]/sinosoft file=d:\yjzygl.dmp full=y
导入:
D:\app\Administrator\product\11.1.0\db_1\BIN>imp scott/tiger@orcl full=y file=D:\database.dmp;
或者
D:\app\Administrator\product\11.1.0\db_1\BIN>imp scott/tiger@orcl file=D:\database.dmp tables=(tb1,tb2);
(3)在导入数据的过程中可能会遇到 数据表已经存在的现象,可以同ignore=y 忽略掉,比如:
D:\app\Administrator\product\11.1.0\db_1\BIN>imp scott/tiger@orcl ignore=y file=D:\database.dmp;
导入某个用户到另一个用户
imp pfuser/bsoft@orcl file=D:\hmp.dmp fromuser=pfuser touser=pfuser commit=y ignore=y rows=y indexes=y buffer=819200