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