我已经物化了在生产中运行的视图,但是在刷新时遇到了问题。错误信息是
ORA-32411: 物化视图定义查询超出最大长度
有问题的是 76kb、70kb、75kb 和 67kb。除了拆分查询之外,还有什么可以做的吗?每个脚本都是一个长查询,因此很难拆分。
我已经物化了在生产中运行的视图,但是在刷新时遇到了问题。错误信息是
ORA-32411: 物化视图定义查询超出最大长度
有问题的是 76kb、70kb、75kb 和 67kb。除了拆分查询之外,还有什么可以做的吗?每个脚本都是一个长查询,因此很难拆分。
Recreate your materialized views as just views, and then recompile your materialized view select statement as
select * from your_new_view
I don't believe there is a limit to how long a view can be. I've also found this makes updating the MV query quite simple as you only have to recompile the view instead of dropping and recreating the MV.