I want to assign permissions for a user to see the

2019-09-19 07:08发布

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条回答
老娘就宠你
2楼-- · 2019-09-19 07:55

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?

查看更多
登录 后发表回答