- 最后登录
- 2014-1-20
- 在线时间
- 21 小时
- 威望
- 0
- 金钱
- 128
- 注册时间
- 2013-6-15
- 阅读权限
- 10
- 帖子
- 46
- 精华
- 0
- 积分
- 0
- UID
- 1129
|
1#
发表于 2013-9-5 16:05:04
|
查看: 10642 |
回复: 16
Maclean ,你好!
系统环境:
Oracle 11.2.0.2 RAC for IBM AIX 6.1 两个节点
附件为9月4日上午 9:08分左右 ,业务出现大面积hang住,通过ASH看到里面有‘CSS initialization’ 这个不太常见的等待事件。
(此hang现象此前经常发生),现在客户怀疑跟ASH里列出的如下语句有关:
SELECT A.*, B.* FROM AMSH_MEDIAPPLY A, (SELECT MAINID, COUNT(1) AS SUMCOUNT, SUM(AMOUNT1) AS SUMAMOUNT1, SUM(AMOUNT2) AS SUMAMOUNT2, SUM(AMOUNT3) AS SUMAMOUNT3 FROM AMSH_MEDIAPPLYDTL GROUP BY MAINID) B, ((SELECT DISTINCT C.MAINID FROM AMSH_MEDIAPPLYDTL C, (SELECT MEDIID FROM TABLE(SBAS_MEDIIDBYTYPE(:B1 ))) D WHERE C.MEDIID = D.MEDIID)) E WHERE A.OURID = B.MAINID AND (:B10 IS NULL OR (SENDERID IN (SELECT ANYID AS BTYPE FROM TABLE(SPLITSTRINGBYSIGN(:B10 , ', '))))) AND (:B9 IS NULL OR (LA NDERID IN (SELECT ANYID AS BTYPE FROM TABLE(SPLITSTRINGBYSIGN(:B9 , ', '))))) AND ((A.LANDERNAME = 0 AND OURSTATE IN (SELECT ANYID AS STATE FROM TABLE(SPLITSTRINGBYSIGN(:B11 , ', ')))) OR (A.LANDERNAME > 0 AND A.OURSTATE != '317001' AND A.OURSTATE IN (SELECT ANYID AS STATE FROM TABLE(SPLITSTRINGBYSIGN(:B11 , ', '))))) AND (:B8 = 0 OR INOUT = :B8 ) AND (:B7 = 0 OR BILLTYPE = :B7 ) AND (:B6 IS NULL OR A.SENDSUMCODE = :B6 OR A.SENDCODE = :B6 ) AND (:B5 IS NULL OR BILLDATE >= TO_DATE(:B5 , 'yyyy-mm-dd hh24:mi:ss')) AND (:B4 IS NULL OR BILLDATE <= TO_DATE(:B4 , 'yyyy-mm-dd hh24:mi:ss')) AND (:B3 = 0 OR A.OURID IN (SELECT B.MAINID FROM AMSH_MEDIAPPLYDTL B WHERE B.MEDIID = :B3 )) AND (A.OURID = E.MAINID ) AND (:B2 = 0 OR A.OURID IN (SELECT D.MAINID OURID FROM AMSH_MEDIAPPLYDTL D LEFT JOIN SBAS_CHARGE E ON D.MEDIID = E.OURID WHERE E.OURTYPE = :B2 )) ORDER BY A.CREATETIME
因为每次hang的时候 ,总是会存在这个业务执行。 但本人想不出来,此语句 与 'CSS INITIALIZATION'有何关系。
经查MOS,好象也有过类似,但好象没有解决方法:
Bug 12416879 : BAD DATABASE PERFORMANCE - WAIT EVENTS CSS INITIALIZATION, CSS OPERATION: ACTION
Bug 17182629 : SESSIONS WAITING ON EVENT "CSS INITIALIZATION"
Bug 14326326 : HIGH NUMBER OF CSS INITIALIZATION AND CSS OPERATION ACTION WAIT EVENTS.EVEN AFTE
另,已针对ASH里关于 ‘DFS lock handle’ event ,调整了相关的sequence 的Cache ,但好象 hang 与此无关。
先谢谢 Maclean !
|
|