Skip to Content

How to access from Cloud Platform Java app via JDBC to HANA instance on Premise?

Jul 27, 2017 at 08:04 AM


avatar image

Hello all,

Does someone has an example/tutorial of coding snippets on how to access from a Cloud Platform Java app an HANA instance via JDBC through a Cloud Connector attached HANA instance on Premise?

Thanks and best regards,


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jin Wong
Jul 27, 2017 at 02:38 PM

Hi Lionel,

You need to install the cloud connector on the same network with your HANA system.

Part 2:

Look at the SAP HANA and SAP ASE tutorials section.



Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hello Jin,

Thanks. I did already find the linked descriptions (and working examples) to run JDBC against the build-in (shared or "hosted") HANA instance running on Cloud Platform... but my quest is:

How to attach/bind an OnPremise HANA instance (through SAP Cloud Connector) to a java application running on Cloud Platform?

The native HANA JDBC (ngdbc.jar) is failing to load when trying my app in on the Cloud Platform. Secondly SAP Cloud Connector offers only to open an TCP (SOCKS) channel to my HANA OnPremise instance.

Would be nice if anyone could point me into the right direction.

Thanks and best regards,