Skip to Content

SAP CodeJam Getting Started with SAP HANA, express edition

0 %
SAP CodeJam Getting Started with SAP HANA, express edition
// Explore More Tutorials

SAP CodeJam Getting Started with SAP HANA, express edition

Links, tips, tricks and more for getting started with the SAP HANA, express edition


The following will document links, tips and tricks and more related to the SAP CodeJam Getting Started with SAP HANA, express edition event.


DEPRECATED: SAP HANA XS Classic is deprecated as of SPS02. Please use XS Advanced, and learn about how to get started with the new mission Get Started with XS Advanced Development.


Step 1: First steps after registering to attend the event

Now that you have registered for the SAP CodeJam event you will need to follow a few steps here to prepare yourself for the event.

The first step is of course to sign up and register for this will enable your user and make future steps much easier.


Now proceed to SAP HANA, express edition product page where you will see the steps listed as well as more information on what exactly SAP HANA, express edition is.


Remember you will need a laptop or machine with at least 8 GB of RAM for server-only or 16GB of RAM for XS Advanced applications. You can also choose a cloud provider but please note those require a credit card to sign up even if they offer free initial credits.

Step 2: Get your version of HXE

Depending on your choice and your available resources, you can install SAP HANA, express edition, as a Virtual Machine on your computer or on a cloud provider.

You will move into other tutorials and always back to this one. It is advisable that you keep this open in one tab.

Google Cloud Platform Launcher
If you are looking for the server-only version and would like to use Google Cloud Platform, there is a one-click setup option that is explained in this guide.

Virtual Machine or Binary manual Installation
In order to get your copy of the download, either the virtual machine or the binaries to install on your own Linux installation you will need to register.


Once you have registered, proceed to setup you SAP HANA, express edition, using the right tutorial series depending on your choice:
- Virtual Machine method:
- Binary Installer method:

Manual binary installations with alternative free operating systems
- Only for SPS01 and earlier - Google Cloud platform and Ubuntu:
- openSUSE on MS Azure:

Step 3: Choose between OPTION A: HANA Studio, OPTION B: Server-only and external access or OPTION C: XS Advanced Development

You are now presented with three paths. None is a dependency of the other and you can follow the three of them, however, if you have installed XS Advanced, it makes sense to go only for that option.

Option A, HANA Studio with XS Classic, requires one additional installation step with versions SPS12, SPS00 and SPS01. It is not available with SPS02.

Option B, server-only and external tools, does not require the additional XS Classic installation and uses other tools available in the market.

Option C, XS Advanced development does not require any additional setup and is only available if you have XS Advanced installed.

Step 4: Install XS Classic

SAP HANA XS stands for Extended Application Services. These components are necessary to execute steps from option A.

From the an operating system console, switch to the root user with command:

sudo su -

As root, execute the following commands, replacing HXE_SID with the System ID that you chose during setup. This is, most likely, HXE.

/hana/shared/<<HXE_SID>>/global/hdb/install/bin/hdbupdrep --content_directory=/hana/shared/<<HXE_SID>>/global/hdb/auto_content
/hana/shared/<<HXE_SID>>/global/hdb/install/bin/hdbupdrep --content_directory=/hana/shared/<<HXE_SID>>/global/hdb/auto_content/systemdb

For each command, the installer will ask for user SYSTEM and its password, which needs to update the installation. In this example, the system ID was set to HXE during setup:

first command

Second command:

second command

Finally, log in to the database using command hdbsql to enable the statistics server. Replace XX with the instance number below:

sudo su - hxeadm
hdbsql -i XX -n localhost:3XX13 -u SYSTEM -p <SYSTEM user password> "alter system alter configuration('nameserver.ini','SYSTEM') SET ('statisticsserver','active') = 'true' with reconfigure"

If you are having trouble with the password, you can also log in first and execute the command later:


Then cast the last set of commands:

CALL GRANT_ACTIVATED_ROLE ('sap.hana.ide.roles::EditorDeveloper','SYSTEM');
CALL GRANT_ACTIVATED_ROLE ('sap.hana.ide.roles::CatalogDeveloper','SYSTEM');
CALL GRANT_ACTIVATED_ROLE ('sap.hana.ide.roles::SecurityAdmin','SYSTEM');
CALL GRANT_ACTIVATED_ROLE ('sap.hana.ide.roles::TraceViewer','SYSTEM');
ALTER SYSTEM ALTER CONFIGURATION ('webdispatcher.ini', 'system') SET('profile', 'wdisp/system_auto_configuration') = 'true' WITH RECONFIGURE;


Type quit to exit the SQL console.

You can check the installation by opening URL http://<<hostname>>:80XX/sap/hana/ide/ and logging in with user SYSTEM:

XS check
Step 5: Coding with SAP HANA Studio

You will need to download a copy of the Eclipse software which will allow you to add the appropriate plugins to connect to your new SAP HANA, express edition, server.

We recommend Eclipse Neon, the Java EE version in case you later want to explore the SAP Cloud Platform.

Now that Eclipse has been installed you will need to add the appropriate plugins. The following guide will take your though those steps.

Finally you are connected to your SAP HANA, express edition, system.

Now that you are connected and have your new users created it is time to actually do a little coding. The following tutorials will walk you through your first project with the Eclipse software and your HXE server.

Step 6: Advanced System Settings

If you are so inclined you can also enhance your current server installation and add in the browser based tooling to forgo the using of Eclipse for working with the server as well.

This blog post walks you through the whole process of installing the browser based tools.

Step 7: Coding from the browser

If you choose to install the browser based tools in Step A.2 then you can move on to the following tutorials for creating your first project via that environment.

Step 8: Personalize HXE

The following tutorials and blogs are just some optional items to help you understand your SAP HANA, express edition install and personalize it a bit to suit you.

Step 9: Advanced Topics
Step 10: Install DBeaver and Connect

The following tutorial explains how to install a SQL client, in this case, DBeaver, and connect to SAP HANA, express edition, using the JDBC driver.

Access the tutorial to Install DBeaver

Step 11: Create a Schema and Add Data into your tables

The following tutorial explains how to create a table and insert data manually or using the Import SQL command to upload from a CSV file in the database server.

Continue to Upload and Import data.

Step 12: Connect using node.js

The following tutorial explains how to setup your local environment to use Node.js to connect to HXE.

Setup Node.js

Step 13: Access the database using node.js

The following tutorial shows how to use Node.js to get data from HXE.

Connect using Node.js

Step 14: Coming soon - Parse your table data and display it
Step 15: Development with XS Advanced

You can start exploring the XS Advanced Cockpit here:

You can get started with XS Advanced development following this tutorial series:

And here is how to integrate data from a database schema into your application:

Next Steps


  • Systems used: SAP HANA 1.00 SPS12, SAP HANA 2.00 SPS00, SAP HANA 2.00 SPS01, SAP HANA 2 SPS02 - SAP HANA, express edition
Back to top