通过awr分析发现以下这条sql有问题,怎么会一直运行,从25号直到26号这条sql一直在运行。
可是查看执行计划却没发现有什么异常,给开发,开发人员说这sql没问题,特求助大家帮看看:
sql:
SELECT A.* ,
B.LEFT_POINT ,
B.RIGHT_POINT,
B.LEVEL_TYPE
FROM
(
SELECT R.*,
LEVEL LEVEL_NUM
FROM
(
SELECT *
FROM MI_TEMP_TREE R
WHERE STATUS = 1
AND QTY_MEMBER = :B1
AND S_TYPE = 0
)
R START
WITH RIGHT_NO = :B2 CONNECT BY PRIOR RIGHT_NO = LINK_NO
)
A
LEFT JOIN MI_MEMBER_RIGHT B
ON A.RIGHT_NO=B.RIGHT_NO
WHERE A.LEVEL_NUM <= :B3
ORDER BY LEVEL_NUM;