日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

执行DBMS_SQLTUNE优化sql或dbms_stats收集统计信息报错:ORA-20003

發(fā)布時間:2023/12/16 数据库 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 执行DBMS_SQLTUNE优化sql或dbms_stats收集统计信息报错:ORA-20003 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
os:rhel6.8 64 2.6.32
db:oracle 11.2.0.3.11 rac

執(zhí)行DBMS_SQLTUNE優(yōu)化sql或dbms_stats收集統(tǒng)計信息報錯:ORA-20003: Specified bug number (16470836) does not exist
這個錯誤很早之前就遇到了,當(dāng)時查了mos,已經(jīng)大概找到原因。但是一直沒有停機(jī)窗口來維護(hù)。這次在執(zhí)行DBMS_SQLTUNE優(yōu)化sql時又遇上了,這里做一個簡單的記錄。

這套系統(tǒng)是從windows平臺rac遷移到linux平臺rac的,由于兩個平臺沒有互相匹配的補(bǔ)丁號,當(dāng)時在安裝linux的rac時,找了一個與windows上版本(patch bundle 31)相近的11.2.0.3.11來打補(bǔ)丁,使用物理dg做遷移,在遷移完成后沒有執(zhí)行upgrade的sql。

mos上說的原因:This issue is caused by a mismatch between the DBMS_STATS package and the binary executable.包與實際的二進(jìn)制可執(zhí)行文件不匹配,聯(lián)想到當(dāng)時遷移后沒有執(zhí)行upgrade,基本確認(rèn)就是這個問題。
解決方法是重建dbms_stats包。
mos原文如下:
Gathering Statistics with DBMS_STATS Fails Raising 'ORA-20003: Specified Bug Number (%s) Does Not Exist' Where the Bug number Reported is 5099019 or 16470836 (Doc ID 1180514.1)

To Bottom

In this Document


Symptoms

Changes

Cause

Solution

References


Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 and later
Information in this document applies to any platform.

Symptoms

Executing DBMS_STATS fails with either of the following error messages:

SQL> set serveroutput on SQL> exec dbms_stats.gather_table_stats(ownname=> 'SCHEMA',tabname=> 'TABLE_NAME', degree=>4 , cascade=>TRUE, estimate_percent=>25);BEGIN dbms_stats.gather_table_stats(ownname=> 'SCHEMA',tabname=> 'TABLE_NAME', degree=>4 , cascade=>TRUE, estimate_percent=>25); END; * ERROR at line 1: ORA-20003: Specified bug number (5099019) does not exist ORA-06512: at "SYS.DBMS_STATS", line 13474 ORA-06512: at "SYS.DBMS_STATS", line 13494 ORA-06512: at line 1

or

SQL error -20003 at location stats_tab_collect-21, SQL statement: 'BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SCHEM"', TABNAME => '"TABLE_NAME"', ESTIMATE_PERCENT => NULL, METHOD_OPT => 'FOR ALL COLUMNS SIZE 1', DEGREE => NULL, CASCADE => TRUE, NO_INVALIDATE => FALSE); END;' ORA-20003: Specified bug number (16470836) does not exist ORA-06512: at "SYS.DBMS_STATS", line 24301 ORA-06512: at "SYS.DBMS_STATS", line 24352 ORA-06512: at line 1

Changes

An upgrade may have occurred, but this is not necessary to trigger this issue.

Cause

This issue is caused by a mismatch between the DBMS_STATS package and the binary executable. If one has been updated and the other has not then errors will occur. The cause of the issue is one of:

1) Problems with validity of the dictionary objects upon which DBMS_STATS package depends.? This is documented in the following bug:

Bug 8643809 ORA-20003: SPECIFIED BUG NUMBER (5099019) DOES NOT EXIST

Post installation steps should install / validate these packages. If this was not done then this can cause the issue.

2) Relinking of the binary executable files has not occurred following a patch application. This can occur when multiple patches are applies and the -no_relink flag has been used on the opatch command to avoid linking every time. If this option is used on all the applications then necessary relinking will not occur. See opatch help:

opatch apply -help-no_relinkThe nolink option does not perform any make operations.This option can be used during multiple patchapplications and perform the linking step only once.OPatch does not keep track of the make operations itdid not perform. It is the job of the OPatch users tomake sure the execute OPatch without this option atthe end, so that compilation happens once


Solution

The following have resolved the issue:

1) Recreate DBMS_STATS package by running the following scripts:

@?/rdbms/admin/dbmsstat.sql
? @?/rdbms/admin/prvtstas.plb
? @?/rdbms/admin/prvtstat.plb

We recommend running these scripts during maintenance window while database in restricted mode to avoid problems that can be caused when other sessions access the same objects.

2) If a patch or an upgrade has been performed, relink the binaries after applying the patch. See the following for details:

Document 1467060.1 Relinking Oracle Home FAQ ( Frequently Asked Questions)


References


NOTE:868717.1 - EMCA Fails with: ORA-20003: Specified Bug Number (5099019) Does Not Exist
NOTE:1467060.1 - Relinking Oracle Home FAQ ( Frequently Asked Questions)
NOTE:16470836.8 - Bug 16470836 - High DML rate against MON_MODS$ related to DBMS_STATS

來自 “ ITPUB博客 ” ,鏈接:http://blog.itpub.net/29822273/viewspace-2139924/,如需轉(zhuǎn)載,請注明出處,否則將追究法律責(zé)任。

轉(zhuǎn)載于:http://blog.itpub.net/29822273/viewspace-2139924/

總結(jié)

以上是生活随笔為你收集整理的执行DBMS_SQLTUNE优化sql或dbms_stats收集统计信息报错:ORA-20003的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: eeuss日韩 | 中文字幕高清视频 | 绝顶高潮合集videos | 人人妻人人澡人人爽欧美一区 | 国产精品美女毛片真酒店 | 国产精品永久在线观看 | 亚洲最大福利视频网 | av综合在线观看 | 中文字幕一区二区人妻视频 | 国产精品视频区 | 中文字幕福利视频 | 在线日韩免费 | 欧美日本三级 | 国产黄色片网站 | 潘金莲一级淫片aaaaaa播放 | 最近的中文字幕 | 欧美三日本三级少妇三 | 日韩黄色在线观看 | 欧美黄色小说 | 人人澡人人爽 | 黄色视屏在线免费观看 | 亚洲激情 | 国产免费久久 | 亚洲精品成人片在线观看精品字幕 | 国产精品专区在线观看 | 国产欧美一区二区精品久久久 | 国产精品7777777| 免费荫蒂添的好舒服视频 | 亚洲成人aa | 成人小视频在线观看 | 九色国产在线 | 日韩国产精品一区二区三区 | 婷婷色亚洲 | 欧美黄色一级 | 国产精品一区二区在线看 | 老鸭窝视频在线观看 | 日韩黄色片子 | 波多野结衣av中文字幕 | 美女扒开下面让男人捅 | 麻豆自拍偷拍 | 亚洲成在人 | 亚洲精品aa| 亚洲第一激情 | 男女午夜激情 | 在线观看亚洲av每日更新 | 成人国产三级 | 国产日本在线播放 | 国内成人精品 | 青草青草久热 | 神马午夜影院 | 国产在线观看免费av | 国产成人麻豆免费观看 | 在线观看免费视频 | 最新av免费| 精品一区二区三区四区五区 | 中国性猛交 | 欧美爱爱免费视频 | 亚洲第一视频在线 | 成人无码av片在线观看 | 五月综合久久 | 97国产在线视频 | 日韩 国产 一区 | 91精品久久久久久久99蜜桃 | 丰满人妻一区二区三区无码av | 成人小视频免费看 | 岛国久久久| 女人18毛片水真多18精品 | 91黄址 | 超碰av在线 | 国产美女永久免费无遮挡 | 四虎黄色影视 | 国产精品资源网站 | 99av视频| 野花视频在线观看免费 | 无码国产69精品久久久久网站 | 激情国产视频 | 亚洲av中文无码乱人伦在线观看 | 亚洲午夜av久久乱码 | 九九热这里有精品视频 | 国产原创剧情av | 96精品国产 | 国产成人观看 | 久久精品黄色片 | 国产一区二区小说 | 黄色在线观看网址 | 亚洲AV无码久久精品浪潮 | 女人久久久| 黄色一级片在线播放 | 水果派解说av| 日韩一级片网址 | 亚洲va久久久噜噜噜久久天堂 | 国产成人三级在线 | 韩国伦理片在线看 | 日日操天天操夜夜操 | 国产亚洲精品成人无码精品网站 | 一本一本久久a久久精品综合麻豆 | 亚洲精品二 | 人与拘一级a毛片 | 中文字幕一区二区三区免费看 |