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实现币值最大化问题
1 问题描述 给定一排n个硬币,其面值均为正整数c1,c2,-,cn,这些整数并不一定两两不同.请问如何选择硬币,使得在其原始位置互不相邻的条件下,所选硬币的总金额最大. 2 解决方案 2.1 动态规 ...
- java实现取球博弈
今盒子里有n个小球,A.B两人轮流从盒中取球,每个人都可以看到另一个人取了多少个,也可以看到盒中还剩下多少个,并且两人都很聪明,不会做出错误的判断. 我们约定: 每个人从盒子中取出的球的数目必须是:1 ...
- java实现第七届蓝桥杯骰子游戏
骰子游戏 PS: 骰子哪有从0开始的只能是1-6,而他i j k的范围都是0-5,所以都要加1 题目描述 我们来玩一个游戏. 同时掷出3个普通骰子(6个面上的数字分别是1~6). 如果其中一个骰子上的 ...
- Hive的基本介绍以及常用函数
一.Hive的简介: Hive是基于Hadoop的一个数据仓库工具,可以将结构化的数据文件映射为一张表,并提供类SQL查询功能. 优点: ) 操作接口采用类SQL语法,提供快速开发的能力(简单.容易上 ...
- set基本运用
/* set集合基本用法 */ #include<iostream> #include<set> using namespace std; //set<T>a; v ...
- Linux 和 Vim 常用命令整理
Sftp常用命令: lcd f:本地切换到 F盘 lpwd本地 当前目录 lls本地 文件列表 put 本地 上传文件到服务器(put输入后,回车会有弹窗,选择上传文件) get下载文件到本地 Lin ...
- Ement 学习
<!DOCTYPE html><html lang="en"><head> <meta http-equiv="Content- ...
- Oracle VM VirtualBox 连接 Centos7 minimal版
概述: 本博客是系列博客,主要讲述在Windows环境下安装虚拟机,在虚拟机中安装lunix系统,在lunix下安装docker,在docker中安装并使用常用的开发软件,比如tomcat.redis ...
- Spring Cloud 系列之 Alibaba Nacos 配置中心
Nacos 介绍 Nacos 是 Alibaba 公司推出的开源工具,用于实现分布式系统的服务发现与配置管理.英文全称 Dynamic Naming and Configuration Service ...
- 【JMeter_20】JMeter逻辑控制器__事务控制器<Transaction Controller>
事务控制器<Transaction Controller> 业务逻辑: 这个控制器在在业务控制上并没有什么特殊逻辑,可以理解为在简单控制器的基础上添加了统计的功能,当所有子节点全部成功则成 ...