{
  "id": 23707974,
  "title": "ORA-12899 for a 4-character name in VARCHAR2(10)? Byte vs char length semantics",
  "url": "https://urgent.news/2026/12/05/ora-12899-for-a-4-character-name-in-varchar2-10-byte-vs-char-length",
  "topic": "ai",
  "section": "AI",
  "published": "2026-12-05T22:00:04.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/mer_go_2e02357bc2e0ccdaf3/ora-12899-for-a-4-character-name-in-varchar210-byte-vs-char-length-semantics-5c26"
  },
  "original_language": null,
  "account": "The Oracle error ORA-12899 arises when a 4-character Korean name is stored in a VARCHAR2(10) column. The reason for this error is that the column length counts bytes, not characters. In the AL32UTF8 character set, each non-ASCII character takes up more than one byte, causing the value to exceed the 10-byte limit. To resolve the issue, the column must be defined as VARCHAR2(n CHAR) instead of VARCHAR2(n). This change ensures that the column length is measured in characters rather than bytes, allowing the 4-character name to fit within the specified limit.",
  "summary": "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…",
  "summary_source": "publisher",
  "key_points": [
    "Oracle error ORA-12899 occurs for 4-character Korean name in VARCHAR2(10)",
    "Column length counts bytes, not characters in AL32UTF8 character set",
    "Define column as VARCHAR2(n CHAR) to resolve the issue"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}