ORA-00905 与 GRANT ALL

来源:互联网 发布:fdd-lte是什么网络 编辑:程序博客网 时间:2024/05/16 05:43

SQL> grant all on EMP ,dept  to  public;

grant all on EMP ,dept  to  public

ORA-00905: 缺失关键字

Restriction on Object Privileges

A privilege cannot appear more than once in the list of privileges to be granted.

Specify ALL to grant all the privileges for the object that you have been granted with the GRANT OPTION.

The user who owns the schema containing an object automatically has all privileges

on the object with the GRANT OPTION.

The keyword PRIVILEGES is provided for semantic clarity and is optional.

 


SQL> grant all on EMP   to  public;

Grant succeeded

 

SQL> grant all on dept   to  public;

Grant succeeded

原创粉丝点击