Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> strange parallel query behavior
The text below shows the exact same query. However, the first one is
run with one
of the tables in "parallel" mode, while the second query has that table
switched to "serial" mode. The first query gets the wrong answer; the
second query is correct. Lesson: the parallel option seems a little
buggy, yes?
SQL> alter table um_fac_course parallel (degree default);
Table altered.
SQL> select term,
a.indiv_instr_ind
from prodsch.sch_course_faculty a,
um_fac_course d
where rownum < 9
and a.class_cd = d.class_cd
and a.indiv_instr_ind = d.indiv_instr_ind and a.crs_level_cd = d.crs_level_cd and a.lead_class_ind = d.lead_class_ind and decode(a.fac_stu_cnt_curr, 0, 'N', 'Y') = d.has_students_ind
SQL> alter table um_fac_course noparallel;
Table altered.
SQL> select term,
a.indiv_instr_ind
from prodsch.sch_course_faculty a,
um_fac_course d
where rownum < 9
and a.class_cd = d.class_cd
and a.indiv_instr_ind = d.indiv_instr_ind and a.crs_level_cd = d.crs_level_cd and a.lead_class_ind = d.lead_class_ind and decode(a.fac_stu_cnt_curr, 0, 'N', 'Y') = d.has_students_ind
8 rows selected.
SQL> Received on Tue Jun 29 1999 - 20:50:52 CDT