Optimizing SQL Plus output over Citrix?

Status
Not open for further replies.

AndrewZ

Ars Legatus Legionis
11,860
I am trying to output several large tables (10's of MB) from SQL PLus over Citrix and it's really slow.

Code:
set pagesize 0
set autotrace off
set flush off
set termout off
spool l:\spool\acctact.txt

select * from accounts
where rownum < 10000;

spool off
set termout on
set flush on

It doesn't look like set termout off works, and the output goes very slowly. The output appears to stop fairly frequently.

Is there a better way to dump tables to disk over Citrix using SQL Plus? I don't have admin access to either Citrix or the DB.

Thanks.
 

rain shadow

Ars Tribunus Angusticlavius
6,680
Subscriptor++
googled for a second and found this hint:

http://ss64.com/ora/syntax-sqlplus-set.html

TERM[OUT] {OFF|ON}
OFF suppresses the display of output from a command file
ON displays the output.
TERMOUT OFF does not affect the output from commands entered interactively.

so maybe do @script.sql and it will obey the set termout command. not sure if the termout has to be set inside the script or beforehand. hopefully it would work either way.
 
Status
Not open for further replies.