在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/