My Oracle database returns the error:
ORA-12899 – Value too large for column
TIT.ESTADO_CIVIL (actual: 2, maximum:
1)
But I’m very sure that the sended value is an unique char ‘C’.
Anyone knows why this is happening?
(I’m using C# with ODP.NET)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are a couple of ways of dealing with this. The best solution would be to fix the database so it uses character semantics.
As this has major ramifications you need to be sure that it solves your problem. Modify your table to use character semantics and see whether it removes the ORA-12899 exceptions.
The documentation has a lot of helpful information on globalization and character sets. You don’t say which version of the database you’re using, so here’s a link to the 9i docs on Length Semantics.