Getting ORA-01031: insufficient privileges while querying a table instead of ORA-00942: table or view does not exist

后端 未结 5 1356
粉色の甜心
粉色の甜心 2021-02-08 06:01

When I\'m querying a table in schema C from schema A, I\'m getting ORA-01031: insufficient privileges and when I\'m querying the same table from schema B, I\'m

5条回答
  •  难免孤独
    2021-02-08 06:24

    ORA-01031: insufficient privileges happens when the object exists in the schema but do not have any access to that object.

    ORA-00942: table or view does not exist happens when the object does not exist in the current schema. If the object exists in another schema, you need to access it using .. Still you can get insufficient privileges error if the owner has not given access to the calling schema.

提交回复
热议问题