經驗 檢視oracle錯誤資訊的兩種方法

2021-06-19 00:41:27 字數 689 閱讀 8422

oracle又報錯了,但是他的錯誤碼讓我一頭霧水。我怎麼知道他的錯誤碼是什麼含義呢??該死的oracle為什麼有這麼多錯誤碼呀??

不要生氣,oracle雖然有很多錯誤碼。但是他已經給你方法去檢視這些錯誤碼的具體含義,以及怎麼解決這些問題。這裡提供兩種方法。

1)使用oerr命令

在oracle的伺服器上直接敲命令oerr 錯誤型別 錯誤編號,oracle會告訴你錯在什麼地方,怎麼解決這個錯誤。例如你遇到了錯誤編號為ora-03206的錯誤,那麼ora("-"前面的)是錯誤型別,03206是錯誤編號。那麼我在oracle伺服器上執行oerr ora 03206,出現了錯誤幫助。

[oracle@localhost ~]$ oerr ora 03206

03206, 00000, "maximum file size of (%s) blocks in autoextend clause is out of range"

// *cause: the maximum file size for an autoextendable file has

//         exceeded the maximum number of blocks allowed.

// *action: reduce the size and retry.

[oracle@localhost ~]$

2)檢視oracle的文件

檢視錯誤資訊

上線之後,可能會出現bug,此時需要檢視後台日誌,這時就遇到了困難.第一,因為檢視日誌,需要找運維,很麻煩 第二 線上日誌很多,很雜,因為多個應用部署在同乙個tomcat上,所以tomcat日誌檔案包含多個專案的檔案,不方便過濾.所以決定以後檢視日誌不依賴運維.怎麼辦呢?把核心介面的錯誤資訊儲存到r...

ORACLE 錯誤資訊速查

ora 01006 bind variable does not exist 例 execute immediate select from emp e where e.empno empno using tom 26 解釋 傳的引數多餘sql中接收的引數個數。此例,本來只應該傳入乙個引數,而我卻傳...

檢視具體datatable的錯誤資訊

遇到這個錯誤 failed to enable constraints.one or more rows contain values violatingnon null,unique,or foreign key constraints。它檢查dataset中的所有datatable的haserr...