SMON Following Errors ORA-21779


db版本信息:
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Jan 22 09:15:52 2016
Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
一套10.2.0.4的RAC数据库
日志报错信息:
Errors in file /oracle/admin/resdb/bdump/resdb2_smon_6357384.trc:
ORA-21779: 持续时间不活动
ORA-06512: 在 line 1
Sun Jan 17 21:40:07 2016
Errors in file /oracle/admin/resdb/bdump/resdb2_smon_6357384.trc:
ORA-21779: 持续时间不活动
ORA-06512: 在 line 1
Sun Jan 17 21:40:12 2016
Errors in file /oracle/admin/resdb/bdump/resdb2_smon_6357384.trc:
ORA-21779: 持续时间不活动
ORA-06512: 在 line 1
Sun Jan 17 21:40:17 2016
Errors in file /oracle/admin/resdb/bdump/resdb2_smon_6357384.trc:
ORA-21779: 持续时间不活动
ORA-06512: 在 line 1
Sun Jan 17 21:40:22 2016
Errors in file /oracle/admin/resdb/bdump/resdb2_smon_6357384.trc:
ORA-21779: 持续时间不活动
ORA-06512: 在 line 1

trace日志信息:
SMON: following errors trapped and ignored:
ORA-21779: 持续时间不活动
ORA-06512: 在 line 1
         Drop transient type:   SYSTPKVEcg41YADbgU4eUR4IANg==
*** 2016-01-17 23:56:32.782
SMON: following errors trapped and ignored:
ORA-21779: 持续时间不活动
         Drop transient type:   SYSTPKVEcg41YADbgU4eUR4IANg==
*** 2016-01-17 23:56:37.723
SMON: following errors trapped and ignored:
ORA-21779: 持续时间不活动
         Drop transient type:   SYSTPKVEcg41YADbgU4eUR4IANg==xRESGS鼰
*** 2016-01-17 23:56:42.723
SMON: following errors trapped and ignored:
ORA-21779: 持续时间不活动

可惜没有做system dump否则可以进一步看到是smon进程清理一个transient type时报错,大约过程呢(   SMON performs periodic cleanup of temporary segments that are no longer needed ):
Cleaning Up Stray Temporary Segments 
Some temporary segments are not cleaned up as expected, and can often persist for hours. This sometimes results in tablespaces running out of space inappropriately. To avoid such problems, DBAs can trigger the cleanup of straggling temporary segments. 
What causes stray temporary segments? 
When a segment is dropped, its extents are not freed immediately. Initially the process dropping the segment just changes the segment's type to a temporary segment. This operation can be rolled back if the statement fails for any reason. The temporary segment is normally cleaned up and its extents freed upon the conclusion of the call. However, if the data dictionary cache row representing the segment is still dirty or in use, temporary segment cleanup cannot occur at this time. This applies in particular to temporary segments released by recursive calls. Because the parent transaction has not yet committed, such temporary segments cannot be cleaned up immediately. 
How do stray temporary segments get cleaned up? 
The task of cleaning up straggling temporary segments and freeing their extents falls to the SMON process. Although SMON wakes up every five minutes, unless it is explicitly posted by another process, it only checks for temporary segments to clean up once every two hours and five minutes. Even then it will only clean up five temporary segments at most, and only if it can get the required locks within 5 seconds. So temporary segment cleanup can appear to take a long time, even days. 
However, SMON also performs temporary segment cleanup when it is posted explicitly by another process. You can make use of this fact to force SMON to clean up temporary segments more promptly. SMON is posted whenever a space transaction fails. So you can trigger temporary segment clean up by attempting to create a table of 2 extents with a small INITIAL and an impossible NEXT extent size. However, a more elegant way of posting SMON is to use the ORADEBUG WAKEUP command from within SQL*Plus (or SVRMGRL before 8.1). There is an APT script that does this, called post_smon.sql.
果然呢,这个过程大约是,要清理临时对象,需要调用oracle内核函数,而这个内核函数呢需要申请lock( row cache instance lock )如果申请不到就会大量产生锁阻塞。
解决办法参考:
Receiving ORA-21780 Continuously in the Alert Log and SMON Trace Reports "Drop transient type". (文档 ID 1081950.1)
Receiving ORA-21780 Continuously in the Alert Log and SMON Trace Reports "Drop transient type". (文档 ID 1081950.1)
SMON: Following Errors Trapped And Ignored ORA-21779 (文档 ID 988663.1)


######################################################################
- Script:        post_smon.sql
-- Purpose:        to post SMON to cleanup stray temporary segments
-- For:                8.1
--
-- Copyright:        (c) Ixora Pty Ltd
-- Author:        Steve Adams
--
-------------------------------------------------------------------------------
@save_sqlplus_settings

column pid new_value Smon

set termout off
select
  p.pid
from
  sys.v_$bgprocess b,
  sys.v_$process p
where
  b.name = 'SMON' and
  p.addr = b.paddr
/
set termout on

oradebug wakeup &Smon

undefine Smon
@restore_sqlplus_settings

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13750068/viewspace-1980569/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/13750068/viewspace-1980569/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
ERROR: Unable to normalize symbol name for the following short stack (at offset 199): dbgexProcessError()+193<-dbgeExecuteForError()+65<-dbgePostErrorKGE()+1726<-dbkePostKGE_kgsf()+75<-kgeade()+560<-kgerev()+125<-kgerec5()+60<-sss_xcpt_EvalFilterEx()+1869<-sss_xcpt_EvalFilter()+174<-.1.4_5+59<-0000000077B985A8<-0000000077BA9D0D<-0000000077B991AF<-0000000077BD1278<-kghrst()+1577<-ksudlc()+647<-kssdel()+181<-ksupop()+823<-ktprtsc()+2090<-ktprmai()+255<-kxfprdp()+1643<-opirip()+1604<-opidrv()+909<-sou2o()+98<-opimai_real()+299<-opimai()+191<-BackgroundThreadStart()+693<-000000007797652D<-0000000077BAC521 Errors in file d:\app\administrator\diag\rdbms\nqcg\nqcg\trace\nqcg_p000_4716.trc (incident=317553): ORA-07445: 出现异常错误: 核心转储 [kghrst()+1577] [ACCESS_VIOLATION] [ADDR:0xFFFFFFFFFFFFFFFF] [PC:0x906BFF1] [UNABLE_TO_READ] [] ORA-00600: 内部错误代码, 参数: [17182], [0x023B9DBF8], [], [], [], [], [], [], [], [], [], [] Incident details in: d:\app\administrator\diag\rdbms\nqcg\nqcg\incident\incdir_317553\nqcg_p000_4716_i317553.trc Thu Jun 08 17:51:10 2023 Trace dumping is performing id=[cdmp_20230608175110] Thu Jun 08 17:51:51 2023 SMON: slave died unexpectedly, downgrading to serial recovery Errors in file d:\app\administrator\diag\rdbms\nqcg\nqcg\trace\nqcg_smon_500.trc (incident=317496): ORA-00600: 内部错误代码, 参数: [17182], [0x0212AD7A0], [], [], [], [], [], [], [], [], [], [] Incident details in: d:\app\administrator\diag\rdbms\nqcg\nqcg\incident\incdir_317496\nqcg_smon_500_i317496.trc Thu Jun 08 17:51:53 2023 Trace dumping is performing id=[cdmp_20230608175153] Exception [type: ACCESS_VIOLATION, UNABLE_TO_READ] [ADDR:0xFFFFFFFFFFFFFFFF] [PC:0x90646A8, kghalf()+482] Errors in file d:\app\administrator\diag\rdbms\nqcg\nqcg\trace\nqcg_smon_500.trc (incident=317497): ORA-07445: 出现异常错误: 核心转储 [kghalf()+482] [ACCESS_VIOLATION] [ADDR:0xFFFFFFFFFFFFFFFF] [PC:0x90646A8] [UNABLE_TO_READ] [] ORA-00600: 内部错误代码, 参数: [17182], [0x0212AD7A0], [], [], [], [], [], [], [], [], [], [] Incident details in: d:\app\administrator\diag\rdbms\nqcg\nqcg\incident\incdir_317497\nqcg_smon_500_i317497.trc Trace dumping is performing id=[cdmp_20230608175155] Thu Jun 08 17:51:57 2023 PMON (ospid: 5576): terminating the instance due to error 474 Thu Jun 08 17:52:16 2023 Instance terminated by PMON, pid = 5576
06-10

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值