Reminder: This tutorial is part of a mission, in which you will help Alex, the CEO of Best Run Travel, to answer a concrete business question with SAP HANA Cloud, SAP HANA database.
Alex needs to know the top 5 partners of their agency and wants to find out the days with maximum booking of each partner.
Step 1Download the sample data set
โ
SAP provides a free data model focused on flight data for anyone to use. We’re going to import this sample data and use it to help you complete the mission for Best Run Travel.
Download the SFLIGHT sample data from the public SAP GitHub repository and save it on your local machine.
Note the location of the file.
Step 2Open the SAP HANA database explorer
+
Under Instances and Subscriptions, open SAP HANA Cloud Central.
HCC application
In the Actions column, click on the three dots and select the option to Open in SAP HANA Database Explorer.
Open the SAP HANA database explorer
SAP HANA database explorer will open in a new tab.
Step 3Import the data to your catalog
+
In the pane on the left, expand your database and right-click on Catalog.
Click on Import Catalog Objects.
DBX - import catalog objects
Where it says Local archive, click on Browse and select the SFLIGHT file you previously downloaded to your local machine.
Browse
Wait until the archive is uploaded completely. You can see the status of the upload next to the Browse button.
DBX uploading archive
Once the upload is completed, you will see a list of Catalog Objects. All of the objects will be automatically selected for import.
DBX catalog objects
Keep all options as they are and then click on Import.
Once the import is completed, you will see a confirmation notification on the top right-hand side of the screen.
DBX import completed successfully
Note that you can also import individual .csv files in a similar manner. Simply right click on Tables in your catalog and select Import Data.
Import CSV1
A wizard will guide you through the steps. You can select to add the data to an existing or new table and which schema the import should happen in.
Import CSV2.png
You will then be asked to specify the column mappings, as well as how errors should be handled.
Import CSV3.png
Step 4Preview the data
+
Once the data is imported, you can take a look at it.
Click on Tables to view all your newly imported tables. Please note that your data will be automatically stored in a new schema named SFLIGHT.
To ensure that you can see your new tables, click on the Choose Schema button next to the schema name on the bottom left-hand side panel.
view tables - change schema
Then select the schema SFLIGHT. You can uncheck the default DBADMIN schema to see only the SFLIGHT tables you just imported.
Select Schema
Click OK and the list of available tables will be displayed on the same side panel.
View Tables
If you want to see the data inside any of your tables, right click on any of them and then click on Open Data.
Open Data
This will open the table on the main panel.
Data Preview resized
You can browse the dataset to get a better overview of the data available.
Well done!
You have completed the fifth tutorial of this mission! Now you know how to import tar.gz files to your database using the SAP HANA database explorer.
Learn in the next tutorial how to create and manage users and privileges.
Share feedback on this tutorial or join the conversation in SAP Community.
Submit detailed feedbackDiscuss in Community
Steps
Step 1 of 5
1. Download the sample data set2. Open the SAP HANA database explorer3. Import the data to your catalog4. Preview the data5. Knowledge Check
Joule
AI Notice
Joule is an AI assistant. Generative AI may produce inaccurate, incomplete, or biased information. Always verify important details before acting on them.
Conversations are sent to SAP-hosted large language models for processing. Do not include personal data, credentials, or confidential information in your messages.
Joule's responses are based on the SAP tutorial catalog and may not reflect the latest product changes. For authoritative guidance, consult the linked tutorials and official SAP documentation.