OpenSAP Hsta1 Week 1 Exercise
OpenSAP Hsta1 Week 1 Exercise
Exercises / Solutions
Anthony Waite / SAP Labs, LLC.
Bill Miller / SAP Labs, LLC.
Contents
Desktop in SAP Cloud Appliance Library ..................................................................................................... 4
Preconfigured front-end client ........................................................................................................................... 4
Front-End Client Configuration ...................................................................................................................... 6
Getting Help ....................................................................................................................................................... 6
Adding a HANA Studio Perspective .................................................................................................................. 6
Create a Repository Workspace ...................................................................................................................... 11
Create a HANA Project .................................................................................................................................... 13
Important HANA Studio customizations .......................................................................................................... 15
(Mandatory) Set permissions for course exercises ......................................................................................... 17
Exercise 1 Solution..................................................................................................................................... 20
In SAP HANA Studio ....................................................................................................................................... 20
Exercise 2 Solution..................................................................................................................................... 24
In SAP HANA Studio ....................................................................................................................................... 24
Exercise 3 Solution..................................................................................................................................... 27
In SAP HANA Studio ....................................................................................................................................... 27
Exercise 4 Solution..................................................................................................................................... 29
In SAP HANA Studio ....................................................................................................................................... 29
Steps
Screenshot
4) Log on as:
User Name: SYSTEM
Password: Master
Password you specified
when creating the instance
in SAP CAL
Click the OK button to close
the dialog box.
5) You are now logged on to
your SAP HANA database.
Steps
Screenshot
other perspectives.
Steps
Screenshot
10
Steps
Screenshot
11
12
Steps
Screenshot
13
14
Steps
Screenshot
15
3) Continuing in the
Preferences dialog box,
navigate to General /
Appearance / Content
Types.
Under the Content Types tree,
navigate to Text / XML.
Click the Add button and
enter:
*.hdbtextconfig
*.hdbtextdict
You will see these two new
content types under File
associations.
4) Continuing in the
Preferences dialog box,
navigate to General /
Editors / File Associations.
Under File types, highlight
*.sql.
Under Associated editors,
highlight SAP HANA SQL
Console, then click the
Default button.
Note: This particular setting
may apply to you if you are
using the SAP Dev Tools for
Eclipse in CAL.
Click the OK button to close
the Preferences dialog box.
16
Steps
Screenshot
2) If there is No connection to
database displayed in the
SQL console, click on the
Choose Connection icon,
which is found right of the
green circle with an arrow
(Execute) icon.
17
18
Objective
In this exercise, you will execute a SQL statement to create a fulltext index for your copy of the workshop
data. Intentionally, we will omit the LANGUAGE DETECTION parameter.
Exercise Description
Create fulltext index without specifying possible languages
Search for restaurant terms in the content
Observe that English is assumed for all inputs
19
EXERCISE 1 SOLUTION
In SAP HANA Studio
Steps
Screenshot
2) If there is No connection to
database displayed in the
SQL console, click on the
Choose Connection icon,
which is found right of the
green circle with an arrow
(Execute) icon.
20
21
22
Objective
In this exercise, you will execute a SQL statement to create a fulltext index for your copy of the workshop
data. We will specify the LANGUAGE DETECTION parameter.
Exercise Description
Drop fulltext index from previous exercise
Create fulltext index specifying possible languages
Search for restaurant terms in the content
Language will be automatically determined for all inputs
23
EXERCISE 2 SOLUTION
In SAP HANA Studio
Steps
Screenshot
24
25
Objective
In this exercise, you will execute a SQL statement to create a fulltext index for your copy of the workshop
data. We will specify the LANGUAGE DETECTION and TEXT ANALYSIS ON parameters.
Exercise Description
Drop fulltext index from previous exercise
Create fulltext index specifying languages and text analysis output
Notice new table with text analysis annotations for each input
26
EXERCISE 3 SOLUTION
In SAP HANA Studio
Steps
Screenshot
27
Objective
In this exercise, you will learn how to monitor the progress and status of your text data processing.
Exercise Description
Run a command to monitor the progress for text processing
Run a command to report any errors for text processing
28
EXERCISE 4 SOLUTION
In SAP HANA Studio
Steps
Screenshot
29
30
www.sap.com