Skip to content

Commit 06ec641

Browse files
committed
Move Intro Later
1 parent 53cb7b9 commit 06ec641

File tree

2 files changed

+23
-42
lines changed

2 files changed

+23
-42
lines changed

tutorials/haas-dm-access-cross-container-schema/haas-dm-access-cross-container-schema.md

Lines changed: 15 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,40 @@ author_name: Thomas Jung
66
author_profile: https://github.com/jung-thomas
77
tags: [tutorial>beginner, products>sap-hana, products>sap-cloud-platform\,-sap-hana-service, tutorial>license]
88
primary_tag: products>sap-cloud-platform\,-sap-hana-service
9+
parser: v2
910
---
1011

1112
# Access a Classic Schema from SAP Web IDE Full-Stack
13+
1214
<!-- description --> Access data in a plain or replicated schema from an HDI container.
1315

1416
## Prerequisites
15-
- This tutorial is designed for SAP HANA service for SAP Business Technology Platform. Consider newer tutorials designed for SAP HANA Cloud.
16-
- You have access to the database and SAP BTP cockpit.
17-
- You have created a multi-target application with a database module [as explained in this tutorial](haas-dm-create-db-mta).
18-
- Optionally, you have created a remote source [as explained in this tutorial](haas-dm-connect-sdi).
1917

20-
## Intro
21-
>**This tutorial cannot be completed with a trial account.**
18+
- This tutorial is designed for SAP HANA service for SAP Business Technology Platform. Consider newer tutorials designed for SAP HANA Cloud.
19+
- You have access to the database and SAP BTP cockpit.
20+
- You have created a multi-target application with a database module [as explained in this tutorial](haas-dm-create-db-mta).
21+
- Optionally, you have created a remote source [as explained in this tutorial](haas-dm-connect-sdi).
2222

2323
## You will learn
24-
- How to create a plain schema, with a table and user to simulate a replicated schema
25-
- How to create a user-provided service to access a database in SAP HANA service for SAP BTP
26-
- How to grant permissions to the technical users in your HDI container to access the database
24+
25+
- How to create a plain schema, with a table and user to simulate a replicated schema
26+
- How to create a user-provided service to access a database in SAP HANA service for SAP BTP
27+
- How to grant permissions to the technical users in your HDI container to access the database
2728

2829
This tutorial is meant to be an example of cross-container access. Simple data models and loading mechanisms were chosen to simulate a schema replicated using tools such as SAP Landscape Transformation or an ABAP schema.
2930

3031
For more information on this process and additional syntax options, refer to the [official documentation on SAP Help](https://help.sap.com/viewer/4505d0bdaf4948449b7f7379d24d0f0d/latest/en-US/a260b05631a24a759bba932aa6d81b64.html).
3132

3233
If you are looking for the steps for an on-premise SAP HANA instance with XS Advanced, such as SAP HANA, express edition, [refer to this tutorial](xsa-create-user-provided-anonymous-service).
3334

35+
## Intro
36+
37+
>**This tutorial cannot be completed with a trial account.**
38+
3439
---
3540

3641
### Create a plain schema
3742

38-
3943
Connect to SAP Web IDE Full Stack and enter the Database Explorer. You will see your instance of the SAP HANA database.
4044

4145
> If you cannot see the database, try entering the database explorer from the Database Cockpit and make sure the setting in `Preferences->Database Explorer` are set to the correct region.
@@ -50,7 +54,7 @@ You will create a SQL role and assign it to the user `PLUSR` with the permission
5054
CREATE SCHEMA "PLAIN";
5155
CREATE USER PLUSR PASSWORD "HanaRocks01" NO FORCE_FIRST_PASSWORD_CHANGE ;
5256

53-
CREATE ROW TABLE "PLAIN"."REGIONS" ( REGION NVARCHAR(5), DESCRIPTION NVARCHAR(100) );
57+
CREATE ROW TABLE "PLAIN"."REGIONS" (REGION NVARCHAR(5), DESCRIPTION NVARCHAR(100) );
5458

5559
CREATE ROLE CCROLE;
5660
grant SELECT, UPDATE, INSERT, DELETE, EXECUTE, SELECT METADATA ON SCHEMA "PLAIN" TO CCROLE with grant option;
@@ -80,10 +84,8 @@ Use the green play button or press **`F8`** to execute the statement.
8084
>&nbsp;
8185
> ![schema](dbx.png)
8286
83-
8487
### Load data
8588

86-
8789
Download [this CSV file](https://raw.githubusercontent.com/SAPDocuments/Tutorials/master/tutorials/haas-dm-access-cross-container-schema/plain.csv) into your local computer.
8890

8991
Use the search help to locate schema `PLAIN`.
@@ -116,11 +118,8 @@ You should see the wizard has imported 4 records
116118

117119
Right-click on the table and choose **Open Data** to see the records loaded into the table.
118120

119-
120-
121121
### Create a user-provided service
122122

123-
124123
You now have a schema with a table and data in it. You have also created a user called `PLUSR` with permissions to perform basic operations on that schema. You will now create a user-provided service to access the schema through the user `PLUSR` from your Multi-Target Application.
125124

126125
Use **`Tools -> SAP Cloud Platform Cockpit`** to open the cockpit.
@@ -156,10 +155,8 @@ Call the service **`CC_ACCESS`** and use the code below in **Credentials**
156155
157156
Press **Save**.
158157
159-
160158
### Configure the service for access
161159
162-
163160
You will now add the user-provided service as a dependency and configure it as part of a database module. You will also set the original HDI container as the default service for database artifacts.
164161
165162
Go back into SAP Web IDE Full-Stack. Open the file `mta.yaml` in the **MTA Editor** and use the **+** sign to add a resource.
@@ -217,10 +214,8 @@ If you switch to the **Code Editor** for the `mta.yaml` file, it should look sim
217214
218215
![MTA yaml](19.png)
219216
220-
221217
### Grant permissions to the technical users
222218
223-
224219
You will now create an artifact that grants access to the two technical users of your HDI container. These are not real users, but technical ones.
225220
226221
Create a new file under `db`.
@@ -250,12 +245,8 @@ And use the following code in it:
250245
251246
**Save the file**.
252247

253-
254-
255-
256248
### OPTIONAL - Grant access to a remote source
257249

258-
259250
**This step works only if** you have created a remote source to access a text file [using SAP HANA service smart data integration for SAP BTP in this tutorial](haas-dm-connect-sdi), go back to the Database Explorer and open a new SQL console to your instance of SAP HANA service for SAP BTP.
260251

261252
Execute the following SQL command
@@ -267,7 +258,6 @@ grant "CREATE VIRTUAL TABLE", "DROP", "CREATE REMOTE SUBSCRIPTION", "PROCESS REM
267258

268259
![Grant roles](grant2.png)
269260

270-
271261
> Alternatively, you can grant the same permissions to the user in the user-provided service, `PLUSR`, and create a separate grants file with them or a new role.
272262
> Here is an example for that `.hdbgrants` file
273263
>
@@ -292,11 +282,8 @@ grant "CREATE VIRTUAL TABLE", "DROP", "CREATE REMOTE SUBSCRIPTION", "PROCESS REM
292282
293283
![Grant roles](build.png)
294284
295-
296-
297285
### Create synonyms
298286
299-
300287
You can now create a synonym to access the table in the plain schema. Create a new file in `db\src\data`
301288
302289
![Create synonym](syn.png)
@@ -321,10 +308,8 @@ Add a new record with name `REGIONS`, object name `REGIONS` and schema `PLAIN`
321308
322309
![Create synonym](25.png)
323310
324-
325311
### Create a view
326312
327-
328313
You can now use the table in the classic schema with other objects created in your HDI container. In `data`, create a new database artifact
329314
330315
![Create synonym](30.png)
@@ -354,11 +339,8 @@ Right-click on the view and choose **Open Data**. Paste the generated SQL statem
354339

355340
![Create synonym](33.png)
356341

357-
358-
359342
### Troubleshooting insufficient privileges
360343

361-
362344
**Error**: Insufficient privilege: Detailed info for this error can be found with `guid` <GUID>
363345

364346
You can see what is missing by executing the following statement in a SQL console connected to the database
@@ -371,6 +353,4 @@ This procedure will show the session user name, the technical user (HDI object o
371353

372354
Make sure the user in the user provided service has permissions for `SELECT` and `SELECT METADATA` with grant option.
373355

374-
375-
376356
---

tutorials/haas-dm-calculation-view-differential-privacy/haas-dm-calculation-view-differential-privacy.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,26 @@ primary_tag: products>sap-cloud-platform--sap-hana-service
99
---
1010

1111
# Create a Calculation View with Differential Privacy in SAP Web IDE
12+
1213
<!-- description --> Use differential privacy to anonymize confidential data
1314

1415
## Prerequisites
15-
- This tutorial is designed for SAP HANA service for SAP Business Technology Platform. Consider newer tutorials designed for SAP HANA Cloud.
16-
- You have completed the previous tutorials to load data into the table `TGT_SALARIES`
1716

18-
## Intro
19-
>**This tutorial cannot be completed with a trial account.**
17+
- This tutorial is designed for SAP HANA service for SAP Business Technology Platform. Consider newer tutorials designed for SAP HANA Cloud.
18+
- You have completed the previous tutorials to load data into the table `TGT_SALARIES`
2019

2120
## You will learn
22-
- How to create Calculation View of type Cube using SAP Web IDE
23-
- How to configure differential privacy to add noise to a column
2421

22+
- How to create Calculation View of type Cube using SAP Web IDE
23+
- How to configure differential privacy to add noise to a column
2524

25+
## Intro
26+
27+
>**This tutorial cannot be completed with a trial account.**
2628
---
2729

2830
### Create a new Calculation view
2931

30-
3132
Create a new folder called **models** under `db/src`. Create a new **Calculation View** and call it `SALARIES_ANONYMIZED`
3233

3334
![New calculation view](1.png)

0 commit comments

Comments
 (0)