I am trying to use SAP Predictive analisys tools on prod. AFL has been installed with PRODPULL (REv74).
So, according to http://help.sap.com/hana/SAP_HANA_Predictive_Analysis_Library_PAL_en.pdf, Checking PAL Installation:
SELECT * FROM "SYS"."AFL_FUNCTIONS" WHERE AREA_NAME = 'AFLPAL';
returns unemtpy set (58 functions, but less that what I have expected from the documentation)
My user has AFL__SYS_AFL_ALFPAL_EXECUTE and AFL__SYS_AFL_ALFPAL_EXECUTE_WITH_GRANT_OPTION roles.
Next, I have to grant rights for AFL wrapper generator. Executing (from another p-user)
GRANTEXECUTEONsystem.afl_wrapper_generatorto<MYUSER>
Could not execute 'GRANT EXECUTE ON system.afl_wrapper_generator to <MYUSER>' in 53 ms 536 µs .
SAP DBTech JDBC: [397] (at 24): invalid object name: AFL_WRAPPER_GENERATOR: line 1 col 25 (at pos 24)
So, if I try to execute some function, like
(from the examples in http://help.sap.com/hana/SAP_HANA_Predictive_Analysis_Library_PAL_en.pdf)
CALL"_SYS_AFL".PAL_KMEANS_PROC(PAL_KMEANS_DATA_TBL, #PAL_CONTROL_TBL,
PAL_KMEANS_ASSIGNED_TBL, PAL_KMEANS_CENTERS_TBL) with OVERVIEW;
Could not execute 'CALL "_SYS_AFL".PAL_KMEANS_PROC(PAL_KMEANS_DATA_TBL, #PAL_CONTROL_TBL, PAL_KMEANS_ASSIGNED_TBL, ...'
SAP DBTech JDBC: [328]: invalid name of function or procedure: PAL_KMEANS_PROC: line 1 col 17 (at pos 16)
So, _SYS_AFL can not be found, it is the same with wrappers and generations.
Why cant I (or another user) grant me these rights ?
Kind regards, Peter