- 最后登录
- 2016-7-16
- 在线时间
- 31 小时
- 威望
- 86
- 金钱
- 428
- 注册时间
- 2012-1-30
- 阅读权限
- 50
- 帖子
- 49
- 精华
- 1
- 积分
- 86
- UID
- 190
|
1#
发表于 2012-6-12 15:55:40
|
查看: 5725 |
回复: 2
一个语句执行到某条记录后会03113,然后程序退出。alert中没有其他错误信息。手工屏蔽该条记录后,程序正常执行完毕。product库,而且执行时间问题,没有trace。只有sql如下:
select nvl(SUM(SUM_FEE),0) SUM_FEE,b.CYCLE_ID from (
SELECT nvl(SUM(fee), 0) SUM_FEE,CYCLE_ID
FROM B
WHERE (acct_id, partition_id) in
(select acct_id, mod(acct_id, 10000)
from A
where partition_id = mod(:VUSER_ID,10000)
AND user_id = to_number(:VUSER_ID)
and start_cyc_id <= to_number(to_char(sysdate, 'yyyymm'))
AND end_cyc_id >= to_number(to_char(sysdate, 'yyyymm'))
AND act_tag = '1')
AND cycle_id >= :VSTART_CYCLE_ID AND cycle_id <= :VEND_CYCLE_ID
AND user_id = to_number(:VUSER_ID) group by CYCLE_ID
UNION ALL
SELECT nvl(SUM(fee), 0) SUM_FEE,CYCLE_ID
FROM C
WHERE (acct_id, partition_id) in
(select acct_id, mod(acct_id, 10000)
from A
where partition_id = mod(:VUSER_ID,10000)
AND user_id = to_number(:VUSER_ID)
and start_cyc_id <= to_number(to_char(sysdate, 'yyyymm'))
AND end_cyc_id >= to_number(to_char(sysdate, 'yyyymm'))
AND act_tag = '1')
AND cycle_id >= :VSTART_CYCLE_ID AND cycle_id <= :VEND_CYCLE_ID
AND user_id = to_number(:VUSER_ID) group by CYCLE_ID
UNION ALL
SELECT nvl(SUM(fee), 0) SUM_FEE,CYCLE_ID
FROM C
WHERE (acct_id, partition_id) in
(select acct_id, mod(acct_id, 10000)
from A
where partition_id = mod(:VUSER_ID,10000)
AND user_id = to_number(:VUSER_ID)
and start_cyc_id <= to_number(to_char(sysdate, 'yyyymm'))
AND end_cyc_id >= to_number(to_char(sysdate, 'yyyymm'))
AND act_tag = '1')
AND cycle_id >= :VSTART_CYCLE_ID AND cycle_id <= :VEND_CYCLE_ID
AND user_id = to_number(:VUSER_ID) group by CYCLE_ID
) a ,D b
WHERE a.cycle_id(+)=b.cycle_id AND b.cycle_id >= :VSTART_CYCLE_ID
AND b.cycle_id <= :VEND_CYCLE_ID
group by b.CYCLE_ID
order by b.CYCLE_ID desc
[ 本帖最后由 lhpapa 于 2012-6-13 08:28 编辑 ] |
|