Oracle oerr工具介紹


(1)什么是oerr

oerr是Oracle提供的在UNIX/Linux上查看Oracle錯誤的小工具,使用起來非常方便。

(2)如何使用

oerr工具位於ORACLE_HOME下面,可以使用which查看

[oracle@redhat6 ~]$ which oerr
/u01/app/oracle/product/11.2.0/db_1/bin/oerr

使用oerr查看Oracle的報錯信息及解決方案

例子1.使用oerr查看ORA-00060錯誤的原因及解決方案

[oracle@redhat6 ~]$ oerr ora 60
00060, 00000, "deadlock detected while waiting for resource"
// *Cause :  Transactions deadlocked one another while waiting for resources.
// *Action: Look at the trace file to see the transactions and resources
//          involved. Retry if necessary.

例子2.使用oerr查看ORA-01502錯誤的原因及解決方案

[oracle@redhat6 ~]$ oerr ora 01502
01502, 00000, "index '%s.%s' or partition of such index is in unusable state"
// MERGE: 1489 RENUMBERED TO 1502
// *Cause: An attempt has been made to access an index or index partition
//         that has been marked unusable by a direct load or by a DDL
//         operation
// *Action: DROP the specified index, or REBUILD the specified index, or
//         REBUILD the unusable index partition

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM