oracle 只导出指定的表格,expdp带条件导出单个表的数据

本文介绍了如何使用Oracle的EXPDP工具只导出指定表格`test_table`并根据条件`cust_no like '066%'`筛选数据。通过命令行示例展示了如何设置用户名、目录、dump文件名以及查询条件,成功导出了4.674 MB的数据,共46171行。此外,还提到了一篇关于EXPDP/IMPDP全面教程的博客链接。
摘要由CSDN通过智能技术生成

[oracle@testdb dmp]$ expdp \"testuser/testuser\" DIRECTORY=dpump_dir dumpfile=kevin.dmp tables=test_table query=\"where cust_no like \'066%\'\"         -------注意这里的转义符

Export: Release 10.2.0.1.0 - 64bit Production on Monday, 27 February, 2012 17:23:00

Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production

With the Partitioning, OLAP and Data Mining options

Starting "CRMTEST"."SYS_EXPORT_TABLE_02":  "crmtest/********" DIRECTORY=dpump_dir dumpfile=kevin.dmp tables=test_table query="where cust_no like '066%'"

Estimate in progress using BLOCKS method...

Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 496 MB

Processing object type TABLE_EXPORT/TA

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值