需要将 .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
有谁知道如何编写将 .dmp 文件导入 Oracle Express 数据库,然后将数据导出为 CSV 文件的特定命令行?
如有任何帮助,我们将不胜感激。谢谢!
使用 impdp 导入:
impdp scott/tiger@db10g tables=EMP,DEPT directory=TEST_DIR dumpfile=EMP_DEPT.dmp logfile=impdpEMP_DEPT.log
然后假脱机到 csv:
set heading off
spool myfile.csv
select col1|','||col2 from my_tables;
set colsep ','
select * from my_table;
spool off;
点击以下链接寻求帮助。
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
有谁知道如何编写将 .dmp 文件导入 Oracle Express 数据库,然后将数据导出为 CSV 文件的特定命令行?
如有任何帮助,我们将不胜感激。谢谢!
使用 impdp 导入:
impdp scott/tiger@db10g tables=EMP,DEPT directory=TEST_DIR dumpfile=EMP_DEPT.dmp logfile=impdpEMP_DEPT.log
然后假脱机到 csv:
set heading off
spool myfile.csv
select col1|','||col2 from my_tables;
set colsep ','
select * from my_table;
spool off;
点击以下链接寻求帮助。
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