我有使用原始exp(不是expdp)创建的Oracle转储文件(EXPORT:V10.02.01,Oracle 10g) . 它们仅包含四个表的表数据 .
1)我想将表数据提取到文件(平面/固定宽度,CVS或其他文本文件)中,而不将它们导入另一个Oracle DB . [优选的]
2)或者,我需要一个可以将它们导入普通用户(而不是SYSDBA)的解决方案,以便我可以使用其他工具来提取数据 .
我的数据库是11g,但如果需要,我可以找到10g数据库 . 我有TOAD for Oracle Xpert 11.6.1.6作为我的处理 . 我是一名经验丰富的Oracle程序员,但之前我还没有使用过EXP / IMP .
(以下信息已被隐藏以保护数据 . )
以下是转储文件的创建方式:
exp FILE=data.dmp \
LOG=data.log \
TABLES=USER1.TABLE1,USER1.TABLE2,USER1.TABLE3,USER1.TABLE4 \
INDEXES=N TRIGGERS=N CONSTRAINTS=N GRANTS=N
这是日志:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
Note: grants on tables/views/sequences/roles will not be exported
Note: indexes on tables will not be exported
Note: constraints on tables will not be exported
About to export specified tables via Conventional Path ...
Current user changed to USER1
. . exporting table TABLE1 271 rows exported
. . exporting table TABLE2 272088 rows exported
. . exporting table TABLE3 2770 rows exported
. . exporting table TABLE4 21041 rows exported
Export terminated successfully without warnings.
先感谢您 .