共計 1578 個字符,預計需要花費 4 分鐘才能閱讀完成。
這篇文章給大家分享的是有關 oracle 中出現 ORA-12850 錯誤怎么辦的內容。丸趣 TV 小編覺得挺實用的,因此分享給大家做個參考,一起跟隨丸趣 TV 小編過來看看吧。
1. 問題現象
報錯信息如下:
Thu Aug 24
10:01:33 2017
Errors in file
/oradata/diag/rdbms/cdb/cdb2/trace/cdb2_m000_3564.trc:
ORA-12850: 無法在所有指定實例上分配從屬進程: 需要 2, 已分配 1
trace 文件部分輸出輸出:
*** 2017-08-24 10:01:33.324
*** SESSION ID:(1390.13783) 2017-08-24 10:01:33.324
*** CLIENT ID:() 2017-08-24 10:01:33.324
*** SERVICE NAME:(SYS$BACKGROUND) 2017-08-24 10:01:33.324
*** MODULE NAME:(MMON_SLAVE) 2017-08-24 10:01:33.324
*** CLIENT DRIVER:() 2017-08-24 10:01:33.324
*** ACTION NAME:(Automatic Report Flush) 2017-08-24 10:01:33.324
*** CONTAINER ID:(1) 2017-08-24 10:01:33.324
2、報錯分析
在 mos 找到了 2 篇文章和此次報錯相吻合
ORA-12850 is Raised by Mmon Slave Automatic Report Flush Action (文檔 ID 2217969.1)
High CPU Usage and/or Frequent Occurrences of ORA-12850 For Monitor Queries by MMON From 12.1 (文檔 ID 2102131.1)
文中提到引起問題的原因:
bug:24554937 ORA-12850 WHILE MMON SLAVE AUTOMATIC REPORT FLUSH ACTION
There is a new feature in 12C called Automatic Report Capturing Feature . As part of this feature, some monitoring SQLs are executed by MMON_SLAVE to identify the resource-intensive SQLs and generate the SQL Monitoring report automatically for those SQLs. Those SQLs consume little more CPU and it is expected behavior being a new feature. Such monitoring queries can be identified from (G)V$SQLSTATS.
==》大致意思是說 12.1,引入了 Automatic Report Capturing Feature 這個新特性,monitoring SQLs 被執行以便收集 resource-intensive SQLs 信息,生成 SQL Monitoring report. 當 monitoring SQLs 消耗過高的 cpu 時會報 ORA-12850.
3. 解決方案
文章中提供了 2 中解決方案:
1.Apply Patch 24554937 if it is available for your version and platform.
2. 執行以下 sql 禁用新特性
SQL alter system set _report_capture_cycle_time =0;
感謝各位的閱讀!關于“oracle 中出現 ORA-12850 錯誤怎么辦”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,讓大家可以學到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!