ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle的oerr工具查看sqlcode的内容、原因和处理办法

oracle的oerr工具查看sqlcode的内容、原因和处理办法

原创 Linux操作系统 作者:heloonghan 时间:2013-04-06 09:53:02 0 删除 编辑
在sql语句或者pl/sql语句使用过程中经常会出现错误,比如ora-00001,ora-01476,很多时候从错误的显示中我们可以知道错误的处理办法,如果想进一步了解错误的原因和处理办法可以使用oralce自身的工具oerr,具体如下

    在linux和unix平台:
1.ora-00001错误
[oracle@ora11g ~]$ oerr ora 0001
00001, 00000, "unique constraint (%s.%s) violated"
// *Cause: An UPDATE or INSERT statement attempted to insert a duplicate key.
//         For Trusted Oracle configured in DBMS MAC mode, you may see
//         this message if a duplicate entry exists at a different level.
// *Action: Either remove the unique restriction or do not insert the key.

1.ora-01476错误
[oracle@ora11g ~]$ oerr ora 1476
01476, 00000, "divisor is equal to zero"
// *Cause:
// *Action:

    这样可以很方便的得到错误的原因和处理办法,便于错误解决。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27480945/viewspace-757810/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2012-08-09

  • 博文量
    6
  • 访问量
    37513