Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a size limit for output from a stored proc?

Status
Not open for further replies.

droolydog

Programmer
Jan 5, 2001
1
US
I am executing a stored procedure that creates an output file. My proc runs to completion, however the output file is limited to 32K. Is there a limit in Oracle that i must override or is it more likely a UNIX thing?
 
I have generated files up to about 7M with no problem using DBMS_FILE. I suspect this is a limit being imposed by your system.
 
Droolydog

Are you creating your output from the stored proc by using DBMS_OUTPUT and doing SPOOL <filename> in SQLPlus. If this is the case it could be the DBMS_OUTPUT buffer size causing your problem. To resolve this before you do any calls to DBMS_OUTPUT call DBMS_OUTPUT.ENABLE( 1000000 ). This will expand the size of the buffer.

Hope this is useful

LokiDBA.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top