博客
关于我
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/

你可能感兴趣的文章
postgresql Streaming Replication监控与注意事项
查看>>
postgresql 不需要付费_使用数据传输在PostgreSQL执行 外部连接运算符
查看>>
postgresql 主从配置_生产环境postgresql主从环境配置
查看>>
postgresql 函数&存储过程 ; 递归查询
查看>>
PostgreSQL 分组聚合查询中 filter 子句替换 case when
查看>>
PostgreSQL 同步流复制锁瓶颈分析
查看>>
PostgreSQL 备份与还原命令 pg_dump
查看>>
Postgresql 外部表插件postgres_fdw的安装和使用
查看>>
PostgreSQL 如何从崩溃状态恢复(上)
查看>>
PostgreSQL 存储过程基本语法
查看>>
PostgreSQL 实现批量更新、删除、插入
查看>>
PostgreSQL 导入 .gz 备份文件
查看>>
PostgreSQL 批量插入&更新数据时报错(ERROR: ON CONFLICT DO UPDATE command cannot affect row a second time)
查看>>
PostgreSQL 新增数据返回自增ID
查看>>
postgresql 更新多列数据
查看>>
PostgreSQL 服务启动后停止
查看>>
PostgreSQL 辟谣存在任意代码执行漏洞:消息不实
查看>>
PostgreSQL+PostGIS实现两坐标点之间最短路径查询算法函数(地图工具篇.12)
查看>>
Qt开发——简易调色板QPalette
查看>>
PostgreSQL-解决连接时遇到的乱码问题
查看>>