热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Oracle关于java.sql.SQLException常见错误集锦

使用Oracle时老是遇到java.sql.SQLException错误,害得我在网上查得累死累活的,所以一口气查了一下几个常见的,在此列了列.英文

使用Oracle时老是遇到java.sql.SQLException错误,害得我在网上查得累死累活的,所以一口气查了一下几个常见的,在此列了列.英文

使用Oracle时老是遇到java.sql.SQLException错误,害得我在网上查得累死累活的,所以一口气查了一下几个常见的,在此列了列.英文是来自官方的,用中文简单翻译了一下,有一些实在不知道怎么翻译,也没有尝试重现,所以将英文原文一并列出,供有需要的人查阅!
ORA-00904: invalid column name 无效列名
ORA-00942:  table or view does not exist 表或者视图不存在
ORA-01400:  cannot insert NULL into () 不能将空值插入
ORA-00936: 缺少表达式
ORA-00933: SQL 命令未正确结束
ORA-01722: 无效数字:(一般可能是企图将字符串类型的值填入数字型而造成)
ORA-06530: ACCESS_INTO_NULL 
Your program attempts to assign values to the attributes of an uninitialized (atomically null) object.
企图将值写入未初化对象的属性
ORA-06592: CASE_NOT_FOUND
None of the choices in the WHEN clauses of a CASE statement is selected, and there is no ELSE clause.
case语句格式有误,没有分支语句
ORA-06531: COLLECTION_IS_NULL
Your program attempts to apply collection methods other than EXISTS to an uninitialized (atomically null)
nested table or varray, or the program attempts to assign values to the elements of an uninitialized nested
table or varray.
企图将集合填入未初始化的嵌套表中
ORA-06511: CURSOR_ALREADY_OPEN
Your program attempts to open an already open cursor. A cursor must be closed before it can be reopened. A
cursor FOR loop automatically opens the cursor to which it refers. So, your program cannot open that cursor
inside the loop.
企图打开已经打开的指针.指针已经打开,,要再次打开必须先关闭.
ORA-00001: DUP_VAL_ON_INDEX
Your program attempts to store duplicate values in a database column that is constrained by a unique index.
数据库字段存储重复,主键唯一值冲突
ORA-01001: INVALID_CURSOR 无效指针
Your program attempts an illegal cursor operation such as closing an unopened cursor.
非法指针操作,例如关闭未打开的指针
ORA-01722: INVALID_NUMBER 无效数字
In a SQL statement, the conversion of a character string into a number fails because the string does not
represent a valid number. (In procedural statements, VALUE_ERROR is raised.) This exception is also raised
when the LIMIT-clause expression in a bulk FETCH statement does not evaluate to a positive number.
在sql语句中,字符数字类型转换错误,无法将字符串转化成有效数字.此错误也可能因为在limit从句表达式中fetch语句无法对应指定数字
ORA-01017: LOGIN_DENIED 拒绝访问
Your program attempts to log on to Oracle with an invalid username and/or password.
企图用无效的用户名或密码登录oracle
ORA-01403: NO_DATA_FOUND 无数据发现
A SELECT INTO statement returns no rows, or your program references a deleted element in a nested table or
an uninitialized element in an index-by table. SQL aggregate functions such as AVG and SUM always return a
value or a null. So, a SELECT INTO statement that calls an aggregate function never raises NO_DATA_FOUND.
The FETCH statement is expected to return no rows eventually, so when that happens, no exception is raised.

ORA-01012: NOT_LOGGED_ON 未登录
Your program issues a database call without being connected to Oracle.
程序发送数据库命令,但未与oracle建立连接

ORA-06501: PROGRAM_ERROR 程序错误
PL/SQL has an internal problem.
pl/sql系统问题

ORA-06504: ROWTYPE_MISMATCH 行类型不匹配
The host cursor variable and PL/SQL cursor variable involved in an assignment have incompatible return types.
For example, when an open host cursor variable is passed to a stored subprogram, the return types of the
actual and formal parameters must be compatible.

ORA-30625: SELF_IS_NULL
Your program attempts to call a MEMBER method on a null instance. That is, the built-in parameter SELF
(which is always the first parameter passed to a MEMBER method) is null.

ORA-06500: STORAGE_ERROR 存储错误
PL/SQL runs out of memory or memory has been corrupted.
PL/SQL运行内存溢出或内存冲突

ORA-06533: SUBSCRIPT_BEYOND_COUNT 子句超出数量
Your program references a nested table or varray element using an index number larger than the number of
elements in the collection.

ORA-06532: SUBSCRIPT_OUTSIDE_LIMIT 子句非法数量
Your program references a nested table or varray element using an index number (-1 for example) that is
outside the legal range.

ORA-01410: SYS_INVALID_ROWID 无效的字段名
The conversion of a character string into a universal rowid fails because the character string does not
represent a valid rowid.

ORA-00051: TIMEOUT_ON_RESOURCE 资源等待超时
A time-out occurs while Oracle is waiting for a resource.

ORA-01422: TOO_MANY_ROWS 返回超过一行
A SELECT INTO statement returns more than one row.

ORA-06502: VALUE_ERROR 值错误
An arithmetic, conversion, truncation, or size-constraint error occurs. For example, when your program selects
a column value into a character variable, if the value is longer than the declared length of the variable,
PL/SQL aborts the assignment and raises VALUE_ERROR. In procedural statements, VALUE_ERROR is raised if the
conversion of a character string into a number fails. (In SQL statements, INVALID_NUMBER is raised.)

ORA-01476: ZERO_DIVIDE 除0错误

linux

推荐阅读
  • 错误:requireluasql.mysqlstdin:1:moduleluasql.mysqlnotfound:nofieldpackage.preload[lua ... [详细]
  • 初探PLC 的ST 语言转换成C++ 的方法
    自动控制软件绕不开ST(StructureText)语言。它是IEC61131-3标准中唯一的一个高级语言。目前,大多数PLC产品支持ST ... [详细]
  • 本文介绍了在开发Android新闻App时,搭建本地服务器的步骤。通过使用XAMPP软件,可以一键式搭建起开发环境,包括Apache、MySQL、PHP、PERL。在本地服务器上新建数据库和表,并设置相应的属性。最后,给出了创建new表的SQL语句。这个教程适合初学者参考。 ... [详细]
  • 本文由编程笔记#小编为大家整理,主要介绍了go接口相关的知识,希望对你有一定的参考价值。一、接口是什么接口提供了一种方式来 说明 对象的行为 ... [详细]
  • Openresty+Lua+Redis灰度发布
    Openresty+Lua+Redis灰度发布灰度发布,简单来说,就是根据各种条件,让一部分用户使用旧版本,另一部分用户使用新版本。百度百科中解释:灰度发布是指在黑与白之间,能够平 ... [详细]
  • cocos2dx-lua使用UIListView制作二级折叠菜单
    折叠菜单,用过jqueryaccordion的同学都知道是啥玩艺儿~,图片效果就是介样:cocos2dx不带有此控件,因此我们动手来实现一个。原理很简单,展开的时候往listview里i ... [详细]
  • Server Installation for Jitsi Meet
    2019独角兽企业重金招聘Python工程师标准ServerInstallationforJitsiMeetThisdescribesconfiguringaserverji ... [详细]
  • 整整的花了一个下午的时候,才在lua中调用了动态链接库。比起其他脚本语言,lua的调用方式算是比较繁琐的,但是lua的编程思想非常的统一& ... [详细]
  • 我有一个非常大的TSV文件。第一行是标题。如果字段为空白,则以下各行包含数 ... [详细]
  • 单目标应用:最有价值球员算法(Most Valuable Player Algorithm,MVPA)求解旅行商问题TSP
    一、最有价值球员算法最有价值球员算法(MostValuablePlayerAlgorithm,MVPA)由Bouchekara等人于20 ... [详细]
  • redis知识汇总[随笔记录]
      ... [详细]
  • --文件IO:分简单模式与完全模式。简单模式在做一些简单的文件操作时较为合适。但是在进行一些高级的文件操作的时候,简单模式就显得力不从心。例如同时读取多 ... [详细]
  • 样式迁移(风格迁移)
    原文来源:https:arxiv.org、https:github.com作者:FujunLuan、SylvainParis、EliShechtman、KavitaB ... [详细]
  • 基于Redis实现分布式锁剖析
    之前的文章《分布式锁详解-分别利用Zookeeper和数据库实现分布式锁》,由于篇幅太长,又碰上加班时间不够充裕,所以没有把Redis的实 ... [详细]
  • luarestyqlesswebUI界面运行
    lua-resty-qless-web是lua-resty-qless的web管理界面以及lua-resty-template模版引擎开发的,里面实现了一个简单的路由功能备注:de ... [详细]
author-avatar
pz51747pz你
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有