Print Thread
Page 1 of 5 1 2 3 4 5
ora-01480
#37448 03/02/10 10:11 AM
Joined: Jul 2002
Posts: 71
R
Member
OP Offline
Member
R
Joined: Jul 2002
Posts: 71
One of our customer reports: Ora-01480 - Trailing null missing from STR bind value. (Ora10 database, delphi7, doa 4.0.6.2)

It happens on a update from a normal oracledataset. The size of the field in de database en tstringfield is 2000. The length of the string being inserterd is approximatly 1100 characters. What could be the problem?

Oracle monitor query generated:
update AROOSTERPLOEG
set ARP_DIENSTEN = :v1
where rowid = :doa__rowid
returning rowid into :doa__rowid

Re: ora-01480
Ruudbern #37449 03/02/10 10:48 AM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
Can you let me know the character set of the database? The problem is probably related to that.


Marco Kalter
Allround Automations
Re: ora-01480
Marco Kalter #37451 03/02/10 12:02 PM
Joined: Jul 2002
Posts: 71
R
Member
OP Offline
Member
R
Joined: Jul 2002
Posts: 71
It seems the problem occurs at the sizes above 1000 characters. Th eprogram tries to store a string of 1001 characters.

During the import of their dump it say's:
import is uitgevoerd in WE8MSWIN1252 tekenset en AL16UTF16 NCHAR-tekenset.
importserver gebruikt WE8ISO8859P15 tekenset (mogelijke tekensetconversie).



Re: ora-01480
Ruudbern #37455 03/02/10 03:06 PM
Joined: Jul 2002
Posts: 71
R
Member
OP Offline
Member
R
Joined: Jul 2002
Posts: 71
I have send queries to that customer to get the info from their database: 'NLS_CHARACTERSET' and 'NLS_NCHAR_CHARACTERSET';


Re: ora-01480
Ruudbern #37463 03/03/10 12:11 PM
Joined: Jul 2002
Posts: 71
R
Member
OP Offline
Member
R
Joined: Jul 2002
Posts: 71
Hi Marco,

The database nls_database_parameters returns:
'NLS_CHARACTERSET' = AL32UTF8
'NLS_NCHAR_CHARACTERSET' = AL16UTF16

is this enough info for you?

thnx in advance
Ruud



Last edited by Ruudbern; 03/04/10 07:11 AM.
Re: ora-01480
Ruudbern #37473 03/04/10 10:21 AM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
Thanks. Have you set TOracleSession.BytesPerCharacter to bcAutoDetect? This is required for multi-byte character set databases.


Marco Kalter
Allround Automations
Re: ora-01480
Marco Kalter #37480 03/04/10 12:08 PM
Joined: Jul 2002
Posts: 71
R
Member
OP Offline
Member
R
Joined: Jul 2002
Posts: 71
Yes, the BytesPerCharacter property was allready set to bcAutoDetect.

Last edited by Ruudbern; 03/04/10 12:39 PM.
Re: ora-01480
Ruudbern #37493 03/05/10 12:26 PM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
I see now that you are using 4.0.6 on a Unicode database. For Unicode support you will need to upgrade to version 4.1.


Marco Kalter
Allround Automations
Re: ora-01480
Marco Kalter #37537 03/09/10 07:10 AM
Joined: Jul 2002
Posts: 71
R
Member
OP Offline
Member
R
Joined: Jul 2002
Posts: 71
Hello Marco,

thanks for your quick reply's

regards Ruud


Re: ora-01480
Ruudbern #37632 03/18/10 01:29 PM
Joined: Jul 2002
Posts: 71
R
Member
OP Offline
Member
R
Joined: Jul 2002
Posts: 71
Hello Marco,

We wrote a testprogram using the 4.1.0 trial but the problem remains the same.

Regards Ruud

Page 1 of 5 1 2 3 4 5

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.117s Queries: 15 (0.067s) Memory: 2.5582 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-05-05 20:46:25 UTC
Valid HTML 5 and Valid CSS