oracle抽取dmp带有view,导出某个view

导出某个view

今天同事问我,如何导出某一个view,我较少见这么细粒度的需求,果断测试一下:

[oracle@rac1 log]$ expdp xxx/xxx directory=DATA_PUMP_DIR dumpfile=view.dmp logfile=view_exp.log views=V_TEST

LRM-00101: unknown parameter name 'views'

意料之中,我一点都不失望,因为看help的时候,根本没有view这个参数。继续:

[oracle@rac1 log]$ vi par.par

INCLUDE = VIEW: "in ( 'V_TEST' ) ";

[oracle@rac1 log]$ expdp lm/lm directory=DATA_PUMP_DIR dumpfile=view.dmp logfile=view_exp.log parfile=par.par Export: Release 11.2.0.1.0 - Production on Thu Jan 21 02:07:04 2016 Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options Starting "LM"."SYS_EXPORT_SCHEMA_04":  lm/******** directory=DATA_PUMP_DIR dumpfile=view.dmp logfile=view_exp.log parfile=par.par Estimate in progress using BLOCKS method... Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 0 KB Processing object type SCHEMA_EXPORT/VIEW/VIEW Master table "LM"."SYS_EXPORT_SCHEMA_04" successfully loaded/unloaded ****************************************************************************** Dump file set for LM.SYS_EXPORT_SCHEMA_04 is:   /u02/app/oracle/product/11.2.0/dbhome_1/rdbms/log/view.dmp Job "LM"."SYS_EXPORT_SCHEMA_04" successfully completed at 02:07:15 OK!

http://www.dengb.com/oracle/1095323.htmlwww.dengb.comtruehttp://www.dengb.com/oracle/1095323.htmlTechArticle导出某个view 今天同事问我,如何导出某一个view,我较少见这么细粒度的需求,果断测试一下: [oracle@rac1 log]$ expdp xxx/xxx directory=DATA_PUMP_...

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值