Skip to content

Commit 12d9291

Browse files
authored
Merge pull request #24079 from danielva/master
Updates to the SAP HANA Cloud tutorials
2 parents ed2ac6f + 67009e6 commit 12d9291

39 files changed

+399
-216
lines changed

tutorials/data-lake-file-containers-hdlfscli/data-lake-file-containers-hdlfscli.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ Some HDLFSCLI help documentation should appear if it is successfully installed a
118118

119119
[OPTION END]
120120

121-
122121
### Generate Certificates
123122

124123
To connect the HDLFSCLI to an SAP HANA, data lake Files container, a certificate will need to be generated to make a secure connection. Below are the steps required to create a self-signed certificate to get started using the HDLFSCLI. You will require an installation of OpenSSL. Use your preferred Linux package installer to install OpenSSL if it is not already installed. If you're using a Windows machine, then Windows Subsystem for Linux (WSL) will have OpenSSL installed. Alternatively, OpenSSL can be installed for Windows from [here](https://slproweb.com/products/Win32OpenSSL.html).
@@ -127,6 +126,18 @@ Then, follow these steps to creating your self-signed certificate.
127126

128127
Make sure the certificate fields are not all exactly the same between the Certificate Authority (CA) and client certificates. Otherwise, it is assumed to be a self-signed cert and the cert validation below will fail.
129128

129+
Create a folder.
130+
131+
```Shell (Microsoft Windows)
132+
mkdir %HOMEPATH%\certs
133+
cd %HOMEPATH%\certs
134+
```
135+
136+
```Shell (Linux or Mac)
137+
mkdir -p $HOME/certs
138+
cd $HOME/certs
139+
```
140+
130141
Create a private key for the CA (2048 bits).
131142

132143
```Shell
@@ -141,7 +152,7 @@ openssl req -x509 -new -key ca.key -days 200 -out ca.crt
141152

142153
Create a signing request for the client certificate.
143154

144-
Provide at least a common name and fill other fields as desired. Also, leave the email-Id field blank.
155+
Provide at least a common name and fill other fields as desired. Leave the email-Id field blank. The Common Name must be different from the one used for the CA public certificate.
145156

146157
```Shell
147158
openssl req -new -nodes -newkey rsa:2048 -out client.csr -keyout client.key

tutorials/hana-clients-choose-hana-instance/hana-clients-choose-hana-instance.md

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,21 @@ primary_tag: software-product>sap-hana-cloud
77
---
88

99
# Choose an SAP HANA Database
10+
1011
<!-- description --> Learn about SAP HANA Cloud and SAP HANA, express edition and choose one that will be used with the SAP HANA client interfaces in subsequent tutorials.
1112

1213
## Prerequisites
13-
- A Microsoft Windows, Linux, or Mac computer
14-
- A machine that can run SAP HANA, express edition if the SAP HANA Cloud trial or free tier is not used
14+
15+
- A Microsoft Windows, Linux, or Mac computer
16+
- A machine that can run SAP HANA, express edition if SAP HANA Cloud free tier is not used
1517

1618
## You will learn
17-
- How to create an instance of SAP HANA Cloud or SAP HANA, express edition
18-
- How to connect to a SAP HANA Cloud or an SAP HANA, express edition database
19+
20+
- How to create an instance of SAP HANA Cloud or SAP HANA, express edition
21+
- How to connect to a SAP HANA Cloud or an SAP HANA, express edition database
1922

2023
## Intro
24+
2125
This tutorial will provide tips and pointers on setting up an instance of [SAP HANA](https://www.sap.com/products/hana.html) running in the cloud or on-premise so that it can then be connected to using a few of the [SAP HANA Client](https://help.sap.com/docs/SAP_HANA_CLIENT) interfaces.
2226

2327
For more information on SAP HANA, consult [What Is SAP HANA](https://help.sap.com/docs/SAP_HANA_PLATFORM/eb3777d5495d46c5b2fa773206bbfb46/d3b1adcdbb571014a93eff11ad9a1d89.html).
@@ -40,6 +44,7 @@ For more information on SAP HANA, consult [What Is SAP HANA](https://help.sap.co
4044
---
4145

4246
### Overview of SAP HANA Cloud and SAP HANA On-premise
47+
4348
There are multiple versions of SAP HANA. The information below is a list of links for the documentation of each version.
4449

4550
| Version | Notes
@@ -50,38 +55,39 @@ There are multiple versions of SAP HANA. The information below is a list of lin
5055

5156

5257
### SAP HANA Cloud
53-
Here are a few benefits of using SAP HANA Cloud:
5458

55-
* Software updates are automatically applied by SAP.
59+
Here are a few benefits of using SAP HANA Cloud:
5660

57-
* Hardware is managed by a cloud provider (e.g. AWS, Azure, or GCP).
61+
- Software updates are automatically applied by SAP.
5862

59-
* Many data center locations to choose from as listed in the [SAP Discovery Center](https://discovery-center.cloud.sap/serviceCatalog/sap-hana-cloud?region=all&tab=service_plan)
63+
- Hardware is managed by a cloud provider (e.g. AWS, Azure, or GCP).
6064

61-
* [Backups](https://help.sap.com/docs/hana-cloud/sap-hana-cloud-administration-guide/backup-and-recovery) are automatic and recovery can be initiated in SAP HANA Cloud Central.
65+
- Many data center locations to choose from as listed in the [SAP Discovery Center](https://discovery-center.cloud.sap/serviceCatalog/sap-hana-cloud?region=all&tab=service_plan)
6266

63-
* The memory, compute and storage settings can be changed as your needs change. Note a few operations can be performed using [service requests](https://help.sap.com/docs/hana-cloud/sap-hana-cloud-administration-guide/service-requests).
67+
- [Backups](https://help.sap.com/docs/hana-cloud/sap-hana-cloud-administration-guide/backup-and-recovery) are automatic and recovery can be initiated in SAP HANA Cloud Central.
6468

65-
* The ability is provided to expand data storage from in-memory, to native storage extensions, to a data lake, while providing a common access layer that enables you to have further control over performance and cost. See also [Lower Your Data Management Costs With SAP HANA Cloud](https://blogs.sap.com/2019/10/29/lower-your-data-management-costs-with-sap-hana-cloud/).
69+
- The memory, compute and storage settings can be changed as your needs change. Note a few operations can be performed using [service requests](https://help.sap.com/docs/hana-cloud/sap-hana-cloud-administration-guide/service-requests).
6670

71+
- The ability is provided to expand data storage from in-memory, to native storage extensions, to a data lake, while providing a common access layer that enables you to have further control over performance and cost. See also [Lower Your Data Management Costs With SAP HANA Cloud](https://blogs.sap.com/2019/10/29/lower-your-data-management-costs-with-sap-hana-cloud/).
6772

68-
Here are a few differences between SAP HANA Cloud and an on-premise version:
6973

70-
* Every SAP HANA Cloud instance is one SAP HANA database. SAP HANA Cloud as of 2024 QRC 4 offers [multitenancy](https://help.sap.com/docs/hana-cloud/sap-hana-cloud-multitenancy/introducing-sap-hana-cloud-multitenancy) support. For further details see [The next step towards cost-effectiveness and scalability with SAP HANA Cloud Multitenancy](https://community.sap.com/t5/technology-blog-posts-by-sap/the-next-step-towards-cost-effectiveness-and-scalability-with-sap-hana/ba-p/13885564). On-premise SAP HANA also has a concept of tenant databases (a system database and one or more tenant databases) but in a different manner from SAP HANA Cloud. For further details see [SAP HANA Tenant Databases](https://help.sap.com/docs/SAP_HANA_PLATFORM/eb3777d5495d46c5b2fa773206bbfb46/0baadba82dd9407cbb852ae98f49f6bd.html).
74+
Here are a few differences between SAP HANA Cloud and an on-premise version:
7175

72-
* Connections to an SAP HANA Cloud instance must be secure and require a minimum SAP HANA client version of 2.4.167.
76+
- Every SAP HANA Cloud instance is one SAP HANA database. SAP HANA Cloud as of 2024 QRC 4 offers [multitenancy](https://help.sap.com/docs/hana-cloud/sap-hana-cloud-multitenancy/introducing-sap-hana-cloud-multitenancy) support. For further details see [The next step towards cost-effectiveness and scalability with SAP HANA Cloud Multitenancy](https://community.sap.com/t5/technology-blog-posts-by-sap/the-next-step-towards-cost-effectiveness-and-scalability-with-sap-hana/ba-p/13885564). On-premise SAP HANA also has a concept of tenant databases (a system database and one or more tenant databases) but in a different manner from SAP HANA Cloud. For further details see [SAP HANA Tenant Databases](https://help.sap.com/docs/SAP_HANA_PLATFORM/eb3777d5495d46c5b2fa773206bbfb46/0baadba82dd9407cbb852ae98f49f6bd.html).
7377

74-
* The administration user for SAP HANA Cloud is named DBADMIN while for an SAP HANA 2.0 database it is SYSTEM. For additional details see [Predefined Users](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-security-guide/predefined-users), [SAP HANA Cloud Administrator DBADMIN](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-administration-guide/user-management-with-sap-hana-database-administrator-dbadmin), and [Predefined Users in HANA 2.0](https://help.sap.com/docs/SAP_HANA_PLATFORM/b3ee5778bc2e4a089d3299b82ec762a7/de4ee8bbbb5710148a04f023da147c8d.html).
78+
- Connections to an SAP HANA Cloud instance must be secure and require a minimum SAP HANA client version of 2.4.167.
7579

76-
Information on the instance size steps for SAP HANA Cloud, SAP HANA databases can be found at [Create an SAP HANA Database Instance Using SAP HANA Cloud Central](https://help.sap.com/docs/hana-cloud/sap-hana-cloud-administration-guide/create-sap-hana-database-instance-using-sap-hana-cloud-central). Service plan, pricing and data center availability can be found at [SAP HANA Cloud Service (SAP Discovery Center)](https://discovery-center.cloud.sap/serviceCatalog/sap-hana-cloud?region=all&tab=service_plan). Details on limitations can be found at [System Limitations](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-sql-reference-guide/system-limitations). Compatibility information can be found at [Compatibility with Other SAP HANA Versions](https://help.sap.com/docs/hana-cloud/sap-hana-cloud-migration-guide/compatibility-with-other-sap-hana-versions). Additional details can be found at [What is SAP HANA?](https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html).
80+
- The administration user for SAP HANA Cloud is named DBADMIN while for an SAP HANA 2.0 database it is SYSTEM. For additional details see [Predefined Users](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-security-guide/predefined-users), [SAP HANA Cloud Administrator DBADMIN](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-administration-guide/user-management-with-sap-hana-database-administrator-dbadmin), and [Predefined Users in HANA 2.0](https://help.sap.com/docs/SAP_HANA_PLATFORM/b3ee5778bc2e4a089d3299b82ec762a7/de4ee8bbbb5710148a04f023da147c8d.html).
7781

82+
Information on the instance size steps for SAP HANA Cloud, SAP HANA databases can be found at [Create an SAP HANA Database Instance Using SAP HANA Cloud Central](https://help.sap.com/docs/hana-cloud/sap-hana-cloud-administration-guide/create-sap-hana-database-instance-using-sap-hana-cloud-central). Service plan, pricing and data center availability can be found at [SAP HANA Cloud Service (SAP Discovery Center)](https://discovery-center.cloud.sap/serviceCatalog/sap-hana-cloud?region=all&tab=service_plan). Details on limitations can be found at [System Limitations](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-sql-reference-guide/system-limitations). Compatibility information can be found at [Compatibility with Other SAP HANA Versions](https://help.sap.com/docs/hana-cloud/sap-hana-cloud-migration-guide/compatibility-with-other-sap-hana-versions). Additional details can be found at [What is SAP HANA?](https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html).
7883

7984
### Connect to SAP HANA Cloud
85+
8086
>To complete the tutorials in the mission, an SAP HANA instance is needed. Step 3 and 5 in this tutorial provide two different, free options that can be used to set up an SAP HANA instance. Only one of these steps needs to be completed if you currently do not have access to an SAP HANA instance.
8187
82-
The instructions on how to setup a free SAP HANA Cloud trial or free tier within the SAP Business Technology Platform (SAP BTP), are well covered in a number of other sources listed below. Trial is only available on the US10 landscape and is in a separate SAP BTP trial account whereas free tier is available in multiple production SAP BTP accounts and provides a seamless transition from a free tier to a paid plan.
88+
The instructions on how to setup a free SAP HANA Cloud instance within the SAP Business Technology Platform (SAP BTP) are well covered in a number of other sources listed below. The SAP BTP Trial is available on the US10 and AP21 landscapes. When using the free SAP HANA Cloud service in productive landscapes, there is an option to transition the service from free tier to a paid service.
8389

84-
* [Set Up Your SAP HANA Cloud, SAP HANA Database (free tier or trial) and Understand the Basics](group.hana-cloud-get-started-1-trial)
90+
* [Set Up Your SAP HANA Cloud, SAP HANA Database and Understand the Basics](group.hana-cloud-get-started-1-trial)
8591

8692
* [SAP Learning Journey - Provisioning and Administering Databases in SAP HANA Cloud](https://learning.sap.com/learning-journey/provision-and-administer-databases-in-sap-hana-cloud)
8793

@@ -99,7 +105,7 @@ For more information on SAP BTP see the following product pages and help documen
99105
* [https://help.sap.com/docs/btp](https://help.sap.com/docs/btp)
100106

101107

102-
Continue with this tutorial once you have created an SAP HANA Cloud trial or free tier instance as shown below.
108+
Continue with this tutorial once you have created an SAP HANA Cloud instance as shown below.
103109

104110
![SAP HANA Cloud Trial instance](hana-cloud-instance.png)
105111

@@ -108,7 +114,7 @@ Continue with this tutorial once you have created an SAP HANA Cloud trial or fre
108114

109115
![SQL Endpoint](SQLEndpoint.png)
110116

111-
>The SAP HANA Cloud, HANA database free tier or trial instances are shut down on a nightly basis and will need to be restarted before working with them the next day.
117+
>The SAP HANA Cloud, HANA database free tier instances are shut down on a nightly basis and will need to be restarted before working with them the next day.
112118
113119
2. Open a SQL console for your database instance from SAP HANA Cloud Central.
114120

@@ -153,7 +159,7 @@ Congratulations! You have connected to SAP HANA Cloud and performed a few querie
153159

154160

155161
### SAP HANA, express edition
156-
>This step only needs to be completed if you currently do not have access to an SAP HANA Instance and did not setup an SAP HANA instance through the SAP HANA Cloud Trial or free tier as explained in step 3.
162+
>This step only needs to be completed if you currently do not have access to an SAP HANA Instance and did not setup an SAP HANA instance through the SAP HANA Cloud free tier as explained in step 3.
157163

158164
SAP provides a free streamlined version of SAP HANA that runs on developer laptops called [SAP HANA, express edition](https://www.sap.com/products/technology-platform/hana/express-trial.html).
159165

@@ -169,7 +175,7 @@ At this point, you should have a running instance of SAP HANA, express edition.
169175

170176

171177
### Connect to SAP HANA, express edition
172-
>This step only needs to be completed if you currently do not have access to an SAP HANA Instance and did not setup an SAP HANA instance through the SAP HANA Cloud Trial or free tier as explained in step 3.
178+
>This step only needs to be completed if you currently do not have access to an SAP HANA Instance and did not setup an SAP HANA instance using the SAP HANA Cloud free tier as explained in step 3.
173179

174180
A default installation will contain one [system](https://help.sap.com/docs/SAP_HANA_PLATFORM/6b94445c94ae495c83a19646e7c3fd56/39da3d057f56427ab1bb7f738ca9e7ce.html) database named **SYSTEMDB** and one [tenant](https://help.sap.com/docs/SAP_HANA_PLATFORM/6b94445c94ae495c83a19646e7c3fd56/623afd167e6b48bf956ebb7f2142f058.html) database named **HXE**.
175181

tutorials/hana-clients-hdbsql/hana-clients-hdbsql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ This step demonstrates how to connect to a SAP HANA instance using [HDBSQL](http
7272

7373
An example of configuring this setting is shown in [Allow connections to SAP HANA Cloud instance from selected IP addresses — using the command line](https://blogs.sap.com/2020/10/30/allow-connections-to-sap-hana-cloud-instance-from-selected-ip-addresses-using-the-command-line/).
7474

75-
- The SAP HANA Cloud, HANA database trial instance will be automatically stopped overnight. That means you need to restart your instance before working with it each new day.
75+
- The SAP HANA Cloud, HANA database free tier instance will be automatically stopped overnight. That means you need to restart your instance before working with it each new day.
7676

7777

7878
- Connections to a HANA Cloud instance must use encryption. The default encryption library on Windows is mscrypto and on Linux and macOS it is OpenSSL. The following example demonstrates how one could use the SAP provided conmmoncrypto library instead of the default encryption library. Note, the following steps require that the SAP HANA Client be downloaded from the SAP Software Downloads as the download includes the SAP Common Crypto library (libsapcrypto). Note that the environment variables can also be set by running source hdbclienv.sh or hdbclienv.bat.

tutorials/hana-cloud-automation-rest/hana-cloud-automation-rest.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ The API's can be invoked using a tool such as the [REST Client](https://marketpl
7070
#From the clientsecret field in the service binding.
7171
@clientsecret =
7272
73+
#Instance ID of a SAP HANA Cloud instance in the same subaccount as the service manager instance
74+
@instanceid =
75+
7376
#Generated by the request bearer token call. Copy the access_token value from the result without the quotes
7477
@bearer =
7578
76-
#Instance ID of a SAP HANA Cloud instance in the same subaccount as the service manager instance
77-
@instanceid =
78-
7979
#Authorization REST API call --------------------
8080
81-
#Request bearer token
81+
#Request bearer token and paste result into the bearer variable above
8282
#See also https://help.sap.com/docs/service-manager/sap-service-manager/retrieve-oauth2-access-token
8383
#Note that by default the token expires after 1799 seconds or 30 minutes as seen in the response in the expires_in field
8484
GET {{uaa_url}}/{{oauth}}
@@ -89,7 +89,7 @@ The API's can be invoked using a tool such as the [REST Client](https://marketpl
8989
#Service plan query
9090
#See also https://help.sap.com/docs/service-manager/sap-service-manager/filtering-parameters-and-operators
9191
#See also https://api.sap.com/api/APIServiceManager/resource/Service_Plans
92-
GET {{uri}}/v1/service_plans?fieldQuery=name eq 'hana'
92+
GET {{uri}}/v1/service_plans?fieldQuery=name contains 'hana'
9393
Authorization: Bearer {{bearer}}
9494
9595
###
80.9 KB
Loading
39.1 KB
Loading
76.2 KB
Loading
106 KB
Loading
108 KB
Loading
72.7 KB
Loading

0 commit comments

Comments
 (0)