- 1、本文档共19页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Oracle 标准预定义异常
异定义异常就是那些在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 op
您可能关注的文档
- DNde规定.doc
- DN800液控蝶阀投标方案及技术参数.doc
- domino设置分区服务器.doc
- DP算法总结.doc
- DLL编程基础.doc
- DSP2012期中考试.doc
- DS5020 易捷版介绍.doc
- DIY清洗POLO节气门手动匹配全过程.doc
- DR7500双板机配置通用.doc
- DSP进入双核时代.docx
- 10《那一年,面包飘香》教案.docx
- 13 花钟 教学设计-2023-2024学年三年级下册语文统编版.docx
- 2024-2025学年中职学校心理健康教育与霸凌预防的设计.docx
- 2024-2025学年中职生反思与行动的反霸凌教学设计.docx
- 2023-2024学年人教版小学数学一年级上册5.docx
- 4.1.1 线段、射线、直线 教学设计 2024-2025学年北师大版七年级数学上册.docx
- 川教版(2024)三年级上册 2.2在线导航选路线 教案.docx
- Unit 8 Dolls (教学设计)-2024-2025学年译林版(三起)英语四年级上册.docx
- 高一上学期体育与健康人教版 “贪吃蛇”耐久跑 教案.docx
- 第1课时 亿以内数的认识(教学设计)-2024-2025学年四年级上册数学人教版.docx
文档评论(0)