Toad World® Forums

DBMS_OUTPUT.PUT_LINE Truncation


#1

Message from: dave.bingham_718

I’m trying to use DBMS_OUTPUT.PUT_LINE in Toad for Oracle version 10 and it keeps on truncating the input string by one character. For example if I type DBMS_OUTPUT.PUT_LINE(‘123456789’), the output reads ‘12345678’. I’ve tried the same thing while logged on to sql*plus on the same database and the output is correct, so I’m assuming it’s a setting somewhere in Toad. Anyone any iddeas ?

Dave Bingham


Historical Messages

Author: dave.bingham_718
Date: Thu May 06 06:49:16 PDT 2010
I’m trying to use DBMS_OUTPUT.PUT_LINE in Toad for Oracle version 10 and it keeps on truncating the input string by one character. For example if I type DBMS_OUTPUT.PUT_LINE(‘123456789’), the output reads ‘12345678’. I’ve tried the same thing while logged on to sql*plus on the same database and the output is correct, so I’m assuming it’s a setting somewhere in Toad. Anyone any iddeas ?

Dave Bingham
__



#2

Dave,

I’m trying to use DBMS_OUTPUT.PUT_LINE in Toad for Oracle
version 10 and it keeps on truncating the input string by
one character. For example if I type
DBMS_OUTPUT.PUT_LINE(‘123456789’), the output reads
‘12345678’. I’ve tried the same thing while logged on to
sql*plus on the same database and the output is correct, so
I’m assuming it’s a setting somewhere in Toad. Anyone any ideas ?

I’m on Toad 10.5 GA and it works fine for me. Oracle 9i client, 10g
database. What font are you using for your DBMS_OUTPUT window?
(View->Toad Options->Oracle/General) Mine is Courier New 10 pt.

There is/was a problem with Italic text losing bits of the final
character in PL/SQL comments, it may be related.

Cheers,
Norm. [TeamT]

PS. This is probably better in the main Toad group as opposed to
ToadSQL. It’s not really an SQL question, more Toad itself. I’ve taken
the liberty of replying there as well.

Norman Dunbar
Contract Senior Oracle DBA
CIS Engineering Services
Internal : 7 28 2051
External : 0113 231 2051

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else. We have checked this email and its attachments for viruses. But you should still check any attachment before opening it. We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes. If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk


#3

I just ran

begin

dbms_output . put_line ( ‘1234567891’ );

end;

in Toad 10.1 and it worked fine.

Is it possible you have a font problem – outputting in a proportional
rather than fixed pitch font?


#4

Message from: dave.bingham_718Oracle/General) Mine is Courier New 10 pt.

There is/was a problem with Italic text losing bits of the final
character in PL/SQL comments, it may be related.

Cheers,
Norm. [TeamT]

PS. This is probably better in the main Toad group as opposed to
ToadSQL. It’s not really an SQL question, more Toad itself. I’ve taken
the liberty of replying there as well.

Norman Dunbar
Contract Senior Oracle DBA
CIS Engineering Services
Internal : 7 28 2051
External : 0113 231 2051

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else. We have checked this email and its attachments for viruses. But you should still check any attachment before opening it. We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes. If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

__

Author: dave.bingham_718
Date: Thu May 06 06:49:16 PDT 2010

Message from: dave.bingham_718

I’m trying to use DBMS_OUTPUT.PUT_LINE in Toad for Oracle version 10 and it keeps on truncating the input string by one character. For example if I type DBMS_OUTPUT.PUT_LINE(‘123456789’), the output reads ‘12345678’. I’ve tried the same thing while logged on to sql*plus on the same database and the output is correct, so I’m assuming it’s a setting somewhere in Toad. Anyone any iddeas ?

Dave Bingham


Historical Messages

Author: dave.bingham_718
Date: Thu May 06 06:49:16 PDT 2010
I’m trying to use DBMS_OUTPUT.PUT_LINE in Toad for Oracle version 10 and it keeps on truncating the input string by one character. For example if I type DBMS_OUTPUT.PUT_LINE(‘123456789’), the output reads ‘12345678’. I’ve tried the same thing while logged on to sql*plus on the same database and the output is correct, so I’m assuming it’s a setting somewhere in Toad. Anyone any iddeas ?

Dave Bingham
__


__



#5

Thanks Norm. I’ve tried a few other things in the meantime. It seems to work ok with a 10G database, but not with a 9i. I’m using Toad 10.5 with a version 8 client and a 9i database. The font I’m using for the editor is Calibri regular 10 point. I’ve also tried courier and get the same porblem.

Regards

Dave