Cause: java.sql.SQLException: ORA-00942: table or view does not exist Then I try to run the sql statement that the webapp trying to execute before hitting this error and it returns the results without any error. The vendor give me the feedback that the table or the synonyms might be missing but I check and both of them exists. Since this is an UAT Database, so I just create a backup copy of that particular table and I start to rebuild the table from the grounds up. Then I finally discover the root cause of this incident. It is caused by the webapp user didn’t have access right to this object. We had did some maintenance job of that particular table recent days and it involve cloning and housekeeping and seems like the access privileges of that table get lost in these operation. After I grant back the access right and the dayend job runs without a hitch. Since there are so many possible reason causing this error, below are the steps that may help you identify your root cause: Replace OBJECT_NAME with the name of the table or view that you want to verify its existence. If this error occurred because the table or view does not exist, take the following actions:
from all_objects
where object_type in (’TABLE’,’VIEW’)
and object_name = ‘OBJECT_NAME‘;
ORA-00942 Table or View Does Not Exist Oracle Error
最新推荐文章于 2025-03-27 16:41:27 发布