set serveroutput on - Session Level

Posted on 2005-03-02
Medium Priority
Last Modified: 2010-05-18
Hello Friends,

I run a small SQL block and since that involves a lot of dbms_output.put_line statements and therefore have to run the following set options, before running the block:

set serveroutput on size 1000000
set linesize 100

But I have to do this everytime I login to run the block. So,

1) Can I safely assume that these statements only affect my current Oracle session?
2) What should I do to change it for my particular ID? (I don't know if its possible too...)

Question by:srinivas_vemla
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 77

Accepted Solution

slightwv (䄆 Netminder) earned 500 total points
ID: 13439502
1) yes.  To verify this:

--verify on
show serveroutput
--connect to another user from the same sql*plus window
conn user/pass@somedb
--look at serveroutput
show serveroutput

2) Don't know how to sepcifically set it for your specific user w/o some fancy coding.  The easiest way:  Create a login.sql or glogin.sql file.  This will set it for anyone that connects.  Note:  login.sql will only run from the current directory from where you start sql*plus.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question