Installing the SASLINK AFL Plugins on the Appliance

The SASLINK Application Function Library (AFL) files are included with the server side components. These files must be copied to the SASLINK AFL plugins directory on the SAP HANA server.
Note: The SID referenced in these instructions is the SAP HANA system identifier (for example, HDB).
  1. If it does not exist, create a plugins directory in the $DIR_SYSEXE directory.
    1. Log on to the SAP HANA server as the root authority.
      You can use one of these commands.
      su - root
      sudo su -
    2. Create the plugins directory.
      mkdir -p /usr/sap/SID/SYS/exe/hdb/plugins
      chown SIDadm:sapsys /usr/sap/SID/SYS/exe/hdb/plugins 
      chmod 750 /usr/sap/SID/SYS/exe/hdb/plugins
      exit
  2. Use this command to change the user to the database administrator.
    su - SIDadm
  3. Stop the SAP HANA database if it is running.
    HDB stop
  4. If it does not exist, create the SASLINK AFL plugins directory.
    cdexe
    cd -P ..
    mkdir -p plugins/sas_afl_sdk_saslink_1.00.1.0.0_1
    cdexe
    mkdir -p plugins
    cd -P plugins
    ln -s ../../plugins/sas_afl_sdk_saslink_1.00.1.0.0_1 sas_afl_sdk_saslink
    
  5. Copy the SASLINK AFL files from the /SASEPHome/SAS/SASTKInDatabaseServerForSAPHANA/9.4/sasexe and /SASEPHome/SAS/SASTKInDatabaseServerForSAPHANA/9.4/admin directories to the SASLINK AFL plugins directory.
    cdexe
    cd plugins/sas_afl_sdk_saslink
    cp /SASEPHome/SAS/SASTKInDatabaseServerForSAPHANA/9.4/
       sasexe/libaflsaslink.so .
    cp /SASEPHome/SAS/SASTKInDatabaseServerForSAPHANA/9.4/
       admin/saslink.lst .
    cp /SASEPHome/SAS/SASTKInDatabaseServerForSAPHANA/9.4/
       admin/saslink_area.pkg .
    cp /SASEPHome/SAS/SASTKInDatabaseServerForSAPHANA/9.4/
       admin/manifest .
    Note: You can find the location of SASEPHome by using the following command:
    ls -l /usr/local/bin
  6. Restart the SAP HANA database.
    HDB start