亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

一次ORA-03113錯(cuò)誤解決

系統(tǒng) 2120 0

----------------------------------------------------------------------------
----------------- ORA錯(cuò)誤處理系列 By Cryking ---------------------
------------------------ 轉(zhuǎn)載請注明出處,謝謝 ! -------------------------?

?

原始SQL:

執(zhí)行出現(xiàn)ORA-03113錯(cuò)誤,網(wǎng)絡(luò)正常,執(zhí)行其他SQL也正常.

    13:04:26 CRY@CRY> select operatetime,billtypename,billid,shopcode,shopname,goodscode,goodsn

ame,' ' 期初數(shù)量,sum(irealnumber) irealnumber,DECODE(sum(irealnumber),0,0,round(sum(imoney)/sum(irea

lnumber),2)) iprice,sum(imoney) imoney,sum(orealnumber) orealnumber,DECODE(sum(orealnumber),0,0,roun

d(sum(omoney)/sum(orealnumber),2)) oprice,sum(omoney) omoney,' ' 結(jié)存數(shù)量 from( select to_char(x.ope

ratetime, 'YYYY-MM-DD') operatetime,x.billtype,

13:04:28   2         fun_getname('BILLTYPEALL',x.billtype) billtypename,

13:04:28   3         x.billid,x.remark,x.originbillid,

13:04:28   4         fun_getname('OPERATIONTYPE',x.otherinouttype) otherinouttypename,

13:04:28   5         x.shopcode,

13:04:28   6         f_getOrganiseName(x.shopcode) shopname,

13:04:28   7         x.storecode,

13:04:28   8         f_getStoreName(x.storecode) storename,

13:04:28   9          FUN_GETTOUNIT(x.billtype,x.billid) unitname,

13:04:28  10         x.goodscode,

13:04:28  11         X.goodsname,

13:04:28  12         x.ShortCode,x.brandcode,x.model,

13:04:28  13         x.irealnumber,

13:04:28  14         abs(DECODE(x.irealnumber,0,0,round(x.imoney/x.irealnumber,4))) iprice,

13:04:28  15         x.imoney,x.orealnumber,

13:04:28  16         abs(DECODE(x.orealnumber,0,0,round(x.omoney/x.orealnumber,4))) oprice,

13:04:28  17         x.omoney

13:04:28  18  from (

13:04:28  19  select a.operatetime,

13:04:28  20                 a.billtype,

13:04:28  21                 a.billid,fun_getbillremark(a.billid) remark,fun_getbilloriginbillid(a.b

illid) originbillid,

13:04:28  22                 a.otherinouttype,

13:04:28  23                 a.shopcode,

13:04:28  24                 a.storecode,

13:04:28  25                 a.goodscode,

13:04:28  26                 c.shortcode,c.brandcode,c.model,

13:04:28  27                 c.goodsname,

13:04:28  28                 sum(DECODE(b.ruleid,1,a.realnumber,2,-a.realnumber,0)) irealnumber,

13:04:28  29                 sum(DECODE(b.ruleid,1,

13:04:28  30                        round(a.realnumber * a.price,2),

13:04:28  31                       2,

13:04:28  32                        round(-1 * a.realnumber *a.price,2),

13:04:28  33                     0)) imoney,

13:04:28  34                 sum(DECODE(b.ruleid,2,a.realnumber,1,-a.realnumber,0)) orealnumber,

13:04:28  35                 sum(decode(b.ruleid,2,

13:04:28  36                        round(a.realnumber * a.price,2),

13:04:28  37                       1,

13:04:28  38                        round(-1 * a.realnumber * a.price,2),

13:04:28  39                     0)) omoney

13:04:28  40            from TAB_A a, TAB_B b,TAB_C c

13:04:28  41           where a.billtype = b.billtype

13:04:28  42               and a.goodscode=c.goodscode  and (a.shopcode = '0603')

13:04:28  43           group by a.operatetime,

13:04:28  44                    a.billtype,

13:04:28  45                    a.billid,

13:04:28  46                    remark,

13:04:28  47                    a.otherinouttype,

13:04:28  48                    a.shopcode,

13:04:28  49                    a.storecode,

13:04:28  50                    a.goodscode,

13:04:28  51                    c.shortcode,

13:04:28  52                    c.goodsname,c.brandcode,c.model

13:04:28  53  ) x

13:04:28  54  where x.billtype in (select billtype from t_billlist where ruleid>0) and

13:04:28  55     x.operatetime >= to_date('2013-6-17','YYYY-MM-DD')

13:04:28  56     and x.operatetime < to_date('2013-6-18','YYYY-MM-DD')

13:04:28  57  ) a  group by operatetime,billtypename,billid,shopcode,shopname,goodscode,goodsname or

der by operatetime,billtypename,billid,shopcode,shopname,goodscode,goodsname;

select operatetime,billtypename,billid,shopcode,shopname,goodscode,goodsname,' ' 期初數(shù)量,sum(irealn

umber) irealnumber,DECODE(sum(irealnumber),0,0,round(sum(imoney)/sum(irealnumber),2)) iprice,sum(imo

ney) imoney,sum(orealnumber) orealnumber,DECODE(sum(orealnumber),0,0,round(sum(omoney)/sum(orealnumb

er),2)) oprice,sum(omoney) omoney,' ' 結(jié)存數(shù)量 from( select to_char(x.operatetime, 'YYYY-MM-DD') ope

ratetime,x.billtype,

*

第 1 行出現(xiàn)錯(cuò)誤:

ORA-03113: 通信通道的文件結(jié)尾

進(jìn)程 ID: 20027

會話 ID: 201 序列號: 149





ERROR:

ORA-03114: 未連接到 ORACLE





已用時(shí)間:  00: 00: 02.01
  


?精簡改SQL如下后報(bào)ORA-600錯(cuò)誤:

    13:07:18 CRY@CRY> SELECT operatetime

13:07:19   2    FROM (SELECT to_char(x.operatetime, 'YYYY-MM-DD') operatetime

13:07:19   3            FROM (SELECT operatetime FROM t_storeout GROUP BY operatetime) x

13:07:19   4           WHERE x.operatetime > to_date('2012-01-01', 'YYYY-MM-DD')) a

13:07:19   5   GROUP BY operatetime;

          FROM (SELECT operatetime FROM t_storeout GROUP BY operatetime) x

                                        *

第 3 行出現(xiàn)錯(cuò)誤:

ORA-00600: 內(nèi)部錯(cuò)誤代碼, 參數(shù): [rwoirw: check ret val], [], [], [], [], [], [], [], [], [], [], []





已用時(shí)間:  00: 00: 01.68
  


分析此ORA-00600錯(cuò)誤,發(fā)現(xiàn)是參數(shù) "_complex_view_merging "的影響,將此參數(shù)值設(shè)為FALSE后正常.

如是解決此ORA-00600錯(cuò)誤后,此ORA-03113錯(cuò)誤也就解決了,如下:

    13:07:23 CRY@CRY> ALTER SESSION SET "_complex_view_merging"=false;



會話已更改。



已用時(shí)間:  00: 00: 00.01

13:08:43 CRY@CRY> select operatetime,billtypename,billid,shopcode,shopname,goodscode,goodsn

ame,' ' 期初數(shù)量,sum(irealnumber) irealnumber,DECODE(sum(irealnumber),0,0,round(sum(imoney)/sum(irea

lnumber),2)) iprice,sum(imoney) imoney,sum(orealnumber) orealnumber,DECODE(sum(orealnumber),0,0,roun

d(sum(omoney)/sum(orealnumber),2)) oprice,sum(omoney) omoney,' ' 結(jié)存數(shù)量 from( select to_char(x.ope

ratetime, 'YYYY-MM-DD') operatetime,x.billtype,

13:08:55   2         fun_getname('BILLTYPEALL',x.billtype) billtypename,

13:08:55   3         x.billid,x.remark,x.originbillid,

13:08:55   4         fun_getname('OPERATIONTYPE',x.otherinouttype) otherinouttypename,

13:08:55   5         x.shopcode,

13:08:55   6         f_getOrganiseName(x.shopcode) shopname,

13:08:55   7         x.storecode,

13:08:55   8         f_getStoreName(x.storecode) storename,

13:08:55   9          FUN_GETTOUNIT(x.billtype,x.billid) unitname,

13:08:55  10         x.goodscode,

13:08:55  11         X.goodsname,

13:08:55  12         x.ShortCode,x.brandcode,x.model,

13:08:55  13         x.irealnumber,

13:08:55  14         abs(DECODE(x.irealnumber,0,0,round(x.imoney/x.irealnumber,4))) iprice,

13:08:55  15         x.imoney,x.orealnumber,

13:08:55  16         abs(DECODE(x.orealnumber,0,0,round(x.omoney/x.orealnumber,4))) oprice,

13:08:55  17         x.omoney

13:08:55  18  from (

13:08:55  19  select a.operatetime,

13:08:55  20                 a.billtype,

13:08:55  21                 a.billid,fun_getbillremark(a.billid) remark,fun_getbilloriginbillid(a.b

illid) originbillid,

13:08:55  22                 a.otherinouttype,

13:08:55  23                 a.shopcode,

13:08:55  24                 a.storecode,

13:08:55  25                 a.goodscode,

13:08:55  26                 c.shortcode,c.brandcode,c.model,

13:08:55  27                 c.goodsname,

13:08:55  28                 sum(DECODE(b.ruleid,1,a.realnumber,2,-a.realnumber,0)) irealnumber,

13:08:55  29                 sum(DECODE(b.ruleid,1,

13:08:55  30                        round(a.realnumber * a.price,2),

13:08:55  31                       2,

13:08:55  32                        round(-1 * a.realnumber *a.price,2),

13:08:55  33                     0)) imoney,

13:08:55  34                 sum(DECODE(b.ruleid,2,a.realnumber,1,-a.realnumber,0)) orealnumber,

13:08:55  35                 sum(decode(b.ruleid,2,

13:08:55  36                        round(a.realnumber * a.price,2),

13:08:55  37                       1,

13:08:55  38                        round(-1 * a.realnumber * a.price,2),

13:08:55  39                     0)) omoney

13:08:55  40            from t_storeout a, t_billlist b,t_goods c

13:08:55  41           where a.billtype = b.billtype

13:08:55  42               and a.goodscode=c.goodscode  and (a.shopcode = '0603')

13:08:55  43           group by a.operatetime,

13:08:55  44                    a.billtype,

13:08:55  45                    a.billid,

13:08:55  46                    remark,

13:08:55  47                    a.otherinouttype,

13:08:55  48                    a.shopcode,

13:08:55  49                    a.storecode,

13:08:55  50                    a.goodscode,

13:08:55  51                    c.shortcode,

13:08:55  52                    c.goodsname,c.brandcode,c.model

13:08:55  53  ) x

13:08:55  54  where x.billtype in (select billtype from t_billlist where ruleid>0) and

13:08:55  55     x.operatetime >= to_date('2013-6-17','YYYY-MM-DD')

13:08:55  56     and x.operatetime < to_date('2013-6-18','YYYY-MM-DD')

13:08:55  57  ) a  group by operatetime,billtypename,billid,shopcode,shopname,goodscode,goodsname or

der by operatetime,billtypename,billid,shopcode,shopname,goodscode,goodsname;



未選定行



已用時(shí)間:  00: 00: 00.04
  


?

?

?

一次ORA-03113錯(cuò)誤解決


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯(lián)系: 360901061

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長非常感激您!手機(jī)微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 久久一| h网站国产 | 久久精品国语 | 狠狠色噜噜狠狠狠狠黑人 | 免费99精品国产自在现线观看 | www.草草草 | 欧美xvideosexo另类 | 国产小网站 | 日韩一区二区三区在线 | 99精品国产成人一区二区在线 | 精品黑人一区二区三区 | 国产毛片久久久久久国产毛片 | 91日韩欧美 | 久久综合九色综合77 | 四虎永久在线观看视频精品 | 亚洲美女精品视频 | 天天草夜夜爽 | 欧美日韩成人高清色视频 | 免费看欧美一级特黄a大片 免费看欧美一级特黄a大片一 | 一本久久a久久精品vr综合 | 热久久在线观看 | 99国产精品视频久久久久 | 毛片基地视频 | 亚洲精品国产字幕久久不卡 | 久久精品国产亚洲婷婷 | 欧美一区二区三区黄色 | 日韩a无吗一区二区三区 | 国产麻豆免费 | 一级特黄aaaaaa大片 | 亚洲一级毛片在线播放 | h视频网站在线观看 | 99久久国产亚洲综合精品 | 日本精a在线观看 | 狠狠色成人综合 | 色偷偷女人的天堂a在线 | 99re6这里有精品热视频在线 | 一级毛片高清大全免费观看 | 亚洲成人在线观看视频 | 国产精品一区二区三区久久 | 日本免费黄色录像 | 成人午夜看片在线观看 |