简体   繁体   English

需要将.dmp文件导入Oracle Express,将其导出为平面CSV或TXT文件,以导入到SAS中

[英]Need to import .dmp file into Oracle Express, export it as a flat CSV or TXT file for importation into SAS

Does anyone know how to write a specific command line that imports a .dmp file into an Oracle Express database, and then exports the data as a CSV file? 有谁知道如何编写将.dmp文件导入Oracle Express数据库,然后将数据导出为CSV文件的特定命令行?

Any help would be greatly appreciated. 任何帮助将不胜感激。 Thank you! 谢谢!

Import using impdp: 使用impdp导入:

impdp scott/tiger@db10g tables=EMP,DEPT directory=TEST_DIR dumpfile=EMP_DEPT.dmp logfile=impdpEMP_DEPT.log

Then spool to csv: 然后假脱机到csv:

set heading off
spool myfile.csv
select col1|','||col2 from my_tables;
set colsep ','
select * from my_table;
spool off;

Follow below links for help. 请点击以下链接获取帮助。

import: https://oracle-base.com/articles/10g/oracle-data-pump-10g spool to csv: http://www.dba-oracle.com/t_export_to_csv_file.htm 导入: https : //oracle-base.com/articles/10g/oracle-data-pump-10g后台打印到csv: http : //www.dba-oracle.com/t_export_to_csv_file.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM