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-clients-choose-hana-instance/hana-clients-choose-hana-instance.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ There are multiple versions of SAP HANA. The information below is a list of lin
44
44
45
45
| Version | Notes
46
46
| :------------- | :-------------
47
-
| [SAP HANA Platform 2.0](https://help.sap.com/docs/SAP_HANA_PLATFORM) | Released in November 2016. Current version is 2.0 SPS 07, which was released on April 4rd, 2023.
47
+
| [SAP HANA Platform 2.0](https://help.sap.com/docs/SAP_HANA_PLATFORM) | Released in November 2016. Current version is 2.0 SPS 08, which was released on Nov 20th, 2024.
48
48
| **[SAP HANA, express edition](https://help.sap.com/docs/SAP_HANA_EXPRESS_EDITION)** | Released in September 2016. Current version is 2.0 SPS 07.
49
49
| **[SAP HANA Cloud](https://help.sap.com/docs/hana-cloud)** | Released in March 2020. New features are released quarterly.
- An SAP HANA Cloud instance (2024 QRC 4 or higher)
15
15
16
16
## You will learn
17
17
- How to create and delete an ECN
@@ -35,7 +35,7 @@ The following steps attempt to demonstrate an example of adding an ECN to cover
35
35
36
36

37
37
38
-
Click on the memory, compute, network, or storage cards to open the Usage Monitor app. Below notice that the compute is spiking at a set frequency.
38
+
Click on the memory, compute, network, or storage cards to open the Usage Monitor app. Below notice that the compute is spiking at a set frequency which is every morning at 7 am.
39
39
40
40

41
41
@@ -44,6 +44,7 @@ The following steps attempt to demonstrate an example of adding an ECN to cover
44
44
```SQL
45
45
CREATEUSERUSER4 PASSWORD "Password4" NO FORCE_FIRST_PASSWORD_CHANGE SET USERGROUP DEFAULT;
46
46
GRANT CATALOG READ TO USER4;
47
+
GRANTSELECTON SCHEMA _SYS_STATISTICS TO USER4; --Used by the Elastic Compute Node tab
47
48
GRANT WORKLOAD ADMIN TO USER4;
48
49
CONNECT USER4 PASSWORD Password4;
49
50
GRANT ALL PRIVILEGES ON SCHEMA USER4 TO DBADMIN;
@@ -76,7 +77,9 @@ The following steps attempt to demonstrate an example of adding an ECN to cover
76
77
CALL CPU_SPIKE();
77
78
CALL CPU_SPIKE();
78
79
CALL CPU_SPIKE();
79
-
80
+
CALL CPU_SPIKE();
81
+
CALL CPU_SPIKE();
82
+
CALL CPU_SPIKE();
80
83
81
84
CREATE OR REPLACE PROCEDURE CPU_AND_MEMORY_SPIKE() LANGUAGE SQLSCRIPT AS
82
85
BEGIN
@@ -93,6 +96,9 @@ The following steps attempt to demonstrate an example of adding an ECN to cover
93
96
CALL CPU_AND_MEMORY_SPIKE();
94
97
CALL CPU_AND_MEMORY_SPIKE();
95
98
CALL CPU_AND_MEMORY_SPIKE();
99
+
CALL CPU_AND_MEMORY_SPIKE();
100
+
CALL CPU_AND_MEMORY_SPIKE();
101
+
CALL CPU_AND_MEMORY_SPIKE();
96
102
```
97
103
98
104
After calling the stored procedure CPU_SPIKE and CPU_AND_MEMORY_SPIKE, you can see that the CPU and memory usage has spiked, and you may also see an alert.
@@ -138,7 +144,7 @@ An ECN can be created in multiple ways. Further details on the options and limi
138
144
}
139
145
```
140
146
141
-
* Create the ECN using the BTP CLI. Further details on using the BTP CLI can be found at [Executing SAP HANA Cloud Tasks from the Command Line](hana-cloud-automation-cli).
147
+
* Create the ECN using the BTP CLIor CF CLI. Further details on using the the CLI's can be found at [Executing SAP HANA Cloud Tasks from the Command Line](hana-cloud-automation-cli). An example using the BTP CLI is shown below.
142
148
143
149
```Shell
144
150
btp login --sso
@@ -158,6 +164,8 @@ An ECN can be created in multiple ways. Further details on the options and limi
158
164
159
165

160
166
167
+
Note that the status is also shown.
168
+
161
169
* Through SQL
162
170
163
171
```SQL
@@ -183,6 +191,12 @@ Workload classes can be used to direct a specified workload to an ECN. Further
183
191
ALTER WORKLOAD CLASS "WLC1" SET 'ROUTING LOCATION HINT' = 'ecn1';
184
192
```
185
193
194
+
* This can also be accomplished in the workload management app as shown below.
195
+
196
+

197
+
198
+

199
+
186
200
There are various ways that the workload can be mapped to the workload class.
187
201
188
202
* A mapping to a user can be added
@@ -244,15 +258,20 @@ Workload classes can be used to direct a specified workload to an ECN. Further
244
258
245
259
Notice that the last time the query was run, it was executed on the ECN. Notice also that the table location is not on the ECN.
246
260
261
+
It may also be of interest to compare the execution time between this run and after the table is replicated onto the ECN node in a subsequent step.
262
+
247
263
### Route to ECN with a hint
248
264
An alternate approach without using a workload class is to use a hint.
249
265
250
266
1. Execute the below SQL.
251
267
252
268
```SQL
253
269
ALTER WORKLOAD CLASS "WLC1" DISABLE;
270
+
254
271
SELECT * FROM M_VOLUMES; --1024 is the VOLUME_ID for the ECN
272
+
255
273
CALL USER4.CPU_AND_MEMORY_SPIKE() with hint (RESULT_LAG('HANA_ATR'), route_to(1024));
@@ -262,16 +281,19 @@ An alternate approach without using a workload class is to use a hint.
262
281

263
282
264
283
### Replicate a table to the ECN
265
-
A replica table can be stored on an ECN. This may lead to lower resource consumption on the coordinator. For additional details see [Advantages and Disadvantages of Table Replication](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-administration-guide/consider). The following steps demonstrate replicating a table to the ECN and using it in a query.
284
+
A replica table can be stored on an ECN. This may lead to lower resource consumption on the coordinator and reduced latency. For additional details see [Advantages and Disadvantages of Table Replication](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-administration-guide/advantages-and-disadvantages-of-table-replication). The following steps demonstrate replicating a table to the ECN and using it in a query.
266
285
267
286
1. Run the below in the SQL Console after replacing the host name with the value from the previous query against the M_VOLUMES table view.
268
287
269
288
```SQL
270
289
ALTER WORKLOAD CLASS "WLC1" ENABLE;
290
+
271
291
ALTER TABLE USER4.MYTABLE ADD ASYNCHRONOUS REPLICA AT '6101b9d8-bcad-44dc-98c4-388e64ce7370-ern-ecn1:30040';
292
+
272
293
ALTER TABLE USER4.MYTABLE ENABLE ASYNCHRONOUS REPLICA;
0 commit comments