index.rst 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. .. _community_hana:
  2. SAP HANA
  3. ========
  4. Supported versions
  5. ------------------
  6. The module supports
  7. * SAP HANA 1 SPS 12
  8. * SAP HANA 2 (all SPS including the `free express edition <https://www.sap.com/sap-hana-express>`_)
  9. * `SAP HANA Cloud <https://www.sap.com/products/hana/cloud.html>`_
  10. .. _hana_install:
  11. Installing SAP HANA support
  12. ---------------------------
  13. GeoServer has no built-in support for SAP HANA. You can enable SAP HANA support by adding the HANA GeoTools module and the HANA JDBC driver to your GeoServer installation.
  14. Installing the HANA GeoTools module
  15. ```````````````````````````````````
  16. Identify the GeoTools version your GeoServer installation is using by navigating to the :file:`webapps/geoserver/WEB-INF/lib/` folder in your GeoServer installation and locating the file :file:`gt-jdbc-{<version>}.jar` as shown in the image below. In the example below the GeoServer version is ``22.0``.
  17. .. figure:: images/gt-version.png
  18. :align: center
  19. *Finding the GeoTools version*
  20. Download the GeoTools archive with the version used by GeoServer from the `GeoTools website <https://geotools.org/>`_. You need the :file:`geotools-{<version>}-bin.zip` file. Copy the :file:`gt-jdbc-hana-{<version>}.jar` file to the :file:`webapps/geoserver/WEB-INF/lib/` folder of your GeoServer installation.
  21. .. figure:: images/gt-jdbc-hana.png
  22. :align: center
  23. *Locating the GeoTools HANA module*
  24. Installing the HANA JDBC driver
  25. ```````````````````````````````
  26. Browse to the `SAP Development Tools website <https://tools.hana.ondemand.com/#hanatools>`_ and download the JDBC component to the :file:`webapps/geoserver/WEB-INF/lib/` folder of your GeoServer installation.
  27. .. figure:: images/ngdbc.png
  28. :align: center
  29. *Downloading ngdbc.jar from the SAP Development Tools website*
  30. Afterwards restart your GeoServer instance.
  31. Adding a SAP HANA database
  32. --------------------------
  33. After both modules have been installed, ``SAP HANA`` will show up as an option when creating a new data store.
  34. .. figure:: images/hana-store.png
  35. :align: center
  36. *HANA in the list of vector data sources*
  37. Configuring a SAP HANA data store
  38. ---------------------------------
  39. .. figure:: images/hana-options.png
  40. :align: center
  41. *Configuring a SAP HANA data store*
  42. The following options are relevant for SAP HANA:
  43. .. list-table::
  44. :widths: 20 80
  45. * - ``host``
  46. - The machine name or IP address to connect to.
  47. * - ``port``
  48. - The port to connect to. If set and different from 0, the parameters ``instance`` and ``database`` are ignored. If not set or 0, the ``instance`` parameter must be set.
  49. * - ``instance``
  50. - The instance to connect to. This parameter is ignored if a port is set. The ``instance`` field is at the bottom of the configuration form in case you have difficulties locating it.
  51. * - ``database``
  52. - The database to connect to. Leave empty in case of single-container databases. Set to ``SYSTEMDB`` to connect to the system database of a multi-container database. This parameter is ignored if a port is set.
  53. * - ``schema``
  54. - The database schema to access. If left blank, the user-specific database schema is accessed.
  55. * - ``user``
  56. - The database user used to connect to the database.
  57. * - ``passwd``
  58. - The password used to connect to the database.
  59. * - ``use ssl``
  60. - If checked the TLS/SSL cryptographic protocol is used to establish a secure connection with the database.