博客
关于我
expdp和impdp小结
阅读量:116 次
发布时间:2019-02-26

本文共 2852 字,大约阅读时间需要 9 分钟。

??EXPDP?IMPDP???????

EXP?IMP???????????????????????????????EXPDP?IMPDP????????????ORACLE???????????????

IMP????EXP??????????EXPDP?????IMPDP????EXPDP???????????EXP?????

???expdp?impdp????????????/??@??? as ?????????????

expdp schemas=scott dumpfile=expdp.dmp DIRECTORY=dpdata1;

????????????????????????????system???????

create directory dpdata1 as 'd:\test\dump';

????????????????????????Oracle??????????????????????

select * from dba_directories;

?scott??????????????????system???????

grant read,write on directory dpdata1 to scott;

????

1)????

expdp scott/tiger@orcl schemas=scott dumpfile=expdp.dmp DIRECTORY=dpdata1;

2)????parallel

expdp scott/tiger@orcl directory=dpdata1 dumpfile=scott3.dmp parallel=40 job_name=scott3

3)????

expdp scott/tiger@orcl TABLES=emp,dept dumpfile=expdp.dmp DIRECTORY=dpdata1;

4)??????

expdp scott/tiger@orcl directory=dpdata1 dumpfile=expdp.dmp Tables=emp query='WHERE deptno=20';

5)?????

expdp system/manager DIRECTORY=dpdata1 DUMPFILE=tablespace.dmp TABLESPACES=temp,example;

6)??????

expdp system/manager DIRECTORY=dpdata1 DUMPFILE=full.dmp FULL=y;

????

1)???????

impdp scott/tiger DIRECTORY=dpdata1 DUMPFILE=expdp.dmp SCHEMAS=scott;

2)????owner

impdp system/manager DIRECTORY=dpdata1 DUMPFILE=expdp.dmp TABLES=scott.dept REMAP_SCHEMA=scott:system;

3)?????

impdp system/manager DIRECTORY=dpdata1 DUMPFILE=tablespace.dmp TABLESPACES=example;

4)?????

impdb system/manager DIRECTORY=dump_dir DUMPFILE=full.dmp FULL=y;

5)????

impdp system/manager DIRECTORY=dpdata1 DUMPFILE=expdp.dmp SCHEMAS=system TABLE_EXISTS_ACTION

?????

????????????????? Data Pump ????????????????? DBA_DATAPUMP_JOBS???????????????????? DEGREE?????

????????? DBA_DATAPUMP_SESSIONS????????? V$SESSION ?????????????? SID?

select sid, serial# from v$session s, dba_datapump_sessions d where s.saddr = d.saddr;

???????????????????????????????????????MCP????????????????

kupprdp:master process DM00 started with pid=23, OS id=20530 to execute - SYS.KUPM$MCP.MAIN('CASES_EXPORT', 'ANANDA');

kupprdp:worker process DW01 started with worker id=1, pid=24, OS id=20532 to execute - SYS.KUPW$WORKER.MAIN('CASES_EXPORT', 'ANANDA');

kupprdp:worker process DW03 started with worker id=2, pid=25, OS id=20534 to execute - SYS.KUPW$WORKER.MAIN('CASES_EXPORT', 'ANANDA');

??????????????? PID?????????????? SID?

select sid from v$px_session where qcsid = 23;

??? V$SESSION_LONGOPS ??????????????????????????

select sid, serial#, sofar, totalwork from v$session_longops where opname = 'CASES_EXPORT' and sofar != totalwork;

? totalwork ?????????? sofar ??????????? ? ??????????????????

Oracle 10g?11g????????

???10g?client??11???11g?????????10g

?11g???????expdp??????

?10g???????impdp??????

?????1.??2.????3.??????4.?aa.dmp???10g?dpdump???

IMPDP USERID='SYS/cuc2009@cucf as sysdba' schemas=sybj directory=DATA_PUMP_DIR dumpfile=aa.dmp logfile=aa.log version=10.2.0.1.0

转载地址:http://dznf.baihongyu.com/

你可能感兴趣的文章
Objective-C实现四叉树(附完整源码)
查看>>
Objective-C实现四舍五入(附完整源码)
查看>>
Objective-C实现四舍五入(附完整源码)
查看>>
Objective-C实现四阶龙格库塔法(附完整源码)
查看>>
Objective-C实现四阶龙格库塔法(附完整源码)
查看>>
Objective-C实现回调实例(附完整源码)
查看>>
Objective-C实现图-弗洛伊德FloydWarshall算法(附完整源码)
查看>>
Objective-C实现图书借阅系统(附完整源码)
查看>>
Objective-C实现图像二维熵的图像信号丢失检测(附完整源码)
查看>>
Objective-C实现图像去雾算法(附完整源码)
查看>>
Objective-C实现图像灰度变换(附完整源码)
查看>>
Objective-C实现图像相似度平均值哈希算法(附完整源码)
查看>>
Objective-C实现图像相似度平均值哈希算法(附完整源码)
查看>>
Objective-C实现图像移动(附完整源码)
查看>>
Objective-C实现图层混合算法(附完整源码)
查看>>
Objective-C实现图形着色算法(附完整源码)
查看>>
Objective-C实现图片dilation operation扩张操作算法(附完整源码)
查看>>
Objective-C实现图片erosion operation侵蚀操作算法(附完整源码)
查看>>
Objective-C实现图片的放大缩小(附完整源码)
查看>>
Objective-C实现图片腐蚀(附完整源码)
查看>>