ORA-12098: cannot comment on the materialized view
Cause: An attempt was made to issue a COMMENT ON TABLE statement on a materialized view.
Action: Issue a COMMENT ON MATERIALIZED VIEW statement instead.
ORA-12098,是一个SQL错误,表示无法评论有索引的视图。这是因为索引有助于增强视图的性能,但不能通过评论来设置。
步骤1:删除索引,删除视图文档,然后重建视图添加文档。
步骤2:在重建视图后添加索引,请确保将注释添加到视图之前先添加索引。