Insufficient Privileges Issue While Connecting from Java Application
Hi,
We have table in schema app_admin and application is trying to select data from the table using app_dev user. Application is firing the Oracle select query from inbuilt java code and they are getting the below error saying insufficient privileges. I have checked the grants and synonyms, everything looks good and all are valid.
We are facing the issue only when we call the query from application. When I try to run the same query in SQL*Plus and SQL Developer, it is working fine. Also, when we recreate the synonym and regrant the privileges, application is working fine without any issues. I want to understand why the synonyms/grants are not working when we call it from java and it works when we test it via SQL developer/SQL Plus.