使用 SQLcl - 这是 SQL Developer 的命令行接口
下载 SQLcl
sql sys/welcome@localhost:1521:orcl as sysdba
#sql username/password@hostname:1521:dbinstancename
set linesize 2000
set pagesize 10
spool "c:myoutput.txt";
set sqlformat insert
select * from sample_table;
spool off
exit
参考: