Not able to select a table even if having SELECT privilege

后端 未结 1 1647
死守一世寂寞
死守一世寂寞 2021-01-28 02:49

I have two users, USER1 and USER2. USER1 has privilege to create table and USER2 does not have this privilege.

相关标签:
1条回答
  • 2021-01-28 03:21

    Try this

    SELECT * from USER1.EMPLOYEE;
    

    This might happen if there is no public synonym present for EMPLOYEE table. So you need to refer using the owner.object

    If not getting results, please post the results of

    SELECT
          OWNER,
          TABLE_NAME
    FROM
          ALL_TABLES
    WHERE
          TABLE_NAME IN ('EMPLOYEE');
    
    0 讨论(0)
提交回复
热议问题