Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 3rd, 2005, 12:01 AM
Authorized User
 
Join Date: Sep 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default Buffer Overflow

hi all,

I am trying to execute a query and getting the following error
" Buffer Overflow use set command to reduce array size or increase maxdata"

It is always safe to assume, not that the old way is wrong, but that there may be a better way...
*************************
Rekha
__________________
It is always safe to assume, not that the old way is wrong, but that there may be a better way...
*************************
Rekha
 
Old February 3rd, 2005, 12:17 AM
Authorized User
 
Join Date: Jul 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Rekha,

That is a memory error. Arraysize is a SQL*Plus variable to set the number of records fetched in a batch at a time. A high value requires more memory and that's why SQL*Plus complains for queries that return large number of rows. As mentioned in the error message, reduce the arraysize (using the SET command).

SQL> show arraysize
arraysize 15
SQL> set arraysize 9
SQL> show arraysize
arraysize 9
SQL> -- now run your query again...

I think MAXDATA is obsolete, hence setting maxdata will probably be ignored by SQL*Plus.

Hope that helps.
azizmasih

 
Old February 3rd, 2005, 12:41 AM
Authorized User
 
Join Date: Sep 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for response. But it is not working after setting the arraysize to 9 also I m getting the same error.

It is always safe to assume, not that the old way is wrong, but that there may be a better way...
*************************
Rekha
 
Old February 3rd, 2005, 08:11 PM
Authorized User
 
Join Date: Jul 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Rekha,

Try with some lesser values for ARRAYSIZE and higher values for MAXDATA. I think you can go till 60000 for MAXDATA.

With regards,
azizmasih






Similar Threads
Thread Thread Starter Forum Replies Last Post
RESPONSE BUFFER / FLUSH pallone .NET Framework 2.0 3 May 11th, 2008 01:39 PM
Buffer question dparsons ASP.NET 1.0 and 1.1 Professional 0 March 19th, 2006 11:45 PM
flushing buffer in A2K Loralee Access 1 September 26th, 2005 05:44 PM
filling in a buffer JLN VB.NET 2002/2003 Basics 2 July 8th, 2004 08:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.