Link to home
Start Free TrialLog in
Avatar of cassie5643
cassie5643

asked on

Toad - Out of Memory error when printing results for a stored procedure

Hello,

I am trying to run a stored procedure in Toad and print the results in the output window to save as a text file. The procedure executes but gives me an "Out of Memory" error before finishing the print results portion. I tried spooling via SQL*Plus but the output doesn't look anything like it's supposed to.  Please see my syntax below...


--Original syntax... Executed in Toad but received a 'out of memory' error while printing results
Variable Results refcursor;
Execute db_name.p_GetHostMatchStage (:Results);
Print Results;

-- Executed in SQL*Plus using this syntax to spool the results but output is incorrect
Spool c:\output.txt
Variable Results refcursor;
Execute db_name.p_GetHostMatchStage (:Results);
Print Results;
Spool off

   
ASKER CERTIFIED SOLUTION
Avatar of Milleniumaire
Milleniumaire
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cassie5643
cassie5643

ASKER

It progressed even farther thanks to that adjustment but still got the error. I went down as a far a 30 and a high as 500 just to be sure. I got a 'out of memory expanding memory stream' when I went down to 50 ad 30. Any additional suggestions?
I reduced the OCI Array Buffer size down to 10 and it worked.... thank you!