Oracle Error ORA-00910: specified length too long for its datatype

Oracle Error Message

ORA-00910: specified length too long for its datatype

Reason for the Error

for datatypes CHAR and RAW, the length specified was > 2000; otherwise, the length specified was > 4000.

Solution

use a shorter length or switch to a datatype permitting a longer length such as a VARCHAR2, LONG CHAR, or LONG RAW