ORA-04063: package body "DBSNMP.BSLN_INTERNAL" has errors
ORA-04063: package body "DBSNMP.BSLN_INTERNAL" has errors
问题描述:
警告日志出现报错:
Sun Jun 21 00:00:00 2020
Errors in file /u01/app/oracle/diag/rdbms/zbqdb/zbqdbi1/trace/zbqdbi1_j000_8787.trc:
ORA-12012: error on auto execute of job "SYS"."BSLN_MAINTAIN_STATS_JOB"
ORA-04063: package body "DBSNMP.BSLN_INTERNAL" has errors
ORA-06508: PL/SQL: could not find program unit being called: "DBSNMP.BSLN_INTERNAL"
ORA-06512: at line 1
Trc文件信息:
ORA-12012: error on auto execute of job "SYS"."BSLN_MAINTAIN_STATS_JOB"
ORA-04063: package body "DBSNMP.BSLN_INTERNAL" has errors
ORA-06508: PL/SQL: could not find program unit being called: "DBSNMP.BSLN_INTERNAL"
ORA-06512: at line 1
*** CLIENT ID:() 2020-06-21 00:00:00.960 CursorDiagnosticsNodes:
ChildNode: ChildNumber=7 ID=3 reason=Optimizer mismatch(10) size=3x4 optimizer_mode_hinted_cursor=0 optimizer_mode_cursor=1 optimizer_mode_current=4
ChildNode: ChildNumber=10 ID=3 reason=Optimizer mismatch(10) size=3x4 optimizer_mode_hinted_cursor=0 optimizer_mode_cursor=4 optimizer_mode_current=1
ChildNode: ChildNumber=8 ID=3 reason=Optimizer mismatch(4) size=5x4 pqCurMode=0 pqSesMode=2 pqCurDop=0 pqSesDop=20 isParallel=0
ChildNode: ChildNumber=8 ID=3 reason=Optimizer mismatch(10) size=3x4 optimizer_mode_hinted_cursor=0 optimizer_mode_cursor=4 optimizer_mode_current=1
ChildNode: ChildNumber=1 ID=3 reason=Optimizer mismatch(4) size=5x4 pqCurMode=1 pqSesMode=0 pqCurDop=0 pqSesDop=0 isParallel=0
ChildNode: ChildNumber=1 ID=3 reason=Optimizer mismatch(10) size=3x4 optimizer_mode_hinted_cursor=0 optimizer_mode_cursor=4 optimizer_mode_current=1
ChildNode: ChildNumber=9 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=2000 upgradeable_new_oacmxl=32
ChildNode: ChildNumber=5 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=32 upgradeable_new_oacmxl=2000
ChildNode: ChildNumber=4 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=2000 upgradeable_new_oacmxl=32
ChildNode: ChildNumber=3 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=32 upgradeable_new_oacmxl=2000
ChildNode: ChildNumber=10 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=2000 upgradeable_new_oacmxl=32
ChildNode: ChildNumber=8 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=32 upgradeable_new_oacmxl=2000
ChildNode: ChildNumber=1 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=128 upgradeable_new_oacmxl=32
ChildNode: ChildNumber=6 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=32 upgradeable_new_oacmxl=128
ChildNode: ChildNumber=0 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=32 upgradeable_new_oacmxl=128
ChildNode: ChildNumber=2 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=32 upgradeable_new_oacmxl=2000
ChildNode: ChildNumber=4 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1591821337 ksugctm=1591891199
ChildNode: ChildNumber=11 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=11 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1571530493 ksugctm=1571590865
AgedOutCursorDiagnosticNodes:
ChildNode: ChildNumber=9 ID=3 reason=Optimizer mismatch(10) size=3x4 optimizer_mode_hinted_cursor=0 optimizer_mode_cursor=1 optimizer_mode_current=4
ChildNode: ChildNumber=5 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=128 upgradeable_new_oacmxl=32
ChildNode: ChildNumber=5 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1589578234 ksugctm=1589580000
ChildNode: ChildNumber=5 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=5 ID=3 reason=Optimizer mismatch(10) size=3x4 optimizer_mode_hinted_cursor=0 optimizer_mode_cursor=4 optimizer_mode_current=1
ChildNode: ChildNumber=4 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1588184597 ksugctm=1588255199
ChildNode: ChildNumber=4 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=4 ID=3 reason=Optimizer mismatch(10) size=3x4 optimizer_mode_hinted_cursor=0 optimizer_mode_cursor=4 optimizer_mode_current=1
ChildNode: ChildNumber=3 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=2000 upgradeable_new_oacmxl=32
ChildNode: ChildNumber=3 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1586797484 ksugctm=1586804402
ChildNode: ChildNumber=3 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=3 ID=3 reason=Optimizer mismatch(10) size=3x4 optimizer_mode_hinted_cursor=0 optimizer_mode_cursor=4 optimizer_mode_current=1
ChildNode: ChildNumber=7 ID=3 reason=Optimizer mismatch(10) size=3x4 optimizer_mode_hinted_cursor=0 optimizer_mode_cursor=1 optimizer_mode_current=4
ChildNode: ChildNumber=7 ID=3 reason=Optimizer mismatch(4) size=5x4 pqCurMode=0 pqSesMode=2 pqCurDop=0 pqSesDop=20 isParallel=0
ChildNode: ChildNumber=10 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=2000 upgradeable_new_oacmxl=32
ChildNode: ChildNumber=10 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1570559985 ksugctm=1570561201
ChildNode: ChildNumber=10 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=9 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1584173443 ksugctm=1584180287
ChildNode: ChildNumber=9 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=8 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1583007717 ksugctm=1583082068
ChildNode: ChildNumber=8 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=7 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1581802270 ksugctm=1581804001
ChildNode: ChildNumber=7 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=1 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1585449967 ksugctm=1585461965
ChildNode: ChildNumber=1 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=6 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1580519443 ksugctm=1580572799
ChildNode: ChildNumber=6 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=5 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=32 upgradeable_new_oacmxl=2000
ChildNode: ChildNumber=0 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1579313709 ksugctm=1579327475
ChildNode: ChildNumber=0 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=4 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1576984340 ksugctm=1576994549
ChildNode: ChildNumber=4 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=3 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1575914907 ksugctm=1575918001
ChildNode: ChildNumber=3 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=2 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1574789140 ksugctm=1574792366
ChildNode: ChildNumber=2 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=1 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1573663238 ksugctm=1573664466
ChildNode: ChildNumber=1 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=9 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=32 upgradeable_new_oacmxl=2000
ChildNode: ChildNumber=8 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1569614353 ksugctm=1569621602
ChildNode: ChildNumber=8 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=7 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=2000 upgradeable_new_oacmxl=32
ChildNode: ChildNumber=7 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1568568525 ksugctm=1568571136
ChildNode: ChildNumber=7 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=6 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=32 upgradeable_new_oacmxl=2000
ChildNode: ChildNumber=0 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=2000 upgradeable_new_oacmxl=32
ChildNode: ChildNumber=0 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1572645648 ksugctm=1572710399
ChildNode: ChildNumber=0 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=5 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=2000 upgradeable_new_oacmxl=32
ChildNode: ChildNumber=5 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1567625685 ksugctm=1567630818
ChildNode: ChildNumber=5 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=4 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=9 original_oacflg=33 original_oacmxl=32 upgradeable_new_oacmxl=2000
ChildNode: ChildNumber=3 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1566623051 ksugctm=1566626606
ChildNode: ChildNumber=3 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=2 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1565723988 ksugctm=1565730013
ChildNode: ChildNumber=2 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=1 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1564767099 ksugctm=1564772400
ChildNode: ChildNumber=1 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
ChildNode: ChildNumber=0 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1563809364 ksugctm=1563811200
ChildNode: ChildNumber=0 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
问题原因:
1.BSLN_INTERNAL包体对象处于无效状态。
select owner,object_name,object_type,status from dba_objects where owner='DBSNMP' and object_name='BSLN_INTERNAL'; OWNER OBJECT_NAME OBJECT_TYPE STATUS
---------- ------------------------------ --------------------------------------------------------- ----------
DBSNMP BSLN_INTERNAL PACKAGE VALID
DBSNMP BSLN_INTERNAL PACKAGE BODY INVALID
2.出于安全原因,已删除了DBMS_JOB包上的public特权。导致dbsnmp执行dbms_job权限不够报错。
select * from dba_tab_privs where table_name='DBMS_JOB'; GRANTEE OWNER TABLE_NAME GRANTOR PRIVILEGE GRANTABLE HIERARCHY
--------------- ---------- --------------- ------------ -------------------- --------- ---------
XX_XXXXX_XXXXX SYS DBMS_JOB SYS EXECUTE NO NO
处理过程:
1.必须将DBMS_JOB的显式权限授予DBSNMP用户。
2.重编译失效对象;
11:23:19 sys@xxxxx1(xxxxx1)> select owner,object_name,object_type,status from dba_objects where owner='DBSNMP' and object_name='BSLN_INTERNAL'; OWNER OBJECT_NAME OBJECT_TYPE STATUS
---------- ------------------------------ --------------------------------------------------------- ----------
DBSNMP BSLN_INTERNAL PACKAGE VALID
DBSNMP BSLN_INTERNAL PACKAGE BODY INVALID Elapsed: 00:00:00.02
11:23:22 sys@xxxxx1(xxxxx1)> alter package DBSNMP.BSLN_INTERNAL compile body ; Warning: Package Body altered with compilation errors. Elapsed: 00:00:00.26
11:23:30 sys@xxxxx1(xxxxx1)> select owner,object_name,object_type,status from dba_objects where owner='DBSNMP' and object_name='BSLN_INTERNAL'; OWNER OBJECT_NAME OBJECT_TYPE STATUS
---------- ------------------------------ --------------------------------------------------------- ----------
DBSNMP BSLN_INTERNAL PACKAGE VALID
DBSNMP BSLN_INTERNAL PACKAGE BODY INVALID Elapsed: 00:00:00.00
11:23:37 sys@xxxxx1(xxxxx1)> GRANT EXECUTE ON sys.dbms_job to DBSNMP; Grant succeeded. Elapsed: 00:00:00.06
11:23:49 sys@xxxxx1(xxxxx1)> alter package DBSNMP.BSLN_INTERNAL compile body ; Package body altered. Elapsed: 00:00:00.48
11:23:54 sys@xxxxx1(xxxxx1)> select owner,object_name,object_type,status from dba_objects where owner='DBSNMP' and object_name='BSLN_INTERNAL'; OWNER OBJECT_NAME OBJECT_TYPE STATUS
---------- ------------------------------ --------------------------------------------------------- ----------
DBSNMP BSLN_INTERNAL PACKAGE VALID
DBSNMP BSLN_INTERNAL PACKAGE BODY VALID Elapsed: 00:00:00.00
11:24:21 sys@xxxxx1(xxxxx1)> col grantee for a25
11:24:29 sys@xxxxx1(xxxxx1)> select * from dba_tab_privs where table_name='DBMS_JOB'; GRANTEE OWNER TABLE_NAME GRANTOR PRIVILEGE GRANTABLE HIERARCHY
------------------------- ---------- ----------------------------------- ------------ -------------------- --------- ---------
DBSNMP SYS DBMS_JOB SYS EXECUTE NO NO
XX_XXXXX_XXXXX SYS DBMS_JOB SYS EXECUTE NO NO Elapsed: 00:00:00.00
11:24:33 sys@xxxxx1(xxxxx1)>
mos文档:
Enterprise Manager Database Control: Ora-06508: Pl/Sql: Could Not Find Program Unit Being Called: "DBSNMP.BSLN_INTERNAL" (Doc ID 1323597.1)
BSLN_MAINTAIN_STATS_JOB Job Failed With ORA-04063 ORA-06508 Errors (Doc ID 2327650.1)
ORA-04063: package body "DBSNMP.BSLN_INTERNAL" has errors的更多相关文章
- ORA-04063: package body "DBSNMP.BSLN" has errors
ORA-04063: package body "DBSNMP.BSLN" has errors 问题描述: 警告日志出现报错: Sun Jun 28 00:00:01 2020 ...
- 转: ORA-06508 could not find program unit being called: "DBSNMP.BSLN_INTERNAL
告警日志中出现错误 Sun Jul 28 00:00:00 2013Errors in file /oracle/app/db/diag/rdbms/mis/MIS1/trace/MIS1_j001_ ...
- expdp报错ora 39126
11.2.0.2,expdp报错: ORA-39126: Worker unexpected fatal error in KUPW$WORKER.GET_TABLE_DATA_OBJECTS []O ...
- 命令行界面下使用emca安装配置Oracle Database Control实战
作为命令行忠有用户,server端软件的运维都倾向于使用命令或 脚本完毕,非常讨厌资源占用非常大的GUI.Oracle数据库作为重要的server端软件.其安装运维自然也全然支持纯命令行方式.虽然同一 ...
- Oracle11G_R2中共享服务器模式和专用服务器模式参数解释及设置
sys@MYTESTDB> show parameterNAME TYPE VALUE------------------------------------ ----------- ----- ...
- 完整记录一则Oracle 11.2.0.4单实例打PSU补丁的过程
本文记录了打PSU的全过程,意在体会数据库打PSU补丁的整个过程. 1.OPatch替换为最新版本2.数据库软件应用19121551补丁程序3.数据库应用补丁4.验证PSU补丁是否应用成功 1.OPa ...
- ORA-00932: inconsistent datatypes: expected - got CLOB
从最近的数据库10.2.0.3升级到10.2.0.5之后,一些对象可以不被编译.查看这些对象的主列表不严格写入之前现在SQL这些语法结果package无法成功编译,诸如select查询列中不能使用混淆 ...
- ORA-04028: cannot generate diana for object xxx
在ORACLE数据库(10.2.0.5.0)上修改一个包的时候,编译有错误,具体错误信息为"ORA-04028: cannot generate diana for object xxx&q ...
- ubuntu安装packet提示重复冲突问题
今天装个zip出现: dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.5_amd ...
随机推荐
- Java实现 LeetCode 17 电话号码的字母组合
17. 电话号码的字母组合 给定一个仅包含数字 2-9 的字符串,返回所有它能表示的字母组合. 给出数字到字母的映射如下(与电话按键相同).注意 1 不对应任何字母. 示例: 输入:"23& ...
- 使用Python爬取网页的相关内容(图片,文字,链接等等)
代码解释的很详细了,有不明白的欢迎评论 ~~~滑稽 import requests from bs4 import BeautifulSoup # #获取图片 输入网址 req=requests.ge ...
- Linux目录处理命令cd、pwd、rmdir、cp、mv、rm详解
命令cd详解 命令cd(英文原意:change directory),命令路径及执行权限为: 可以看到它的路径为/usr/bin/cd,因此,它的执行权限是所有用户 基本功能是切换目录,例如:cd . ...
- 第12章 Java内存模型与线程
参考<深入理解Java虚拟机> 一.Java内存模型 1.Java内存模型 2.内存间交互操作 流程图: 3.volatile关键字 两个特性: 3.1.保证变脸对所有线程的可见性: 由 ...
- TensorFlow笔记——关于MNIST数据的一个简单的例子
这个程序参考自极客学院. from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf # MN ...
- [CF163E]e-Government
题目 点这里看题目. 分析 首先,我们不需要真的从 AC 自动机中把串删掉.由于我们计算贡献和,我们只需要在 AC 自动机上,把已经删除的串的贡献抹掉就可以了. 接着考虑询问.这是一个很基 ...
- @codeforces - 549E@ Sasha Circle
目录 @description@ @solution@ @accepted code@ @details@ @description@ 给定两个点集 M 与 S,求是否存在一个圆能够分割两个点集. 原 ...
- 3 年经验的 Java 后端妹子,横扫阿里、滴滴、美团,整理出这份厚厚的 8000 字面经!
自序 这次面试的公司有一点点多,主要是因为毕业后前两份工作找的都很草率,这次换工作就想着,emm,毕业三年了,该找个工作好好沉淀几年了. 先说下这次面试的结果吧: 到 hr 面的:阿里.美团.滴滴.金 ...
- ca71a_c++_指向函数的指针_通过指针调用函数txwtech
/*ca71a_c++_指向函数的指针_通过指针调用函数用typedef简化函数指针的定义简化前: bool(*pf)(const string&, const string &); ...
- c++ UDP套接字客服端代码示范
c++ UDP套接字客服端代码示范 #include<winsock2.h> //包含头文件 #include<stdio.h> #include<windows.h&g ...