相关指令
运行 cmd
sqlplus/nolog
conn/as sysdba
创建导出dmp 文件存放位置:
create or replace directory dump_dir as 'G:\dump_dir'; --文件夹名称必须为dump_dir 文件
授权
grant read,write on directory dump_dir to cpy_xxx;
测试库导出:
expdp cpy_xxx/cpy_xxx schemas=cpy_xxx DUMPFILE=ctsnew.dmp DIRECTORY=DUMP_DIR JOB_NAME=full
测试库导入到本地数据库:
impdp ucts/cts DUMPFILE=ctsnew.dmp DIRECTORY=DUMP_DIR JOB_NAME=full
z:
imp ucts/cts@8**** file =
dump文件
创建导出dmp 文件存放位置
create or replace directory dump_dir as 'E:\dump_dir'
授权
grant read,write on directory dump_dir to cpy_xxx
真实导入测试:
impdp cpy_xxx/cpy_xxx schemas=cpy_xxx DUMPFILE=cpy_xxx_20160718_020001.dmp DIRECTORY=DUMP_DIR JOB_NAME=full
测试导出:
expdp cpy_xxx/cpy_xxx schemas=cpy_xxx DUMPFILE=cpy_xxx_20160802_020001_test.dmp DIRECTORY=DUMP_DIR JOB_NAME=full
运行 cmd
sqlplus/nolog
conn/as sysdba
创建导出dmp 文件存放位置:
create or replace directory dump_dir as 'G:\dump_dir'; --文件夹名必须为dump_dir
授权
grant read,write on directory dump_dir to cpy_xxx;
-------------------------------------------------------------------------
测试库导出:
expdp cpy_xxx/cpy_xxx schemas=cpy_xxx DUMPFILE=*.dmp DIRECTORY=DUMP_DIR JOB_NAME=full
测试库导入到本地数据库:
impdp cpy_xxx/cpy_xxx schemas=cpy_xxx DUMPFILE=*.dmp DIRECTORY=DUMP_DIR JOB_NAME=full
03-17
2917
03-31
1万+
03-29
3807
08-04
4466