エラーメッセージ †ORA-01723: zero-length columns are not allowed 対策 †
ORA-01723: zero-length columns are not allowed エラー †もとのテーブルになく、MView に必要なフィールドに NULL を指定すると発生する。 固定文字列や、数値などを指定しエラーを回避する。 (データの型がわからないのだから当然と言えば当然。ただ「データの型が不明です。」というようなもう少しわかりやすいメッセージにしてほしいものだ。) 悪い例 create materialized view materialized_view_name refresh complete on demand as select FieldA as OtherTableFieldA, FieldB as OtherTableFieldB, NULL as OtherTableFieldC from OtherTable@ServiceName; 修正例 create materialized view materialized_view_name refresh complete on demand as select FieldA as OtherTableFieldA, FieldB as OtherTableFieldB, ' ' as OtherTableFieldC from OtherTable@ServiceName; |