Query featuring outer joins behaves differently in Oracle 12c

前端 未结 3 1388
再見小時候
再見小時候 2020-12-17 14:48

I had a problem come through concerning missing data on Oracle 12c.

I took a look at the code and found a query that works on mysql, mssql, oracle 11g, but has diffe

3条回答
  •  难免孤独
    2020-12-17 15:22

    Refer to:

    ANSI Outer Join Query Returns Wrong Results After Upgrade to 12.1.0.1 (Doc ID 1957943.1)

    Unpublished bug 16726638

    Fixed in 12.1.0.2 (I have tested this)

    Workaround (I tested in 12.1.0.1):

    alter session set "_optimizer_ansi_rearchitecture"=false;          
    

    Note 1957943.1 recommends as an alternative:

    optimizer_features_enable = '11.2.0.4';
    

    but that does not work.

提交回复
热议问题