SMON encountered ORA-21779: durationnotactive Error

Source: Internet
Author: User
Problem background the customer a set of RAC database 10.2.0.4, because the 11g upgrade, so recently deployed the SPA collection task, the result of the task deployment not long before, SMON broke out the ORA-21779 error. This causes the database to run very slowly. As an O & M vendor, we immediately analyzed the cause of database errors. First, let's take a look at the specific SMON error.

Problem background the customer a set of RAC database 10.2.0.4, because the 11g upgrade, so recently deployed the SPA collection task, the result of the task deployment not long before, SMON broke out the ORA-21779 error. This causes the database to run very slowly. As an O & M vendor, we immediately analyzed the cause of database errors. First, let's take a look at the specific SMON error.

Problem background 

The customer of a set of RAC database 10.2.0.4, because the 11g upgrade, so the recent deployment of the SPA collection task, the result of the task deployment not long before, SMON broke out the ORA-21779 error. This causes the database to run very slowly. As an O & M vendor, we immediately analyzed the cause of database errors. First, let's take a look at the specific error message reported by SMON.

*** 2014-04-26 13:47:28.987SMON: following errors trapped and ignored:ORA-21779: duration not activeORA-06512: at line 1Sat Apr 26 13:48:06 2014>>> WAITED TOO LONG FOR A ROW CACHE ENQUEUE LOCK! pid=36System State dumped to trace file /oracle/app/oracle/admin/wcrma/bdump/wcrma2_smon_3610.trcwcrma2_smon_3610.trcname=SPA.SYSTP9+MPUyJ8/wLgRAAUT0SBEA== Drop transient type: SYSTP9+MPUyJ8/wLgRAAUT0SBEA==m call stack:ksdxfstk()+36<-ksdxdocmdmult()+6788<-ksudmp_proc()+1008<-ksudss()+2996<-kqrigt()+1856<-kqrpre1()+4832<-kqrpre()+40<-kturax()+632<-ktprbeg()+404<-ktmmon()+5984<-ksbrdp()+976<-opirip()+824<-opidrv()+1200<-sou2o()+80<-opimai_real()+268<-main()+152<-_start()+380row cache parent object: address=142ff1d7b8 cid=3(dc_rollback_segments)LIBRARY OBJECT HANDLE: handle=1349991ab0 mtx=1349991be0(1) cdp=1 name=select o.name, u.name from obj$ o, type$ t, user$ u where o.oid$ = t.tvoid and u.user#=o.owner# and bitand(t.properties,8388608) = 8388608 and (sysdate-o.ctime) > 0.0007hash=f8aafde8df1d0384b3c6849b889a14c9 timestamp=04-26-2014 12:48:31 LIBRARY OBJECT HANDLE: handle=1431525e88 mtx=1431525fb8(0) cdp=0

Let's take a closer look. When SMON clears a transient type, it reports this error, that is, a problem occurs during the cleaning process. Transient type is a temporary type. It is generated in the memory during dynamic execution. For example, if an application defines a custom Type in a statement, it is converted to a transient type when running. According to the description of the SMON: Following Errors Trapped And Ignored ORA-21779 (Document ID 988663.1. This problem may cause a large increase in alert logs and generate a large number of traces, but it does not affect the normal use of the database. However, in actual situations, we find that this is not the case, because our SMON process is a very critical process, it needs to apply for a lock when deleting something, and we can see the following functions from this stack. Let's take a look at the kqrigt function. This function can search FOR the following information on Google. You can see that the row cache instance lock must be applied FOR in this function. If the LOCK cannot be applied, the system reports waited too long for a row cache enqueue lock. Here, it needs to apply for dc_rollback_segments.

* Function kqrigtMay call kslfre (...)May call kqrprl (...)May call ksesec0 (0x0FB5)May call ksbasend (dword ptr ds:kqrglk_+4, offset kqrglk_, 0x10, ...)May call kslgetl (?, 1, 0, offset kqrpl10_)May call kslwait (?, ds:kqrelk_, 0, ...)May call kslgetl (?, 1, ?, offset kqrpl10_)May call ksu_dispatch_tac ()May call kskchk ()May call ksuitr ()May call ksesec0 (...)May call kgeasnmierr (ds:ksmgpp_, ds:ksefac_, "kqrigt-1", 0)May call kqrchk ()May call ksurea ()May call ksdwrf ("Failed to get row cache instance lock (post=%d,res=%lx)\n")May call kqrdrs (...)May call ksesec0 (0x259)May call ksesec0 (0x2BF)May call ksbcic (0x1E, ?, ?, 1)May call kslgetl (?, 1, ?, offset kqrpl43_)May call kgeasnmierr (ds:ksmgpp_, ds:ksefac_, "kqrgplt", 2)May call kgeasnmierr (ds:ksmgpp_, ds:ksefac_, "kqrigt-2", 0)May call ksdwra (">>> WAITED TOO LONG FOR A ROW CACHE ENQUEUE LOCK! pid=%d")May call ksdwrf (">>> WAITED TOO LONG FOR A ROW CACHE ENQUEUE LOCK! <<<\n")May call ksdwrf ("row cache enqueue: session: %p, mode: %c, request: %c\n")May call ksudss (0x102)May call ksedst (0)
Solution

So how can this problem be solved? We can refer to the solution to document rolling ing ORA-21780 Continuously in the Alert Log and SMON Trace Reports "Drop transient type". (Document ID 1081950.1. First, smon clears the transient type once every 12 hours. We can manually clean up, or set Internal event 22834 to prevent smon from cleaning up such types.

1. Delete directly

Step 1Make sure you have a good full backup.Step 2spool obj.lisalter session set nls_date_format='DD-MON-YYYY HH24:MI:SS';set pagesize 1000select o.* from obj$ o, type$ twhere o.oid$ = t.tvoid andbitand(t.properties,8388608) = 8388608 and (sysdate-o.ctime) > 0.0007;spool offStep 3Find the object owner:Step 4 Drop the objects.DROP TYPE "SYSTPf/r2wN4keX7gQKjA3AFMSw==" FORCE;

2. Set internal event 22834 to prevent SMON from cleaning up this Type, but it may consume more memory.

SQL> alter system set event='22834 trace name context forever, level 1' scope=spfile;System altered.SQL> alter system set event='22834 trace name context forever, level off' scope=spfile;System altered.

Of course, this event can also be set using oradebug. In this way, no restart is required.

Reference:

Rolling ing ORA-21780 Continuously in the Alert Log and SMON Trace Reports "Drop transient type". (Document ID 1081950.1)

SMON: Following Errors Trapped And Ignored ORA-21779 (Document ID 988663.1)

SMON encountered ORA-21779: duration not active error, thanks to the original author to share.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.