本文介绍了我想为用户分配查看EMP表的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误说表不存在.我的问题是为什么我会收到错误消息?

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

该表确实存在,

 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.

推荐答案

也许EMP表不归SYSTEM所有?做:

SELECT owner FROM all_tables WHERE table_name = 'EMP'

另外,您以什么用户身份使用GRANTSELECT?

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

这篇关于我想为用户分配查看EMP表的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 04:21