我觉得数据泵比imp/exp最实用的好处是:不用考虑字符集。
`````````````````````````
Windows下:
//创建目录
create or replace directory expdir as 'd:\';
select * from dba_directories;
//给test赋予目录的读写权限
grant read,write on directory expdir to test;
//导出数据
C:\>expdp dumpfile=test.dmp directory=expdir
到目录找到相应的导出文件,拷贝到新目录下。
导入数据
新schema 要新建
C:\>impdp dumpfile=test.dmp directory=expdir remap_schema=原shema:新schema
阅读(1563) | 评论(1) | 转发(0) |