Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3538555
  • 博文数量: 715
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(715)

文章存档

2023年(75)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

最近访客

分类: Oracle

2011-03-23 09:52:06

oracle 10.2.0.3 on aix 64 bit

执行语句
select 
-- *
count(0) cnt
  from f_syn a, v_syn b
 where a.lrsj between to_date('20110321 01', 'yyyymmdd hh24') and
       to_date('20110321 23', 'yyyymmdd hh24')
   and a.JCSBBH IN ('C021', 'H002', 'C024',
        'D804', 'H001', 'C022',
        'C025', 'C026', 'C027')
   and a.clbz = '0'
   and a.id = b.xh(+)
 
报错:
ORA-12801: error signaled in parallel query server P005, instance dbsvr1:orcl1 (1)
ORA-01008: not all variables bound
ORA-02063: 紧接着 2 lines (起自 DBLINK_36)
使用的同义词通过数据库链 指向另一个库的表
 
改写
select 
-- *
count(0) cnt
  from a, b
 where a.lrsj between to_date('20110321 01', 'yyyymmdd hh24') and
       to_date('20110321 23', 'yyyymmdd hh24')
   and a.JCSBBH IN ('C021', 'H002', 'C024',
        'D804', 'D001', 'C022',
        'C025', 'C026', 'C027')
   and a.clbz = '0'
   and a.id = b.xh(+);
不再报错,原因待查
 
阅读(5005) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~