【连接SAP HANA报错】com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [258]: insufficient privilege: Detailed info for this error can be found with guid

简记

连接SAP HANA数据库时报了如下错误:

ERROR org.springframework.boot.SpringApplication - Application run failed
org.springframework.dao.PermissionDeniedDataAccessException: ConnectionCallback;
SAP DBTech JDBC: [258]: insufficient privilege: Detailed info for this error can be found with guid '48CF4AA51275224091C2D2066EEFBEFA';
nested exception is com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [258]: insufficient privilege: Detailed info for this error can be found with guid '48CF4AA51275224091C2D2066EEFBEFA'

这个错误在SAP官网上只说有个存储过程可供调用,可以查询SYS.GET_INSUFFICIENT_PRIVILEGE_ERROR_DETAILS

以此错误为例,可使用以下方式查看问题出现的原因:(注意替换guid)

CALL SYS.GET_INSUFFICIENT_PRIVILEGE_ERROR_DETAILS ('48CF4AA51275224091C2D2066EEFBEFA', ?)

我这边程序的提示如下,错误原因是设置了两个不同的用户名,我们的项目在启动参数也设置了schema的名称,忘记改了……

其他情况需要为当前用户授予schema的访问权限即可。

参考地址:
https://help.sap.com/viewer/6b94445c94ae495c83a19646e7c3fd56/2.0.04/en-US/d26bddb8bba54e2eac09d85c93aa8d1c.html

本文作者:东北小狐狸

本文链接:https://www.cnblogs.com/hellxz/p/13650935.html

版权声明:本作品采用自由转载-非商用-非衍生-保持署名 (CC BY-NC-ND 3.0)许可协议进行许可。

posted @   东北小狐狸  阅读(3440)  评论(0编辑  收藏  举报
历史上的今天:
2018-09-11 【学习笔记】Spring AOP注解使用总结
2018-09-11 【学习笔记】AspectJ笔记
点击右上角即可分享
微信分享提示
💬
评论
📌
收藏
💗
关注
👍
推荐
🚀
回顶
收起