exp 和imp是属于客户端工具,expdp和impdp 属于服务端工具 EXPDP/IMPDP 在备份和恢复时间上要比EXP/IMP有着优势.并且EXPDP/IMPDP 管理灵活 是否支持并行 可被中断,并restart 导入数据时,可修改源数据文件的名字/表空间名字(remap_datafile/remap_tablespace) 支持指定元数据的导入导出(include/exclude) 估算导出数据所需的空间(ESTIMATE_ONLY) 导出数据时指定需要导入的库的版本(VERSION) 最大的区别就是: 1 速度。 2 expdp 导出的数据只能放在连接的数据库服务器端。 3 expdp/impdp可以指定导出,导入任意对象 # exp/imp只能指定表 用法区别 1:把用户usera的对象导到用户userb,用法区别在于fromuser=usera touser=userb ,remap_schema='usera':'usera' 。例如:imp system/passwd fromuser=usera touser=userb file=/oracle/exp.dmp log=/oracle/exp.log; impdp system/passwd directory=expdp dumpfile=expdp.dmp remap_schema='usera':'userb' logfile=/oracle/exp.log; 2:更换表空间,用exp/imp的时候,要想更改表所在的表空间,需要手工去处理一下,如alter table xxx move tablespace_new之类的操作。 用impdp只要用remap_tablespace='tabspace_old':'tablespace_new' 3:当指定一些表的时候,使用exp/imp 时,tables的用法是 tables=('table1','table2','table3')。 expdp/impdp的用法是tables='table1','table2','table3' 4:是否要导出数据行 exp (ROWS=Y 导出数据行,ROWS=N 不导出数据行) expdp content(ALL:对象+导出数据行,DATA_ONLY:只导出对象,METADATA_ONLY:只导出数据的记录) 5:expdp是10g的新特性而且只能在服务器执行。而exp/imp是通用的。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/203348/viewspace-1280105/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/203348/viewspace-1280105/