在 Firebird 中更改其他用户的表

发布于 2025-01-04 12:10:55 字数 287 浏览 1 评论 0原文

当我尝试在 Firebird 中更改不同所有者的表时,我收到此错误:

unsuccessful metadata update
MODIFY RDB$RELATION_FIELDS failed
no permission for control access to TABLE TAGS

我已经向该用户授予了所有权限,还有 REFERENCES 权限,但我仍然收到此错误。

有人知道如何解决这个问题吗?

我使用 Firebird 1.5

谢谢

When I try to alter a table from a different owner in Firebird I got this error:

unsuccessful metadata update
MODIFY RDB$RELATION_FIELDS failed
no permission for control access to TABLE TAGS

I had already granted ALL privileges to this user, also REFERENCES privileges, but I still getting this error.

Does anybody knows how to solve this?

I use Firebird 1.5

Thanks

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

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

发布评论

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

评论(1

不奢求什么 2025-01-11 12:10:55

ALTER TABLE 状态:

仅限表所有者和管理员有权限使用
更改表。

换句话说,如果您不是表的所有者,则需要以 SYSDBA 身份登录,或者需要以 root 或管理员身份登录数据库计算机。据我所知,没有其他方法可以以不同的用户身份更改表。

在 Firebird 2.5 中,还有 RDB$ADMIN 角色,它允许被授予此角色的用户具有与 SYSDBA 相同的权限。

您可以GRANTREFERENCES 除外)的权限仅适用于 DML,不适用于 DDL 操作。

Firebird 3 引入了 元数据权限,它允许您针对特定对象类型向特定用户或角色授予这些权限。

例如:

GRANT ALTER ANY TABLE TO Joe;

将允许用户 Joe 更改当前数据库中的任何表。

The Firebird 2.5 Language Reference section on ALTER TABLE states:

Only the table owner and administrators have the authority to use
ALTER TABLE.

In other words if you are not the owner of the table, you need to either login as SYSDBA, or you need to be logged in as root or Adminstrator on the machine with the database. There is - as far as I am aware - no other way to alter a table as a different user.

In Firebird 2.5 there is also the RDB$ADMIN role which allows a user which is granted this role to act with the same rights as SYSDBA.

The rights you can GRANT (except for REFERENCES) are only for DML, not for DDL operations.

Firebird 3 introduced metadata privileges, which allows you to grant these permissions to a specific user or role for specific object types.

For example:

GRANT ALTER ANY TABLE TO Joe;

Will allow the user Joe to alter any tables in the current database.

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