Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6762717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:23:25+00:00 2026-05-26T14:23:25+00:00

I frequently get this error (it is so annoying!): Error report: ORA-06502: PL/SQL: numeric

  • 0

I frequently get this error (it is so annoying!):

Error report: ORA-06502: PL/SQL: numeric or value error: character
string buffer too small ORA-06512: at line 305
06502. 00000 – “PL/SQL: numeric or value error%s”

Example stored procedure is looping through a cursor (that has approx 10k rows), doing some logic and then using dbms_output.put_line to print each record to the 'Script Output' tab in Oracle SQL Developer.

Is there a way to flush out the the buffer or prevent this error coming up (and aborting the rest of the proc)?

If that is possible I could use the Mod function to clear the buffer every 10 or so rows processed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:23:25+00:00Added an answer on May 26, 2026 at 2:23 pm

    The default buffer size of DBMS_OUTPUT is 20000 chars. You can up this with:

    DBMS_OUTPUT.ENABLE(1000000);
    

    There’s no concept of a “flush” as there is nothing to flush to until the stored procedure returns. The way it actually works is that the lines go into a buffer in the DB, then that buffer is explicitly fetched (with DBMS_OUTPUT.GET_LINES) by the client (e.g. SQL*Plus) when the SP completes. It is quite unlike printf() that you might be used to in C.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When retrieving packages with Cabal, I frequently get errors with this message: user error
I frequently get this error in my Apache error_log when attempting to upload an
when starting my Repast Simphony Model in Batch run I get this error message:
I frequently get the following error when attempting to execute simple statements against a
I get this somewhat frequent error and I don't know what's causing the trouble.
I need to calculate Math.exp() from java very frequently, is it possible to get
one of the most frequent requests I get is to create XY report for
I frequently find myself writing code like this: List<int> list = new List<int> {
Summary: I periodically get a .NET Fatal Execution Engine Error on an application which
I'm doing active development on my schema in SQL Server 2008 and frequently want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.