SQL Script Output

Hi,

I am runing the following script using SQL Plus and requires all the DBMS_OUTPUT in single line. One of the DBMS_OUTPUT has 250 characters max.

If I use set linesize 250, the other lines has gaps in between then. Is there anyway in Oracle to make all the DBMS Output in single line?

-- build.sql
set serveroutput on
set feedback off
BEGIN
DBMS_OUTPUT.PUT_LINE('-- Creating Replicat');
DBMS_OUTPUT.PUT_LINE('REPLICAT RCSRN10A');
DBMS_OUTPUT.PUT_LINE('USERID xxxxxx@XXXXXXX, PASSWORD xxx');
DBMS_OUTPUT.PUT_LINE('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
...
...
END;
Subhashini ElangoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
Use DBMS_OUTPUT.PUT instead of DBMS_OUTPUT.PUT_LINE.

PUT_LINE adds the carriage return at the end.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sdstuberCommented:
You'll still have a limit of 32767 characters for a single line.
As long as your total output is less than that, then PUT should work fine.
Geert GOracle dbaCommented:
all those x's are nice, but you could use rpad

DBMS_OUTPUT.PUT_LINE(rpad('x', 91, 'x'));
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.