You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/hana-cloud-migration/hana-cloud-migration.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ Different versions of SAP HANA databases will have slightly different features.
105
105
106
106
107
107
### 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).
109
109
110
110

<!-- 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.
11
11
12
12
## Prerequisites
13
13
- 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
14
14
15
15
## 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
18
18
19
19
## 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.
21
21
22
-
SQL consoles are associated with a database connection.
22
+
SQL consoles are associated with a database instance.
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.
32
32
33
33
1. From SAP HANA Cloud Central, choose **Open in SAP HANA Database Explorer**.
34
34
35
35

36
36
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.
38
38
39
39
>---
40
40
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.
42
42
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=`.
44
44
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.
46
46
47
47

48
48
@@ -52,13 +52,13 @@ Databases defined in the SAP BTP cockpit or the SAP HANA cockpit can be opened i
52
52
53
53
### Add an SAP HANA database connection
54
54
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.
56
56
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.
58
58
59
59

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

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

70
70
71
-
>Remember to remove the colon and port number from the host name and add the port to the port field.
72
71
73
72
>---
74
73
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.
76
75
77
76
>
78
77
79
78
>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).
80
79
81
-
>---
82
80
83
81
>For a HANA Cloud database, the host and port values can be copied from SAP HANA Cloud Central.
84
82
83
+
>---
84
+
85
85
>
86
86
87
+
>Remember to remove the colon and port number from the host name and add the port to the port field.
88
+
89
+

90
+
87
91
>---
88
92
89
93
>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
94
98
95
99
>
96
100
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.
98
102
99
103

100
104
@@ -112,9 +116,9 @@ Databases can also be added directly to the SAP HANA database explorer. To conn
112
116
>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.
113
117
114
118
>```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;
118
122
>```
119
123
>
120
124
>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
128
132
129
133

130
134
131
-
Ensure that the allowed connections list isset to **Allow all IP addresses**.
135
+
If this is a non-production database, the allowed connections list can beset to **Allow all IP addresses**.
132
136
133
137

134
138
@@ -180,29 +184,29 @@ A [data lake Files container](https://help.sap.com/viewer/b239ed4bb73a4f07886657
180
184
181
185
### Additional database connection features
182
186
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.
184
188
185
-
1. To rename a connection, right-click a databaseand choose **Properties**.
189
+
1. To rename an instance, right-click on an instanceand choose **Properties**.
186
190
187
191

188
192
189
193
You may wish to rename the default database display name. Press **OK** to save the changes and close the window.
190
194
191
195

192
196
193
-
2. To connect to the same database but with different credentials, right-click a databaseand 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 instanceand 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.
194
198
195
199

196
200
197
-
3. When a SQL console opens, it connects to the currently selected database connectionand displays the current schema andconnection.
201
+
3. When a SQL console opens, it connects to the currently selected database instanceand displays the current schema andinstance name.
It is possible to connect, disconnect, or change the connection via the toolbar items highlighted above.
202
206
203
207
> Subsequent tutorials assume the connected user is DBADMIN or SYSTEM.
204
208
205
-
4. To see information about an SAP HANA database, right-click a databaseand 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 instanceand choose **Show Overview**. This provides a quick overview of the database that you are connected to including the database version.
206
210
207
211

208
212
@@ -242,7 +246,7 @@ SAP HANA cockpit databases can be grouped together. This enables SQL statements
242
246
243
247

244
248
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.
246
250
247
251

248
252
@@ -260,6 +264,8 @@ SAP HANA cockpit databases can be grouped together. This enables SQL statements
260
264
261
265

262
266
267
+
>This feature does not apply to SAP HANA Cloud instances deployed to the subaccount or when used with the multi-environment tooling.
268
+
263
269
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.
264
270
265
271

@@ -276,9 +282,6 @@ SAP HANA cockpit databases can be grouped together. This enables SQL statements
276
282
277
283
>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.
Copy file name to clipboardExpand all lines: tutorials/hana-dbx-create-schema/hana-dbx-create-schema.md
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,9 @@ The following steps will create a sample hotel dataset using create and insert s
81
81
82
82
3. Add another SAP HANA database connection using USER1.
83
83
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 asset 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 asset the schema to be HOTEL in the advanced options.
85
+
86
+
Uncheck the *Verify the server's certificate using the trusted certificate below* checkbox.
85
87
86
88

87
89
@@ -309,7 +311,9 @@ The following steps will create a sample hotel dataset using create and insert s
309
311
310
312
### Explore auto-commit
311
313
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 setin the SQL Console, applies to SQL statements that manipulate data such as insert, update, ordelete 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 setin the SQL Console, applies to SQL statements that manipulate data such as insert, update, ordelete 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).
313
317
314
318
315
319
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
612
616
END;
613
617
```
614
618
619
+
Details on SQL Error codes such as301 ERR_SQL_UNIQUE_VIOLATED can be found at .
620
+
615
621
5. To run this procedure, execute the SQL statement below.
0 commit comments