重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3897|回复: 0
打印 上一主题 下一主题

[Oracle] ORA-21779:duration not active 处理

[复制链接]
跳转到指定楼层
楼主
发表于 2020-6-14 12:08:37 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
RAC环境数据库在日志中产生大量ORA-21799错误信息,alert日志部分截取如下:
Errorsin file /u01/app/oracle/diag/rdbms/orcl/orcl1/trace/orcl1_smon_9425.trc:
ORA-21779:duration not active
ORA-06512:at line 1
Errorsin file /u01/app/oracle/diag/rdbms/orcl/orcl1/trace/orcl1_smon_9425.trc:
ORA-21779:duration not active
ORA-06512:at line 1
Errorsin file /u01/app/oracle/diag/rdbms/orcl/orcl1/trace/orcl1_smon_9425.trc:
ORA-21779:duration not active
ORA-06512:at line 1
WedJun 10 10:59:23 2020
Errorsin file /u01/app/oracle/diag/rdbms/orcl/orcl1/trace/orcl1_smon_9425.trc:
ORA-21779:duration not active
ORA-06512: at line 1


进一步分析日志中提到/u01/app/oracle/diag/rdbms/orcl/orcl1/trace/orcl1_smon_9425.trc
*** 2020-05-14 01:05:49.650
*** SESSION ID:(2134.1) 2020-05-14 01:05:49.650
*** CLIENT ID:() 2020-05-14 01:05:49.650
*** SERVICE NAME:(SYS$BACKGROUND) 2020-05-14 01:05:49.650
*** MODULE NAME:() 2020-05-14 01:05:49.650
*** ACTION NAME:() 2020-05-14 01:05:49.650
  ChildNode:  ChildNumber=0 ID=34 reason=Rolling Invalidate Window Exceeded(2) size=0x0 details=already_processed
  ChildNode:  ChildNumber=1 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=6 original_oacflg=16 original_oacmxl=2000 upgradeable_new_oacmxl=128
  ChildNode:  ChildNumber=0 ID=40 reason=Bind mismatch(22) size=4x4 bind_position=6 original_oacflg=16 original_oacmxl=128 upgradeable_new_oacmxl=2000
  ChildNode:  ChildNumber=0 ID=34 reason=Rolling Invalidate Window Exceeded(3) size=2x4 invalidation_window=1585760885 ksugctm=1585761310          Drop transient type:   SYSTPp2Z5D255yRDgU2XwEKyabA==

*** 2020-06-07 03:39:13.436
SMON: following errors trapped and ignored:
ORA-21779: duration not active
ORA-06512: at line 1

*** 2020-06-07 03:39:14.478
         Drop transient type:   SYSTPp2Z5D255yRDgU2XwEKyabA==

*** 2020-06-07 03:39:14.478
SMON: following errors trapped and ignored:
ORA-21779: duration not active
ORA-06512: at line 1

*** 2020-06-07 03:39:15.545
         Drop transient type:   SYSTPp2Z5D255yRDgU2XwEKyabA==

*** 2020-06-07 03:39:15.545
SMON: following errors trapped and ignored:
ORA-21779: duration not active
ORA-06512: at line 1




出现该问题是由于oracle的smon进程无法清理掉 transient types,从而出现该问题,根据官方的说法,这个错误是不会影响数据库正常使用,但是可以通过以下方法暂时规避这种错误:
1)通过设置alter system set events ’22834 trace name context forever, level 1′禁止smon清理transient types,从而来规避该错误,但是可能会引起transient types对象越来越多,当然你可以通过以下sql查询出来
select o.* from obj$ o, type$ twhere o.oid$ = t.tvoid andbitand(t.properties,8388608) = 8388608 and (sysdate-o.ctime) > 0.0007;
然后删除掉相关记录DROP TYPE “SYSTPp2Z5D255yRDgU2XwEKyabA==” FORCE;【这个删除不是必须的】
2) flush shared_pool也可以临时规避这个问题
3) 重启数据库,可以暂时规避


具体参考:
SMON: Following Errors Trapped And Ignored ORA-21779 (Doc ID 988663.1)
Receiving ORA-21780 Continuously in the Alert Log and SMON Trace Reports “Drop transient type”. (Doc ID 1081950.1)

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-26 22:35 , Processed in 0.105363 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表