Oracle 数据泵(expdp和impdp)排除某个表

0    305    2

Tags:

👉 本文共约3618个字,系统预计阅读时间或需14分钟。

实验

环境:LHR和LHR1用户下都有T3表,如下:

如下,排除T3表,会排除LHR和LHR1这2个用户下的T3表:

如下写法并不能排除T3表:

解决:只导出元数据,不导出具体数据:

使用查询,也会排除所有用户下的T3表:

How to Exclude Multiple Schemas and Tables in Export or Import (Doc ID 2087052.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.

NOTE: In the document content below, the user information and data used represents fictitious data. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

GOAL

Include or Exclude multiple tables from multiple schemas in full Export or Import.

SOLUTION

Following example will show to exclude or include multiple tables or schemas.
It can be used either on the command line or in a parameter file.

  1. Example to use include on the command line to include all tables for owner AJ or BJ:

  1. Example to use exclude in a par file to exclude table A1_TAB owned by user AJ and B1_TAB owned by user BJ.

Syntax:

本人提供Oracle(OCP、OCM)、MySQL(OCP)、PostgreSQL(PGCA、PGCE、PGCM)等数据库的培训和考证业务,私聊QQ646634621或微信db_bao,谢谢!
Oracle 数据泵(expdp和impdp)排除某个表后续精彩内容已被小麦苗无情隐藏,请输入验证码解锁本站所有文章!
验证码:
请先关注本站微信公众号,然后回复“验证码”,获取验证码。在微信里搜索“DB宝”或者“www_xmmup_com”或者微信扫描右侧二维码都可以关注本站微信公众号。

标签:

Avatar photo

小麦苗

学习或考证,均可联系麦老师,请加微信db_bao或QQ646634621

您可能还喜欢...

发表回复

嘿,我是小麦,需要帮助随时找我哦。
  • 18509239930
  • 个人微信

  • DB宝
  • 个人邮箱
  • 点击加入QQ群
  • 个人微店

  • 回到顶部