我想为用户分配查看 EMP 表的权限
错误说表不存在。我的问题是为什么我会收到错误?
SQL> GRANT SELECT, INSERT, UPDATE, DELETE ON system.emp to chap7;
GRANT SELECT, INSERT, UPDATE, DELETE ON system.emp to chap7
*
ERROR at line 1:
ORA-00942: table or view does not exist
该表确实存在,
SQL> select ename from emp;
ENAME
----------
KING
BLAKE
CLARK
JONES
MARTIN
ALLEN
TURNER
JAMES
WARD
FORD
SMITH
ENAME
----------
SCOTT
ADAMS
MILLER
Stuttle
15 rows selected.
Error says table does not exist. My question is why do I get the error?
SQL> GRANT SELECT, INSERT, UPDATE, DELETE ON system.emp to chap7;
GRANT SELECT, INSERT, UPDATE, DELETE ON system.emp to chap7
*
ERROR at line 1:
ORA-00942: table or view does not exist
The table does exist,
SQL> select ename from emp;
ENAME
----------
KING
BLAKE
CLARK
JONES
MARTIN
ALLEN
TURNER
JAMES
WARD
FORD
SMITH
ENAME
----------
SCOTT
ADAMS
MILLER
Stuttle
15 rows selected.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许
EMP
表不属于SYSTEM
? Do:另外,您以什么用户身份执行
GRANT
和SELECT
操作?Perhaps the
EMP
table isn't owned bySYSTEM
? Do:Also, what user are you doing the
GRANT
andSELECT
as?