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

在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博客 ” ,链接:http://blog.itpub.net/27480945/viewspace-757810/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/27480945/viewspace-757810/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值