Skip to content

Commit 3fce6c6

Browse files
committed
Updates to the database explorer tutorials
1 parent abf6326 commit 3fce6c6

32 files changed

+133
-105
lines changed

tutorials/hana-cloud-migration/hana-cloud-migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Different versions of SAP HANA databases will have slightly different features.
105105

106106

107107
### Self-Service Migration tool
108-
The Self-Service Migration tool is used when performing a migration. This tool is accessed from SAP HANA Cloud Central, the main tool for creating and configuring SAP HANA Cloud instances. For more information about SAP HANA Cloud Central, see [SAP HANA Cloud Administration Guide](https://help.sap.com/docs/HANA_CLOUD/9ae9104a46f74a6583ce5182e7fb20cb/48e1b509c9494d61a6f90e7eaa6f225b.html).
108+
The Self-Service Migration tool can be used when performing a migration. It automates the migration process and can reduce the cost and effort of a migration. It is a free service and SAP manages the temporary storage used during the migration. This tool is accessed from SAP HANA Cloud Central, the main tool for creating and configuring SAP HANA Cloud instances. For more information about SAP HANA Cloud Central, see [SAP HANA Cloud Administration Guide](https://help.sap.com/docs/HANA_CLOUD/9ae9104a46f74a6583ce5182e7fb20cb/48e1b509c9494d61a6f90e7eaa6f225b.html).
109109

110110
![Migrations in SAP HANA Cloud Central](migrations.png)
111111

414 Bytes
Loading
311 Bytes
Loading
250 Bytes
Loading
341 Bytes
Loading
373 Bytes
Loading

tutorials/hana-dbx-connections/hana-dbx-connections.md

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,43 +6,43 @@ tags: [ tutorial>beginner, software-product-function>sap-hana-cloud--sap-hana-da
66
primary_tag: software-product>sap-hana-cloud
77
---
88

9-
# Add Databases to the SAP HANA Database Explorer
10-
<!-- description --> This tutorial will explore different database connection types, such as SAP HANA Cockpit Database, SAP HANA Cloud, data lake Relational Engine, and SAP HANA Deployment Infrastructure (HDI), along with the different operations that can be performed on them.
9+
# Add Databases to the SAP HANA Database Explorer
10+
<!-- description --> This tutorial will explore different instance types, such as SAP HANA Cockpit Database, SAP HANA Cloud, data lake Relational Engine, data lake Files, and SAP HANA Deployment Infrastructure (HDI) that can be added, along with the different operations that can be performed on them.
1111

1212
## Prerequisites
1313
- An SAP HANA database such as SAP HANA Cloud free tier, trial or the SAP HANA, express edition that includes the SAP HANA database explorer
1414

1515
## You will learn
16-
- How to add different database types in the SAP HANA database explorer
17-
- Additional operations that can be performed on a database
16+
- How to add different instance types in the SAP HANA database explorer
17+
- Additional operations that can be performed on an instance
1818

1919
## Intro
20-
Database connections in the SAP HANA database explorer represent SAP HANA or data lake Relational Engine databases that you browse and interact with.
20+
Instances in the SAP HANA database explorer represent SAP HANA, data lake Relational Engine, or data lake Files connections that you browse and interact with.
2121

22-
SQL consoles are associated with a database connection.
22+
SQL consoles are associated with a database instance.
2323

2424
![sql console connection](sql-console-connection.png)
2525

2626
---
2727

28-
### Add an SAP HANA cockpit database connection
28+
### Add an SAP HANA cockpit database instance
2929

3030

31-
Databases defined in the SAP BTP cockpit or the SAP HANA cockpit can be opened in the SAP HANA database explorer.
31+
Instances defined in SAP HANA Cloud Central, the SAP BTP cockpit, or in SAP HANA cockpit can be opened in the SAP HANA database explorer.
3232

3333
1. From SAP HANA Cloud Central, choose **Open in SAP HANA Database Explorer**.
3434

3535
![Open in the database explorer](from-directory.png)
3636

37-
>You may be prompted to enter database login credentials at this point. Enter the DBADMIN or SYSTEM user credentials that were set when the database instance was created.
37+
>You may be prompted to enter database login credentials at this point. Enter the DBADMIN or SYSTEM user credentials that were set when the instance was created.
3838
3939
>---
4040
41-
>The credentials can be saved so they do not need to be re-entered if they are entered into the SAP HANA cockpit.
41+
>The credentials can be saved so they do not need to be re-entered if they are entered into SAP HANA Cloud Central, or SAP HANA cockpit.
4242
43-
Notice that when the SAP HANA database explorer opens, the selected database is the one from the selected tile or administered database. Also note that the URL contains a `&databaseid=`.
43+
Notice that when the SAP HANA database explorer opens, the selected instance is the one from the selected tile or administered database. Also note that the URL contains a `&databaseid=`.
4444

45-
If this URL is saved as a bookmark, each time the page is opened, the matching database will be selected in the catalog browser.
45+
If this URL is saved as a bookmark, each time the page is opened, the matching instance will be selected in the catalog browser.
4646

4747
![databaseid parameter](open-in-dbx2.png)
4848

@@ -52,13 +52,13 @@ Databases defined in the SAP BTP cockpit or the SAP HANA cockpit can be opened i
5252

5353
### Add an SAP HANA database connection
5454

55-
Databases can also be added directly to the SAP HANA database explorer. To connect to an SAP HANA Cloud or on-premise database, the host, port, user name, and password must be provided.
55+
Instances can also be added directly to the SAP HANA database explorer. To connect to an SAP HANA Cloud or on-premise database, the host, port, user name, and password must be provided.
5656

57-
1. In the SAP HANA database explorer, press the **+** button to add a new database.
57+
1. In the SAP HANA database explorer, press the **+** button to add a new instance.
5858

5959
![Add a new database](new-connection0.png)
6060

61-
2. For database type, choose **SAP HANA Database**.
61+
2. For Instance Type, choose **SAP HANA Database**.
6262

6363
![Database types](connection-type.png)
6464

@@ -68,22 +68,26 @@ Databases can also be added directly to the SAP HANA database explorer. To conn
6868

6969
![encrypted connection](encrypted.png)
7070

71-
>Remember to remove the colon and port number from the host name and add the port to the port field.
7271

7372
>---
7473
75-
>When connecting to an SAP HANA Cloud instance, the database connection must use TLS.
74+
>When connecting to an SAP HANA Cloud instance, the connection must use TLS.
7675
7776
>![connect using TLS](encryption2.png)
7877
7978
>The public root certificate of the certificate authority (CA) that signed the SAP HANA Cloud instance's server certificate is required. This certificate is likely already available in the system certificate store on the operating system and accessible by the browser, but if not, it can be pasted into the UI. For more information see [Secure Communication Between SAP HANA Cloud and JDBC/ODBC Clients](https://help.sap.com/viewer/c82f8d6a84c147f8b78bf6416dae7290/cloud/en-US/dbd3d887bb571014bf05ca887f897b99.html).
8079
81-
>---
8280

8381
>For a HANA Cloud database, the host and port values can be copied from SAP HANA Cloud Central.
8482
83+
>---
84+
8585
>![copy host and port](host-and-port.png)
8686
87+
>Remember to remove the colon and port number from the host name and add the port to the port field.
88+
89+
![Image of where the port number is](remove-port-number.png)
90+
8791
>---
8892
8993
>If you are using an SAP HANA, express edition or on-premise database, the port numbers for a system or tenant database can be determined by running the following query against the **System** database.
@@ -94,7 +98,7 @@ Databases can also be added directly to the SAP HANA database explorer. To conn
9498
9599
>![SQL port query](sql-port.png)
96100
97-
4. After pressing OK, a new database will appear whose type is SAP HANA Database.
101+
4. After pressing OK, a new instance will appear whose type is SAP HANA Database.
98102
99103
![new database](new-connection.png)
100104
@@ -112,9 +116,9 @@ Databases can also be added directly to the SAP HANA database explorer. To conn
112116
>These values can be seen by opening a SQL console and noticing the schema that the database is using or by executing the following queries.
113117
114118
>```SQL
115-
>SELECT * FROM M_SESSION_CONTEXT WHERE CONNECTION_ID=current_connection;
116-
>SELECT * FROM SYS.M_CONNECTIONS WHERE CONNECTION_ID=current_connection;
117-
>SELECT ISOLATION_LEVEL FROM PUBLIC.M_TRANSACTIONS where CONNECTION_ID = current_connection;
119+
>SELECT * FROM M_SESSION_CONTEXT WHERE CONNECTION_ID = current_connection;
120+
>SELECT * FROM M_CONNECTIONS WHERE CONNECTION_ID = current_connection;
121+
>SELECT ISOLATION_LEVEL FROM M_TRANSACTIONS where CONNECTION_ID = current_connection;
118122
>```
119123
>
120124
>For additional details, see [Add Instances to the SAP HANA Database Explorer](https://help.sap.com/viewer/a2cea64fa3ac4f90a52405d07600047b/cloud/en-US/4e2e8382f8484edba31b8b633005e937.html) and the [SET Statement](https://help.sap.com/docs/HANA_CLOUD_DATABASE/c1d3f60099654ecfb3fe36ac93c121bb/20fd82b675191014b22c8af08d0b319c.html).
@@ -128,7 +132,7 @@ A data lake Relational Engine is a column oriented, disk based relational store
128132
129133
![add a data lake](add-data-lake.png)
130134
131-
Ensure that the allowed connections list is set to **Allow all IP addresses**.
135+
If this is a non-production database, the allowed connections list can be set to **Allow all IP addresses**.
132136
133137
![allowed connections](allow-all.png)
134138
@@ -180,29 +184,29 @@ A [data lake Files container](https://help.sap.com/viewer/b239ed4bb73a4f07886657
180184
181185
### Additional database connection features
182186
183-
Databases have additional actions that can be performed on them such as renaming, connecting as a different user, changing the connection of a SQL console, and viewing an overview of the connected database.
187+
Instances have additional actions that can be performed on them such as renaming, connecting as a different user, changing the connection of a SQL console, and viewing an overview of the connected SAP HANA Cloud, SAP HANA database.
184188
185-
1. To rename a connection, right-click a database and choose **Properties**.
189+
1. To rename an instance, right-click on an instance and choose **Properties**.
186190
187191
![database properties](properties.png)
188192
189193
You may wish to rename the default database display name. Press **OK** to save the changes and close the window.
190194
191195
![renaming a connection](properties2.png)
192196
193-
2. To connect to the same database but with different credentials, right-click a database and choose **Add Database with Different User**. This can be useful when you wish to connect to the same SAP HANA database but with a different set of credentials perhaps because you need elevated permissions. The USER1 database user will be created in the next tutorial.
197+
2. To connect to the same instance but with different credentials, right-click an instance and choose **Add Database with Different User**. This can be useful when you wish to connect to the same instance but with a different set of credentials perhaps because you need elevated permissions. The USER1 database user will be created in the next tutorial.
194198
195199
![connecting as a different user](clone.png)
196200
197-
3. When a SQL console opens, it connects to the currently selected database connection and displays the current schema and connection.
201+
3. When a SQL console opens, it connects to the currently selected database instance and displays the current schema and instance name.
198202
199203
![SQL Console connections](SQL-Console-Connections.png)
200204
201205
It is possible to connect, disconnect, or change the connection via the toolbar items highlighted above.
202206
203207
> Subsequent tutorials assume the connected user is DBADMIN or SYSTEM.
204208
205-
4. To see information about an SAP HANA database, right-click a database and choose **Show Overview**. This provides a quick overview of the database that you are connected to including the database version.
209+
4. To see information about an SAP HANA database, right-click on an instance and choose **Show Overview**. This provides a quick overview of the database that you are connected to including the database version.
206210
207211
![database overview](overview.png)
208212
@@ -242,7 +246,7 @@ SAP HANA cockpit databases can be grouped together. This enables SQL statements
242246
243247
![run on multiple](run-on-multiple.png)
244248
245-
1. With SAP HANA Cloud, all databases created in a space are placed in a group. As seen below, the space name is dev.
249+
1. With SAP HANA Cloud, all databases created in a Cloud Foundry space are placed in a group. As seen below, the space name is dev.
246250
247251
![group by space](group-by-space.png)
248252
@@ -260,6 +264,8 @@ SAP HANA cockpit databases can be grouped together. This enables SQL statements
260264
261265
![run on multiple databases in HXE](run-on-multiple-hc.png)
262266
267+
>This feature does not apply to SAP HANA Cloud instances deployed to the subaccount or when used with the multi-environment tooling.
268+
263269
2. With SAP HANA, express edition or an on-premise install, a tool called SAP HANA Cockpit Manager can be used to register databases and organize them into groups.
264270
265271
![registered resources](cockpit-manager.png)
@@ -276,9 +282,6 @@ SAP HANA cockpit databases can be grouped together. This enables SQL statements
276282
277283
>The ability to see groups in the SAP HANA database explorer that have been created using the SAP HANA Cockpit Manager requires the SAP HANA database explorer to be opened from the SAP HANA cockpit.
278284
279-
>---
280-
281-
282285
283286
### Native HANA development with HDI (Optional)
284287
Loading

tutorials/hana-dbx-create-schema/hana-dbx-create-schema.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ The following steps will create a sample hotel dataset using create and insert s
8181

8282
3. Add another SAP HANA database connection using USER1.
8383

84-
Select the Add instance icon and provide the details to connect to your SAP HANA database. Provide the user name of USER1 and password of Password1 as well as set the schema to be HOTEL in the advanced options.
84+
Select the Add instance icon and provide the details to connect to your SAP HANA database. Provide the user name of USER1 and password of Password1 as well as set the schema to be HOTEL in the advanced options.
85+
86+
Uncheck the *Verify the server's certificate using the trusted certificate below* checkbox.
8587
8688
![add new user1 connection](user1-connection0.png)
8789
@@ -309,7 +311,9 @@ The following steps will create a sample hotel dataset using create and insert s
309311

310312
### Explore auto-commit
311313

312-
Auto-commit is a setting that when enabled, causes each SQL statement to be immediately committed to the database. When auto-commit is turned off, multiple statements can be executed and then they can all be committed together, or they can all be rolled back. There are two auto-commit settings in an SAP HANA database. The first setting which can be set in the SQL Console, applies to SQL statements that manipulate data such as insert, update, or delete statements. These types of statements are known as Data Manipulation Language (DML). The second setting can be set via SQL applies to SQL statements that modify database schema such create table statements or alter table statements. These types of statements are known as Data Definition Language (DDL).
314+
Auto-commit is a setting that when enabled, causes each SQL statement to be immediately committed to the database. When auto-commit is turned off, multiple statements can be executed and then they can all be committed together, or they can all be rolled back. There are two auto-commit settings in an SAP HANA database.
315+
316+
The first setting which can be set in the SQL Console, applies to SQL statements that manipulate data such as insert, update, or delete statements. These types of statements are known as Data Manipulation Language (DML). The second setting can be set via SQL applies to SQL statements that modify database schema such create table statements or alter table statements. These types of statements are known as Data Definition Language (DDL).
313317

314318

315319
The following steps will demonstrate these settings.
@@ -612,6 +616,8 @@ Another option for data that is accessed less frequently is the SAP HANA Data La
612616
END;
613617
```
614618

619+
Details on SQL Error codes such as 301 ERR_SQL_UNIQUE_VIOLATED can be found at ![SAP HANA Cloud, SAP HANA Database SQL Reference Guide](https://help.sap.com/docs/HANA_CLOUD_DATABASE/c1d3f60099654ecfb3fe36ac93c121bb/20a78d3275191014b41bae7c4a46d835.html).
620+
615621
5. To run this procedure, execute the SQL statement below.
616622

617623
```SQL
Loading

0 commit comments

Comments
 (0)