【问题标题】:Granting DML and DBA Privileges授予 DML 和 DBA 权限
【发布时间】:2016-11-29 17:14:13
【问题描述】:

我有一个名为Employees 的数据表。假设我只想将所有 DML 权限授予名为 Shelby 的用户。这个说法有效吗?

grant all on employees to shelby;

但这不仅仅授予 DML 权限吗?正确的做法是什么?

现在假设我只想将所有 DBA 权限授予 Shelby。我写了声明:

grant dba on employees to shelby;

但这会返回错误“缺少或无效的权限”。我该如何解决这个问题?

【问题讨论】:

    标签: oracle oracle-sqldeveloper


    【解决方案1】:

    如果你想赋予“系统”权限(“全局”权限)

    grant dba to shelby;
    

    如果您想授予“对象”权限(在特定对象、表、视图等上)

    grant select on employees to shelby;
    grant insert on employees to shelby;
    grant update, alter on employees to shelby;
    

    【讨论】:

      猜你喜欢
      • 2012-04-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-24
      • 2015-01-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多