Oracle 是否允许跨模式视图?

发布于 2024-09-29 19:19:57 字数 57 浏览 0 评论 0原文

在 MySQL 中,我可以创建一个指向另一个模式中的表的视图。 Oracle 11g 允许这样做吗?

In MySQL, I can create a view which points to a table in another schema. Does Oracle 11g allow this?

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

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

发布评论

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

评论(3

执笔绘流年 2024-10-06 19:19:57

只要当前帐户(具有视图的帐户)具有在其他模式中授予的适当权限,事情就会好起来:

GRANT SELECT ON other_schema.table TO user;

As long as the current account (the one with the view) has appropriate privilege(s) granted in the other schema, things will be fine:

GRANT SELECT ON other_schema.table TO user;
凯凯我们等你回来 2024-10-06 19:19:57

是的,但您的用户必须拥有这两个架构的权限。

请参阅:http://itknowledgeexchange.techtarget.com/itanswers/oracle-cross-架构视图/

Yes, but your user must have permissions on both schemas.

see: http://itknowledgeexchange.techtarget.com/itanswers/oracle-cross-schema-view/

鹿! 2024-10-06 19:19:57

您也可以为不同模式中的对象创建同义词,从而在视图中省略外部模式名称。

You might create synonyms for objects in different schemas as well, thus omitting the foreign schema names in your views.

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