Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Grant access to sub-package via hdbsql

$
0
0

Hi All,

 

I am having trouble running an hdbsql command in a shell script and wondering if anyone could help. (I am running HANA DB SP6, Revision 60)

 

Basically, I would like to give a user REPO.READ access to the Competition sub-package as shown below.

 

 

I am attempting to use the following command:

 

su - <sid>adm -c "hdbsql -i <##> -u SYSTEM -p <password> \ "GRANT REPO.READ on "ERPSIM.Competition" to USER\""

 

but I am getting this error - "424: invalid name of package COMPETITION: line 1 col 7 (at pos 6) SQLSTATE: HY000"

 

The weird thing is that that SQL command will work as intended if I run it in HANA Studio, but not when I run it though hdbsql. Also, if I do a GRANT REPO.READ on ERPSIM.ERPSIM, it will succesfully authorize the user for the ERPSIM package.

 

Does anyone know how to authorize a user for a sub-package via a hdbsql script?

 

Thanks in advance!

 

Jerad


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>