Welcome 微信登录

首页 / 数据库 / MySQL / Oracle 标准预定义异常

异定义异常就是那些在pl/sql中已经定义好并给予了异常名称的异常。它们全部放在pl/sql自带的标准包中,这样pl/sql程序员就无需再次定义。Oracle中总共有如下21种标准预定义异常:
Oracle异常名称 错误号 说明 
DUP_VAL_ON_INDEXORA-00001You tried to execute an INSERT or UPDATE statement that has created a duplicate value in a field restricted by a unique index.试图破坏一个唯一性限制
TIMEOUT_ON_RESOURCEORA-00051You were waiting for a resource and you timed out.在等待资源时发生超时
TRANSACTION_BACKED_OUTORA-00061The remote portion of a transaction has rolled back.由于发生死锁事务被撤消
INVALID_CURSORORA-01001You tried to reference a cursor that does not yet exist. This may have happened because you’ve executed a FETCH cursor or CLOSE cursor before OPENing the cursor.试图使用一个未打开的游标
NOT_LOGGED_ONORA-01012You tried to execute a call to Oracle before logging in.没有连接到ORACLE
LOGIN_DENIEDORA-01017You tried to log into Oracle with an invalid username/password combination.无效的用户名/口令
NO_DATA_FOUNDORA-01403SELECT INTO没有找到数据You tried one of the following: You executed a SELECT INTO statement and no rows were returned.You referenced an uninitialized row in a table.You read past the end of file with the UTL_FILE package.
TOO_MANY_ROWSORA-01422SELECT INTO 返回多行You tried to execute a SELECT INTO statement and more than one row was returned.
ZERO_DIVIDEORA-01476试图被零除You tried to divide a number by zero.
INVALID_NUMBERORA-01722转换一个数字失败You tried to execute an SQL statement that tried to convert a string to a number, but it was unsuccessful.
STORAGE_ERRORORA-06500内存不够或内存被破坏引发的内部错误You ran out of memory or memory was corrupted.
PROGRAM_ERRORORA-06501内部错误,需重新安装数据字典视图和pl/sql包This is a generic “Contact Oracle support” message because an internal problem was encountered.
VALUE_ERRORORA-06502赋值操作,变量长度不足,触发该异常You tried to perform an operation and there was a error on a conversion, truncation, or invalid constraining of numeric or character data.
ROWTYPE_MISMATCHORA-6504宿主游标变量与 PL/SQL变量有不兼容行类型
CURSOR_ALREADY_OPENORA-06511试图打开一个已打开的游标You tried to open a cursor that is already open.
ACCESS_INTO_NULLORA-6530试图为null 对象的属性赋值
COLLECTION_IS_NULLORA-6531试图给没有初始化的嵌套表变量或者Varry变量赋值
SUBSCRIPT_OUTSIDE_LIMITORA-6532对嵌套或varray索引使用了负数
SUBSCRIPT_BEYOND_COUNTORA-6533对嵌套或varray索引的引用大于集合中元素的个数
Sun Solaris 问题总结RHEL5 Silent方式安装Oracle 11gR2指南相关资讯      oracle 
  • [INS-32052] Oracle基目录和Oracle  (07/22/2014 07:41:41)
  • Oracle 4个大对象(lobs)数据类型  (02/03/2013 12:33:05)
  • Oracle按时间段分组统计  (07/26/2012 10:36:48)
  • [Oracle] dbms_metadata.get_ddl的  (07/12/2013 07:37:30)
  • Liferay Portal 配置使用Oracle和  (07/31/2012 20:07:18)
  • Concurrent Request:Inactive   (07/20/2012 07:44:05)
本文评论 查看全部评论 (1)
表情: 姓名: 字数


评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论