Toad World® Forums

[TOADSQL] DBMS_OUTPUT.PUT_LINE Truncation


#1

[TOADSQL] DBMS_OUTPUT.PUT_LINE Truncation


#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

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


#4

Dave,

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’ve just run it with Toad 10.5 GA, 9i client and 9i database - all well
here.

I don’t have an 8 client I’m afraid. I’m wondering if it could be
related to that as the client is behind the database version?

I know DBMS_OUTPUT changed in 10g to allow a line length of 32K, up from
256 bytes in previous versions. Also, the amount of output is limited
pre-10g.

You are not seeing a truncation of the data because you have already
filled the buffer by any chance are you? (Although you would normally
get an error if you were.)

Cheers,
Norm. [TeamT]

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


#5

Norm

I tried it using a 9i client on our development network and it worked ok, so I figured it must have been the 8i client. I therefore installed a 10g client on my PC and now it works fine. Thanks for your help.

Dave


#6

Morning Dave,

I tried it using a 9i client on our development network and
it worked ok, so I figured it must have been the 8i client.
I therefore installed a 10g client on my PC and now it works
fine. Thanks for your help.
Glad you got it sorted out.

Cheers,
Norm. [TeamT]

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