I want to assign permissions for a user to see the EMP table

天大地大妈咪最大 提交于 2019-12-13 03:52:56

问题


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.

回答1:


Perhaps the EMP table isn't owned by SYSTEM? Do:

SELECT owner FROM all_tables WHERE table_name = 'EMP'

Also, what user are you doing the GRANT and SELECT as?



来源:https://stackoverflow.com/questions/7857005/i-want-to-assign-permissions-for-a-user-to-see-the-emp-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!