dp oracle 11g,LRM-00116: ')' followed by 'yyyy-mm-dd' FOR ORACLE 11G EXPDP

For Oracle11G  EXPDP

应要求到某个表的某个月之间的数据

EXPDP HELP=Y

QUERY

Predicate clause used to export a subset of a table.

For example, QUERY=employees:"WHERE department_id > 10".

于是  expdp shark/2013 directory=dir_dp dumpfile =traderecord.dmp query=traderecord:"where tr_datetime >= to_date('2014-03-01','yyyy-mm-dd') and tr_datetime < to_date('2014-04-01','yyyy-mm-dd')"

LRM-00116: syntax error at ')' following 'yyyy-mm-dd'

于是要加转移符号

]expdp shark/2013 directory=dir_dp dumpfile =traderecord.dmp query=traderecord:\"where tr_datetime \>= to_date\(\'2014-03-01\'\,\'yyyy-mm-dd\'\) and tr_datetime \< to_date\(\'2014-04-01\',\'yyyy-mm-dd\'\)\"

Export: Release 11.2.0.1.0 - Production on Tue Apr 1 14:30:47 2014

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 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

Starting "CCPS"."SYS_EXPORT_SCHEMA_01":  shark/******** directory=dir_dp dumpfile=traderecord.dmp query=traderecord:"where tr_datetime >= to_date('2014-03-01','yyyy-mm-dd') and tr_datetime < to_date('2014-04-01','yyyy-mm-dd')"

Estimate in progress using BLOCKS method...

Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 10.92 GB

不是吧 转移那么多!!

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值