I experienced an ORA-00942 (“table or view does not exist”) when executing
select * from brunch
However, no such problem when executing
select * from joe.brunch
May i know what is the issue here?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unqualified,
BRUNCHrefers to a different object thanJOE.BRUNCHin your current session. You’ve got a couple of options to fix that.Create a public synonym. This will allow any user that has privileges on the
JOE.BRUNCHtable to access it by queryingBRUNCHCREATE PUBLIC SYNONYM brunch
FOR joe.brunch
Create a private synonym. This will allow just the current user to access the
JOE.BRUNCHtable by queryingBRUNCHCREATE SYNONYM brunch
FOR joe.brunch
Change the current schema for the current session to
JOE. This will cause all unqualified references in the current session to resolve to theJOEschema rather than to the current user’s schemaALTER SESSION SET current_schema = JOE