ITPub博客

首页 > 数据库 > Oracle > Oracle 12c expdp和impdp导出导入表

Oracle 12c expdp和impdp导出导入表

原创 Oracle 作者:ywxj_001 时间:2022-11-14 15:09:17 0 删除 编辑

[oraprod@erpdbp infor]$ expdp CU/CU@PR tables=order,order_operation  dumpfile=expdp.dmp directory=scprd logfile=expdp.log;


[oracle@ebsmiddb infor]$ impdp CU/CU@mid tables=order,order_operation dumpfile=expdp.dmp directory=scprd logfile=expdp.log REMAP_SCHEMA=CU:CU;


1、导出指定表

expdp 'sys/pwd@server1 as sysdba' directory=dbbak dumpfile=tables.dmp logfile=tables.log 

tables=schema1.table1,schema1.table2

expdp CU/CU@PR tables=order,order_operation dumpfile=expdp.dmp directory=scprd logfile=expdp.log;

2、导入指定表

--如果源库和目标库对应的表空间名称一样:

impdp 'sys/pwd@server2 as sysdba' directory=dbbak dumpfile=tables.dmp tables=schema1.table1,schema1.table2  

REMAP_SCHEMA=schema1:schema1

--REMAP_SCHEMA=schema1:schema1,源库shema:目标库schema


--如果源库和目标库对应的表空间名称不一样:

impdp 'sys/pwd@server2 as sysdba' directory=dbbak dumpfile=tables.dmp tables=schema1.table1,schema1.table2  

remap_schema=schema1:schema2 remap_tablespace=tablespace1:tablespace2 

--remap_schema=schema1:schema2,源库shema:目标库schema

--remap_tablespace=tablespace1:tablespace2,源表空间:目标表空间


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22996654/viewspace-2923235/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
在零售、金融、互联网行业从事数据库相关工作10余年,有丰富的数据库管理和架构的相关经验。 涉及SQLServer、Oracle、MySQL、PostgreSQL等多种数据库。 目前在一家互联网公司担任DBA经理。 负责整个集团数据库的架构设计和管理工作。

注册时间:2010-01-19

  • 博文量
    247
  • 访问量
    436212