Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 758211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:27:09+00:00 2026-05-14T15:27:09+00:00

My Oracle database returns the error: ORA-12899 – Value too large for column TIT.ESTADO_CIVIL

  • 0

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)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T15:27:10+00:00Added an answer on May 14, 2026 at 3:27 pm

    “The C# char has 16 bits; googling
    tells me that Oracle CHAR types are 8
    bits.”

    There are a couple of ways of dealing with this. The best solution would be to fix the database so it uses character semantics.

    alter system set nls_length_semantics = char
    / 
    

    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.

    SQL> create table t69 (col1 char(1 byte))
      2  /
    
    Table created.
    
    SQL> desc t69
     Name          Null?    Type
     ------------- -------- ----------------
     COL1                   CHAR(1)
    
    
    SQL> alter table t69 modify col1 char(1 char)
      2  /
    
    Table altered.
    
    SQL> desc t69
     Name          Null?    Type
     ------------- -------- ----------------
     COL1                   CHAR(1 CHAR)
    
    SQL>
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes my Oracle database on Windows gets hosed. How do I do a manual
I have an Oracle database backup file (.dmp) that was created with expdp .
I'm using an Oracle database with a collation different to my OS language. I'm
I have an Oracle database and the boolean fields are CHAR(1) with Y/N stored.
I have a Oracle database and one of the fields is a date range
We are using an oracle database in a project. Most of the tables represents
We are working with an oracle database in which the person that set it
I currently work with an Oracle database and we use stored procedures for all
How do I connect to a remote Oracle database instance from PHP? I need
I have successfully connected to an Oracle database (10g) from C# (Visual Studio 2008)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.