Oracle物化视图错误

发布于 2024-11-30 14:28:15 字数 184 浏览 3 评论 0原文

我已经在生产中运行了具体化的视图,但兔子在刷新方面遇到了问题。错误信息是

ORA-32411: 物化视图定义查询超出最大长度

出现问题的为 76kb、70kb、75kb 和 67kb。除了拆分查询之外,还有什么可以做的吗?每个脚本都是一个很长的查询,因此很难拆分。

I have materialized views that ran in production but hare having problems refreshing. The error message is

ORA-32411: materialized view definition query exceeds the maximum length

The ones that are having the problems are 76kb,70kb,75kb, and 67kb. Is there anything that can be done, besides splitting up the query? The scripts are one long query each so it will be hard to split up.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

诗化ㄋ丶相逢 2024-12-07 14:28:15

将物化视图重新创建为视图,然后重新编译物化视图选择语句,因为

select * from your_new_view

我不认为视图的长度存在限制。我还发现这使得更新 MV 查询变得非常简单,因为您只需重新编译视图,而不是删除并重新创建 MV。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文