当前位置:  数据库>oracle

Oracle 标准预定义异常

    来源: 互联网  发布时间:2017-03-28

    本文导语: 异定义异常就是那些在pl/sql中已经定义好并给予了异常名称的异常。它们全部放在pl/sql自带的标准包中,这样pl/sql程序员就无需再次定义。 Oracle中总共有如下21种标准预定义异常: Oracle异常名称  错误号  说明  DUP_VAL_ON_I...

异定义异常就是那些在pl/sql中已经定义好并给予了异常名称的异常。它们全部放在pl/sql自带的标准包中,这样pl/sql程序员就无需再次定义。

Oracle中总共有如下21种标准预定义异常:

Oracle异常名称 

错误号 

说明 

DUP_VAL_ON_INDEX

ORA-00001

You tried to execute an INSERT or UPDATE statement that has created a duplicate value in a field restricted by a unique index.试图破坏一个唯一性限制

TIMEOUT_ON_RESOURCE

ORA-00051

You were waiting for a resource and you timed out.在等待资源时发生超时

TRANSACTION_BACKED_OUT

ORA-00061

The remote portion of a transaction has rolled back.由于发生死锁事务被撤消

INVALID_CURSOR

ORA-01001

You 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_ON

ORA-01012

You tried to execute a call to Oracle before logging in.没有连接到ORACLE

LOGIN_DENIED

ORA-01017

You tried to log into Oracle with an invalid username/password combination.无效的用户名/口令

NO_DATA_FOUND

ORA-01403

SELECT 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_ROWS

ORA-01422

SELECT INTO 返回多行You tried to execute a SELECT INTO statement and more than one row was returned.

ZERO_DIVIDE

ORA-01476

试图被零除You tried to divide a number by zero.

INVALID_NUMBER

ORA-01722

转换一个数字失败You tried to execute an SQL statement that tried to convert a string to a number, but it was unsuccessful.

STORAGE_ERROR

ORA-06500

内存不够或内存被破坏引发的内部错误You ran out of memory or memory was corrupted.

PROGRAM_ERROR

ORA-06501

内部错误,需重新安装数据字典视图和pl/sql包This is a generic “Contact Oracle support” message because an internal problem was encountered.

VALUE_ERROR

ORA-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_MISMATCH

ORA-6504

宿主游标变量与 PL/SQL变量有不兼容行类型

CURSOR_ALREADY_OPEN

ORA-06511

试图打开一个已打开的游标You tried to open a cursor that is already open.

ACCESS_INTO_NULL

ORA-6530

试图为null 对象的属性赋值

COLLECTION_IS_NULL

ORA-6531

试图给没有初始化的嵌套表变量或者Varry变量赋值

SUBSCRIPT_OUTSIDE_LIMIT

ORA-6532

对嵌套或varray索引使用了负数

SUBSCRIPT_BEYOND_COUNT

ORA-6533

对嵌套或varray索引的引用大于集合中元素的个数


    
 
 
 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • Oracle 12c发布简单介绍及官方下载地址
  • 在linux下安装oracle,如何设置让oracle自动启动!也就是让oracle那个服务自动启动,不是手动的
  • oracle 11g最新版官方下载地址
  • 请问su oracle 和su - oracle有什么不同?
  • Oracle 数据库(oracle Database)Select 多表关联查询方式
  • 虚拟机装Oracle R12与Oracle10g
  • Oracle数据库(Oracle Database)体系结构及基本组成介绍
  • Oracle 数据库开发工具 Oracle SQL Developer
  • 如何设置让Oracle SQL Developer显示的时间包含时分秒
  • Oracle EBS R12 支持 Oracle Database 11g
  • Oracle 10g和Oracle 11g网格技术介绍
  • SCO unix下安装oracle,但没有光盘,请大家推荐一个oracle下载站点(unix版本的)。谢谢!!!!
  • oracle中如何把表中具有相同值列的多行数据合并成一行
  • Linux /$ORACLE_HOME $ORACLE_HOME
  • Oracle 数据库(oracle Database)性能调优技术详解
  • Linux系统下Oracle的启动与Oracle监听的启动
  • ORACLE日期相关操作
  • 请问在solaris下安装ORACLE,用root用户和用oracle用户安装有什么区别么?
  • ORACLE数据库常用字段数据类型介绍
  • 网间Oracle的连接,远程连接Oracle服务器??
  • Oracle 12c的九大最新技术特性介绍
  • 请教:.profile中:if [ -d /opt/oracle/db01/app/oracle/product/9.2.0 ]是什么意思?


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3