- 浏览: 1052908 次
- 性别:
- 来自: 郑州
文章分类
- 全部博客 (605)
- 数据挖掘 (22)
- spring (40)
- 工具使用 (39)
- java (137)
- JavaScript (40)
- webwork (12)
- web (120)
- 资源 (7)
- SSH (5)
- oracle (20)
- J2ME (1)
- 环境配置 (37)
- 项目管理 (29)
- mysql (14)
- struts (4)
- 项目总结 (27)
- ibatis学习 (33)
- 学习计划 (2)
- 缓存 (7)
- 重构 (3)
- Android (1)
- jquery (12)
- UML (3)
- 用户体验 (4)
- 习惯 (7)
- sakai (1)
- urlrewrite (4)
- rss (5)
- C plus plus (5)
- 算法 (5)
- 海量数据处理 (7)
- office(word、excel) (1)
- 面试题 (3)
- solr (8)
- 大数据 (2)
最新评论
-
hujin19861102:
截图看不见,最后一个webwrok的配置看不见
Ext+Webwork+Json 实现分页表格查询效果 -
蜗牛笔:
弱弱的问一句,要是分出来的词在词典中没有,那么两部分的pos- ...
ICTCLAS 中科院分词系统 -
weipeng1986:
授人予鱼不如授人予鱼,我想问你的是你是怎么总结的。比如第四种情 ...
JAVA中字符串连接效率的测试 -
xiaoqiang2008:
执行两次的原因是什么,好像楼主没弄清楚啊!是不是在web.xm ...
关于Spring中用quartz定时器在定时到达时同时执行两次的问题 -
Kent_Mu:
...
ibatis-dynamic的用法
Oracle关于java.sql.SQLException常见错误集锦
2009年07月26日 星期日 下午 02:35
最近使用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错误
本文来自CSDN博客,转载请标明出处:
http://blog.csdn.net/JavaAlpha/archive/2009/08/07/4420948.aspx
2009年07月26日 星期日 下午 02:35
最近使用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错误
本文来自CSDN博客,转载请标明出处:
http://blog.csdn.net/JavaAlpha/archive/2009/08/07/4420948.aspx
发表评论
-
Oracle跨数据库查询并插入 .
2012-03-08 13:01 2147原文地址: http: ... -
SQL中的CASE WHEN使用
2010-09-09 23:54 961SQL中的CASE WHEN使用 http://huayon ... -
ORACLE中的BITAND函数
2010-07-24 16:04 13588http://hi.baidu.com/hihelens/bl ... -
Select…For Update语句与锁
2010-07-23 17:37 2155Select…For Update语句与锁 ... -
ORA-00918: column ambiguously defined
2010-07-04 11:58 6133ORA-00918: column ambiguousl ... -
为什么group by 和 order by会使查询变慢
2010-05-17 23:03 1427为什么group by 和 order by会使查询变慢 ... -
关于数据库表的设计步骤
2010-03-31 00:25 1089关于数据库表的设计1、首先根据相关业务需求(主要参考输出输入条 ... -
row_number()over函数的使用
2010-03-10 22:36 1396http://hi.baidu.com/122439049/b ... -
恢复删除的表结构【转】
2010-03-10 22:23 12461.删除表中数据两种方法 a. delete ... -
创建56个民族数据库表SQL语句
2009-12-01 16:02 3113创建56个民族数据库表SQL语句 Sql代码 ... -
oracle rownum
2009-11-25 22:52 1142在使用oracle的ro ... -
sql要点
2009-10-28 23:49 1031海量数据查询优化技巧 1.对查询进行优化,应尽量避免全表扫描 ... -
MySQL 命令行
2009-10-23 15:09 797第一招、mysql服务的启 ... -
数据库设计的14个技巧
2009-09-26 14:23 543http://tdjava.iteye.com/blog/47 ... -
Oracle左右全连接 收藏
2009-08-22 12:43 919--建立测试数据 create table a( ... -
各种数据库 取出指定条数记录
2009-08-17 12:54 1980http://www.diybl.com/course/7_d ... -
mysql命令
2009-08-14 21:59 863http://zhuxinyu.iteye.com/blog/ ... -
The Network Adapter could not establish the connection
2009-08-08 00:41 1696具体情况是这样,Oracle10g数据库。是局域网,所以我的I ... -
oracle维护常用的SQL
2009-07-15 11:42 1124-------------cpu_time占用top 10的s ...
相关推荐
ORA-00904 是一个常见的错误信息,通常发生在 SQL 语句中引用了一个不存在的列名。这种错误通常是由于开发者在编写 SQL 语句时,忘记了某个列名或写错了列名,导致 Oracle 无法找到该列名。解决这个错误的方法是,...
本篇将详细探讨`java.sql.SQLException`的各种常见类型及其解决策略,帮助开发者更好地理解和处理这些错误。 1. **连接问题** - `java.sql.SQLException: No suitable driver found for.jdbc:oracle:thin:@...
在Oracle数据库系统中,"ORA-00060: 等待资源时检测到死锁" 是一个常见的错误提示,它表明两个或多个事务在执行过程中陷入了无法继续进行的状态,因为彼此都在等待对方释放资源。这种情况通常发生在并发操作中,比如...
标题中的问题“Cause: java.sql.SQLException: The server time zone value”是Java开发者在使用IDEA(IntelliJ IDEA)进行数据库连接时常见的错误提示。这个错误通常发生在尝试连接到MySQL等SQL数据库时,由于...
在使用ojdbc7.jar时,可能遇到的常见问题包括权限问题、驱动版本不兼容、TNS配置错误等。解决这些问题通常需要检查数据库连接参数、JDBC驱动版本、网络设置以及Oracle客户端配置。 总的来说,尽管ojdbc7.jar不在...
Oracle 9i纯Java驱动程序是Oracle公司为Java开发者提供的一种连接Oracle数据库的接口,它完全用Java语言编写,可以在任何支持Java的平台上运行,无需依赖特定操作系统或硬件的本地库。这种驱动程序通常被称为Type 4 ...
在Java编程环境中,连接Oracle 12c数据库是常见的需求,尤其在开发企业级应用时。Oracle 12c是Oracle公司推出的最新版本的数据库管理系统,提供了许多性能优化和高级特性。然而,为了使Java应用程序能够顺利地与...
在使用 JDBC(Java Database Connectivity)连接 Oracle 数据库时,可能会遇到一个常见的问题:从远程 Oracle 数据库获取的数据出现乱码现象。这种情况通常发生在远程 Oracle 数据库与本地 Oracle 数据库的字符集...
Java使用JDBC(Java Database Connectivity)来连接Oracle数据库是一个常见的任务,它允许Java应用程序与各种数据库进行交互。在本场景中,`ojdbc6.jar`是Oracle提供的JDBC驱动程序,用于建立Java应用程序与Oracle...
Java连接SQL Server 2005是数据库开发中的常见任务,尤其对于Java开发者而言,理解如何建立这样的连接至关重要。在给定的压缩包文件中,包含了一些关键的库文件,这些文件将帮助我们实现这个目标。 首先,`sqljdbc....
【Java实现SQL Server到Oracle数据迁移】 在信息技术领域,数据迁移是常见的操作,尤其是在企业级应用中,由于业务需求或系统升级,可能需要将数据从一个数据库系统迁移到另一个。本篇文章将详细介绍如何使用Java来...
在MyEclipse中连接Oracle数据库是一项常见的开发任务,主要用于实现Java应用程序与数据库的交互。以下是一些关于如何在MyEclipse环境下使用Java连接Oracle数据库的关键知识点: 1. **环境准备**: - 安装MyEclipse...
ORA-01157 错误是 Oracle 数据库中一个常见的错误代码,其全称是:“ORA-01157: 无法识别/文件 - DBWR 文件”。这个错误通常发生在数据库启动过程中,当数据库尝试读取或写入数据文件时出现问题。 #### 问题原因 此...
在Oracle数据库管理中,"ORA-28001 the password has expired" 是一个常见的错误,它表明数据库用户的密码已经超过了预设的有效期限,导致用户无法正常登录。这个错误主要出现在Oracle 11G及更高版本中,因为这些...
在Java编程语言中,Oracle数据库是常见的数据存储和管理平台,尤其在企业级应用中广泛使用。本示例"java oracle练习例子"旨在提供一个基础的Java程序,演示如何使用JDBC(Java Database Connectivity)API连接到...
### Java中通过JDBC (Thin方式)...综上所述,通过Java的JDBC Thin驱动连接Oracle数据库是一种常见且实用的方式。开发者需要关注数据库连接、SQL执行、结果处理以及异常处理等关键步骤,以确保程序能够稳定高效地运行。
在Java编程中,与Oracle数据库进行交互是常见的需求,特别是在处理并发事务时,可能需要对表进行锁定以确保数据的一致性。本篇将详细讲解如何在Java中调用Oracle的锁表命令。 首先,Oracle数据库提供了多种锁类型,...
在Java编程中,连接Oracle数据库是一项常见的任务,用于读取、写入或处理存储在数据库中的数据。Oracle数据库是企业级应用广泛使用的数据库系统,而Java作为一种多平台支持的编程语言,提供了多种方式来实现与Oracle...
然而,描述中指出在使用过程中遇到了一些问题,这可能包括错误代码“ORA-24345:出现截断或空读取错误”,这是Oracle数据库系统中一个常见的错误,通常与数据读取或写入过程中的数据长度不匹配有关。 错误的产生...
Java连接Oracle数据库是Java开发中的常见任务,尤其对于初学者来说,掌握这一技能至关重要。Oracle数据库是企业级的关系型数据库管理系统,广泛应用于大型系统中。本文将深入探讨如何使用Java来连接Oracle数据库,...