当前位置:网站首页>oracle expdp导出之query转义问题
oracle expdp导出之query转义问题
2022-06-22 11:38:00 【weixin_41561946】
背景
需要从一个分区表中拉取一部分数据到另外一个库,实现的方式有很多,这里采用expdp的query功能来实现,基于日期时间过滤时,发过过虑策略不生效。
遇到的问题
[[email protected] ~]$ expdp test/sgtest2016 directory=impdp_dir dumpfile=qxfx_ssqx.dmp tables=(‘tt’) QUERY='tt:“WHERE sjsj<to_date(‘2021-01-01 00:00:00’,‘yyyy-mm-dd HH24:mi:ss’)”'
Export: Release 11.2.0.4.0 - Production on Wed Apr 7 09:21:51 2021
Copyright 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting “test”.“SYS_EXPORT_TABLE_04”: test/******** directory=impdp_dir dumpfile=qxfx_ssqx.dmp tables=(tt) QUERY=tt:"WHERE sjsj<to_date(2021-01-01 00:00:00,yyyy-mm-dd HH24:mi:ss)"
Estimate in progress using BLOCKS method…
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 44.68 GB
shu
解决方式
[[email protected] ~]$ cat para.par
dumpfile=qxfx_ssqx02.dmp tables=(‘tt’) QUERY=“WHERE sjsj>to_date(‘2021-01-01 00:00:00’,‘yyyy-mm-dd HH24:mi:ss’)”
[[email protected] ~]$ expdp test/sgtest2016 directory=impdp_dir PARFILE=para.par
Export: Release 11.2.0.4.0 - Production on Wed Apr 7 16:59:34 2021
Copyright 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting “test”.“SYS_EXPORT_TABLE_04”: test/******** directory=impdp_dir PARFILE=para.par
Estimate in progress using BLOCKS method…
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 44.68 GB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/COMMENT
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/INDEX/FUNCTIONAL_INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_INDEX/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported “test”.“tt”:“P01” 11.39 KB 0 rows
. . exported “test”.“tt”:“P02” 5.175 GB 29310006 rows
边栏推荐
猜你喜欢

SPI 与 API的区别

Redis - 3、发布和订阅

报错:unresolved variable $bus 及 “TypeError: Cannot read property ‘$on‘ of undefined“

Utilisation de la classification knn de Matlab (avec code source), réalisation de la classification des pixels (auto - réglage de l'échelle de l'ensemble de formation), précision de l'essai d'impressi

OceanBase数据库助力理想汽车智能生产线 可实现30秒内自动恢复

Matlab的KNN分类使用(附源码),实现像素分类(自己设置训练集比例),打印测试精度

In C # development, the third-party components lambdaparser, dynamicexpresso and z.expressions are used to dynamically parse / evaluate string expressions

Duanyongping, the "Buffett of China": a wise investment

APM set pitch four rotor control mode

Foreign lead needs energy, interest, research, diligence and is indispensable
随机推荐
Collection of IO operation cases
Successful cases | an Chaoyun helped the second hospital of Lanzhou University build a new IT infrastructure platform to improve the utilization of medical information resources
12306抢票使用教程
机器学习与深度学习 --- 激活函数(未完待续)
Redis - 4、新的3种数据类型
求100-200之间全部的素数
Redis - 8. Persistent RDB (redis database)
[2206] An Improved One millisecond Mobile Backbone
表格转换为LaTex格式
Struggle, programmer chapter 38 in the old days, when the road turned to the edge of the forest, I suddenly saw
Haas506 2.0 development tutorial - Advanced Component Library -modem Info (only supports versions above 2.2)
报错:unresolved variable $bus 及 “TypeError: Cannot read property ‘$on‘ of undefined“
Redis - 7、事务操作
[ciscn2019 finals Day1 web4]laravel1
APM flight mode switching -- source code explanation
"Dare not doubt the code, but have to doubt the code" a network request timeout analysis
Nansen年度报告
Obtain the public IP address summary under the command line
马尔可夫链(Markov Chain),隐马尔可夫模型
Foreign lead needs energy, interest, research, diligence and is indispensable