本文共 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/