楼主: ZALBB

[Tips] 10201上一个严重的BUG

[复制链接]
论坛徽章:
1
授权会员
日期:2005-12-13 11:10:05
11#
发表于 2006-4-10 08:25 | 只看该作者
在linux x86 上打了4518443
依然出现listner hang的情况
db版本是10.1.0.3

oracle的人说rollback 4518443 ,打3953420 ,我还没有在生产上试


奇怪的是,这种情况只在我的生产环境中出现,测试机没有防火墙限制的都没有这种问题

使用道具 举报

回复
论坛徽章:
168
马上加薪
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:10:582012新春纪念徽章
日期:2012-01-04 11:49:54蜘蛛蛋
日期:2011-12-05 16:08:56ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41设计板块每日发贴之星
日期:2011-07-22 01:01:02ITPUB官方微博粉丝徽章
日期:2011-06-30 12:30:16管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:33
12#
发表于 2006-8-30 10:54 | 只看该作者
偶用windows2003 64bit,oracle10g还没有相关的补丁包.
ft.

使用道具 举报

回复
论坛徽章:
314
行业板块每日发贴之星
日期:2012-07-12 18:47:29双黄蛋
日期:2011-08-12 17:31:04咸鸭蛋
日期:2011-08-18 15:13:51迷宫蛋
日期:2011-08-18 16:58:25紫蛋头
日期:2011-08-31 10:57:28ITPUB十周年纪念徽章
日期:2011-09-27 16:30:47蜘蛛蛋
日期:2011-10-20 15:51:25迷宫蛋
日期:2011-10-29 11:12:59ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41鲜花蛋
日期:2011-11-09 20:33:30
13#
 楼主| 发表于 2006-8-30 10:59 | 只看该作者
最初由 husthxd 发布
[B]偶用windows2003 64bit,oracle10g还没有相关的补丁包.
ft. [/B]


哈哈,你惨了,看看这个,http://www.itpub.net/595519.html

TMD,我升级到102020后还是没解决:

[php]
1  confirm that the problem still exists
------------------------------------------------------------------------------
NCBI@BI>SELECT STARTUP_TIME FROM V$INSTANCE;

STARTUP_TIME
-------------------
2006-08-30 00:23:46

NCBI@BI>connect bi_data2/1@bi
Connected.
BI_DATA2@bi>truncate table fact_dailysale;

Table truncated.

BI_DATA2@bi>insert into fact_dailysale(csalestruid,pk_invcl,dbilldate,productline,nnumber)
  2  select stg_so_apply.csalecorpid,m.pk_invcl,d.dbizdate,d.productline,
  3         sum(nvl(d.noutnum,0.0)) as nnumber
  4  from (select cgeneralhid,dbilldate
  5  from stg_ic_general_h,stg_fi_bd_cubasdoc,stg_fi_bd_cumandoc
  6  where stg_ic_general_h.ccustomerid = stg_fi_bd_cumandoc.pk_cumandoc
  7    and stg_fi_bd_cumandoc.pk_cubasdoc = stg_fi_bd_cubasdoc.pk_cubasdoc
  8    and stg_fi_bd_cubasdoc.drpnodeflag='N'
  9    and stg_ic_general_h.dr = 0
10    and stg_ic_general_h.fbillflag = '3'
11    and stg_ic_general_h.cbilltypecode = '4C'
12    and stg_ic_general_h.dbilldate >= '2006-03-01') e,
13    stg_ic_general_b d,stg_so_apply ,stg_so_apply_b ,stg_fi_bd_invbasdoc m
14    where e.cgeneralhid = d.cgeneralhid and d.cfirstbillbid = stg_so_apply_b.pk_apply_b
15      and stg_so_apply.pk_apply = stg_so_apply_b.pk_apply
16      and m.pk_invbasdoc = d.cinvbasid
17      and stg_so_apply.dr = 0 and stg_so_apply_b.dr = 0 and d.dr = 0  
18      and d.flargess = 'N'  
19  group by stg_so_apply.csalecorpid,m.pk_invcl,d.dbizdate,d.productline;

3532 rows created.

BI_DATA2@bi> select * from v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bi
PL/SQL Release 10.2.0.2.0 - Production
CORE    10.2.0.2.0      Production
TNS for 64-bit Windows: Version 10.2.0.2.0 - Production
NLSRTL Version 10.2.0.2.0 - Production

BI_DATA2@bi>select count(*) from
  2  (select stg_so_apply.csalecorpid,m.pk_invcl,d.dbizdate,d.productline,
  3         sum(nvl(d.noutnum,0.0)) as nnumber
  4  from (select cgeneralhid,dbilldate
  5  from stg_ic_general_h,stg_fi_bd_cubasdoc,stg_fi_bd_cumandoc
  6  where stg_ic_general_h.ccustomerid = stg_fi_bd_cumandoc.pk_cumandoc
  7    and stg_fi_bd_cumandoc.pk_cubasdoc = stg_fi_bd_cubasdoc.pk_cubasdoc
  8    and stg_fi_bd_cubasdoc.drpnodeflag='N'
  9    and stg_ic_general_h.dr = 0
10    and stg_ic_general_h.fbillflag = '3'
11    and stg_ic_general_h.cbilltypecode = '4C'
12    and stg_ic_general_h.dbilldate >= '2006-03-01') e,
13    stg_ic_general_b d,stg_so_apply ,stg_so_apply_b ,stg_fi_bd_invbasdoc m
14    where e.cgeneralhid = d.cgeneralhid and d.cfirstbillbid = stg_so_apply_b.pk_apply_b
15      and stg_so_apply.pk_apply = stg_so_apply_b.pk_apply
16      and m.pk_invbasdoc = d.cinvbasid
17      and stg_so_apply.dr = 0 and stg_so_apply_b.dr = 0 and d.dr = 0  
18      and d.flargess = 'N'  
19  group by stg_so_apply.csalecorpid,m.pk_invcl,d.dbizdate,d.productline);

  COUNT(*)
----------
     12370
[/php]

使用道具 举报

回复
论坛徽章:
7
数据库板块每日发贴之星
日期:2005-11-14 01:01:31数据库板块每日发贴之星
日期:2005-12-07 01:01:37会员2006贡献徽章
日期:2006-04-17 13:46:34
14#
发表于 2006-8-30 11:48 | 只看该作者
这个更可怕, 因为得到错误数据还不知道

create table test_bug (tbl_name varchar2(30));
insert into test_bug values ('TEST_BUG');

select table_name
from user_tables
where table_name in (select table_name from test_bug);

Oracle 不报错, 结果也不是预想的结果.  一定要写成

select table_name
from user_tables
where table_name in (select t.table_name from test_bug t);


补充一下: 刚刚试了一下, 这个问题8i,9i, 和10gR2里都存在.所以不应该完全算10g 的bug. 

使用道具 举报

回复
论坛徽章:
168
马上加薪
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:10:582012新春纪念徽章
日期:2012-01-04 11:49:54蜘蛛蛋
日期:2011-12-05 16:08:56ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41设计板块每日发贴之星
日期:2011-07-22 01:01:02ITPUB官方微博粉丝徽章
日期:2011-06-30 12:30:16管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:33
15#
发表于 2006-8-30 13:03 | 只看该作者
最初由 jining_han 发布
[B]这个更可怕, 因为得到错误数据还不知道

create table test_bug (tbl_name varchar2(30));
insert into test_bug values ('TEST_BUG');

select table_name
from user_tables
where table_name in (select table_name from test_bug);

Oracle 不报错, 结果也不是预想的结果.  一定要写成

select table_name
from user_tables
where table_name in (select t.table_name from test_bug t);


补充一下: 刚刚试了一下, 这个问题8i,9i, 和10gR2里都存在.所以不应该完全算10g 的bug.  [/B]


这个,不算bug了.
(select table_name from test_bug);中的table_name解析为user_tables
中的table_name列.
确实,很容易出错,编程的时候要多加注意就是.

使用道具 举报

回复
论坛徽章:
314
行业板块每日发贴之星
日期:2012-07-12 18:47:29双黄蛋
日期:2011-08-12 17:31:04咸鸭蛋
日期:2011-08-18 15:13:51迷宫蛋
日期:2011-08-18 16:58:25紫蛋头
日期:2011-08-31 10:57:28ITPUB十周年纪念徽章
日期:2011-09-27 16:30:47蜘蛛蛋
日期:2011-10-20 15:51:25迷宫蛋
日期:2011-10-29 11:12:59ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41鲜花蛋
日期:2011-11-09 20:33:30
16#
 楼主| 发表于 2006-8-30 14:21 | 只看该作者
最初由 husthxd 发布
[B]

这个,不算bug了.
(select table_name from test_bug);中的table_name解析为user_tables
中的table_name列.
确实,很容易出错,编程的时候要多加注意就是. [/B]


NO, ORACLE 如何解析是一回事,用户如何理解该语句
又是另外一回事,应该以字面上的理解为准。
我相信有99%的人猜不到答案。

使用道具 举报

回复
论坛徽章:
168
马上加薪
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:10:582012新春纪念徽章
日期:2012-01-04 11:49:54蜘蛛蛋
日期:2011-12-05 16:08:56ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41设计板块每日发贴之星
日期:2011-07-22 01:01:02ITPUB官方微博粉丝徽章
日期:2011-06-30 12:30:16管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:33
17#
发表于 2006-8-31 08:51 | 只看该作者
最初由 ZALBB 发布
[B]

NO, ORACLE 如何解析是一回事,用户如何理解该语句
又是另外一回事,应该以字面上的理解为准。
我相信有99%的人猜不到答案。 [/B]


oracle会说:
那是你还没有深入了解sql
臆得你没话说。

使用道具 举报

回复
论坛徽章:
7
数据库板块每日发贴之星
日期:2005-11-14 01:01:31数据库板块每日发贴之星
日期:2005-12-07 01:01:37会员2006贡献徽章
日期:2006-04-17 13:46:34
18#
发表于 2006-9-2 00:37 | 只看该作者
Known Bug :

Bug 2926631 - SELECT WITH SUB QUERY FROM VIEW RETURNS RESULTS WHEN IT SHOULD FAIL WITH ORA-904

但ORACLE就是牛,  百年的bug好像并没有去改的意图.  还是建议用户去workaround

使用道具 举报

回复
论坛徽章:
0
19#
发表于 2006-9-15 14:39 | 只看该作者
oracle 10.2.0.1确实有楼主说的问题,第一个节点总是莫明的断还没规律
刚升级10.2.0.2还没来得极测试呢

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2006-11-11 23:28:16
20#
发表于 2006-11-9 14:53 | 只看该作者
怎么这些句子这么复杂

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表