首页 > 数据库技术 > 详细

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

时间:2014-04-02 09:55:57      阅读:1027      评论:0      收藏:0      [点我收藏+]

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


不是吧 转移那么多!!

LRM-00116: ')' followed by 'yyyy-mm-dd' FOR ORACLE 11G EXPDP,布布扣,bubuko.com

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

原文:http://blog.csdn.net/zengmuansha/article/details/22731963

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!