Expdp query usage

Source: Internet
Author: User

Expdp Scott/tiger directory = DP tables = T1 schemas = Scott dumpfile = t1.dmp logfile = t1.log query = '"where hiredate> to_date ('2017-01-02 ', 'yyyy-mm-dd ')"'

 

C: \ Users \ Administrator> expdp Scott/tiger directory = DP tables = Scott. T1 dumpfile = t1.dmp logfile = t1.log query = "where hiredate> '2017-01-02 '"

Export: Release 11.2.0.1.0-production on Monday March 11 15:42:54 2013

Copyright (c) 1982,200 9, Oracle and/or its affiliates. All rights reserved.

Connect to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-Production
With the partitioning, OLAP, data mining and real application testing options
ORA-39001: Invalid parameter value
ORA-39035: The data filter subquery has been specified.

It indicates that there is a problem with query writing.

Correct writing should use \ escape quotation marks

C: \ Users \ Administrator> expdp Scott/tiger directory = DP tables = T1 dumpfile = t1.dmp logfile = t1.log query = t1: \ "where hiredate> to_date ('2017-01-02 ', 'yyyy-mm-dd ')\"

Export: Release 11.2.0.1.0-production on Monday March 11 16:33:45 2013

Copyright (c) 1982,200 9, Oracle and/or its affiliates. All rights reserved.

Connect to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-Production
With the partitioning, OLAP, data mining and real application testing options
Start Scott ". "sys_export_table_01": Scott/******** directory = DP tables = T1 dumpfile = t1.dmp logfile = t1.log query = t1: "Where hiredate> to_date ('1970-01-02 ', 'yyyy-mm-dd ')"
Using the blocks Method for estimation...
Processing object type table_export/table/table_data
Total estimation using the blocks method: 64 KB
Processing object type table_export/table
.. Exported "Scott". "T1" 8.304 kb 8 rows
The master table "Scott". "sys_export_table_01" is successfully loaded/uninstalled"
**************************************** **************************************
The dump file set of Scott. sys_export_table_01 is:
E: \ oracle \ t1.dmp
The job "Scott". "sys_export_table_01" was successfully completed at 16:33:59.

Impdp Scott/tiger directory = DP remap_table = t1: T2 dumpfile = t1.dmp logfile = t2.log table_exists_action = replace

 

 

 

When multiple tables are created:

Query = EMP: \ "where username in ('aaa', 'bb') \", Taba: \ "where rownum <5 \"

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.