Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> About read consistency
Simple testcase:
SQL> create table CUSTOMER
2 (
3 CUSTOMERID NUMBER(19), 4 LASTNAME VARCHAR2(60 CHAR), 5 PURGED NUMBER(1), 6 UPDATE_STATUS NUMBER(3),
Table created.
SQL> insert into CUSTOMER (CUSTOMERID, LASTNAME, PURGED, UPDATE_STATUS,
PROCESSING_STARTED)
2 values (9342546, 'Niebuhr', 1, 0, to_date('10-12-2005 18:54:04',
'dd-mm-yyyy hh24:mi:ss'));
1 row created.
SQL> insert into CUSTOMER (CUSTOMERID, LASTNAME, PURGED, UPDATE_STATUS,
PROCESSING_STARTED)
2 values (13373671, 'Kupetz', 1, 0, to_date('10-12-2005 18:54:04',
'dd-mm-yyyy hh24:mi:ss'));
1 row created.
SQL> insert into CUSTOMER (CUSTOMERID, LASTNAME, PURGED, UPDATE_STATUS,
PROCESSING_STARTED)
2 values (14320146, 'Dahhan', 1, 0, to_date('10-12-2005 18:54:04',
'dd-mm-yyyy hh24:mi:ss'));
1 row created.
SQL> commit;
Commit complete.
SQL> col customerid for 999999999 SQL> col update_status for 99 SQL> col processing_started for a19 SQL> col purged for 99 SQL> SELECT
2 customerid
3 ,update_status 4 ,processing_started 5 ,purged
9 FROM CUSTOMER 10 WHERE (update_status=0 11 OR 12 ( update_status=1 AND processing_started < sysdate-1)) 13 AND purged=1
CUSTOMERID UPDATE_STATUS PROCESSING_STARTED PURGED
---------- ------------- ------------------- ------ 9342546 0 10-DEC-05 1 13373671 0 10-DEC-05 1 14320146 0 10-DEC-05 1
SQL> col customerid for 999999999 SQL> col update_status for 99 SQL> col processing_started for a19 SQL> col purged for 99 SQL> col lastname for a15 SQL> col update_status for 99 SQL> SELECT
2 customerid
3 ,update_status 4 ,processing_started 5 ,purged
9 FROM CUSTOMER 10 WHERE (update_status=0 11 OR 12 (update_status=1 AND processing_started < sysdate-1) 13 ) 14 AND purged=1
3 rows updated.
SQL> commit;
Commit complete.
no rows selected
SQL> rollback;
Rollback complete.
SQL> rollback;
Rollback complete.
I've the same behaviour on 9.2.0.6 and 10.2.0.1 on Linux and on 9.2.0.6
on Solaris. Is it a (maybe well known) bug, or did i overlook something
obvious ?
All insights appreciated.
Best regards
Maxim Received on Thu Dec 15 2005 - 12:42:36 CST
![]() |
![]() |