Hi
I am invoking a procedure from a war file deployed in my trial account of HCP
However, I am getting this error while trying to invoke the procedure from the war file.
2016 05 05 06:55:01#+00#INFO#com.sap.icn.yaas.recommender.data.repositories.RecommendationRepositoryCustomImpl##anonymous#http-nio-8041-exec-10#na#i322020trial#yaasrecommenderorder#web#i322020trial#Creating SQL statement for querying|
2016 05 05 06:55:01#+00#ERROR#com.sap.icn.yaas.recommender.data.repositories.RecommendationRepositoryCustomImpl##anonymous#http-nio-8041-exec-10#na#i322020trial#yaasrecommenderorder#web#i322020trial#com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [258]:\
insufficient privilege: Not authorized|
However, the procedure invocation works fine, if it is invoked from the SQL Console of SAP HANA Administration console
The java code within the war file, invokes the procedure like so...
logger.info("Creating SQL statement for querying");
statement = connection.createStatement();
java.lang.String sql;
sql = String.format("call \"Compute_Deals_CF_3\"('%s','%s')", item, tenant);
java.sql.ResultSet resultSet = statement.executeQuery(sql);
Here is the image from my SQL Console of SAP HANA Administration Console