Running Admin Scripts

SAP HANA APL comes with scripts that perform the configuration and administration tasks required before using the function library.

Run the scripts listed below for the techniques that you want to apply to use the functions:

Technique

Script

Description
Direct samples/sql/direct/apl_admin.sql The script does the following:
  • Starts the SAP HANA script server
  • Checks the installation
  • Creates an SAP HANA user
  • Grants privileges to create, execute and delete the AFL wrappers
Stored procedure samples/sql/procedure/apl_admin_ex.sql The script does the following:
  • Starts the SAP HANA script server
  • Checks the installation
  • Creates an SAP HANA user
  • Creates the cache
  • Grants privileges to use the stored procedures and the cache
  • Purges the cache
ANY samples/sql/any/apl_admin_ex.sql

The topics in this section describe the individual tasks and the SQL statements that can be used.