create table T1 (col_1 NVARCHAR2(2001));
ORA-00910: specified length too long for its datatype

//z 2012-08-01 13:37:33 IS2120@CSDN.T3072156621[T5,L58,R1,V32]

oracle column (field) size NVARCHAR2 大小限制
当 NLS_NCHAR_CHARACTERSET 为 AL16UTF16 的时候,最大能设置为2000
当 NLS_NCHAR_CHARACTERSET 为utf8 的时候,最大能设置为4000
这是因为NVARCHAR2数据类型,最大只能存储4000个字节。

//z 2012-08-01 13:37:33 IS2120@CSDN.T3072156621[T5,L58,R1,V32]

CHAR, NCHAR, VARCHAR2 and NVARCHAR2

Character data types store character data in the database character or national character set.

CHAR[(n [BYTE | CHAR] )]

Fixed-length character data of length n bytes or characters. The maximum length is 2000 bytes, the default value is 1.

BYTE indicates that the length semantics for the column is byte. CHAR indicates that the length semantics for the column is character. The default is BYTE. CHAR and BYTE qualifiers are not available prior to Oracle Version 9.

NCHAR[(n)]

Fixed-length character data of length n characters or bytes, depending on the national character set. The maximum length is determined by the number of bytes required to store each character, with an upper limit of 2000 bytes. The default value is 1.

VARCHAR2(n [BYTE | CHAR] )

Variable-length character data with length of n characters. The maximum length is 4000 bytes. You must specify the maximum length for VARCHAR2 columns.

BYTE indicates that the length semantics for the column is byte. CHAR indicates that the length semantics for the column is character. The default is BYTE. CHAR and BYTE qualifiers are not available prior to Oracle Version 9.

NVARCHAR2(n)

Variable-length character data having maximum length n characters or bytes, depending on the national character set. The maximum length is determined by the number of bytes required to store each character, with an upper limit of 4000 bytes. You must specify the maximum length for NVARCHAR2 columns.

转载于:https://www.cnblogs.com/IS2120/archive/2012/08/01/6745872.html

ORA-00910: specified length too long for its datatype相关推荐

  1. oracle ora 00910,NVARCHAR2字段超长问题:ORA-00910: specified length too long for its datatype

    NVARCHAR2字段超长问题:ORA-00910: specified length too long for its datatype 前几天在IMP的时候遇到了个问题: IMP-00017: f ...

  2. ORACLE数据库报错ORA-00910: specified length too long for its datatype

    ORACLE数据库报错ORA-00910: specified length too long for its datatype 原因分析 先直接说下对于ORA-00910报错的原因:在于Oracle ...

  3. oracle ora 00910,ORA-00910: 指定的长度对于数据类型而言过长

    目标端创建表报错: SQL> create table KK_1 2 ( 3 id NUMBER(20) not null, 4 code NVARCHAR2(255), 5 name NVAR ...

  4. Oracle小知识总结

    1. 每天的8:00到23:00每隔5分钟执行一个sql语句的JOB --建立一个存储过程 CREATE OR REPLACE PROCEDURE p_jobtest IS v_hh VARCHAR2 ...

  5. oracle 常用知识点整理

    转 :  oracle 常用知识点 原文链接:http://blog.csdn.net/weijiaxiaobao/article/details/51323573 Oracle 是一个庞大的系统,里 ...

  6. ORA_ERROR大全

    常见错误: -60 ORA00060: deadlock detected while waiting for resource 一般错误:   - 1 ORA00001: unique constr ...

  7. ORACLE ERROR大全

    ORA_ERROR大全 1 ORA00001: unique constraint (.) violated -17 ORA00017: session requested to set trace ...

  8. 资料整理——Oracle数据库错误消息列表(Database Error Messages)

    问题: Oracle数据库中大概有多少条error message? 解答: 根据对Oracle官网资料(https://docs.oracle.com/cd/E11882_01/server.112 ...

  9. LRU算法 -- 链表 完整实现

    LRU算法(Least Recently Used) 算是我们经常遇到的一种淘汰算法,其中内存管理模块进行内存页回收时有用到,针对不经常使用的内存页,LRU淘汰策略能够将该内存页回收给操作系统. 属于 ...

最新文章

  1. WIN7添加loopback接口
  2. 用Android写代码,用css写个android机器人代码分享
  3. Perl学习笔记(十)--通过DBI访问数据库
  4. 1.逐帧动画shader
  5. mysql load data infile 导入数据 某一列 空_Sql数据挑战赛amp;网络销售案例分析
  6. 力扣59-螺旋矩阵(C++)
  7. linux 临时 目录权限,linux文件和目录权限的设置
  8. hdoj1000解题报告
  9. 链表:从尾到头打印链表
  10. html图书馆占座系统,图书馆选座系统,再也不用担心有人占座啦!
  11. 免费织梦CMS文章采集器之采集聚合
  12. mysql查看cpu使用高sql语句_MYSQL CPU 使用率高,怎么查,怎么破
  13. JavaScript中三元一次函数的解法
  14. c/c++静态变量和静态函数
  15. V4C3-MXene 二维V4C3Tx迈科烯(MXene),胶体溶剂分散液 ,风琴状多层材料 ,冻干粉末
  16. 华东师大计算机专业非全日制,华东师范大学非全日制研究生遇冷?
  17. inurl:php?title=,查看“岗梅”的源代码
  18. 【Javaweb】TCP原理(三次握手四次挥手)
  19. Glusterfs + heketi使用
  20. jsf中应用javascript

热门文章

  1. js控制每行输出2个LI隔行换色
  2. T.38 and the future
  3. tableau暂时不支持m1芯片!期待未来!
  4. Ubuntu Apache 服务之 PHP 配置
  5. Hadoop新手篇:hadoop入门基础教程
  6. 迟到两年,Lu1与Cee合作的经典单曲《自己做决定》终于发布MV了!
  7. angularjs移除不必要的$watch
  8. 【转载】解决Windows和Ubuntu时间不一致的问题
  9. yii2中的事件和行为
  10. Android生成Xml文件