LRM-00116: ')' followed by 'yyyy-mm-dd' FOR ORACLE 11G EXPDP
2014-04-01 14:40
1021 查看
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
不是吧 转移那么多!!
应要求到某个表的某个月之间的数据
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
不是吧 转移那么多!!
相关文章推荐
- Oracle按日/周/月统计语句--GROUP BY TO_CHAR(T.MODIFIEDTIME,'YYYY-MM')
- oracle中日期格式'yyyy-mm-dd'和'yyyymmdd'的区别
- To_date('2015-05-01', 'yyyy-mm-dd')
- to_date(to_char(sysdate,'YYYY-MM-DD ')
- Oracle - 'yyyy-mm-dd' & 'yyyymmdd'
- JS中,'yyyy-MM-dd HH:mm:ss'字符串转为日期
- 【Vegas原创】GridView/DataGrid中ToString("yyyy/MM/dd") 不起作用解决方法
- Caused by No result type specified for result named 'loginsuc', perhaps the parent package does not
- Oracle 11G Physical Standby Database Active Data Guard Switchover & Failover
- DateTime.Now.ToString("yyyy/MM/dd") 输出的结果是 2006-03-16
- json中string类型的datetime格式转换为datetime类型:例string类型"/Date(1242357713797+0800)/" 转为datetime类型"yyyy-MM-dd"
- java获取当前日期 "yyyy-MM-dd hh:mm:ss" 和 yyyy-MM-dd
- install_driver(Oracle) failed: Can't load `.../DBD/Oracle/Oracle.so' for module DBD::Oracle
- Oracle Data Guard PING[ARC2]: Heartbeat failed to connect to standby ''. Error is 12514 故障分析
- 将Json中的datetime的UTC表示形式转换为:"yyyy-MM-dd"或"yyyy-MM-dd HH:mm:ss"字符串表示形式
- Attribute name "aphmodel" associated with an element type "mxg" must be followed by the ' = ' charac
- oracle 中要查询某天数据 to_date(createdt,'yyyy-MM-dd')=to_date('2010-11-25','yyyy-MM-dd'); 用这种语
- 将Json中的datetime的UTC表示形式转换为:"yyyy-MM-dd"或"yyyy-MM-dd HH:mm:ss"字符串表示形式
- DateTime.Now.ToString("yyyy-MM-dd") 怎样显示上午/下午
- Oracle® Database Vault Administrator's Guide 11g Release 2 (11.2)