SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Install and Configure unixODBC

Learn how to complete common tasks when setting up a new database. In this tutorial, you will install and configure unixODBC.

Overview

You will learn

  • How to download, install, and configure unixODBC to connect from your SAP HANA, express edition host machine to a client machine

More from John Currie

See all 20 tutorials by John Currie →

Prerequisites

Prerequisites

Steps

Intro

In the following How-To, the “host machine” refers to the machine on which you will be installing and configuring unixODBC. The “client machine” refers to the machine (or machines) you will be connecting to using unixODBC.

You will need the IP address of your host and client machine(s). Have that information available while you proceed through this how-to.


Step 1 Edit the hosts File of the Client Database

Before you can connect to your client database using unixODBC, you must update the client’s hosts file with the IP address of your SAP HANA, express edition host machine. You will need to do this with each client database.

On your client machine(s), do the following:

Edit /etc/hosts on Windows

  1. Navigate to C:\Windows\System32\drivers\etc.

  2. In Administrator mode, open hosts in Notepad. See your operating system for information on opening applications in Administrator mode.

  3. In a new uncommented row, add the IP address of your host machine with an alias of your choosing. Save your changes.

    Tip: Spacing is important. Make sure your hosts file in Notepad looks like this image.

    Windows Host File
    Windows Host File

Edit /etc/hosts on Mac and Linux

  1. On your Mac or Linux machine, start the Terminal application.

  2. Edit the hosts file with the following command:

Shell
sudo sh - c 'echo <ip_address_of_host>    <alias> >> /etc/hosts'

Note: The remaining steps are performed on your host machine.

Step 2 Install the unixODBC Driver Manager
+
Step 3 Create the .odbc.ini File
+
Step 4 Use the isql Command to Connect to Your System
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Edit the hosts File of the Client Database 2. Install the unixODBC Driver Manager 3. Create the .odbc.ini File 4. Use the isql Command to Connect to Your System