• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

SERVEROUTPUT in procedure

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have converted a PL/SQL block to procedure, it outputs the result for every record on screen so to maximize buffer size

was used. Question is Can we invoke above statement in procedure as whenever it is exceuted it will set size internally or is there any other way?

Thanks
Deepa
 
Bartender
Posts: 2662
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
set serverout is not a pl/sql command.
It's an SQL*Plus instruction.
This means that you change SQL*/Plus's behaviour. Nothing happens on the database server.
Your database does not understand this command. It can't be used in pl/sql.

Have a look at the dbms_output and fnd_file packages. They allow you to output text/data from within a pl/sql package.

Regards, Jan
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic