ControlCenter 报Incidient :RPTS: ROLLUP.CTA_HOURLY exceeded lag threshold. Current lag 165 minutes.
系统messages里面报错:
Oct 11 11:06:02 rac03-ud-us-eqx Concord SystemEDGE[27251]: [ID 469330 daemon.warning] sysedge: monitor event, index:14999,'#2-SystemEDGE agent SUN-Y-413-1 is licensed and running' 1 == 1
Oct 11 22:01:11 rac03-ud-us-eqx oracle: [ID 702911 daemon.warning] cronscript: CVRotation: FAILED: rac03-ud-us-eqx: #3-Possible CTA_POLL table lock in db RPTS. [MID_27652]
Oct 11 23:06:20 rac03-ud-us-eqx Concord SystemEDGE[27251]: [ID 469330 daemon.warning] sysedge: monitor event, index:14999,'#2-SystemEDGE agent SUN-Y-413-1 is licensed and running' 1 == 1
Oct 12 11:06:41 rac03-ud-us-eqx Concord SystemEDGE[27251]: [ID 469330 daemon.warning] sysedge: monitor event, index:14999,'#2-SystemEDGE agent SU
<!-- [if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning/> <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing> <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery> <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:SpaceForUL/> <w:BalanceSingleByteDoubleByteWidth/> <w:DoNotLeaveBackslashAlone/> <w:ULTrailSpace/> <w:DoNotExpandShiftReturn/> <w:AdjustLineHeightInTable/> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> <w:UseFELayout/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!-- [if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!-- [if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]-->
Check the lock status.
SQL> select A.sid, b.serial#,
2 decode(A.type,
3 'MR', 'Media Recovery',
'RT','Redo Thread',
'UN','User Name',
'TX', 'Transaction',
'TM', 'DML',
'UL', 'PL/SQL User Lock',
'DX', 'Distributed Xaction',
'CF', 'Control File',
'IS', 'Instance State',
'FS', 'File Set',
'IR', 'Instance Recovery',
'ST', 'Disk Space Transaction',
'TS', 'Temp Segment',
'IV', 'Library Cache Invalida-tion',
'LS', 'Log Start or Switch',
'RW', 'Row Wait',
'SQ', 'Sequence Number',
'TE', 'Extend Tabl 4 5 6 7 8 9 e',
'TT', 'Temp Table',
'Unknown') LockType,
c.object_name,
b.username,
b.osuser,
decode(a.lmode, 0, 'None',
1, 'Null',
2, 'Row-S',
3, 'Row-X',
4, 'Share',
5, 'S/Row-X',
10 11 12 13 14 6, 'Exclusive', 'Unknown') LockMode,
B.MACHINE,D.SPID
from v$lock a,v$session b,all_objects c,V$PROCESS D
where a.sid=b.sid and a.type in ('TM','TX')
and c.object_id=a.id1
AND B.PADDR=D.ADDR and OBJECT_NAME like 'CTA%' 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
38 /
SID SERIAL# LOCKTYPE OBJECT_NAME
---------- ---------- --------------------------- ------------------------------
USERNAME OSUSER LOCKMODE
------------------------------ ------------------------------ ---------
MACHINE SPID
---------------------------------------------------------------- ------------
975 39037 DML CTA_POLL
SGREPORTS Row-X
appsrv02ua-us 1463 https://controlpoint.sun.com/?jumpto=IT0000001440593
Oct 12, 2010 21:48:21 EDT wb210971
Remove the lock manually.
SQL> alter system kill session'975,39037';
System altered.
SQL> select A.sid, b.serial#,
2 decode(A.type,
3 'MR', 'Media Recovery',
'RT','Redo Thread',
'UN','User Name',
'TX', 'Transaction',
'TM', 'DML',
'UL', 'PL/SQL User Lock',
'DX', 'Distributed Xaction',
'CF', 'Control File',
'IS', 'Instance State',
'FS', 'File Set',
'IR', 'Instance Recovery',
'ST', 'Disk Space Transaction',
'TS', 'Temp Segment',
'IV', 'Library Cache Invalida-tion',
'LS', 'Log Start or Switch',
'RW', 'Row Wait',
'SQ', 'Sequence Number',
'TE', 'Extend Tabl 4 5 6 7 8 e',
'TT', 'Temp Table',
'Unknown') LockType,
c.object_name,
b.username,
b.osuser,
decode(a.lmode, 0, 'None',
1, 'Null',
2, 'Row-S',
3, 'Row-X',
4, 'Share',
5, 'S/Row-X',
9 10 11 12 13 14 15 16 17 18 19 20 6, 'Exclusive', 'Unknown') LockMode,
B.MACHINE,D.SPID
from v$lock a,v$session b,all_objects c,V$PROCESS D
where a.sid=b.sid and a.type in ('TM','TX')
and c.object_id=a.id1
AND B.PADDR=D.ADDR and OBJECT_NAME like 'CTA%' 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
38 /
no rows selected
再次询问controlcenter问题解决了:)