MutterCorp
MutterCorpNotice · Notícias
Programação·

ORA-12899 for a 4-character name in VARCHAR2(10)? Byte vs char length semantics

A VARCHAR2(10) column, a 4-character name, and Oracle says ORA-12899: value too large for column ... (actual: 12, maximum: 10). If your app stores Korean, Japanese, Chinese, or any other non-ASCII text, you will hit this sooner or later. The cause: the column length counts bytes, not characters. I reproduced it on Oracle AI Database 26ai Free (23.26.3) and ran the check and the fix. All output below is real SQL*Plus output. Reproduce A table with a VARCHAR2(10) name column, and a 4-character Ko…

Publicado no Notice. Categoria: Programação.

Notícias sobre o mesmo assunto em outras fontes