これは機能します:
SELECT
PRODUCT_INFOS.FIELD_VALUE,
PRODUCT_INFOS.COIL_ID_SYSTEM,
PRODUCT_INFOS.TIME_STAMP,
PRODUCT_INFOS.FIELD_NAME
FROM
PRODUCT_INFOS
これは機能します:
SELECT
COIL_INFOS.TIME_STAMP,
COIL_INFOS.IN_THICKNESS,
COIL_INFOS.MEASURED_LENGTH,
COIL_INFOS.MEASURED_WIDTH,
COIL_INFOS.PARAM_SET_TOP_SIDE,
COIL_INFOS.PARAM_SET_BOTTOM_SIDE,
COIL_INFOS.TIME_STAMP,
COIL_INFOS.COIL_ID_SYSTEM
FROM
COIL_INFOS
WHERE
(COIL_INFOS.COIL_ID_SYSTEM LIKE '14051800' OR COIL_INFOS.COIL_ID LIKE '14051800')
0RA-00952 - Table or view does not exist
これは Oracle 11g では機能しますが、10g (バージョン 10.2.0) では失敗します。
SELECT
PRODUCT_INFOS.FIELD_VALUE,
COIL_INFOS.TIME_STAMP,
COIL_INFOS.IN_THICKNESS,
COIL_INFOS.MEASURED_LENGTH,
COIL_INFOS.MEASURED_WIDTH,
COIL_INFOS.PARAM_SET_TOP_SIDE,
COIL_INFOS.PARAM_SET_BOTTOM_SIDE
FROM
COIL_INFOS
INNER JOIN
PRODUCT_INFOS
on PRODUCT_INFOS.COIL_ID_SYSTEM=COIL_INFOS.COIL_ID_SYSTEM
and PRODUCT_INFOS.TIME_STAMP=COIL_INFOS.TIME_STAMP
and PRODUCT_INFOS.FIELD_NAME='ID bobina'
WHERE
(COIL_INFOS.COIL_ID_SYSTEM LIKE '14051800' OR COIL_INFOS.COIL_ID
LIKE '14051800')
Oracle のバージョン以外に違いは見られません (ベースは同じダンプを使用して作成されます)。私は Oracle 10g のバグを疑っているので、問題に明らかに関連するバグ レポートを回答として受け入れます。
もちろん、直接的な解決策または回避策も受け入れられます。