zoukankan      html  css  js  c++  java
  • 【连接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

  • 相关阅读:
    Hdu 4496 D-City
    Hdu 1213 How Many Tables
    T1387:搭配购买(buy)
    codevs 2597 团伙
    Hdu 1232 畅通工程
    RQNOJ PID331 家族
    提高组day4
    xjoi2018提高组训训练25
    关于upp和lower
    矩阵快速幂求fib
  • 原文地址:https://www.cnblogs.com/hellxz/p/13650935.html
Copyright © 2011-2022 走看看