您的位置:首页 > 数据库 > Oracle

oracle中如何通过exp导出条件过滤后的部分表数据(

2011-04-11 14:57 344 查看
 

oracle中如何通过exp导出条件过滤后的部分表数据(2010-05-26 14:59:03)


转载

标签:

杂谈

G:/exp>exp czce/czce2008@34db tables=(trd_oitrades) file=oitrades.dmp query=/"wh
ere trade_date >= to_date('2007-06-01','yyyy-mm-dd') and trade_date <= to_date('
2007-09-10','yyyy-mm-dd')/"

Export: Release 9.2.0.1.0 - Production on 星期三 5月 26 14:12:35 2010

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Produc
tion
With the Partitioning, OLAP and Data Mining options
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集

即将导出指定的表通过常规路径 ...
. . 正在导出表                    TRD_OITRADES       1408 行被导出
EXP-00091: 正在导出可疑的统计信息。
EXP-00091: 正在导出可疑的统计信息。
导出成功终止,但出现警告。

 

G:/exp>imp czce/czce2008@28db file=oitrades.dmp ignore=y

Import: Release 9.2.0.1.0 - Production on 星期三 5月 26 14:19:16 2010

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Produc
tion
With the Partitioning, OLAP and Data Mining options

经由常规路径导出由EXPORT:V09.02.00创建的文件
已经完成ZHS16GBK字符集和AL16UTF16 NCHAR 字符集中的导入
. 正在将CZCE的对象导入到 CZCE
. . 正在导入表                  "TRD_OITRADES"       1408行被导入
准备启用约束条件...
成功终止导入,但出现警告。

或者使用带参数文件的:

 

host_6@/home/oracle $ exp risk/risk@29db file=wh_predict.dmp tables=wh_predict parfile=exp.par

Export: Release 10.2.0.1.0 - Production on 星期一 6月 7 10:45:36 2010

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

连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集

即将导出指定的表通过常规路径...
. . 正在导出表                      WH_PREDICT导出了        1733 行
EXP-00091: 正在导出有问题的统计信息。
EXP-00091: 正在导出有问题的统计信息。
导出成功终止, 但出现警告。

 

其中exp.par文件内容为:

host_6@/home/oracle $ cat exp.par
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息