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_GetHostMatchStag e (: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_GetHostMatchStag e (:Results);
Print Results;
Spool off
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_GetHostMatchStag
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_GetHostMatchStag
Print Results;
Spool off
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I reduced the OCI Array Buffer size down to 10 and it worked.... thank you!
ASKER