V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
heraldic
V2EX  ›  Oracle

expdp 的排除问题

  •  
  •   heraldic · May 10, 2019 · 3542 views
    This topic created in 2557 days ago, the information mentioned may be changed or developed.

    先说我的需求: 想备份整个数据库,里面杂七乱八的用户(比如有 USER1,USER2 )、视图之类的太多,full 就省心一点吧。 但是有几个特别大的表(比如表 USER1.PHOTO1,USER2.PHOTO1 ),不想导出这 2 表。

    因为 expdp 坑爹的参数转义让人看得晕,所以用 parfile:

    directory=.... full=y exclude=schema:"IN ('SCOTT','SYSTEM')" exclude=table:"IN ('USER1.PHOTO1','USER2.PHOTO1')"------这行肯定是错的 .....

    这里的问题是: 1、exclude table 里不能有 owner,那怎么限定呢?怎么写这个? 2、FULL 模式,和 exclude 是否有先后顺序要求,毕竟两者有那么一点不和谐?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3151 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:37 · PVG 22:37 · LAX 07:37 · JFK 10:37
    ♥ Do have faith in what you're doing.