You are on page 1of 376

PUBLIC

SAP HANA Platform 2.0


Document Version: SPS 04 - 1.1 – 2019-10-31

What's New in the SAP HANA Platform 2.0


© 2019 SAP SE or an SAP affiliate company. All rights reserved.

THE BEST RUN


Content

1 What's New in the SAP HANA Platform 2.0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2 SAP HANA Platform 2.0 SPS 04 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8


2.1 Installation and Update. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
SAP HANA Server Installation and Update (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2 Security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
SAP HANA Database Security (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3 Planning and Design. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
SAP Enterprise Architecture Designer, Edition for SAP HANA (New and Changed). . . . . . . . . . . . 13
2.4 Administration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
SAP HANA Cockpit (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
SAP HANA System Administration (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43
SAP HANA High Availability (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
SAP HANA Database Backup and Recovery (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . .51
SAP HANA Smart Data Access (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
SAP HANA Native Storage Extension (New). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
SAP HANA Deployment Infrastructure Administration (New and Changed). . . . . . . . . . . . . . . . . 55
SAP HANA Application Run-Time Services (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . 57
2.5 Development. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
SAP Web IDE for SAP HANA (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
SAP HANA Deployment Infrastructure Development (New and Changed). . . . . . . . . . . . . . . . . . 60
SAP HANA XS Advanced Development (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . .62
Text Search (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Hierarchy Functions (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
SAP HANA Intercative Education (SHINE) (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . 69
SAP HANA External Machine Learning Library (New and Changed). . . . . . . . . . . . . . . . . . . . . . 70
2.6 Reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
SAP HANA SQL Reference (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72
SAP HANA Client Interfaces (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
SAP HANA SQL Command Network Protocol Reference (Removed). . . . . . . . . . . . . . . . . . . . . 104
SAP HANA Spatial (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
SAP HANA Graph (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
SAP HANA Predictive Analysis Library (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . .110
SAP HANA SQLScript Reference (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113

3 SAP HANA Platform 2.0 SPS 03 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121


3.1 Installation and Update. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

What's New in the SAP HANA Platform 2.0


2 PUBLIC Content
SAP HANA Server Installation and Update (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . 121
3.2 Security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
SAP HANA Database Security (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
3.3 Planning and Design. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
SAP Enterprise Architecture Designer, Edition for SAP HANA (New and Changed). . . . . . . . . . . 126
3.4 Administration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
SAP HANA Cockpit (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
SAP HANA System Administration (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
SAP HANA High Availability (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
SAP HANA Database Backup and Recovery (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . 151
SAP HANA XS Advanced Cockpit (New). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
SAP HANA Application Run-Time Services (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . 152
SAP HANA Smart Data Access (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .153
3.5 Development. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
SAP HANA XS Advanced Development (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . 154
SAP Web IDE for SAP HANA (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
SAP HANA Spatial (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
SAP HANA Graph (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
SAP HANA Interactive Education (SHINE) for XS Advanced (New and Changed). . . . . . . . . . . . 168
Text Search and Text Analysis (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
3.6 Reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
SAP HANA SQL Reference Guide (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
SAP HANA Client Interfaces Reference (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . 189
SAP HANA SQL Command Network Protocol Reference (New and Changed). . . . . . . . . . . . . . . 192
SAP HANA Predictive Analysis Library (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . 193
SAP HANA SQLScript Reference (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
SAP HANA Analytics Catalog (BIMC Views) Reference (New and Changed). . . . . . . . . . . . . . . .200
SAP HANA External Machine Learning (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . 201

4 SAP HANA Platform 2.0 SPS 02 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203


4.1 Installation and Update. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
SAP HANA Server Installation and Update (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . 203
4.2 Security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .204
SAP HANA Database Security (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
4.3 Planning and Design. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
SAP Enterprise Architecture Designer, Edition for SAP HANA (New and Changed). . . . . . . . . . . 206
4.4 Administration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
SAP HANA Cockpit (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
SAP HANA System Administration (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . .223
SAP HANA Application Lifecycle Management (New and Changed). . . . . . . . . . . . . . . . . . . . . 225
SAP HANA High Availability (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
SAP HANA Database Backup and Recovery (New and Changed). . . . . . . . . . . . . . . . . . . . . . . 227

What's New in the SAP HANA Platform 2.0


Content PUBLIC 3
SAP HANA Application Run-Time Services (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . 227
SAP HANA Smart Data Access (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
4.5 Development. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
SAP HANA XS Advanced Development (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . .230
Text Search, Text Analysis, and Text Mining. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .235
SAP Web IDE for SAP HANA (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
SAP HANA Graph (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
SAP HANA Spatial (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
SAP HANA Interactive Education (SHINE) for XS Advanced (New). . . . . . . . . . . . . . . . . . . . . . 247
SAP HANA Extended Application Services classic model (XS classic) and SAP HANA
Repository. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
4.6 Reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
SAP HANA SQL and System Views Reference (New and Changed). . . . . . . . . . . . . . . . . . . . . . 249
SAP HANA Client Interfaces Reference (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . 257
SAP HANA SQL Command Network Protocol Reference (Changed). . . . . . . . . . . . . . . . . . . . . 259
SAP HANA SQLScript Reference (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
SAP HANA Analytics Catalog (BIMC Views) Reference (New and Changed). . . . . . . . . . . . . . . . 261
SAP HANA Predictive Analysis Library (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . 261
SAP HANA External Machine Learning Library (New). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263

5 SAP HANA Platform 2.0 SPS 01 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264


5.1 Installation and Update. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Documentation Changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
SAP HANA Server Installation and Update (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . 265
5.2 Security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
SAP HANA Database Security (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
5.3 Administration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
Documentation Changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
SAP HANA Cockpit (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .268
SAP HANA System Administration (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
SAP HANA High Availability (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .280
SAP HANA Database Backup and Recovery (New and Changed). . . . . . . . . . . . . . . . . . . . . . . 280
SAP HANA Application Lifecycle Management (New). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .281
SAP HANA Smart Data Access (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
SAP HANA Hadoop Integration (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
5.4 Development. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
SAP HANA XS Advanced Development (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . .285
Search, Text Analysis, and Text Mining. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
SAP HANA Graph (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
Hierarchy Functions (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
SAP Enterprise Architecture Designer, Edition for SAP HANA, edition for SAP HANA (New and
Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295

What's New in the SAP HANA Platform 2.0


4 PUBLIC Content
SAP Web IDE for SAP HANA (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
SAP HANA Interactive Education (SHINE) for XS Advanced (New and Changed). . . . . . . . . . . . 302
5.5 Reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
SAP HANA SQL and System Views Reference (New and Changed). . . . . . . . . . . . . . . . . . . . . . 304
SAP HANA Client Interfaces Reference (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . 312
SAP HANA SQLScript Reference (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
SAP HANA Predictive Analysis Library (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . 313
SAP HANA Analytics Catalog (BIMC Views) Reference (New and Changed). . . . . . . . . . . . . . . . 318

6 SAP HANA Platform 2.0 SPS 00 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319


6.1 Installation and Update. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
Documentation Changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .319
SAP HANA Server Installation and Update (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . .321
SAP HANA Cockpit Installation and Update (New). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
6.2 Security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
Documentation Changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
SAP HANA Database Security (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
6.3 Administration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
Documentation Changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
SAP HANA System Administration (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . .325
SAP HANA Database Backup and Recovery (New and Changed). . . . . . . . . . . . . . . . . . . . . . . 329
SAP HANA High Availability (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
SAP HANA Performance Monitoring and Analysis (New and Changed). . . . . . . . . . . . . . . . . . . 332
SAP HANA Smart Data Access (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334
SAP HANA Hadoop Integration (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335
6.4 Development. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
SAP HANA XS Advanced Development (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . 337
SAP Enterprise Architecture Designer, Edition for SAP HANA, edition for SAP HANA (New)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342
SAP Web IDE for SAP HANA (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
SAP HANA Spatial (New). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
SAP HANA Graph (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .350
Hierarchy Functions (New). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
Search, Text Analysis, and Text Mining. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
SAP HANA Interactive Education (SHINE) for XS Advanced (New and Changed). . . . . . . . . . . . 355
6.5 Reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356
SAP HANA SQL and System Views Reference (New and Changed). . . . . . . . . . . . . . . . . . . . . . 357
SAP HANA Client Interfaces (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
SAP HANA Predictive Analysis Library (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . 366
SAP HANA SQLScript Reference (New and Changed). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
SAP HANA Core Data Services (CDS) Reference (New and Changed). . . . . . . . . . . . . . . . . . . . 371
SAP HANA Analytics Catalog (BIMC Views) Reference (New). . . . . . . . . . . . . . . . . . . . . . . . . . 372

What's New in the SAP HANA Platform 2.0


Content PUBLIC 5
7 Deprecated Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373

8 Important Disclaimer for Features in SAP HANA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374

What's New in the SAP HANA Platform 2.0


6 PUBLIC Content
1 What's New in the SAP HANA Platform
2.0

Find out about the new and enhanced features of SAP HANA Platform 2.0 in support package stacks (SPSs)
and corresponding revisions.

 Note

The PDF version of this document does not contain links to detailed information in other SAP HANA guides
and reference works. Therefore, we recommend that you use the HTML version at https://help.sap.com/
viewer/42668af650f84f9384a3337bcd373692/latest/en-US.

Support Package Stack First Released with Revi­


(SPS) sion... Feature Overview Release Note

04 2.00.040 SAP HANA Platform 2.0 SPS SAP Note 2656575


04 Features [page 8]

03 2.00.030 SAP HANA Platform 2.0 SPS SAP Note 2551355


03 Features [page 121]

02 2.00.020 SAP HANA Platform 2.0 SPS SAP Note 2460914


02 Features [page 203]

01 2.00.010 SAP HANA Platform 2.0 SPS SAP Note 2404375


01 Features [page 264]

00 2.00.000 SAP HANA Platform 2.0 SPS SAP Note 2380257


00 Features [page 319]

Related Information

SAP HANA 2.0: Deprecations reported by the HANA statistics server (SAP Note 2425002)
Central Note for Behavioral Changes in SAP HANA (SAP Note 2679360)
SAP HANA 2.0 Revision Strategy
Additional guidance on SAP HANA 2.0 revisions (SAP Note 2378962)
SAP Product Availability Matrix for SAP HANA, platform edition 2.0

What's New in the SAP HANA Platform 2.0


What's New in the SAP HANA Platform 2.0 PUBLIC 7
2 SAP HANA Platform 2.0 SPS 04 Features

Find out about the new and changed features introduced with the SAP HANA platform 2.0 SPS 04.

2.1 Installation and Update

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for installation and update.

SAP HANA Server Installation and Update (New and Changed) [page 8]
SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the installation and update of
SAP HANA.

2.1.1 SAP HANA Server Installation and Update (New and


Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the installation and update of SAP
HANA.

Support for Persistent Memory (New)

The use of persistent memory can be enabled with the use_pmem parameter. A mountpoint for the persistent
memory volumes can be specified using the SAP HANA database lifecycle manager call option
basepath_pmem.

pmempath

use_pmem
2618154

Installation Execution Mode (New)

The parameter install_execution_mode controls the installation workflow. In optimized installation mode,
the number of restarts is reduced during installation. Optimized mode is automatically enabled if a server plug-
in is being installed or if more than one component selected for installation supports a phased installation.

install_execution_mode

What's New in the SAP HANA Platform 2.0


8 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Rename Tenants (New)

Tenant databases can be renamed during a system rename using the SAP HANA database lifecycle manager
with the parameter tenantmap.

tenantmap

Uninstall SAP HANA Remote Data Sync Before Updating to SAP HANA 2.0
SPS 04 (Changed)

Starting with SAP HANA 2.0 SPS 03, the recommended product for synchronizing remote databases with SAP
HANA is SAP SQL Anywhere MobiLink (MobiLink). If you are updating a previous SAP HANA installation to SAP
HANA 2.0 SPS 04 and had SAP HANA remote data sync installed, then you must uninstall SAP HANA remote
data sync before you upgrade to SAP HANA 2.0 SPS 04.

If you require synchronization, then you must migrate your remote data sync deployment to MobiLink before
support ends for SAP HANA 2.0 SPS 02. You can use remote data sync 2.0 SPS 02 with both SAP HANA 2.0
SPS 02 and SAP HANA 2.0 SPS 03 as long as remote data sync 2.0 SPS 02 remains in support. Because
remote data sync 2.0 SPS 02 is a component of SAP HANA 2.0 SPS 02, it is supported as long as SAP HANA
2.0 SPS 02 is supported.

2641466

 Note

SAP SQL Anywhere remote databases (synchronization clients) and MobiLink are licensed separately.

https://www.sap.com/product/data-mgmt/sql-anywhere.html
.

2.2 Security

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for security.

SAP HANA Database Security (New and Changed) [page 10]


SAP HANA Platform 2.0 SPS 04 introduces new and changed security-related features for the SAP
HANA database.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 9
2.2.1 SAP HANA Database Security (New and Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed security-related features for the SAP HANA
database.

Authorization and Authentication Enhancements (New and Changed)

● The new object privilege REMOTE TABLE ADMIN authorizes a user to create a table on a remote source
object.
● Case sensitivity of user matching for single sign-on (SSO) using SAML assertions and JSON Web Tokens
(JWT)
The matching of external identities to database users can now be either case-sensitive or case-insensitive.
You can configure this when you create or change the SAML or JWT identity provider in SAP HANA.
● Provider-specific certificate collections for single sign-on (SSO) using SAML assertions and JSON Web
Tokens (JWT)
It is now possible to assign identity providers to an in-memory certificate collection with the purpose
"SAML" or "JWT". If providers are assigned, multiple collections with the purpose "SAML" or "JWT" are
possible.
● Host-specific certificate collections for TLS/SSL configuration
It is now possible to assign hosts to an in-memory certificate collection with the purpose "SSL". This allows
an TLS/SSL setup with individual X.509 certificates for each host in a multi-host environment using in-
database certification collections.
● Troubleshooting "insufficient privilege" errors
Many "insufficient privilege" errors now return a GUID, which can be input into the new procedure
SYS.GET_INSUFFICIENT_PRIVILEGE_ERROR_DETAILS to retrieve information on which privilege was
missing for the executed command.

Auditing (New)

● Retention period for audit policies


For audit policies explicitly configured to write audit entries to an internal database table, you can now
specify a retention period in days. Once the retention period has elapsed for an audit entry, it is deleted.
To allow the configuration of retention periods in a tenant database, it is now also possible to configure
"database table"as the policy-specific audit trail.
● Audit policies for tenant databases
A user in the system database with the system privilege DATABASE ADMIN or the new system privilege
DATABASE AUDIT ADMIN can now create audit policies to monitor and record certain activities in a tenant
database. Policies created in the system database for a tenant database are visible in the tenant database,
but cannot be edited there.
● Read-only access to audit trail
The new system privilege AUDIT READ allows read-only access to the database table audit trail.

What's New in the SAP HANA Platform 2.0


10 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Column Encryption Key and Client Key Pair Rotation in SAP HANA Client-
side Data Encryption (New)

● Key rotation, the process of decrypting data with an old key and then re-encrypting with a new one, is an
important part of the enterprise key management infrastructure. SAP HANA client-side data encryption
supports key rotation for column encryption keys (CEKs) that encrypt table columns and client key pairs
(CKPs) that encrypt the CEKs. The rotation of CEKs and CKPs now requires fewer administrative steps with
the introduction of CEK and CKP versioning. To use key versioning, update the client drivers to SAP HANA
2.0 SPS 04 version. For more information, see SAP HANA Client-Side Data Encryption Guide.

Other Enhancements in SAP HANA Client-side Data Encryption

● In client-side data encryption, now AES-256-CBC or ARIA-256-CBC encryption algorithms can be used to
encrypt the column.
● For deterministic encryption, the following operations are supported on encrypted columns:
○ Joins, encrypted with the same key
○ Indexes/primary key
○ Referential constraints on column tables – both referenced and referencing table are encrypted with
same key.
○ GROUP BY or HAVING Clause
○ Set operators (UNION/INTERSECT/EXCEPT) – columns are encrypted with the same key

Data Anonymization (New and Changed)

● l-Diversity Anonymization Method


The l-diversity algorithm is an extension of k-anonymity. Using this method, you can reduce the risk of
identification by specifying that there must be at least l different sensitive values within each group.
l-Diversity
● k-Anonymity Configuration
The following parameters can now be used to refine the results of anonymized data queries: loss (the
proportion of records that can be dropped from the results), quasi-identifier weightings (the relative
importance of different attributes), quasi-identifier minimum and maximum values (the minimum and
maximum generalization levels of quasi-identifying columns).
Record Suppression (Loss)
Weighted Quasi-Identifiers
Minimum and Maximum Levels for Quasi-Identifiers
● SQL Anonymization Views
SQL commands can now be used to create anonymized views. The CREATE VIEW and ALTER VIEW
statements include a WITH ANONYMIZATION clause for configuring an anonymized view. Afterwards, the
new REFRESH VIEW statement needs to be run to generate the anonymization configuration. The new
views ANONYMIZATION_VIEWS, ANONYMIZATION_VIEW_COLUMNS, and M_ANONYMIZATION_VIEWS
provide information about all SQL anonymization views in the database.
Creating Anonymization Views

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 11
● GET_ANONYMIZATION_VIEW_STATISTICS Procedure
The GET_ANONYMIZATION_VIEW_STATISTICS procedure can be used to retrieve data anonymization
KPIs. These allow you to assess the quality of the anonymized data in an anonymization view. The
result.intensity KPI, for example, gives the information loss resulting from generalization.
GET_ANONYMIZATION_VIEW_STATISTICS

Local Secure Store (New)

The local secure store (LSS) is a separate lightweight utility for storing and managing encryption keys and
other similarly sensitive data. It provides a secured communication channel that allows the server to verify
each calling client against a whitelist. In addition, due to its operating system user <sid>crypt, OS-level
duties can now be strictly separated between system administrators (for example, database administrator
<sid>adm) and encryption key administrators (the operating system user <sid>crypt). At the same time,
SAP HANA processes still have unattended access to the encryption root keys needed for automated starts
and restarts.

The local secure store can optionally be used instead of the instance SSFS (secure store in the file system).

 Restriction

The local secure store (LSS) is released only for non-production single-host single-tenant scenarios.

Local Secure Store (LSS)

2.3 Planning and Design

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for planning and design.

SAP Enterprise Architecture Designer, Edition for SAP HANA (New and Changed) [page 13]
SAP HANA Platform 2.0 SPS 04 introduces new and changed features in SAP Enterprise Architecture
Designer, Edition for SAP HANA.

What's New in the SAP HANA Platform 2.0


12 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
2.3.1 SAP Enterprise Architecture Designer, Edition for SAP
HANA (New and Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features in SAP Enterprise Architecture Designer,
Edition for SAP HANA.

Core Features

● Copy and Paste Symbols (New)


You can now create a copy of an object by copying and pasting its symbol in a diagram.
Creating Objects in a Diagram
● Symbol Content Customization (New)
All symbols show, by default, the name of the object in the symbol header area. You can now customize
symbol header content to show up to five object properties.
Customizing Symbol Content
● Symbol Display Mode (New)
EAM symbols that support both icon and box modes are now created by default as boxes. You can toggle
between icon, box, and box with detail (show sub-symbols) modes using the display mode in the Content
Settings.
Formatting Symbols
● Symbol Alignment Tools (New)
New tools in the format toolbar allow you to align, distribute, and resize symbols.
Formatting Symbols
● Content Transfer Enhancements (Changed)
The following enhancements are available:
○ Now, when transferring models between repositories, there are no longer restrictions around importing
models containing shortcuts, and they and the source models containing the original objects can be
imported in any order.
○ You can now export folders (including any sub-folders and their contents) to repository zip files when
transferring content between repositories.
○ When exporting models from a repository, any extensions associated with the models are now also
exported to the zip file. When importing content into a new repository, any extensions that are not
already present are imported and reconnected to the models.
○ You can now overwrite content when importing a repository zip file.
○ You can now transfer external files via repository zip files.
○ You can now import content from a repository zip file multiple times in different folders to create
copies of your models.
○ The Export to Repository Zip File, which allows you to download a zip file of the model for importing to
another repository, is now available in the Share menu in the diagram editor.
Transferring Content Between Repositories
● New Diagram from Selection (New)
When you create a new diagram in your model, it is now initialized with the symbols selected in the current
diagram. You can select symbols manually, with the Lasso tool, by pressing SHIFT and dragging over the
diagram canvas or, to select all symbols, pressing CTRL + A .
Creating Additional Diagrams in a Model

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 13
● Create a New Diagram from the Repository Explorer (New)
You can now create a new diagram in an existing model from the model's property sheet in the repository
explorer.
Browsing The Repository
● Stay in Diagram after Publication (Changed)
The behavior of the diagram viewer has changed so that you now remain in the diagram after publication.
Click Edit to continue editing the diagram or click Home to return to your homepage.
Publishing Diagrams
● Object List Enhancements (Changed)
The following enhancements are available:
○ You can now control whether to show shortcuts, objects in sub-packages, and sub-objects in your
object lists.
○ You can now export object lists to CSV files.
Viewing Lists
● Dependency List Enhancements (Changed)
Many lists on the Dependencies tab of object property sheets now support both searching for existing
objects to add to the list and creating new objects directly in the list.
Referencing Objects in Lists on the Dependencies Tab
● Search Dialog Enhancements (Changed)
The behavior of and messages in the Search dialog have been refreshed to help simplify finding diagrams
and objects.
Searching for Diagrams or Objects
● Updated Values in EA Landscape Combo Boxes (Changed)
The default values available in various application and infrastructure architecure object properties (such as
applications and hardware servers) have been updated. You can select a value from the list, enter a new
value, or customize the available values.
Servers, Workstations, Mobile Devices, and Network Nodes (EAM)
● Note Tool in All Diagrams (New)
You can now create notes in any diagram and draw links to connect them to other symbols.
Editing Diagrams
● Impact Analysis: Show Multiple Instances of Impacted or Lineage Objects (Changed)
The impact and lineage analysis tree can now show the same object appearing multiple times in different
places in the tree.
Impact and Lineage Analysis
● Portuguese User Interface (New)
The user interface is now available in Portuguese.
Working with Diagrams in SAP EA Designer

Requirements Management

● ReqIF Import Enhancements (New)


You can now merge requirements and associated data from a ReqIF file into an existing requirements
model or create a new model.
Importing Requirements from a ReqIF File
● Importing Requirement from Word (New)
You can now import a requirements hierarchy from a Microsoft Word .docx file into a new or existing
requirements model.

What's New in the SAP HANA Platform 2.0


14 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Importing Requirements from a Word Document

Business Architecture

● Computed Capability Maps (New)


You can now create computed capability maps, which display all the business capabilities in your model
grouped by parent. Creating a computed diagram in this way allows you to quickly visualize and share your
capabilities in a standard layout without having to manually draw them.
Creating a Computed Capability Map
● Value Flows in Value Flows (Changed)
Value flows can now be broken down into sub-flows.
Value Streams and Value Flows

Information Architecture

● SAP Big Data Services (New)


The creation of SAP Big Data Services physical data models is now supported including by reverse-
engineering scripts, or by generation from another data model. You can model tables, views, and other SAP
Big Data Services objects and generate them as an SQL script.
SAP Big Data Services
● Hadoop Hive 2 (New)
The creation of Hadoop Hive 2 physical data models is now supported including by reverse-engineering
scripts, or by generation from another data model. You can model tables, views, and other Hadoop Hive 2
objects and generate them as an SQL script.
Hadoop Hive 2
● SAP HANA System Versioned Tables (New)
You can now model system-versioned tables in SAP HANA 2.0 HDI and SAP HANA 2.0 Database
models.
Entities (HDI)
Tables
● HDI Enhancements - Support for Tables (New)
You can now create tables in your HDI model and associations are enhanced to support linking tables and
tables and entities. Tables are imported and exported as .hdbtable files.
Tables (HDI)
● HDI Enhancements - Improved Namespace Support (Changed)
The following enhancements are provided for HDI namespaces:
○ You can now review and modify namespaces directly in diagram property sheets.
○ Any custom namespaces defined in HDI files are now set correctly during import.
HANA Packages (HDI)
● Simplified Encryption of SAP HANA Connections (Changed)
New checkboxes simplify enabling SSL when connecting to cloud-based SAP HANA instances.
Generating to a HANA Database
Reverse-Engineering a HANA Database
● Data Protection (New)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 15
You can now document your organization's use of personal data across all your data models.
Identifying and Documenting Personal Data
● CDM to PDM Generation - Support for Generating Shortcuts (New)
When generating a conceptual data model to a physical data model, any shortcuts of entities and other
CDM objects will be generated as shortcuts if a PDM generated from the source CDM with the appropriate
DBMS is available.
Generating Shortcuts to a PDM
● Reverse-Engineering Enhancements (Changed)
The performance of the reverse-engineering dialog has been enhanced and its behavior changed. By
default, only tables are listed for selection, and you can display other types of objects by selecting them in
a new pane in the bottom-left of the dialog.
Reverse-Engineering a Database
● Symbol Size (New)
You can now control the size of symbols in conceptual, physical, and No SQL data diagrams. By default, the
width and height automatically adjust to the symbol content or you can specify a fixed value for either or
both dimensions.
Formatting Symbols
● Improved Visibility for CDM Structured Types and PDM Abstract Data Types (New)
When you select a structured type as the data type for a CDM entity attribute, the attribute now displays a
badge in the entity symbol and its tooltip lists the names and types of the type attributes. Similarly, in a
PDM, when you select an abstract data type as a data type for a PDM table column, the column displays a
badge in the table symbol and its tooltip lists the names and types of the type attributes.
Structured Types, Abstract Data Types
● Improved Visibility and Ease of Selection for CDM and PDM Domains (New)
When you select a domain for a CDM entity attribute, it is now displayed as the attribute data type in the
entity. Similarly, in a PDM, a domain can be shown as the data type of a table column. When you define a
domain locally in a CDM or PDM, it is now available for selection directly in the drop-down Domain list in
attribute and column property sheets. Domains defined in other models can still be selected via the object
picker.
Domains

Administration

● Customization Enhancements (New)


This version offers new kinds of customizations and more control over how your customizations are used.
You can now:
○ Create new types of objects for use in your diagrams.
Creating Custom Object Types
○ Create custom extension files to package your customizations and attach them to individual models.
Creating Custom Extension Files and Attaching a Custom Extension File to a Model
○ Add custom diagram types based on extensions to the New Diagram dialog.
Making Your Customizations Available in the New Diagram Dialog
● Custom Property and Dependency Enhancements (New)
You can now select object types from other types of models to appear as custom properties and custom
dependencies.
Creating Custom Properties
Creating Custom Dependencies

What's New in the SAP HANA Platform 2.0


16 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
● Specifying a Log Data Retention Period (New)
The repository administrator can now set a retention period for log data.
Defining a Retention Policy for Log Data
● Refresh Tool in Log Pages (New)
The log pages now provide a manual Refresh tool above the lists to ensure that the information is up-to-
date.
Monitoring Repository Activities
● Anonymization of Deactivated User Information (New)
The repository administrator can now permanently anonymize personally-identifying information of
deactivated users.
Deactivating Users

2.4 Administration

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for administration.

SAP HANA Cockpit (New and Changed) [page 18]


SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the SAP HANA cockpit with
SAP HANA cockpit support package (SP) 10.

SAP HANA System Administration (New and Changed) [page 43]


SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the administration of SAP
HANA.

SAP HANA High Availability (New and Changed) [page 49]


SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA high availability.

SAP HANA Database Backup and Recovery (New and Changed) [page 51]
SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA backup and
recovery.

SAP HANA Smart Data Access (New and Changed) [page 53]
SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA smart data
access.

SAP HANA Native Storage Extension (New) [page 54]


SAP HANA Platform 2.0 SPS 04 introduces native storage extension, a new feature that provides a
general-purpose, built-in warm data store in SAP HANA to manage less-frequently accessed data
without fully loading it into memory.

SAP HANA Deployment Infrastructure Administration (New and Changed) [page 55]
SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA Deployment
Infrastructure (HDI).

SAP HANA Application Run-Time Services (New and Changed) [page 57]
SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the application run-time
services in SAP HANA.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 17
2.4.1 SAP HANA Cockpit (New and Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the SAP HANA cockpit with SAP
HANA cockpit support package (SP) 10.

SAP HANA Cockpit SP 10 (New)

SAP HANA cockpit SP 10 is available with SAP HANA Platform 2.0 SPS 04.

About SAP HANA Cockpit SPs

The SAP HANA cockpit is part of the SAP HANA platform 2.0. An SAP HANA cockpit SP is released with every
SAP HANA platform support package stack (SPS), but additional SAP HANA cockpit SPs may be released
between SAP HANA platform SPSs. For more information about the revision and maintenance strategy of the
cockpit, see SAP Note 2433181 .

SAP HANA cockpit SPs are cumulative. This means that a higher SP includes all features and fixes available in
earlier SPs.

Included in SAP HANA Platform 2.0


SAP HANA Cockpit SP Release Note Revision

10 SAP Note 2751640 Included with revision 2.00.040

09 SAP Note 2713615 Not included

08 SAP Note 2679059 Not included

07 SAP Note 2628614 Not included

06 SAP Note 2604594 Included with revision 2.00.030

05 SAP Note 2567836 Not included

04 SAP Note 2513227 Not included

03 SAP Note 2462387 Included with revision 2.00.020

02 SAP Note 2433764 Included with revision 2.00.010

01 SAP Note 2414668 Not included

00 SAP Note 2657318 Included with revision 2.00.000

What's New in the SAP HANA Platform 2.0


18 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Additional Information

Information Link

SAP HANA cockpit documentation https://help.sap.com/viewer/p/SAP_HANA_COCKPIT

SAP HANA cockpit 2.0: Revision and Maintenance Strategy SAP Note 2433181

SAP HANA cockpit 2.0: Supported operating systems and SAP Product Availability Matrix for SAP HANA, platform edi­
Web browsers tion 2.0

SAP HANA database explorer release notes SAP Note 2373065

Related Information

SAP HANA Cockpit SP 06 Features [page 129]


SAP HANA Cockpit SP 05 Features [page 134]
SAP HANA Cockpit SP 04 Features [page 141]
SAP HANA Cockpit SP 03 Features [page 217]
SAP HANA Cockpit SP 02 Features [page 269]
SAP HANA Cockpit SP 01 Features [page 275]

2.4.1.1 SAP HANA Cockpit SP 10 Features

Find out about the new and changed features introduced with the SAP HANA cockpit SP 10.

Administration and Monitoring [page 20]


SAP HANA cockpit SP 10 introduces new and changed features for administration and monitoring.

Performance Monitoring and Analysis [page 22]


SAP HANA cockpit SP 10 introduces new and changed features for performance monitoring and
analysis.

User Management and Security Administration [page 23]


SAP HANA cockpit SP 10 introduces new and changed features for user management and security
administration.

Backup and Recovery [page 24]


SAP HANA cockpit SP 10 introduces changed features for backup and recovery.

SAP HANA Database Explorer [page 24]


SAP HANA cockpit SP 10 introduces a new version of the SAP HANA database explorer with new and
changed features.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 19
2.4.1.1.1 Administration and Monitoring

SAP HANA cockpit SP 10 introduces new and changed features for administration and monitoring.

SAP HANA Native Storage Extension (New)

SAP HANA native storage extension (NSE) is a general-purpose, built-in warm data store in SAP HANA that lets
you manage less-frequently accessed data without fully loading it into memory. SAP HANA NSE integrates
disk-based database technology with the SAP HANA in-memory database for an improved cost-to-
performance ratio, while complementing other warm data tiering solutions such as SAP HANA Extension Node
and SAP HANA dynamic tiering.

Use SAP HANA cockpit to specify load units at various granularities and view already configured load units. You
can use the native storage extension (NSE) advisor to get suggestions about load units for tables, partitions, or
columns according to how frequently they are accessed.

Managing Warm Data with the Native Storage Extension

Critical Error Indicators at the Landscape Level (New)

Indicators of serious errors like authentication problems that interfere with monitoring a resource or expired
licenses now appear in the Resource Directory. If you've created a tile for the resource on the cockpit's Home
screen, the indicators also appear on that tile.

Monitor Aggregate Health

Table Distribution Enhancements (New and Changed)

These enhancements have been made to the table distribution functionality:

● In the Table Redistribution wizard, there is a new Table Group Analysis step where you can add, edit, and
delete table group analyses.
● In the Table Redistribution Execution History application, you can now enable the automatic table
distribution analyzer. You can specify the analysis frequency, the improvement threshold and modify
parameters used in the distribution analysis.
● In the Current Table Distribution application, these options have been added to the list of Advanced
Operations that can be performed on individual tables. Access these operations by clicking a table and
selecting the operation from the Advanced option in the pop-up menu.
○ Set Preload After Indexserver Restarts Setting
○ Set Unload Priority
○ Set Row Order
○ Optimize Compression
○ Clear Column Join Statistics

What's New in the SAP HANA Platform 2.0


20 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
○ Reclaim Data Space
○ Convert to Column Store Table
○ Rename Table (table group, table group type, or table group subtype)
○ Copy Table
● When you click a table, you now have the option to View Table Definition or Open SQL Console, which opens
the table definition in the database explorer.

Table Redistribution

Import Resource Enhancements (New and Changed)

You can now import a resource defined inside an XML file to the cockpit. This is especially useful for migrating
SAP HANA studio landscapes to SAP HANA cockpit, as studio landscapes are exported into XML files.

If you are importing a file that has been exported from an SAP HANA cockpit version SP 10 or later, you see an
Include collection settings checkbox, which is selected by default. These collection settings may include
settings for statuses, alerts, resources, and so on, which could override your global cockpit settings. Unselect
this option if you don't want to override your global cockpit settings.

Import Resources

Workload Class Enhancement (Changed)

When creating a workload class, you now have the option of specifying a user group name as a mapping
property. You also have the option of adding a new user group. Specifying both a database user name and a
user group name returns an error, as these properties cannot be set simultaneously.

Create a Workload Class Mapping

Resource Directory Enhancement (Changed)

In the Resource Directory application, you can now save preferred settings for search filter, column visibility,
and column sorting.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 21
2.4.1.1.2 Performance Monitoring and Analysis

SAP HANA cockpit SP 10 introduces new and changed features for performance monitoring and analysis.

Capture and Replay (New and Enhanced)

Capture and Replay offers the following new and changed functionality:

● You can now use port numbers to connect the replayer to the target or the control system.
● On the Capture Configuration page you can now select if you will use the captured workload for a replay,
analysis, or both.
● When you identify a problem in the replay report, you can now start the replay a second time after setting
breakpoints on the Execution Details page. You can set a breakpoint to pause the replay exactly where the
identified problem occurred. When starting the replay again, this would allow you to look at system views
before that statement is executed or to look at the trace file.

Capturing and Replaying Workloads

Data Cache (New)

Data Cache is a new functionality that allows you to monitor and manage the following types of cached data in
the system:

● Variable cache
● Static result cache
● Dynamic result cache.

You can access the page by choosing Data Cache on the Manage SQL Performance card on the overview page
of SAP HANA cockpit.

You can support monitoring and management of data cache in the following ways:

● Remove a cached entry or drop the metadata with all related entries
● Search the results by object name or schema
● Filter and sort the results by choosing the header of a column
● Select which columns you want to be displayed and their order in the settings menu
● Customize column width by adjusting the borders
● For variable cache: enable or disable data cache collection.

Monitoring and Managing Data Cache

Recommendations (New and Enhanced)

Recommendations offers the following new and enhanced functionality:

What's New in the SAP HANA Platform 2.0


22 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
● The feature can now be accessed from the card on the System Overview page
● Recommendations offers three types of suggestions: ad hoc, physical design, and SQL
● You can see description, impact, and recommended action for each recommendation
● You can follow the recommendation and address the issue by navigating to the recommended page.

Recommendations

Workload Analysis (Enhanced)

Workload Analysis offers the following enhanced functionalites:

● You can now use the search functionality for both thread-based workloads and captured workloads in the
same way
● You can now navigate to the Table Distribution page.

Analyzing Workloads

2.4.1.1.3 User Management and Security Administration

SAP HANA cockpit SP 10 introduces new and changed features for user management and security
administration.

Auditing (Changed)

● From the database overview for the system database, you can now create audit policies for one or more
tenant databases.
You can also change or delete audit policies for one or more tenant databases.
Manage Audit Policies for Tenant Databases
● In the Auditing app, the new column Origin allows you to see where an audit policy was created: either in
the tenant database itself or in the system database.
An audit policy created for a tenant database in the system database can be viewed in the tenant database,
but only edited in the system database. To edit an audit policy, go to Manage Databases from the system
database.
Manage Audit Policies for Tenant Databases
● When you view an audit policy, you can now also delete the audit entries that have been written for this
policy, if the audit trail is a database table
Delete Audit Entries

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 23
Authorization Dependency Viewer (New)

You can use the authorization dependency viewer in SAP HANA cockpit as a first step in troubleshooting
authorization errors and invalid object errors for stored procedures and calculation views with complex
dependency structures.

To open the authorization dependency viewer, go to User & Role Management, then choose View database
object dependencies.

2.4.1.1.4 Backup and Recovery

SAP HANA cockpit SP 10 introduces changed features for backup and recovery.

Backup Schedules (Changed)

With SAP HANA cockpit SP 10, the functionality for scheduling backups has been enhanced.

● You can make changes to backup schedules.


It is no longer necessary to delete a schedule and create a new schedule.

 Note

This feature requires SAP HANA SPS04.

Manage Backup Schedules

2.4.1.1.5 SAP HANA Database Explorer

SAP HANA cockpit SP 10 introduces a new version of the SAP HANA database explorer with new and changed
features.

All Schemas are Shown The catalog browser displays all schemas that you can work with at the system view
level.

Production Systems are Production systems are now labeled as such in the database explorer catalog
Now Labeled browser, the trace configuration editor, and any SQL console opened from a
production system.

AutoCommit Option You can no longer specify the autoCommit option when adding a database. You can
Removed from Add specify auto-commit settings in the SQL Console section of Global Preferences or in
Database Dialog your current SQL console.

Improved Display of Previously, when viewing binary data in either the Data Preview table or the SQL
Binary Data console results table, you were only able to view the data as text. Now, when you

What's New in the SAP HANA Platform 2.0


24 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
right-click the binary cell contents and click View Data, you can view binary data as
actual binary, or (where applicable) as an image.

New Schemas Object Right-click the Schemas catalog object and click Show Schemas in the context
Editor menu. The Schemas tab opens, which shows detailed information for all schemas in
the current system. Click a specific schema, either in the schema tab or the item list
to view detailed information about the schema.

Schema Filters are Schema filters now persist between sessions, on a per-database, per-user basis.
Persistent

Improved Execution of When executing parameterized statements, a Parameters tab appears underneath
Parameterized the SQL console. This pane allows you to specify parameter values and execute the
Statements statement using those values.

Enhancement to User- When configuring a user-specific trace, if you are connected with an SAP HANA 2.0
Specific Trace SPS 02 database, then you can now use the Connection ID filter. If you are
connected with an SAP HANA 2.0 SPS 03 database, then you can now use the
Statement Hash filter.

For more information about how to use the Statement Hash filter for user-specific
tracing, see Database Trace (Basic, User-Specific, and End-to-End).

Enhancement to Kernel When configuring the Kernel Profiler, if you are connected with an SAP HANA 2.0
Profiler SPS 02 database, then you can now use the Connection ID filter. If you are
connected with an SAP HANA 2.0 SPS 03 database, then you can now use the
Statement Hash filter.

2.4.1.2 SAP HANA Cockpit SP 09 Features

Find out about the new and changed features introduced with the SAP HANA cockpit SP 09.

Administration and Monitoring [page 26]


SAP HANA cockpit SP 09 introduces new features for administration and monitoring.

Performance Monitoring and Analysis [page 27]


SAP HANA cockpit SP 09 introduces new and changed features for performance monitoring and
analysis.

SAP HANA Database Explorer [page 29]


SAP HANA cockpit SP 09 introduces a new version of the SAP HANA database explorer with new and
changed features.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 25
2.4.1.2.1 Administration and Monitoring

SAP HANA cockpit SP 09 introduces new features for administration and monitoring.

Cockpit Troubleshooting User Role (New)

There is a new administration role available to assign to users. The Troubleshooting role allows the user to
access the XSA logs within the Cockpit Manager.

Create or Enable a Cockpit User

Creating a Technical User during Registration (New)

The technical user is a dedicated database user the cockpit will use to collect health data from the resource. To
create a technical user during registration, you need to provide the credentials of an administrator on the
resource who has user creation privileges.

Register a Resource

Managing System Configuration (Changed)

In the System Configuration app, for a specific resource, you can now take configuration snapshots. Also, you
can compare database configurations and compare snapshots.

Manage System Configuration in SAP HANA Cockpit

Table Distribution (Changed)

There have been several enhancements to this application:

● When viewing the current table distribution, you can now use the pop-over menu on a partitioned table
name or table group name to truncate or drop tables, or to view memory usage.
● Also, viewing the current table distribution gives you access to an analysis tab, where you can view records
data, workload, execution data, and so on.
● In the table redistribution execution plan, the reported operations are now compressed, listing the number
of similar contiguous operations.
● In the table redistribution history, running operations and parallel plan items are now displayed in the
header. The maximum number of plan items that can be executed in parallel is an editable value.
● You now have the ability to stop the execution of a table redistribution plan.

Table Redistribution

What's New in the SAP HANA Platform 2.0


26 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Table Placement Editor (Changed)

In the Table Placement Editor, now you can copy an existing rule, rather than creating a new one each time.

Table Placement Rules

Workload Classes (Changed)

There have been several enhancements to the Workload Classes application:

● You can now use relative values (%) in relation to statement thread and memory limits.
● Any user-specific parameters that you create may now include a statement thread limit.
● In addition to other mapping fields, you can now map a workload class to a user group.
● There is now a set of queries that can be run to obtain different usage information and analytics for
workload classes.

Capture/Replay Workload

System Overview Enhancements (New)

In the System Overview, you can save a resource as a custom tile. Now, you have the ability to delete these
custom tiles. Also, searching and filtering capabilities have been improved. Additionally, you can now right click
on a link and open the link in a new tab. This allows multiple tabs to be open to better view different applications
at the same time.

Resource Enhancements (New)

There have been improvements in the way to search for and sort registered resources in both the Resource
Directory and the Cockpit Manager. In addition, you can now unregister groups of resources.

Unregister a Resource

2.4.1.2.2 Performance Monitoring and Analysis

SAP HANA cockpit SP 09 introduces new and changed features for performance monitoring and analysis.

Capture and Replay (New and Changed)

Capture and Replay offers the following new and changed functionalities:

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 27
● You can start and stop any started captures directly from the Capture Workloads tile. If a workload is being
captured, this tile indicates now its name, the start time, and the duration.
● You can start and stop any started replays directly from the Replay Workloads tile. If a workload is being
replayed, this tile indicates now its name, the start time, and the duration.
● You can now trigger and monitor the export of a replay report. The export contains both data from the
captured workload as well as the results of a replay.
● To reset the password for the database users captured in the source system you have now the following
options:
Choose Reset Password to reset at once the passwords for all users not authenticated by external tools or
created during the replay.
You can authenticate users manually using the secure user store keys. The User List provides details on the
authentication method for each user.

Capturing and Replaying Workloads

Performance Monitor (Changed)

The Performance Monitor has a new hierarchically sorted table legend that displays the KPI unit, y-axis scale,
as well minimum, maximum, and average values.

Monitoring and Analyzing with the Performance Monitor

SQL Analyzer (New and Changed)

In the plan graph settings, you can now choose to show either physical or logical inner plans, and set the color
of nodes by either type or location.

Analyze Statement Performance

Workload Analyzer (New)

You can now navigate to the Current Table Distribution page from Workload Analyzer.

Analyzing Workloads

What's New in the SAP HANA Platform 2.0


28 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
2.4.1.2.3 SAP HANA Database Explorer

SAP HANA cockpit SP 09 introduces a new version of the SAP HANA database explorer with new and changed
features.

Import Data To improve performance, the import data functionality now supports batch inserts.
Enhancements Also, previously, if you tried to create a new table during import and the data could
not be inserted, then the table was not created. Now, the new table is created
regardless of whether or not the data is successfully inserted.

Database schemas have Previously, all database objects in the catalog browser were nested under their
been moved to their respective database schema. Now a database's objects, including its schemas, are
own Schemas folder in grouped according to their object type. This change in the catalog formation
the catalog browser increases the loading performance of the catalog tree. The new schema search
filter in the catalog browser list allows you to search for objects according to their
schema.

The SQL console The SQL console page in Global Preferences contains the following new options:
Preference page
Indicate potential The console parses its contents to highlight potential errors.
contains new options
SQL errors The errors are identified by icons next to the line number
containing the error and by underlining the erroneous
syntax in red. Turn off error indication by clearing the
checkbox. Error indication is on by default.

Parse text into Console contents are parsed and separated based on semi-
multiple statements colon delimiters. To send the text directly to the HANA
before executing server without parsing it, clear the checkbox. By default,
text is parsed into multiple statements before executing.

Auto-commit new Changes made in the SQL console are auto-committed.


SQL console Changing the setting in an open SQL console overrides this
contents by default preference setting. This setting affects DML statements
only.

New View connection The new View connection settings button in the SQL console ( ) allows you to
settings button in the change the auto-commit setting for the current SQL console. SQL console contents
SQL console are auto-committed by default.

Client-side encryption The database explorer now supports the execution of SQL statements related to
statements now client-side encryption. For more information about client-side encryption, see SAP
supported HANA Client-Side Data Encryption Guide.

New Help Menu Item There is a new About Database Explorer item in the help menu that contains the
database explorer version number.

Import/Export HDI You can now import and export HDI containers from the database explorer. You
Containers must have the HDI Container Group Administrator permission for at least one
container group in the database.

Plan Graph In the plan graph settings, you can now choose to show either physical or logical
Enhancements inner plans, and set the color of nodes by either type or location.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 29
Related Information

SAP HANA Database Explorer

2.4.1.3 SAP HANA Cockpit SP 08 Features

Find out about the new and changed features introduced with the SAP HANA cockpit SP 08.

Administration and Monitoring [page 30]


SAP HANA cockpit SP 08 introduces new features for administration and monitoring.

Performance Monitoring and Analysis [page 32]


SAP HANA cockpit SP 08 introduces new and changed features for performance monitoring and
analysis.

User Management and Security Administration [page 34]


SAP HANA cockpit SP 08 introduces new features for user management and security administration.

Backup and Recovery [page 35]


SAP HANA cockpit SP 08 introduces new and changed features for backup and recovery.

SAP HANA Database Explorer [page 36]


SAP HANA cockpit SP 08 introduces a new version of the SAP HANA database explorer with new and
changed features.

2.4.1.3.1 Administration and Monitoring

SAP HANA cockpit SP 08 introduces new features for administration and monitoring.

Table Distribution (Changed)

When generating a Table Redistribution Plan, you can now view and analyze changes in KPIs. The landscape
optimization targets are now configurable, as are outcomes, weights, order and other advanced options.
Furthermore, when viewing Table Distribution, you can display table content, meta data, access statistics or
runtime data. You can also export as a CSV.

Table Redistribution

Table Placement Editor (New)

You can now add or edit table placement rules, and manage table placement rule locations.

Add a Table Placement Rule

What's New in the SAP HANA Platform 2.0


30 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Workload Classes (Changed)

There have been several enhancements to the Workload Classes application:

● On databases running SAP HANA 2.0 SPS 03 or later, you can configure a query timeout as part of the
workload class.
● When importing workload classes a message dialog keeps you informed on the number that have
imported, skipped or overwritten.
● You can now use relative or absolute values for the statement thread limit and statement memory limit.

Capture/Replay Workload

Memory Analysis (Changed)

You can now filter the display of tables using the Chart Value, Show Top (number), Filter by Schema, and Time
Range filter options.

Analyze Memory Statistics

Access to SAP HANA Add-On Capabilities (Changed)

SAP HANA capabilities previously accessible as SAP HANA Options in the Filter by Area drop-down menu in the
System Overview now have their own tiles in the System Overview. (These tiles are visible and available if the
capabilities have been installed on a registered resource.) These SAP HANA add-on capabilities include:

● SAP HANA accelerator for SAP Adaptive Server Enterprise


● SAP HANA dynamic tiering
● SAP HANA remote data sync
● SAP HANA smart data access
● SAP HANA streaming analytics

Password Reset (New)

Cockpit users can now reset their password by accessing the Me Area.

Personalizing the SAP HANA Cockpit

Navigation Enhancements (New)

The SAP HANA cockpit has several enhancements to make it easier to navigate:

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 31
● Using a drop-down menu below an application title, you can now navigate laterally to other applications
without having to return either to the home screen or the System Overview.
● Using the Me Area, you can quickly access your Recent Activity and Frequently Used applications.
● You can enable and disable the tracking of this history, as well a clear it, using the Settings dialog.
● You can easily navigate from Cockpit Manager to the cockpit by using the new, dedicated link.

Global Collection Settings Override (New)

For availability, performance, capacity, and alerts (APCA) and Feature collections, you can use the Cockpit
Manager to manage global settings, or you can edit a registered resource and override the global settings for
that particular resource.

Setting Data Collection

Override Data Collection for a Resource

Log Viewing (New)

You can now find and read entries in the cockpit's operational logs. View the logs to troubleshoot problems like
missing monitoring data on cockpit pages, resource registration failure, and connection timeouts.

View Logs to Troubleshoot the Cockpit

2.4.1.3.2 Performance Monitoring and Analysis

SAP HANA cockpit SP 08 introduces new and changed features for performance monitoring and analysis.

Capture and Replay (New and Changed)

Capture and Replay offers the following new and changed functionalities:

● On the Capture Configuration page, turn on the Abstract SQL Plan to capture abstract SQL plans on the
source system and to export them to the file system. The abstract SQL plans are generated by the SQL
Plan Stability.
Managing Plan Stability
● On the Capture Configuration page, turn on the SQL Input Parameters option to see the parameter values in
the replay report. To do so, activate the SQL Input Parameters option by turning on the Collect Workload
Details.
● From the Capture Management page, you can now open the workload analyzer by clicking any of the
displayed captures. You can load the capture from this page by clicking Start in the Workload Analysis
column or you can load the capture after opening the Workload Analysis page using the Load button on the
top right.

What's New in the SAP HANA Platform 2.0


32 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
● When you start the backup from the Capture Monitor page, you can check any details about the backup by
clicking the drop-down arrow next to Capture Monitor and opening the started backup from the Related
Apps section.
● From the Replay Management page, you can now open the Replay List tab to see the status of the started
replays. For more information on each replay, open the Details link. If you don’t want to see this information
on your Replay List anymore, use the button on the top right to close it.
● From the Replay Management page, you can now stop a started replay using the Stop button in the Replay
Status column even if the replay is in progress. The status changes then to Stopped.
● On the Replay Management page, you can now directly start the preprocess from the Preprocess Status
column in the Replay Candidate tab. If the status is not available, you can open the Details link to
understand why. If the status is Not Preprocessed, click Start to preprocess your captured workload file.
● On the Replay Report, you can filter the slower statements by elapsed time, CPU time, and execution time
using the drop-down button in the Slower Statement section.
● The Replay Report offers now several new functionalities. For example, you can sort the displayed
statements by clicking directly the column header. You can sort them in ascending or descending order or
you can filter the list.

Capturing and Replaying Workloads

Performance Monitoring (New and Changed)

The performance monitoring applications offer the following new and changed functionalities:

● The Statements Monitor has been consolidated with SQL Plan Cache, and Expensive Trace Monitor into one
page under Monitor Statements.
● The SQL Plan Cache view on the Monitor Statements page now has the following improvements:
○ It is now possible to configure the SQL plan cache size
○ You can clear all plan cache
○ You can navigate to the SQL Analyzer
○ You can now save SQL plans within the SAP HANA database as PLV files under SAP HANA trace folder,
and download the files to your hard drive.
● The Performance Monitor has been enhanced with the following new features:
○ You can now choose from predefined KPI preset views and define custom views on the Performance
Monitor page.
○ You can now do remote imports of nameserver history trace.

Monitoring and Analyzing with the Performance Monitor

Top SQL Statements

Monitor and Analyze Statements with SQL Plan Cache

SQL Analyzer (New and Changed)

SQL Analyzer has the following new and improved functionalities:

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 33
● You can now view details on the query compilation process in the Compilation Summary section of the SQL
Analyzer.
● Recommendations on how to improve the SQL performance are now provided in the overview, with more
details given in the Recommendations section of the SQL Analyzer.
● You can delete PLV files from the SAP HANA trace folder on the Manage Saved Plans page.
● Plan Stability supports the following new functionalities:
○ Manual location update for abstract SQL plans
○ Manual migration of abstract SQL plans to the latest SAP HANA database.

Analyzing SQL and Saving Plans

Manage Saved Plans

Analyzing Statement Performance

Analyze Statement Performance

Managing Plan Stability

Workload Analyzer (New and Changed)

Workload Analyzer offers the following new and improved functionalities:

● The Workload Analyzer does not have a dedicated tile in the SAP HANA cockpit anymore, but can now be
accessed through the CPU Usage, Disk Usage, Memory Usage, or SQL Statements tiles for thread-based
workload analysis, and through the Capture Management page for analysis of captured workloads.
● The captured workload analysis can be accessed from the thread-based Workload Analyzer page by
selecting the highlighted captured workloads in the load chart on the top of the page.

Analyzing Workloads

2.4.1.3.3 User Management and Security Administration

SAP HANA cockpit SP 08 introduces new features for user management and security administration.

User and Role Management (New and Changed)

● SAP HDI roles can be granted to users through either the execution of the
GRANT_CONTAINER_SCHEMA_ROLES procedure of the container or the container group's API schema, or
the execution of the GRANT SQL statement. If you are authorized for both granting mechanisms, you can
now choose which one to use when assigning SAP HDI roles in the Assign Roles app.
Assign Roles to a Database User
SAP HANA DI Roles
● The Assign Roles app has been improved so that you can now navigate directly from assigned roles to the
role definition in the Manage Roles app.

What's New in the SAP HANA Platform 2.0


34 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
● It is now possible to create the JWT identity providers required for single sign-on using JSON Web Tokens
(JWT) using the cockpit. To create identity providers, on the Overview page, choose the link Manage JWT
identity providers under Security Related Links.
Add a JWT Identity Provider in SAP HANA Cockpit
● In the Manage User app, you can now see the following additional information:
○ The last time the user logged on
○ If deactivated, the time of deactivation
Database User Details

Auditing (Changed)

● On the Audit Trail tab of the Auditing app, you can now also view audit entries written by the audit log
service of the XS advanced run-time environment.
Audit Trail View
● A wizard is now available in the Auditing app to guide you through the process of creating an audit policy. In
addition, when you view an audit policy, you can see the audit entries that have been written for this policy,
if the audit trail is a database table.
Create an Audit Policy

Encryption (Changed)

In the Data Encryption Configuration app, you can now see the encryption algorithm used for each of the
encryption services.

2.4.1.3.4 Backup and Recovery

SAP HANA cockpit SP 08 introduces new and changed features for backup and recovery.

Scheduling Backup

With SAP HANA cockpit SP 08, the functionality for scheduling backups has been enhanced.

You can schedule backups of tenant databases from the system database.

You can also schedule backups on a monthly basis.

To schedule system-wide backups (through the system database for a tenant database), you require a
minimum SAP HANA database revision.

For more information, see SAP Note 2699762 (Scheduling System-wide Backups with SAP HANA Cockpit).

Schedule Backups

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 35
SAP Note 2699762

2.4.1.3.5 SAP HANA Database Explorer

SAP HANA cockpit SP 08 introduces a new version of the SAP HANA database explorer with new and changed
features.

SQL Console The content of your SQL console is now saved even after the browser is closed.
Enhancement Additionally, the SQL console saves 30 seconds after your last keystroke, and when
you perform the following actions:

● When you use any of the Run menu options.


● When your console is connected to a database.
● When you close your console.

All saved SQL consoles are re-opened with their content (but not result sets) when you
next open database explorer.

SQLScript Code The Analyze menu of the SQL console now includes the Report Code Coverage option,
Coverage which gathers position (line, column, start, end) coverage information for SQLScript
procedures, functions, and anonymous blocks.

Change to viewing ● Previously, you double-clicked on a table cell in either the SQL console or table
data in the SQL data preview to open the view dialog. Now, you right-click the cell and click View
console or table Data data.
Preview
● The new Hide/Show Columns icon () allows you to specify which type of data to
download: hidden columns, filtered rows, or both. If you have added rows or edited
cells in the Data Preview, but not saved them, then those changes are included in
the downloaded file, regardless of whether or not you selected to show or hide
them.

View Execution Plans You can now view the execution plan for a SQL statement or procedure by entering the
for SQL Statements SQL in the SQL console and clicking Analyze Explain Plan .
and Procedures

Import Data Previously, if you tried to create a new table during import and the data could not be
Enhancements inserted, then the table was not created. Now, the new table is created regardless of
whether or not the data is successfully inserted.

SQL Analyzer The SQL analyzer offers the following new functionality:

● You can now view details on the query compilation process in the Compilation
Summary section.
● Recommendations on how to improve the performance of SQL-related operations
are now provided in the overview, with more details given in the Recommendations
section.

What's New in the SAP HANA Platform 2.0


36 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Related Information

SAP HANA Database Explorer

2.4.1.4 SAP HANA Cockpit SP 07 Features

Find out about the new and changed features introduced with the SAP HANA cockpit SP 07.

Installation and Update [page 37]


SAP HANA cockpit SP 07 introduces new features for installation and update.

Administration and Monitoring [page 38]


SAP HANA cockpit SP 07 introduces new features for administration and monitoring.

Performance Monitoring and Analysis [page 40]


SAP HANA cockpit SP 07 introduces new and changed features for performance monitoring and
analysis.

User Management and Security Administration [page 41]


SAP HANA cockpit SP 07 introduces new features for user management.

Backup and Recovery [page 42]


SAP HANA cockpit SP 07 introduces new and changed features for backup and recovery.

SAP HANA Database Explorer [page 43]


SAP HANA cockpit SP 07 introduces a new version of the SAP HANA database explorer with new and
changed features.

2.4.1.4.1 Installation and Update

SAP HANA cockpit SP 07 introduces new features for installation and update.

Installation (Changed)

SAP HANA cockpit can be installed in an existing SAP HANA system.

Related Information

Install the SAP HANA Cockpit in an Existing SAP HANA System Using the Graphical User Interface
Install the SAP HANA Cockpit in an Existing SAP HANA System Using the Command-Line Interface

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 37
2.4.1.4.2 Administration and Monitoring

SAP HANA cockpit SP 07 introduces new features for administration and monitoring.

SAP HANA Cockpit User Interface (Changed)

The user interface for the SAP HANA cockpit has been redesigned using SAP Fiori Design Guidelines. For both
the landscape page and the overview page, you can customize the order of tiles. For the overview page, you can
also specify which tiles to display and which tiles to hide.

Personalizing the SAP HANA Cockpit

Resource Directory and Aggregate Health (Changed)

The Aggregate Health Monitor available in previous versions of SAP HANA cockpit 2.0 is no longer available.
Instead, its functionality has been added to the Resource Directory. In the enhanced Resource Directory, you
can monitor resource status, and availability, performance and capacity alert counts. You can also display
resources alphabetically or group them by system. When you highlight a system database, you have the option
to open the Manage Databases application.

Working with the Resource Directory

Viewing System Databases (Changed)

In previous versions of SAP HANA cockpit 2.0, drilling down to the overview page might display information for
both a system database and its corresponding tenant databases. Now, each resource is displayed separately:
selecting a system database in the Resource Directory displays the overview page for the system database only;
similarly, selecting a tenant database displays the overview page for the tenant only. Despite the new pathways
for monitoring system and tenant databases, you still manage databases through the system database.

Monitoring Tenant Databases in SAP HANA Cockpit

Managing Tenant Databases

Managing Restricted Features (Changed)

The user interface of the Manage Restricted Features application has been enhanced. Also, you can now copy
restricted features.

Restrict Features Available to a Tenant Database

What's New in the SAP HANA Platform 2.0


38 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Early Watch Alerts (New)

Cockpit users with S-User authorization can now select the Early Watch Alert tile to launch the SAP EarlyWatch
Alert (EWA) Solution Finder in the SAP ONE Support Launchpad.

SAP EarlyWatch Alert Service

Table Distribution (Changed)

There have been enhancements to how you view Table Distribution and Redistribution History. Furthermore,
when generating a Table Redistribution Plan, you can now use the Plan Steps and Analysis tabs before deciding
to execute the plan.

Table Redistribution

System Health (Changed)

The user interface for System Health has been enhanced. When you select on a chart, instead of navigating
directly to the Performance Monitor, Memory Analysis or Workload Analysis), a popover appears that shows an
expanded view of the chart, and gives you choices as to what to view.

Monitoring Health in Multi-Host Systems

Workload Classes (Changed)

The user interface for the Workload Classes application has been enhanced so that it is now more intuitive.

Monitoring Tenant Databases in SAP HANA Cockpit

Licensing (Changed)

On the Licensing page, the memory usage of your SAP HANA license is now visualized on a chart.

Configuration Templates (New)

A new application, Configuration Templates, lets you create named sets of configuration parameters and apply
them to your databases. All cockpit users can apply templates; to create and manage them, you need a new
user role, Cockpit Template Administrator.

Create or Enable a Cockpit User

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 39
Working with Configurations and Configuration Templates

Cockpit APIs (Changed)

The cockpit now supports both POST and GET APIs for managing resources, resource groups, and cockpit
users using external programs.

Managing Resources, Users, and Groups with the Cockpit APIs

User Notifications and Session Monitoring (New)

With Active Sessions, a new feature in the Cockpit Manager, administrators can monitor browser sessions and
send pop-up notifications to logged-in cockpit users.

Sending User Notifications and Monitoring Sessions

2.4.1.4.3 Performance Monitoring and Analysis

SAP HANA cockpit SP 07 introduces new and changed features for performance monitoring and analysis.

Capture and Replay (New and Enhanced)

Capture and Replay offers the following new functionalities:

● After setting the request rate on the Replay Configuration page, you can see it also on the Replay Monitor
page in the Target System Information section, as well as on the Replay Report in the Replay Information
section.
● You can change the tolerance ratio entering a new value on the Comparison Report in the Performance
Comparison section or on the Performance Comparison tab.
● On the Replay Configuration page, you can enter the port number in the Target System Information section.
● On the Overview page in the Result Comparison and Performance Comparison sections, you can see new
categories such as SQL Errors, Non-SQL Errors, and Verification Skipped for a better error analysis.
● On the Capture Configuration page you can use the New Backup Settings link to select between Backint or
file-based backups, to configure the backup destination, or to enter parameters for the Backint backup.

Capturing and Replaying Workloads

SQL Analyzer (New and Changed)

SQL Analyzer offers the following new and changed functionalities:

What's New in the SAP HANA Platform 2.0


40 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
● You can now save SQL plans within the SAP HANA database, load previously saved plans into the SQL
analyzer, and download saved SQL plans as PLV files to your hard drive.
● The Overview tab of the SQL analyzer is enhanced by graphic views of the SQL time, dominant operators,
and statistics. You can navigate to the Operators section below by selecting Open Operators and see the
Tables in Use section below by clicking on the Tables in Use field in the Statistics tile.
● The Table Accesses section is now enhanced by the following columns that can be added in the settings
menu: Operator Id, Operator Name, Details.

Analyzing SQL and Saving Plans

Analyzing Statement Performance

Workload Analyzer (New and Changed)

Workload Analyzer based on thread sampling offers the following new and changed functionalitites:

● Background Jobs and Timeline are now in separate categories.


● You can now navigate to the SQL analyzer tool by selecting an entry on the chart in the Top SQL Statements
section and clicking Open in SQL Analyzer.

Workload Analyzer based on engine instrumentation offers the following new and changed functionalities:

● You can now access the workload analyzer based on engine instrumentation through the Capture
Management page of the capture and replay tool.
● A Timeline view displaying a detailed timeline chart and an accompanying statements table is now
available.

Analyzing Workloads

2.4.1.4.4 User Management and Security Administration

SAP HANA cockpit SP 07 introduces new features for user management.

User Groups (New)

It is now possible to create user groups. If required, you can also configure a group-specific password policy.

To access the User Groups page, on the Overview page, choose the link Manage user groups on the User & Role
Management tile.

The Users page has also been enhanced so you can add a user to an existing user group.

Create a User Group

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 41
User Authentication (Changed)

On the Users page, you can now configure users to be authenticated by a password stored in an LDAP directory
server instead of a password stored locally in the SAP HANA database.

Database User Details

LDAP User Authentication

Auditing (Changed)

On the Auditing page, you can now generate the SQL create statements of multiple audit policies at once.

Auditing Details

2.4.1.4.5 Backup and Recovery

SAP HANA cockpit SP 07 introduces new and changed features for backup and recovery.

Housekeeping

With SAP HANA cockpit SP 07, you can manually delete backup generations or individual full backups
(complete data backups or data snapshots).

Housekeeping: Backup Catalog and Backup Storage.

Retention Policy

With SAP HANA cockpit SP 07, you can configure settings for retention of backup generations.

 Note

The functionality for configuring a retention policy is only supported from SAP HANA SPS03. In earlier SAP
HANA releases, this functionality is not available.

Backup Configuration Settings

What's New in the SAP HANA Platform 2.0


42 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
2.4.1.4.6 SAP HANA Database Explorer

SAP HANA cockpit SP 07 introduces a new version of the SAP HANA database explorer with new and changed
features.

Remote Sources The user interface of the remote source editor has been updated to improve search
performance and support remote sources for SAP HANA smart data integration. For more
information about using the new remote source editor, see Create a Remote Source.

Catalog The catalog browser tree now shows the following new object types to support SAP HANA
Enhancements smart data integration:

Data Provisioning Monitor the basic system information of an agent (such as CPU,
Agents memory, timestamps) and the time it last connected with the Data
Provisioning server.

Remote Sources Clicking on the Remote Sources catalog object now also shows
(enhancement) remote sources for smart data integration in the remote sources
item list,

Remote Monitor basic information for your remote subscriptions, such as


Subscriptions the schema in the remote source, the number of messages
received and applied by the Data Provisioning server, and the
times the last message was received and applied.

Tasks View information about your data provisioning tasks, such as the
realtime design time object, the create time and the memory size.

For more information about smart data integration, visit the SAP HANA Smart Data
Integration and SAP HANA Smart Data Quality guide.

Importing Data Use the new Import Data wizard to import data from an Excel or CSV file into a new or
existing table. See Import Data Into a New or Existing Table.

SQL Analyzer You can now save SQL plans within the SAP HANA database, and download saved SQL
plans as PLV files to your hard drive. See: Analyzing SQL and Saving Plans.

2.4.2 SAP HANA System Administration (New and Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the administration of SAP HANA.

Tenant Database Management (New and Changed)

Rename Tenants (New)


Tenant databases can be renamed during a system rename using the SAP HANA database lifecycle manager
with the parameter tenantmap.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 43
tenantmap

Fallback Snapshots for Tenant Databases (Changed)


A fallback snapshot can now also be created if the tenant database is the primary database in a system
replication scenario.

Create a Fallback Snapshot

Network (New)

IPv6 Support (New)


You can now enable IPv6 and run SAP HANA in a dual-stack environment as well as in an IPv6-only
environment.

Configuration of SAP HANA in an IPv6 Environment

Workload Management (Changed)

Workload Classes (Changed)


Two new properties have been introduced for workload classes:

● WRITE TRANSACTION LIFETIME - used to limit the lifetime of long-running uncommitted write
transactions
● IDLE CURSOR LIFETIME - used to set a time value in minutes to limit the lifetime of long-lived cursors

Both parameters have corresponding ini file configuration parameters which can be used to set default values
which apply if a workload class value is not set.

A workload_class hint is already available to manage workload classes at run-time and more control of how
this is applied is available through the new configuration parameter allow_more_resources_by_hint.

Managing Workload with Workload Classes

Workload Class Mappings (Changed)


The following new mapping properties have been introduced for workload classes:

● USERGROUP NAME
● OBJECT NAME
● SCHEMA NAME
● XS APPLICATION USER NAME

Managing Workload with Workload Classes

Controlling CPU Consumption (Changed)


In the area of managing CPU Consumption, on a scale-out system you can now bind CPUs to specific NUMA
nodes on each indexserver. You can do this either for different tenants of a multi-tenant database on the same
host or for multiple indexservers of the same tenant on the same host.

What's New in the SAP HANA Platform 2.0


44 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
In both cases you use the CREATE/ALTER DATABASE statement with an AT LOCATION clause which has a host
and port number as a parameter. A configuration parameter value is required to identify the specific tenant and
the CPU cores to bind.

Controlling CPU Consumption

Additionally, SQL statements are available to apply NUMA location preferences for specific database objects
(tables, columns or partitions). This can be done using either the CREATE TABLE or ALTER TABLE statements
with a NUMA NODE clause and the preferred node number(s) as parameters.

SQL Statements to Apply NUMA Location Preferences

Memory Management (New and Changed)

Global Allocation Limit (Changed)


The global allocation limit value can now be defined either as a fixed value in MB or as a percentage of the
available main memory size. If defined as a percentage the precise value automatically adjusts if the size of the
container where the system runs is changed.

Allocated Memory Pools and Allocation Limits

Memory Allocator Statistics (Changed)


Detailed information about memory consumption can be found by looking into allocator statistics. To limit the
amount of memory consumed by these statistics two configuration parameters
(pool_statistics_striping and composite_statistics_striping) are now available to manage the
collection of these statistics.

Memory Allocator Statistics

SAP HANA Fast Restart Option (New)


The SAP HANA Fast Restart option makes it possible to save and reuse MAIN data fragments after an SAP
HANA service restart so that MAIN data can be quickly reloaded into memory without the need to read the data
from the persistent storage. This provides the benefit of greatly accelerated start-up times and a minimization
of system downtimes.

This feature leverages the SAP HANA Persistent Memory implementation but in contrast to Persistent Memory,
which works with a DAX-enabled file system, the Fast Restart option stores MAIN data fragments in tmpfs file
systems with content in DRAM. This is effective in cases where the operating system is not restarted.

SAP HANA Fast Restart Option

Housekeeping (Changed)

Row Store Reorganization (Changed)


New functionality has been added to the stored procedure REORGANIZE_ROWSTORE() which now distributes
the command to all running nodes and can be applied to specific tables, schemas and segments. Additionally,
the table locking mechanism used by the procedure has been changed to eliminate the need for exclusive locks
so that tables can be updated during reorganization.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 45
Row Store Reorganization

Table Consistency Check (Changed)


Results of all consistency checks, whether executed manually or scheduled in the statistics service, are
available in two monitoring views:

● M_CONSISTENCY_CHECK_HISTORY (high level information)


● M_CONSISTENCY_CHECK_HISTORY_ERRORS (gives details of all errors found within each check run)

Options are available to run housekeeping procedures on these tables to remove old data.

Table Consistency Check

Configuration Framework (New)

All public configuration parameters are now defined in table CONFIGURATION_PARAMETER_PROPERTIES.


The definition includes basic properties such as data type, unit, a default value, and a flag to indicate if a
system restart is required before a changed value becomes effective.

Changes to parameter values are validated against the definition so that, if required, invalid values can be
trapped and a warning or error message triggered. Alert checkers are also used to detect if any parameters are
set to an unsupported value and appropriate warnings are displayed in the administration cockpit.

Configuring SAP HANA System Properties (INI Files)

SQL Plan Stability (Changed)

Plan Stability has been enhanced so that you can use filtering, either on the basis of user name or by workload
class property, to limit the capture process to specific targets. Filtering by user name is done at run time as the
capture process is initiated and filtering by workload class property can be done by setting filter values for each
property in advance; they can be removed when no longer required.

Abstract SQL plans can now be enabled, disabled or removed from the ABSTRACT_SQL_PLANS table and if a
plan is invalid for some reason, the reason is now captured in the NOTES column of the
ABSTRACT_SQL_PLANS table.

SQL Plan Stability

Table Management (New and Changed)

Application-Time Period Tables (New)


Application-Time Period tables have now been introduced in addition to System-Versioned Tables to extend the
functionality available to manage historical data. Application-Time Period Tables capture the time in which a
record is valid in the business world rather than on the basis of the time it was entered in the database. This
allows you to manage and manipulate historical business data based on application-specific time periods

What's New in the SAP HANA Platform 2.0


46 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
which are independent of system time-stamps. Bi-temporal tables which store values for both system time and
application time are also possible.

Application-Time Period Tables

Partitioning (Changed)
A number of changes have been made in the area of partitioning:

● For Round-Robin and RoundRobin-Hash Partitioning, if you insert values into existing partitions the
updates are now validated to ensure that the data remains consistent with the partitioning definition.
● TIMESTAMP values using hours are now supported for balanced partitioning

Table Partitioning

The following changes apply specifically to heterogeneous partitioning:

● Placement of partitions using AT LOCATION is now supported for heterogeneous second-level partitions
● Range-Hash partitioning is now supported if all partitions at the second level are based on the same
columns
● Dynamic Range Partitioning, which automatically maintains the others partition, can now also be used with
heterogeneous partitioning.
● Table Placement grouping properties for heterogeneous partitioning have been added and system views
TABLE_PARTITIONS and M_TABLE_PARTITIONS have been enhanced with NODE_ID and
PARENT_NODE_ID values so that the hierarchical relationships between heterogeneous partitions can be
seen.

Heterogeneous Partitioning

Table Replication (Changed)


Sub-table replication has been introduced which makes it possible to replicate just a selected set of columns of
a table to a replica instead of the complete table. You can therefore streamline the replication operation in
terms of memory used and performance by replicating only the specific columns which are required by users
who are querying the table.

Asymmetric Replica Tables are now supported in order to provide flexibility in how replica tables are created. It
is now possible to replicate partitioned tables in such a way that the replica has a different partitioning
specification to the source table. You can, for example, partition a table at the first level by ranges on the basis
of a primary key value and replicate the partitions to new replica tables which use hash partitioning on the basis
of a different value. The asymmetric replica tables and partitions are given unique names so that queries can
then be specifically targeted to the correct replicated data source.

Table Replication

Table Placement and Table Reorganization (Changed)


Advice about the recommended capacity of warm data which can be stored on an extension node has been
revised. Previously, the sizing guidelines for the data capacity of the extension node was a 1:1 relationship equal
to the size of the installed RAM. In fact, the data capacity can be higher than this, possibly up to four times the
RAM size, as long as the sizing is appropriate to the querying demands of users, the data model design, and the
available memory so that the extension node is not constantly overloaded.

Extension Node

Tables can be pinned to nodes so that during table reorganization the table is not moved. You can do this using
the CREATE/ALTER table statements with the NOT MOVABLE clause.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 47
New options have been introduced when running Table Reorganization from the command line:

● to invoke the group advisor feature


● to prioritize reorganization using a 'TOP' option so that it is only applied to a select number of tables
● to include a check on table sizes to detect tables approaching the maximum size limit of 2 Billion records

The check on table size can be used to automatically partition tables which are approaching the maximum size.
The feature is enabled by default but can be disabled by means of a configuration parameter.

Table Redistribution Commands

Statistics Server Alerts (Changed)

The following new alerts have been introduced:

ID Name Description

111 Replication status of replication log Check whether the status of replication log is disabled.

112 Missing STONITH with shared storage Check whether a STONITH provider is configured in a scale-
out system with shared basepaths.

113 Open file count Determines what percentage of total open file handles are in
use.

114 Active async IO count Determines what percentage of total asynchronous input/
outputrequests are in use.

115 Timezone environment variable verification Determines if the timezone environment variable TZ can be
interpreted.

116 Transparent huge pages status Determines if Transparent Huge Pages (THP) are activated.

118 Port ephemeral max count Checks for free local ports

119 Required local SAP HANA port ranges Checks for local ports which are required but which have
not beenreserved.

129 Check trusted certificate expiration date Determines if there are any trusted certificates that will
expire soon or have already expired.

130 Check own certificate expiration date Determines if there are any own or chained certificates that
will expire soon or havealready expired.

131 Session requests queued by admission Determines the number of session requests waiting in the
control admission control queue.

132 Session requests rejected by admission Determines the number of session requests newly rejected
control by admission control.

What's New in the SAP HANA Platform 2.0


48 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
ID Name Description

135 Checks configuration for SAP HANA SLD Required for system replication to send landscape data to
Data Supplier the LandscapeManagement Database via the System
Landscape Directory (SLD).

136 Unsupported Parameter Values Set Checks if configuration parameters are set to an
unsupported value.

137 Restart Required for Configuration Change Check if a restart is required for a configuration change to
become effective.

The following alerts have been changed or deprecated:

ID Name Description

1 Host physical memory usage Alert 1 not active in HANA 2.0

29 Size of delta storage of column-store tables Checking functionality improved. Thresholds changed.

39 Long-running statements Checking functionality improved.

42 Long-running / idling cursors Checking functionality improved. Name changed.

73, 74 Rowstore version space / Metadata version Alerts 73 and 74 not active in HANA 2.0.
space

Reference: Alerts

2.4.3 SAP HANA High Availability (New and Changed)


SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA high availability.

Support of Fallback Snapshots (New)

Fallback snapshots are now supported in a SAP HANA system replication configuration. Existing fallback
snapshots on the secondary system are still available after takeover and can be used to reset the system after
switching the systems.

Create a Fallback Snapshot

Takeover with handshake (New)

The new takeover option –suspendPrimary can be used to ensure that the secondary is fully in sync with the
primary before the takeover is executed.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 49
Takeover with Handshake

Automatic re-register of secondary sites (New)

Secondary systems can be configured to automatically re-register to a new source system when the original
source system in a multitarget system replication becomes unavailable.

Disaster Recovery Scenarios for Multitarget System Replication

Time travel extension (Changed)

You can now use the secondary time travel to read older data from the read-enabled secondary system while
the secondary keeps replicating. You can also stepwise replay the log and access the data after each replay
step.

Execute Secondary Time Travel While Replication Continues

Online registration of secondary system (Changed)

It is now possible to assign a secondary system to a primary system without stopping the secondary system
beforehand.

SAP HANA Multitarget System Replication

SYS_DATABASES views as secondary proxy views (Changed)

SYS_DATABASES_SR_SITE <secondary_site_name> is a second proxy schema containing proxy views,which


can be queried to get information from the corresponding view in the SYS_DATABASES schema on the
secondary system. These proxy views simplify the monitoring of secondary systems from the primary system.

Monitoring Secondary Systems

Sessions recovery after a restart (New)

It is now possible to recover and restore the current session's state and the physical connection to the new
system after a restart. The seamless recovery works exactly as in the invisible takeover scenario.

Invisible Takeover and Restart

What's New in the SAP HANA Platform 2.0


50 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Multitarget system replication and Active/Active (New)

In a multitarget system replication setup, you can now configure multiple secondaries as Active/Active (read
enabled). Only one of these secondaries can be accessed via hint-based statement routing; the others must be
accessed via direct connection.

SAP HANA Multitarget System Replication

Comment option for takeover and secondary time travel (New)

You can now use the --comment option to add a reason for the takeover or for secondary time travel. This
comment is displayed in the M_SYSTEM_REPLICATION_TAKEOVER_HISTORY monitoring view in the
COMMENTS column.

Perform a Takeover with hdbnsutil

2.4.4 SAP HANA Database Backup and Recovery (New and


Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA backup and recovery.

Data Snapshots (Changed)

SAP HANA data snapshots now support multiple tenant databases in one SAP HANA system.

To create a data snapshot of an SAP HANA database system with one or more tenant databases, you use SQL
through the system database.

Using SAP HANA cockpit and storage system tools, you can use a data snapshot to recover an SAP HANA
system with all its tenant databases.

After you have successfully recovered the system database from a data snapshot, you need to recover each
tenant databases separately from the same data snapshot.

Recover SAP HANA From a Data Snapshot

Backup and Recovery Trace Files (New)

The trace files for backup and recovery, backup.log and backint.log, can now be truncated automatically. This
prevents their size from increasing excessively. In previous SAP HANA releases, it was necessary to delete the
files manually if they were no longer needed.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 51
backup.log and backint.log can grow as new data is written. If the trace files become very large, it can take time
to load and transfer them. However, their increased size does not impact database performance.

 Note

Automatic truncation of backup.log and backint.log is only supported by SAP HANA cockpit.

Diagnosis Files for Backup and Recovery

Additional Option to Back up and Restore SSFS (New)

There is a new SQL statement as an alternative method to back up the SSFS: BACKUP ENCRYPTION ROOT
KEYS

To restore an SSFS, you can use: RECOVER ENCRYPTION ROOT KEYS

BACKUP ENCRYPTION ROOT KEYS and RECOVER ENCRYPTION ROOT KEYS are executed through the system
database.

To backup and restore the SSFS, you require the system privileges DATABASE ADMIN for tenant databases,
and BACKUP OPERATOR or BACKUP ADMIN for a system database.

 Note

SSFS backup is not recorded in the backup catalog, and is not managed by backup lifecycle management.

System Privileges (New)

There are new fine-grained privileges that can be assigned for specific database administration tasks as
alternatives for the existing system privilege DATABASE ADMIN.

New System Privilege... Use to...

DATABASE BACKUP OPERATOR Using either SAP HANA cockpit or SQL:

● Back up a tenant database through the system data­


base.
● Schedule a data backup of a tenant database.

DATABASE BACKUP ADMIN Using either SAP HANA cockpit or SQL:

● Back up a tenant database through the system data­


base.
● Schedule a data backup of a tenant database.
● Perform housekeeping operations on backups.
● Change the backup configuration settings.

What's New in the SAP HANA Platform 2.0


52 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
New System Privilege... Use to...

DATABASE RECOVERY OPERATOR Using either SAP HANA cockpit or SQL:

Recover a tenant database through the system database.

Authorizations Needed for Backup and Recovery

2.4.5 SAP HANA Smart Data Access (New and Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA smart data access.

Customize Remote Source Properties (Changed)

You can customize properties, capabilities, functions, and data types on remote sources to address differing
behaviors between SAP HANA and remote sources. Previously, customizations were stored in the
properties_<adapter_name>.ini file. Now, these values are stored in the SAP HANA database.

Customizing the Behavior of a Remote Source

Create and Drop Remote Virtual Tables (Changed)

You can create a table on the remote source and a corresponding virtual table in the local source using a single
SQL statement. The remote table no longer needs to exist first. Similarly, you can also drop the table on the
remote source when dropping the local virtual table.

Create a Virtual Table

Connecting to a Remote Source As a Restricted User (New)

You can configure the restricted user in a SAP HANA remote source to support execution of binary transfer
related procedures.

Connecting to a Remote Source As a Restricted User

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 53
2.4.6 SAP HANA Native Storage Extension (New)

SAP HANA Platform 2.0 SPS 04 introduces native storage extension, a new feature that provides a general-
purpose, built-in warm data store in SAP HANA to manage less-frequently accessed data without fully loading
it into memory.

As data grows, unbounded, the demands and complexities of enterprise information management systems
require more storage and processing power to scale up. But limited IT budgets mean businesses must devise a
data management strategy that both satisfies user requirements for data accessibility and performance, and
observes cost constraints.

The value of data tends to change over time. Aged data becomes less interesting and is less frequently
accessed, and the largest percentage of active reporting and analytics takes place against the most current
operational data available. This makes managing and storing older data in a cost-effective manner key to
decoupling data growth from expensive hardware growth.

A native SAP HANA feature, native storage extension is a "warm" data solution that provides improved cost-to-
performance ratio, while complementing other warm data tiering solutions such as SAP HANA Extension Node
and SAP HANA dynamic tiering.

Multi-Temperature Data Management in SAP HANA (New)

Hot data Data tiering ensures that your mission-critical data — classified by SAP as "hot" data — is located
on the highest performance (and highest TCO) storage, the SAP HANA in-memory database. Hot
data is used to store mission-critical data for real-time processing and analytics. It is retained
continuously in SAP HANA memory for fast performance.

Cold Rarely accessed or less active "cold" data can be managed separately from the SAP HANA
data database and relegated to slower and less expensive disk, or Hadoop or cloud storage media. Cold
data is used to store largely read-only data, with very infrequent access requirements. You can
access cold data from SAP HANA using SAP HANA's data federation capabilities.

Warm Between hot and cold is "warm" data — which is less frequently accessed than hot data and has
data relaxed performance constraints. Warm data need not reside continuously in SAP HANA memory,
but is still managed as a unified part of the SAP HANA database — transactionally consistent with
hot data, and participating in SAP HANA backup and system replication operations, and is stored in
lower cost disk-backed columnar stores within SAP HANA. Warm data is primarily used to store
mostly read-only data that need not be accessed frequently.

As an SAP HANA feature, native storage extension offers the benefit of supporting any SAP HANA application.

SAP HANA Native Storage Extension.

What's New in the SAP HANA Platform 2.0


54 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
2.4.7 SAP HANA Deployment Infrastructure Administration
(New and Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA Deployment
Infrastructure (HDI).

For SAP HANA Platform 2.0 SPS 04, SAP HDI supports the development and deployment of applications to the
SAP HANA extended application services (XS) advanced model platform. This section contains details of
changes and additions to the following tools and features provided to help with the administration of HDI:

 Tip

For more information about SAP HDI, see The SAP HANA Deployment Infrastructure (HDI) Reference in
Related Information below.

SAP HANA Deployment Infrastructure (New and Changed)

● Updates to procedures in the SAP HDI API for HDI container administration and management (New and
changed):
○ _SYS_DI.DROP_CONTAINER (changed)
○ _SYS_DI.EXPORT_CONTAINER_FOR_COPY (changed)
○ _SYS_DI.EXPORT_CONTAINER_FOR_SUPPORT (changed)
○ _SYS_DI.IMPORT_CONTAINER_FOR_COPY (changed)
○ _SYS_DI.IMPORT_CONTAINER_FOR_SUPPORT (changed)
○ <container>#DI.EXPORT_CONTAINER_FOR_COPY (new)
○ <container>#DI.IMPORT_CONTAINER_FOR_COPY (new)
○ <container>#DI.MAKE (changed)
○ <container>#DI.MAKE_ASYNC (changed)
● Update to the SAP HDI administration parameters to configure the import and export of tables and validate
virtual tables (New):
○ make.validate_virtual_tables (new)
○ enable_drop_enforcer (new)
○ export_container_use_binary_export (new)
○ import_container_use_loopback_remote_source (new)
○ validate_virtual_tables (new)
● Extended support for existing XS advanced design-time artifacts and their associated plug-ins (Changed)
● Support for build plug-in types in XS advanced (New):
○ Migration table (.hdbmigrationtable)
Transforms a design-time migration table into a table database object
○ Application time-period table (.hdbapplicationtime)
Transforms a design-time application time-period table into a database table object with application-
time period

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 55
● Updates to the HDI clients for the Java and JavaScript run-time environments in XS advanced (Changed):

 Tip

For more details, see the CHANGELOG and README files included in the corresponding package.

○ @sap/hdi
A Node.js-based client library for SAP HDI
○ sap-java-hdi
A Java-based client library for SAP HDI
● Updates to the HDI deployment tools for XS advanced (Changed):

 Tip

For more details, see the CHANGELOG and README files included in the corresponding package.

○ @sap/hdi-deploy
The Node.js based application is based on HDI's SQL interface and enables the deployment of content
to SAP HDI containers
○ @sap/hdi-dynamic-deploy
A Node.js-based HTTP server for the deployment of database content to dynamically created SAP HDI
containers

Administrator Documentation (New and Changed)

The following additions and changes have been made to the documentation provided for the administration
and maintenance of SAP HDI:

● SAP HANA Administration Guide (Changed)


Includes updates and improvements to the following high-level areas related to SAP HDI:
○ The SAP HANA Deployment Infrastructure Administration section
● SAP HANA Deployment Infrastructure (HDI) Reference (New)
This new guide describes the tasks required to set up, maintain, grant access to, and use the SAP HANA
Deployment Infrastructure (HDI), for example, for content development. It also describes the roles
required to provide access to the HDI at the various levels and explains how the roles fit together to provide
a secure deployment infrastructure. For more information, see SAP HANA Deployment Infrastructure (HDI)
Reference in Related Information below.

Related Information

SAP HANA Deployment Infrastructure (HDI) Reference


SAP HANA Deployment Infrastructure Development (New and Changed) [page 60]

What's New in the SAP HANA Platform 2.0


56 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
2.4.8 SAP HANA Application Run-Time Services (New and
Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the application run-time services in
SAP HANA.

The following changes and additions are included in SAP HANA 2.0 SPS 04 to enable the management of the
XS advanced run-time component:

● Included support for Java 11 applications (New)


● Included support for Node.js 10 applications (New)
● Included support for Open Service Broker API 2.12 (New)
● Improved staging performance (Changed)
● Improved service start-up performance (Changed)
● Introduced additional platform role collections that enable read-only access to the XS advanced controller
API and resources for platform administration and audits (New)

 Note

For more information about security-related changes and additions, see SAP HANA Security Guide in
Related Information below.

● The XS advanced command-line interface (CLI) now provides support for the following components and
actions (New and changed):
○ Open application URLs directly from the command-line console with the new XS CLI command xs
open (New)
○ Display the application run time that an application is using with the (improved) commands xs
runtime and xs app (Changed)
● The XSA command-line interface (CLI) now provides support for the following components and actions:
○ Back up and recover individual file-system service instances with the improved command XSA
backup-fss (Changed)
○ Ensure the connectivity of all XS advanced technical-database users with the XSA command unlock-
technical-users (New)
○ Renew the password of all technical-database users required by XS advanced system services with the
XSA command renew-passwords-of-technical-users (New)
● Introduced configurable parameters that control the behavior of the Job Scheduler service. For more
information about the parameters, see Scheduling Jobs in XS Advanced in the SAP HANA Administration
Guide (Changed).

The following changes and additions to the XS advanced run-time component were first made available in SAP
HANA 2.0 extended application services, advanced model SPS 03 feature revision 1, which is included in SAP
HANA 2.0 SPS 04:

 Tip

For more information about the XS advanced SPS 03 feature revision 1, see SAP Note 2691905 in
Related Information below.

● Support authentication methods such as X.509 client certificate authentication and SPNEGO
● Support the installation of XS advanced into a tenant database

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 57
 Note

Requires at least SAP HANA 2.0 SPS02 rev 24.07, SAP HANA 2.0 SPS03 rev 34.

● Send applications logs to external syslog servers


● Enable inspection of the contents of the XS advanced blob store
● Support http-based application health checks
● Enhanced alerts concerning application crashes
● Support PSE files when uploading certificates by means of the command "xs set-certificate"
● Support the changing of passwords for XS advanced platform users during login, for example, with the xs
cli using the command "xs login"
● Improved updates to environment variable groups by means of the xs cli commands "xs update-
running-environment-variable-group" and "xs update-staging-environment-variable-
group"
● Display more information about services and service keys when using the "xs system-info" command
● Enable the creation of XS advanced SAP HANA users by means of the the xs cli command "xs create-
user"
● Support symbolic links when uploading applications to the XS Controller
● Support XS advanced running in an IPv6 environment
● Improved performance when fetching application logs
● Improved performance when stopping applications during shutdown of the XS advanced execution agent
● It is possible to assign XS Controller roles (for example, “space developer”) to SAML IdP users with the XS
CLI commands "xs set-org-role" and "xs set-space-role" and specifying the corresponding IdP
with the option "--origin"
● Adapt service instances created by additionally installed service brokers (for example, Job Scheduler
services) automatically after changing the XS advanced default domain

Administrator Documentation (New and Changed)

The following additions and changes have been made to the documentation provided for the administration
and maintenance of the XS advanced platform:

● SAP HANA Administration Guide (Changed)


Includes updates and improvements to the following high-level areas related to SAP HANA XS advanced:
○ The Maintaining the SAP HANA XS Advanced Model Run Time section (New and changed)
● SAP HANA Deployment Infrastructure (HDI) Reference (New)
This new guide describes the tasks required to set up, maintain, grant access to, and use the SAP HANA
Deployment Infrastructure (HDI), for example, for content development in the context of XS advanced. It
also describes the things to take into consideration when setting up a secure deployment infrastructure for
XS advanced. For more information, see Related Information below.
● SAP HANA Security Guide (New and Changed)
Includes updates and improvements (amongst others) to the following high-level areas related to SAP
HANA XS advanced:
○ The Predefined XS Advanced Users section (Changed)
○ The Scopes, Attributes, and Role Collections section (Changed)

What's New in the SAP HANA Platform 2.0


58 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
○ The User Groups for XS Advanced Technical Users section (New and changed)
● SAP HANA Deployment Infrastructure (HDI) Reference (New)
This new guide describes the tasks required to set up, maintain, grant access to, and use the SAP HANA
Deployment Infrastructure (HDI), for example, for content development and deployment. It also describes
the roles required to provide access to the HDI at the various levels and explains how the roles fit together
to provide a secure deployment infrastructure. For more information, see Related Information below.

Related Information

SAP HANA XS Advanced Development (New and Changed) [page 62]


SAP HANA Deployment Infrastructure (HDI) Reference
SAP HANA Security Guide
SAP Note 2691905

2.5 Development

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for development.

SAP Web IDE for SAP HANA (New and Changed) [page 60]
SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP Web IDE and integrated
SAP HANA tools.

SAP HANA Deployment Infrastructure Development (New and Changed) [page 60]
SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA Deployment
Infrastructure (HDI).

SAP HANA XS Advanced Development (New and Changed) [page 62]


For SAP HANA Platform 2.0 SPS 04, SAP HANA supports development and deployment of SAP HANA
extended application services (XS) advanced model applications.

Text Search (New and Changed) [page 65]


SAP HANA Platform 2.0 SPS 04 introduces new and changed features for text search.

Hierarchy Functions (New and Changed) [page 68]


SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the hierarchy functions:

SAP HANA Intercative Education (SHINE) (New and Changed) [page 69]
SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA Interactive
Education (SHINE)

SAP HANA External Machine Learning Library (New and Changed) [page 70]
SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the External Machine
Learning Library (EML).

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 59
2.5.1 SAP Web IDE for SAP HANA (New and Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP Web IDE and integrated SAP
HANA tools.

SAP Web IDE for SAP HANA is a browser-based integrated development environment (IDE) for the
development of SAP HANA-based applications comprised of web-based or mobile UIs, business logic, and
extensive SAP HANA data models. SAP Web IDE works in conjunction with the SAP HANA deployment
infrastructure (HDI), the Application Lifecycle Management tools (ALM), the XS Advanced runtime platform,
and various SAP HANA tools.

What's New in SAP Web IDE for SAP HANA

2.5.2 SAP HANA Deployment Infrastructure Development


(New and Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA Deployment
Infrastructure (HDI).

For SAP HANA Platform 2.0 SPS 04, SAP HDI supports the development and deployment of applications to the
SAP HANA extended application services (XS) advanced model platform. This section contains details of
changes and additions to the following tools and features provided to help with the administration of HDI:

SAP HANA Deployment Infrastructure (New and Changed)

● Extended support for existing XS advanced design-time artifacts and their associated plug-ins (Changed)
● Provided support for additional build plug-in types in XS advanced (New):
○ Migration table (.hdbmigrationtable)
Transforms a design-time migration table into a table database object
○ Application time-period table (.hdbapplicationtime)
Transforms a design-time application time-period table into a database table object with application-
time period
● Provided updates to the HDI clients for the Java and JavaScript run-time environments in XS advanced
(Changed):

 Tip

For more details, see the CHANGELOG and README files included in the corresponding package.

○ @sap/hdi
A Node.js-based client library for SAP HDI
○ sap-java-hdi
A Java-based client library for SAP HDI

What's New in the SAP HANA Platform 2.0


60 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
● Updates to the HDI deployment tools for XS advanced (Changed):

 Tip

For more details, see the CHANGELOG and README files included in the corresponding package.

○ @sap/hdi-deploy
The Node.js based application is based on HDI's SQL interface and enables the deployment of content
to SAP HDI containers
○ @sap/hdi-dynamic-deploy
A Node.js-based HTTP server for the deployment of database content to dynamically created SAP HDI
containers

 Note

For more information about SAP HDI, see The SAP HANA Deployment Infrastructure (HDI) Reference in
Related Information below.

Developer Documentation (New and Changed)

The following additions and changes have been made to the documentation provided for HDI content
developers:

● SAP HANA Developer Information Map (Changed)


○ Extended and improved links, descriptions, and visual aids to help readers find information about SAP
HDI quickly and easily
○ Added graphical maps and interactive tables to help readers navigate to the desired information more
easily and quickly
● SAP HANA Deployment Infrastructure (HDI) Reference (New)
This new guide describes the tasks required to set up, maintain, grant access to, and use the SAP HANA
Deployment Infrastructure (HDI). It also describes how to support developers who want to create content
for deployment to HDI containers, for example, using the HDI SQL API or with the tools provided by the XS
advanced model platform. For more information, see Related Information below.

Related Information

SAP HANA Deployment Infrastructure (HDI) Reference


SAP HANA Deployment Infrastructure Administration (New and Changed) [page 55]

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 61
2.5.3 SAP HANA XS Advanced Development (New and
Changed)

For SAP HANA Platform 2.0 SPS 04, SAP HANA supports development and deployment of SAP HANA
extended application services (XS) advanced model applications.

This section contains details of changes and additions to the following development-related tools and features
in the XS advanced platform:

Application Run-time Environment (New and Changed)

● JavaScript Run-time Environment (New and changed)


○ Included support for Node.js 10.x applications (New)
○ Included updates to packages available on the SAP NPM Registry at https://npm.sap.com
(Changed)

 Tip

For more details, see the CHANGELOG and README files included in the corresponding package.

● Java Run-time Environment (Changed)


○ Included support for Java 11 applications (New)
● Python Run-time Environment (Changed)
○ Provided an updated version of the Python build pack for XS advanced (Changed)
○ XS_PYTHON contains new versions of the libraries provided for use in the Python run-time
environment in XS advanced (Changed)

Deployment Service (New and Changed)

● Service keys and service tags (Changed)


○ It is also now possible to inject service keys into an application environment (New)
● MTA module- and resource-type parameters and attributes (New and changed):
○ routes (New)
Replaces the following attributes in Cloud Foundry domains(s), host(s), no-hostname
○ restart-on-env-change (New)
Restart an XS advanced application on update if the environment has changed in one of the
environment variables
○ health-check-http-endpoint (New)
Define the URL to use to check an application's availability
○ deployed-after (New)
Define the point in the deployment sequence when the specified modules must be deployed
● Provided support for the MTA module parameter enable-parallel-deployments (New)
● Provided support for additional installation and deployment options in the XS command-line interface
(New and changed)

What's New in the SAP HANA Platform 2.0


62 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
 Note

For more information see MTA Deployment Descriptor Syntax in the SAP HANA Developer Guide for XS
Advanced.

SAP HANA Deployment Infrastructure (New and Changed)

● Extended support for existing XS advanced design-time artifacts and their associated build plug-ins
(Changed)
● Provided support for additional build plug-in types in XS advanced (New):
○ Migration table (.hdbmigrationtable) (New)
Transforms a design-time migration table into a migration table database object
○ Application time-period table (.hdbapplicationtime) (New)
Transforms a design-time, application time-period table into a database table object with application-
time period
● Provided updates to the HDI clients for the Java and JavaScript run-time environments in XS advanced
(Changed):

 Tip

For more details, see the CHANGELOG and README files included in the corresponding package.

○ @sap/hdi (Changed)
A Node.js-based client library for SAP HDI
○ sap-java-hdi (Changed)
A Java-based client library for SAP HDI
● Provided updated versions of the HDI deployment tools for XS advanced (Changed):
○ @sap/hdi-deploy (Changed)
The Node.js based application which is based on HDI's SQL interface and enables the deployment of
content to SAP HDI containers
○ @sap/hdi-dynamic-deploy (Changed)
A Node.js-based HTTP server for the deployment of database content to dynamically created SAP HDI
containers

Core Data and Services (New)

● The XS advanced platform now supports Core Data and Services (CD & S), which are used in the
Application Programming Model for SAP Cloud Platform (New)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 63
XS Advanced Services (New and Changed)

The following new or updated services are available:

● XS advanced now provides support for the Open Service Broker API 2.12 (New)

XS Command Line Interface (New)

● Open application URLs directly from the command-line console with the new XS CLI command xs open
(New)
● Display information about the application run time that an application is using with the (improved)
commands xs runtime and xs app (Changed)
● Display more information about services and service keys when using the "xs system-info" command
(Changed)
● Improve and expand the options for commands used during the administration and maintenance of the XS
advanced platform, for example, user (and user role) and certificate management, environment variables,
and login operations (New and changed)

 Note

For more information about the updates to XS CLI for SAP HANA 2.0 SPS 04, see SAP HANA
Application Run-Time Services (New and Changed) in Related Information below.

Developer Documentation (New and Changed)

The following additions and changes have been made to the documentation provided for XS advanced
application developers:

● SAP HANA Developer Information Map (New and Changed)


○ Extended and improved all existing areas with more links, descriptions, and visual aids (Changed)
○ Added graphical maps and interactive tables in all sections to help locate (and navigate to) the desired
information target more easily and quickly (Changed)
○ Added a new Analytic Modeling topic to the Information by Task section (New)
● SAP HANA Developer Guide for XS Advanced (Changed)
Includes updates and improvements to the following high-level areas:
○ The tutorials in the Getting Started section (Changed)
○ The Deployment Descriptors section (Changed)
○ The Defining the Data Model section (Changed)
○ The Writing Application Code section (Changed)
○ The Services section (Changed)
○ The Security section (Changed)
○ The Application Router section (Changed)
○ The HDI Plug-ins Reference section (Changed)

What's New in the SAP HANA Platform 2.0


64 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
○ The XS Command-Line Reference section (Changed)
● XS Command-Line Reference (New)
This new guide provides a comprehensive list of the commands that are available to help maintain the SAP
HANA XS advanced platform with the xs command-line interface. The information provided includes a
description of how to use the commands and uses examples to show the required syntax. The xs CLI is
intended to help you maintain not only the applications that are deployed to the XS advanced run-time
environment but also the run-time environment itself, for example, the services, domains and certificates,
organizations and spaces, build packs, as well as the users who need access to it.
● SAP HANA Deployment Infrastructure (HDI) Reference (New)
This new guide describes the tasks required to set up, maintain, grant access to, and use the SAP HANA
Deployment Infrastructure (HDI), for example, for content development. It also describes the roles
required to provide access to the HDI at the various levels and explains how the roles fit together to provide
a secure deployment infrastructure. For more information, see Related Information below.
● SAP HANA Security Guide (New and changed)
Includes updates and improvements (amongst others) to the following high-level areas related to SAP
HANA XS advanced:
○ The Predefined XS Advanced Users section (Changed)
○ The Scopes, Attributes, and Role Collections section (Changed)
○ The User Groups for XS Advanced Technical Users section (Changed)

Related Information

SAP HANA Application Run-Time Services (New and Changed) [page 57]
SAP HANA Deployment Infrastructure (HDI) Reference
The SAP HANA XS Command-Line Interface Reference

2.5.4 Text Search (New and Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for text search.

Built-In Procedure sys.esh_search() and CDS (New and Changed)

Note the following new features for built-in procedure sys.esh_search():

● It is now possible to get the API version by calling esh_search() instead of selecting the version number
from SYS.M_FEATURES.
API Version Information
● Columns can be defined as filter attributes. This annotation is mainly used by the Enterprise Search user
interface. It is also possible to request columns with @EnterpriseSearch.filteringAttribute
annotation as facet columns.
CDS: Annotation @EnterpriseSearch
sys.esh_config(): Property Annotations

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 65
● When a search configuration is validated it is now possible to check if a fulltext index exists for a column.
CDS: Annotation @Search
sys.esh_config(): Property Annotations
● Whyfound information is not returned anymore for filter conditions.
Separation of User Input and Other Filter Conditions
● All columns with @UI annotations are returned as default response columns if no response columns are
defined using the $select parameter.
● Added support for VARBINARY columns in query language expressions, to filter search results by, for
example, GUID values ({{id:EQ:FA163E38C6481EE8AADE50EE79D086E4}},
{{id:NE:fa163e38c6481EE8aade50ee79d086e4}}.
Supported SQL Types
● You can embed subobjects in other subobjects. It is possible to return these more complex data structures
in the search response. The $metadata output also contains the definition of the subobject structures.
● Added support for ABAP NUMC columns.
○ Interval Facets for NUMC Columns
If a facet is requested for a NUMC column, the facet is now returned as an interval facet, similar to facets
for integer columns.
CDS: Annotation @EnterpriseSearchHana
sys.esh_config(): Property Annotations
○ Fuzzy Score Functions for NUMC Columns
ABAP NUMC columns can now be treated as integer numbers and score functions (linear, gaussian,
logarithmic) can be used for these columns.
The annotation @EnterpriseSearchHana.numc is used to identify (N)VARCHAR columns that
contain numeric string values.
If no score functions are defined for a NUMC column, search in this column is done similar to an
alphanumeric search, but with numeric characters only.
Leading zeros are ignored when comparing a search term with the contents of a NUMC column, and the
calculation of fuzzy scores also ignores the leading zeros.
Alphanumeric Search
CDS: Annotation @EnterpriseSearchHana
sys.esh_config(): Property Annotations
Facets for Numeric and NUMC Columns
● Added support for annotations needed by the enterprise search UI (@UI and others).
CDS: Annotation @UI
● Presentation mode annotations are deprecated because of new @UI annotations:
If no $select parameter is given, all columns with @UI annotations are now returned as default response
columns. This is identical to the former annotation @EnterpriseSearch.presentationMode.
CDS: Annotation @UI
sys.esh_config(): Property Annotations
Limitations for @UI annotations (see $select option): System Query Options
● Pass-Through all annotations (@UI and others)
It is now possible to add annoations to search configurations, that are not used by sys.esh_search().
These annotations are only passed-through to the $metadata call and do not have any other impact on
the search results. These annotations are needed to define the layout of search results in the search UI and
in other frontend applications.
CDS: Example: Using Annotations not Related to Search
sys.esh_config(): Entity Type Annotations, Example: Using Annotations not Related to Search

What's New in the SAP HANA Platform 2.0


66 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
$metadata: Metadata for Annotations not Related to Search
● Optimized snippet information:
In case the @EnterpriseSearch.snippets.maximumLength annotation is used to define the
maximum length of a snippet, the snippet information now is optimized. The snippet is as long as possible
(within the given maximum length) and contains the best matching tokens. These are calculated based on
the score.
● Hide views from default scope of a federated search:
Use the new annotation @EnterpriseSearch.hidden: true to exclude a search view from the default
search scope.
CDS: Annotation @EnterpriseSearch
sys.esh_config(): Entity Type Annotations
● The getSuggestion() function can now optionally count the number of anchor objects for each
suggestion value. The getSuggestion() parameter count has to be set to true to enable this feature.
Method 'GetSuggestion' - Suggestion Call
● Search for NULL values.
Example: query='x y z AND col1:IS:null'
Supported Features of the Query Language
● Added support of SQL type BOOLEAN. BOOLEAN columns can be used as response columns and as facet
columns. The search query language can be used to search or filter for boolean columns.
Examples: query='x y z false', query='x y z isvalid:EQ:true'
Supported Features of the Query Language
● Added support of SQL views with parameters. SQL views with parameters can be used as searchable
database objects with parameters (in addition to table functions and join views with constraints).
Parameter values can be passed to sys.esh_search() at runtime (in addition to the already existing
parameter definition in the search configuration).
Example: call esh_search('[ "/
$all(search_date=''20180108'',search_language=''de'')?$count=true&
$top=10&filter=..." ]', ?);
All session variables are now supported as default values for parameters (in addition to the already existing
predefined session variable names).
Entity Type Annotations for Table Functions and SQL Views with Parameters
● Multilingual UI texts (e.g. labels) can be stored in the search configuration and are returned in the user's
language as part of the metadata output.
CDS: Defining Multilingual Text
sys.esh_config(): Defining Multilingual Text
$metadata: Multilingual UI Texts
● Support of search in classification data (key-value pairs).
Classifications are used as a generic way to store a large number of user-defined key-value pairs in a
search model. A key may be any string like 'color', 'weight', 'length', and so on and values may be of
different types like strings, numbers or intervals.
Classification Search with Built-In Procedure sys.esh_search()
CDS: CDS Annotations for Classification Search
sys.esh_config(): @Semantics.interval Entity Type Annotations
sys.esh_config(): @GenericPersistency Property Annotations
● It is now possible to define nested subobject structures. Subobjects may now contain other subobjects.
Subobject structures are now also visible in metadata, search results and search requests.
CDS: Annotation @EnterpriseSearchHana, Example: Defining Subobjects Within Subobjects
sys.esh_config(): Subobjects Within Other Subobjects

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 67
sys.esh_search(): Subobjects, OData Query Options Supported by Federated Search, Subobjects and
Column Identifiers in the Query Language, Annotations in the Search Response
The annotation @EnterpriseSearchHana.identifier can be used to create columns with the same
name in different subobjects.
CDS: Annotation @EnterpriseSearchHana
sys.esh_config(): Property Annotations

Fuzzy Search (New)

Fuzzy search supports the following new features:

● The new fuzzy search option fuzzySubstringMatch offers and controls a post processing of the score
calculation. fuzzySubstringMatch is available for most similarCalculationModes. Possible values
are fuzzySubstringMatch=on/off/beginning/anywhere.
Option fuzzySubstringMatch
● A new fuzzy search option minSearchLengthis available for
similarCalculationMode=searchCompare and similarCalculationMode=flexible. The option
minSearchLength allows to set a threshold for the minimal length of a string (or token for text) for
searching.
Option similarCalculationMode
● For the fuzzy search parameter similarCalculationMode the new mode
'similarCalculationMode=flexible' is available. The new mode allows to parametrize how wrong
or additional characters are influencing the score. With it come the following new configuration
parameters: lengthTolerance, errorDevaluate, fuzzySubstringMatch.
Option similarCalculationMode flexible

2.5.5 Hierarchy Functions (New and Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the hierarchy functions:

Hierarchy Generation

HIERARCHY_ROOT_RANK Attribute (New)


The HIERARCHY_ROOT_RANK hierarchy attribute was added. HIERARCHY_ROOT_RANK provides the rank of
the root node of the tree in which the node is located.

Basic Attributes

Exclude Interval Boundaries in HIERARCHY_TEMPORAL (New)


The HIERARCHY_TEMPORAL function offers a new option for <hierarchy_genfunc_validity_spec> to
exclude interval boundaries.

HIERARCHY_TEMPORAL Generator Function

What's New in the SAP HANA Platform 2.0


68 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Hierarchy Navigation

Column HIERARCHY_AGGREGATE_TYPE (New)

The HIERARCHY_DESCENDANTS_AGGREGATE function has the new column


HIERARCHY_AGGREGATE_TYPE. The HIERARCHY_AGGREGATE_TYPE value qualifies a row either as a normal
node (0), as a subtotal aggregate (1), as a balance aggregate (2), as a not matched aggregate (3), or as a total
aggregate (4).

HIERARCHY_DESCENDANTS_AGGREGATE Navigation Function

Expressions in Hierarchy Aggregation Functions Measure Arguments (New)

Expressions are supported for hierarchy aggregation functions measure arguments.

HIERARCHY_DESCENDANTS_AGGREGATE Navigation Function

HIERARCHY_ANCESTORS_AGGREGATE Navigation Function

2.5.6 SAP HANA Intercative Education (SHINE) (New and


Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA Interactive Education
(SHINE)

Secure Store (Changed)

A new sample has been added to showcase the usage of secure store procedures from Node.js.

OData v4 support for XS Advanced Java (Changed)

The Java implementation in SHINE based on OData v4 support for XS Advanced Java application has been
removed. The recommended way to build Java applications that use OData v4 is now based on the SAP Cloud
Application Programming Model.

Fiori Launchpad (Changed)

Fiori Launchpad has been enhanced to include a Content Security Policy (CSP) header.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 69
Tests (New)

Tests have been added to showcase how to write tests for tables, views, functions and procedures.

2.5.7 SAP HANA External Machine Learning Library (New and


Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the External Machine Learning
Library (EML).

PREDICT and PREDICTM (Changed)

New versions of the EML PREDICT and PREDICTM functions, named PREDICT_ANY and PREDICTM_ANY, can
be called through the ANY interface, which allows input tables to be passed with different column structures.
When the SAP HANA Application Function Library (AFL) is installed, the new PREDICT_ANY and
PREDICTM_ANY functions are preinstalled as stored procedures in the _SYS_AFL schema. Wrapper
procedures therefore do not need to be generated to call the new functions. The names of the preinstalled ANY
procedures reflect the number of input tables the procedures take, for example, EML_PREDICT,
EML_PREDICT_2, EML_PREDICT_3, and EML_PREDICT_4.

Calling Models with PREDICT

CLOUDHOOK (New)

CLOUDHOOK is an EML function for invoking generic external management functionality using SQLScript. It
allows external services such as SAP Data Hub or external cloud providers to be integrated in EML This is done
through an intermediate CloudHook server, which is positioned between EML and the external services. The
management functionality itself is not directly embedded in EML.

CloudHook

Operating System and Component Versions (Changed)

The minimum versions of SUSE Linux Enterprise Server (SLES) and Red Hat Enterprise Linux (RHEL) that are
supported in EML are as follows:

● SLES 12 SP 2
● RHEL 7.4

The following component versions now apply:

What's New in the SAP HANA Platform 2.0


70 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
● The recommended TensorFlow version is 1.13.1.
● The recommended TensorFlow Serving version is 1.13.0. The minimum version for using dynamic model
management is 1.7, and the minimum version for using transport layer security is 1.11.
● The gRPC version now used in EML is 1.14.2.

Components

2.6 Reference

SAP HANA Platform 2.0 SPS 04 introduces new and changed features as described in the reference
documentation.

SAP HANA SQL Reference (New and Changed) [page 72]


SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the SAP HANA SQL and
System Views Reference

SAP HANA Client Interfaces (New and Changed) [page 96]


SAP HANA Platform 2.0 SPS 04 introduces new and changed features, as documented in the SAP
HANA Client Interface Programming Reference and the SAP HANA Client Installation and Update
Guide.

SAP HANA SQL Command Network Protocol Reference (Removed) [page 104]
SAP HANA Platform 2.0 SPS 04 does not include the SAP HANA SQL Command Network Protocol
Reference.

SAP HANA Spatial (New and Changed) [page 105]


SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA Spatial.

SAP HANA Graph (New and Changed) [page 108]


SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA Graph.

SAP HANA Predictive Analysis Library (New and Changed) [page 110]
SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the Predictive Analysis
Library (PAL).

SAP HANA SQLScript Reference (New and Changed) [page 113]


SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the SAP HANA SQLScript
Reference.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 71
2.6.1 SAP HANA SQL Reference (New and Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the SAP HANA SQL and System
Views Reference

SQL Statements (New and Changed)

ALTER INDEX Supported INVERTED index types have been extended to include HASH and VALUE.
Statement (changed) ALTER INDEX Statement (Data Definition)

ALTER SYSTEM {ADD Adds or removes filters that determine whether the abstract SQL plan is captured for
| REMOVE} a query. ALTER SYSTEM {ADD | REMOVE} ABSTRACT SQL PLAN FILTER (System
ABSTRACT SQL Management)
PLAN FILTER
Statement (new)

ALTER LIBRARY Alters a user-defined SQLScript library. ALTER LIBRARY Statement (SQLScript)
Statement (new)

ALTER PSE Two new options, <add_purpose_object_clause> and


Statement (changed) <drop_purpose_object_clause>, allow you to add and remove providers and
hosts from an existing JWT, SAML, and SSL purpose assigned to a PSE. ALTER PSE
Statement (System Management)

ALTER REMOTE The new <properties_clause> option allows you to set and unset the properties of
SOURCE Statement a remote source. ALTER REMOTE SOURCE Statement (Access Control)
(changed)

ALTER SYSTEM A new option, <statement_hash>, allows you to add or remove statement hints for a
{ADD|REMOVE} specific statement hash. ALTER SYSTEM {ADD | REMOVE} STATEMENT HINT
STATEMENT HINT Statement (System Management)
Statement (changed)

ALTER SYSTEM The new <path> option allows you to specify a location for the new data volume.
ALTER DATAVOLUME
ADD PARTITION The new <site> option allows you to add the data volume partition to a specific
Statement (changed) secondary site.

ALTER SYSTEM ALTER DATAVOLUME ADD PARTITION Statement (System


Management)

ALTER SYSTEM The new <site> option allows you to drop the data volume partition from a specific
ALTER DATAVOLUME secondary site. ALTER SYSTEM ALTER DATAVOLUME DROP PARTITION Statement
DROP PARTITION (System Management)
Statement (changed)

ALTER SYSTEM You can create a RUNTIMEDUMP file that contains a subset of sections and profiles.
CREATE ALTER SYSTEM CREATE RUNTIMEDUMP Statement (System Management)
RUNTIMEDUMP
Statement (new)

What's New in the SAP HANA Platform 2.0


72 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
ALTER SYSTEM You can create a WAITGRAPH file that contains thread information about deadlocks.
CREATE WAITGRAPH ALTER SYSTEM CREATE WAITGRAPH Statement (System Management)
Statement (new)

ALTER SYSTEM A new option, <statement_hash>, allows you to enable or disable statement hints
{ENABLE|DISABLE} for a specific statement hash. ALTER SYSTEM {ENABLE | DISABLE} STATEMENT
STATEMENT HINT HINT Statement (System Management)
Statement (changed)

ALTER SYSTEM Enables or disables a standalone SAP HANA system to serve as an SAP HANA
{ENABLE | DISABLE} System Replication (HSR) primary site. These statements are only supported in an
SYSTEM on-premise SAP HANA system. ALTER SYSTEM {ENABLE | DISABLE} SYSTEM
REPLICATION REPLICATION Statement (System Management)
Statements (new)

ALTER SYSTEM Clears audit log data by audit policy name. ALTER SYSTEM CLEAR AUDIT LOG
CLEAR AUDIT LOG Statement (System Management)
(changed)

ALTER SYSTEM The new <root_statement_hash> clause allows you to limit the performance trace
{START|STOP} to statements specified by the root statement hash. ALTER SYSTEM {START | STOP}
PERFTRACE PERFTRACE Statement (System Management)
Statement (changed)

ALTER SYSTEM The new ALTER SYSTEM {START | STOP} SQLSCRIPT statement allows you to start
{START| STOP} and stop code coverage per session for SQLScript functions and procedures. ALTER
SQLSCRIPT CODE SYSTEM {START | STOP} SQLSCRIPT CODE COVERAGE Statement (System
COVERAGE Management)
Statement (new)

ALTER SYSTEM You can now specify one or more SQL plans to perform the action on, instead of
{ENABLE|DISABLE | performing the action on all SQL plans.
REMOVE} ABSTRACT
SQL PLAN The statement now supports multiple abstract SQL plans for each SQL statement.
Statements ALTER SYSTEM {ENABLE | DISABLE | REMOVE} ABSTRACT SQL PLAN (System
(changed) Management)

ALTER SYSTEM The new ALTER SYSTEM {REGISTER | UNREGISTER} SYSTEM REPLICATION SITE
{REGISTER | statement allows you to register or unregister a system replication secondary site.
UNREGISTER} ALTER SYSTEM {REGISTER | UNREGISTER} SYSTEM REPLICATION SITE Statement
SYSTEM (System Management)
REPLICATION SITE
Statement (new)

ALTER TABLE Previously, to convert a primary key or unique constraint to index type INVERTED
Statement (changed) INDIVIDUAL, you needed to drop and recreate the index with the new type. Now, you
can convert the index directly using the new ALTER PRIMARY KEY INVERTED
INDIVIDUAL and ALTER CONSTRAINT <constraint> UNIQUE INVERTED
INDIVIDUAL syntax.

The ONLINE [PREFERRED] options allow operations to be performed without


serializing with concurrent DML operations. When an operation does not support the

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 73
ONLINE option, the PERFERRED option detects non-support, displays a warning
message, and then executes the operation in table x-lock mode.

ALTER TABLE Statement (Data Definition)

ALTER VIEW A new clause, WITH [NO] DDL ONLY, lets you control whether users can users can
Statement (changed) query the view or modify the underlying table.

A new clause, <alter_index_clause> allows you to create and modify an index on


a dynamic result cache.

A new clause <alter_view_access_modes> lets you set the access mode of a view
without recompiling the view query or propagating recompilations of dependent view.

ALTER VIEW Statement (Data Definition)

CALL Statement You can now call a SQLScript library member procedure directly using the CALL
(changed) statement. CALL Statement (Procedural)

CREATE/ALTER/ You can now set a retention period on an audit policy. ALTER AUDIT POLICY
DROP AUDIT POLICY Statement (Access Control)
Statement (changed)
Based on a subset of the audit actions, you can create, alter, and drop audit policies
on SYSTEMDB for a specific tenant.

CREATE AUDIT POLICY Statement (Access Control)

CREATE/ALTER A new clause, <variable_cache_clause>, allows you to specify whether to cache


FUNCTION intermediate variables for a SQLScript procedure when desirable for computations in
Statement (changed) systems where storage and computation nodes are separate. CREATE FUNCTION
Statement (Procedural) ALTER FUNCTION Statement (Procedural)

CREATE/ALTER JWT You can now configure per JWT provider whether the identities check by the provider
PROVIDER Statement is case sensitive. CREATE JWT PROVIDER Statement (Access Control) ALTER JWT
(changed) PROVIDER Statement (Access Control)

CREATE/ALTER A new clause, AUTOCOMMIT DDL, specifies whether to automatically commit DDL
PROCEDURE statements in SQLScript procedures.
Statement (changed)
A new clause, <variable_cache_clause>, allows you to specify whether to cache
intermediate variables for a SQLScript procedure when desirable for computations in
systems where storage and computation nodes are separate.

Use the new AUTO keyword in a variable declaration to declare a variable without
explicitly setting its data type.

Support for the defining the table type at DDL time (<any_table_type> option) has
been added for SQLScript procedures.

SQLScript procedures now support read-only dynamic SQL calls.

SQLScript procedures now support the CONTINUE exception handler.

CREATE PROCEDURE Statement (Procedural) ALTER PROCEDURE Statement


(Procedural)

What's New in the SAP HANA Platform 2.0


74 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
CREATE/ALTER You can now configure per SAML provider whether the identities check by the
SAML PROVIDER provider is case sensitive. CREATE SAML PROVIDER Statement (Access Control)
(changed) ALTER SAML PROVIDER Statement (Access Control)

CREATE/ALTER You can now control whether a table can be moved to another location using the new
TABLE Statement [NOT] MOVABLE clause (CREATE TABLE) and SET [NOT] MOVABLE clause (ALTER
(changed) TABLE).

You can now create replicas that have a subset of the columns from the source table.

You can now create replicas that have partitions.

A new <constraint_check_time> option when creating foreign key references


allows you to specify when to check constraints.

A new NUMA preferences clause (<numa_node_preferences>) allows you to


specify NUMA node preferences at the table, column, and range partition level.

The new WITH DEFAULT FILTER option has been added to the
<with_association_definition> clause. WITH DEFAULT FILTER allows you to
set a default predicate to filter column values.

Support for the built-in HOUR function has been added when creating and altering
partitions using TIMESTAMP columns on non heterogeneous partitioned tables.

You can create heterogeneous range-hash partitioned tables.

You can assign specific locations and group options to first- and second-level
heterogeneous partitions.

Non-deterministic functions are now allowed for columns defined as GENERATED


ALWAYS.

When partitioning an existing table or converting an existing single-level range or hash


partition table, the ONLINE option prevents DML from being blocked while the DDL is
executing.

CREATE TABLE Statement (Data Definition) ALTER TABLE Statement (Data


Definition)

CREATE/ALTER VIEW The AVG aggregation type is now supported for static caches. CREATE VIEW
Statement (changed) Statement (Data Definition) ALTER VIEW Statement (Data Definition)

CREATE VIRTUAL A remote table no longer needs to exist before you can create a virtual table
TABLE Statement referencing it. You can now create a table on the remote source and a corresponding
(changed) virtual table in the local source using a single SQL statement. CREATE VIRTUAL
TABLE Statement (Data Definition)

CREATE/ALTER Two new properties, WRITE TRANSACTION LIFETIME and IDLE CURSOR LIFETIME,
WORKLOAD CLASS allow you to set the number of minutes before the connection to long-running
Statement (changed) uncommitted write transactions or long-lived cursors is terminated. CREATE
WORKLOAD CLASS Statement (Workload Management) ALTER WORKLOAD CLASS
Statement (Workload Management)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 75
CREATE/ALTER A new property, USERGROUP NAME, allows you to set a user group name for the
WORKLOAD workload mapping.
MAPPING Statement
(changed) The new properties SCHEMA NAME and OBJECT NAME allow you to regulate
application function library (AFL) and machine learning resources for workload
mapping.

A new property, XS APPLICATION USER NAME, serves as a "business user" when


connecting to SAP HANA with a database user as a technical user.

CREATE WORKLOAD MAPPING Statement (Workload Management) ALTER


WORKLOAD MAPPING Statement (Workload Management)

CREATE AUDIT There are two new backup and recovery audit actions BACKUP DATA and RECOVER
POLICY Statement DATA. CREATE AUDIT POLICY Statement (Access Control)
(changed)

CREATE SYNONYM The new OR REPLACE clause allows you to replace the current definition of a
Statement (changed) synonym. CREATE SYNONYM Statement (Data Definition)

CREATE/DROP A new ONLINE option allows you to create or drop a trigger while there are concurrent
TRIGGER Statements DML and DDL operations occurring; the operation is retried until the concurrent
(changed) operations complete.

A new OR REPLACE clause in the CREATE TRIGGER statement allows you to replace
the current definition of a trigger.

Statement-level triggers are now supported on column-store tables in the CREATE


TRIGGER statement.

CREATE TRIGGER Statement (Data Definition) DROP TRIGGER Statement (Data


Definition)

CREATE/DROP The new CREATE SCHEMA SYNONYM statement creates a synonym for an existing
SCHEMA SYNONYM schema, which can be used when executing the SET SCHEMA statement. CREATE
Statements (new) SCHEMA SYNONYM Statement (Data Definition)

The new DROP SCHEMA SYNONYM statement removes an existing schema


synonym. If you drop a schema that has a synonym referencing it, then the synonym
is also dropped. DROP SCHEMA SYNONYM Statement (Data Definition)

CREATE VIEW The new OR REPLACE clause allows you to replace the current definition of a view.
Statement (changed)
The WITH EXPRESION MACRO clause now allows you to define an expression macro
by referencing an existing expression macro in the referenced view.

The new WITH DDL ONLY clause prevents users from querying the view or modifying
the underlying table.

CREATE VIEW Statement (Data Definition)

CREATE LIBRARY You can now specify OR REPLACE when creating a user-defined SQLScript library.
Statement (changed)
You can now create SQLScript test libraries using the new SQLSCRIPT TEST language
option.

What's New in the SAP HANA Platform 2.0


76 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
CREATE LIBRARY Statement (SQLScript)

CREATE PROJECTION The new OR REPLACE clause allows you to replace the current definition of a view.
VIEW Statement
(changed) A new clause, WITH [NO] DDL ONLY, lets you control whether users can users can
query the view or modify the underlying table.

CREATE PROJECTION VIEW Statement (Data Definition)

DO BEGIN...END Use the new AUTO keyword in a variable declaration to declare a variable without
Statement (changed) explicitly setting its data type. DO BEGIN...END Statement (Procedural)

CREATE/ALTER Use the new AUTO keyword in a variable declaration to declare a variable without
FUNCTION explicitly setting its data type. CREATE FUNCTION Statement (Procedural) ALTER
Statement (changed) FUNCTION Statement (Procedural)

CREATE USERS The <authentication_options> clause is now optional when creating a new user.
Statement (changed) CREATE USER Statement (Access Control)

DROP JWT The new CASCADE option is required to remove a JWT purpose when it is referenced
PROVIDER Statement by the PSE's purpose object. DROP JWT PROVIDER Statement (Access Control)
(changed)

DROP SAML The new CASCADE option is required to remove a SAML purpose when it is
PROVIDER Statement referenced by the PSE's purpose object. DROP SAML PROVIDER Statement (Access
(changed) Control)

DROP SCHEMA The DROP SCHEMA statement now accepts schema synonyms for the
Statement (changed) <schema_name> syntax element. DROP SCHEMA Statement (Data Definition)

DROP TABLE When dropping a virtual table, you can now also drop the associated table on the
Statement (changed) remote source. DROP TABLE Statement (Data Definition)

EXPORT Statement The LOCATION column of #EXPORT_RESULT has changed from VARCHAR(32) to a
(changed) VARCHAR(75).

The new TRACE clause writes execution information to the specified trace file when
exporting data.

The STATISTICS ONLY clause has been enhanced to allow filtered export of system
statistics, user-defined statistics, or both, with or without the underlying data source.

The new HAVING and DEPENDENCY clauses allow you to export a subset of data for a
specified object type.

A new column, DATABASE_NAME, has been added to


<current_schema>.#EXPORT_RESULT. In addition, the length of the
SCHEMA_NAME and OBJECT_NAME columns has been increased.

The new PERSISTENT MEMORY clause let's you export a table's persistent memory
data.

EXPORT Statement (Data Import Export)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 77
EXPORT INTO Allows you to export the data from a table or view into a CSV file. EXPORT INTO
Statement (new) Statement (Data Import Export)

GRANT Statement The new AUDIT READ system privilege has been added, which allows read-only
(changed) access to the AUDIT_LOG, XSA_AUDIT_LOG, and ALL_AUDIT_LOG system views.

The new CREATE OBJECT STRUCTURED PRIVILEGE system privilege allows creation
of structured privilege commands on the object even if the user does not need to
have the CREATE STRUCTURED PRIVILEGE.

The new REMOTE TABLE ADMIN object privilege allows you to create tables on a
remote source.

The new DATABASE AUDIT ADMIN system privilege allows you to create an audit
policy on SYSTEMDB for a specific tenant.

GRANT Statement (Access Control)

IMPORT Statement The new TRACE clause writes execution information to the specified trace file when
(changed) importing data.

The new HAVING and DEPENDENCY clauses allow you to import a subset of data for
a specified object type.

The new IGNORE NUMA NODE options allow you to ignore Numa node preferences
present in the import data.

A new column, DATABASE_NAME, has been added to


<current_schema>.#IMPORT_RESULT. The length of the SCHEMA_NAME and
OBJECT_NAME columns has been increased.

A new <format_option>, SAP TIMEZONE_DATASET, allows you to import .dat


files.

The new PERSISTENT MEMORY clause lets you import back the persistent memory
data that was exported.

IMPORT Statement (Data Import Export)

IMPORT FROM Named pipes (FIFO) are now supported for <file_path>.
Statement (changed)
Support for auto data type promotion when importing flexible tables has been added.
See the IMPORT FROM statement for an example of how this works.

You can now specify special characters such as '\Uhhhhhhhh', '\uhhhh', '\xhh', '\nnn'
for field delimiters and record delimiter.

IMPORT FROM Statement (Data Import Export)

IMPORT SCAN A new column, DATABASE_NAME, has been added to


Statement (changed) <current_schema>.#IMPORT_RESULT. In addition, the length of the
SCHEMA_NAME and OBJECT_NAME columns has been increased. IMPORT SCAN
Statement (Data Import Export)

INSERT Statement Dot notation is now allowed with aliases in an INSERT statement (for example,
(changed) <table_alias_name>.<column_name>). INSERT Statement (Data Manipulation)

What's New in the SAP HANA Platform 2.0


78 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
MERGE INTO You can now merge data into a specific partition within a table. MERGE INTO
Statement (changed) Statement (Data Manipulation)

RELEASE SAVEPOINT You now can release a named savepoint in the current transaction. RELEASE
Statement (new) SAVEPOINT Statement (Transaction Management)

RENAME SCHEMA Rename a schema without creating a new schema. RENAME SCHEMA Statement
Statement (new) (Data Definition)

ROLLBACK TO You can now roll back to a specific savepoint in the current transaction. ROLLBACK
SAVEPONT TO SAVEPOINT Statement (Transaction Management)
Statement (new)

SAVEPOINT You can now establish savepoints in the current transaction.SAVEPOINT Statement
Statement (new) (Transaction Management)

SELECT Statement Association filtering capabilities are now available in the FROM clause of a SELECT
(changed) statement (see the <association_expression> clause).

You can now apply cardinality options when querying using associations
(<association_cardinality>).

A new OR REPLACE clause allows you to replace the current definition of a syntax)
available for select lists is now also supported in the FROM clause.

When using SELECT … INTO syntax, you can now select into an array variable.

A new collation clause allows you to specify the collation to use when ordering results
using the ORDER BY clause.

The SELECT statement now supports LATERAL joins.

A new clauses allows you to return results in a JSON document.

SELECT Statement (Data Manipulation)

SET PSE Statement A new option, <purpose_object_list>, allows you to assign providers and hosts to
(changed) a SAML, JWT, or SSL purpose. SET PSE Statement (System Management)

SET SCHEMA The SET SCHEMA statement now accepts schema synonyms for the
Statement (changed) <schema_name> syntax element. SET SCHEMA Statement (Session Management)

SET TRANSACTION A new clause, DDL { ON | OFF }, allows you to turn DDL on or off for the session. SET
Statement (changed) TRANSACTION Statement (Transaction Management)

UNLOAD Statement The new PERSISTENT MEMORY clause let's you control whether to delete or retain
(changed) persistent memory as part of unloading a table. UNLOAD Statement (Data
Manipulation)

UPSERT Statement You can now upsert data into a specific partition within a table. UPSERT Statement
(changed) (Data Manipulation)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 79
SQL Functions (New and Changed)

ALLOW_PRECISION_LOSS Allows loss of precision when aggregating decimal values using an


Function (new) aggregation expression. ALLOW_PRECISION_LOSS Function
(Miscellaneous)

CONVERT_CURRENCY Function The new DATABASE parameter allows the tables used for the currency
(changed) conversion to reside on a different tenant. Previously, to convert a unique
index, unique constraint, or primary key to index type INVERTED
INDIVIDUAL, you needed to drop and recreate the index with the new
type. Now, you can convert the index directly using the ALTER INDEX
UNIQUE INVERTED INDIVIDUAL syntax. CONVERT_CURRENCY Function
(Miscellaneous)

CONVERT_UNIT Function The new DATABASE parameter allows the tables used for the unit
(changed) conversion to reside on a different tenant. CONVERT_UNIT Function
(Miscellaneous)

COUNT Function (changed) The COUNT function can now be used as a window function. COUNT
Function (Aggregate)

CURRENT_CONNECTION The result type of the CURRENT_CONNECTION function has changed


Function (changed) from BIGINT to INTEGER. CURRENT_CONNECTION Function
(Miscellaneous)

CURRENT_SITE_ID Function Returns the ID of the site that is calling the function. This function is
(new) primarily for use in SAP HANA System Replication (HSR).
CURRENT_SITE_ID Function (Miscellaneous)

CURRENT_USER_ID Function Returns the user ID for the current statement context.
(new) CURRENT_USER_ID Function (Miscellaneous)

HEXTONUM Function (new) Converts a hexadecimal value to a BIGINT string value. HEXTONUM
Function (String)

NUMTOHEX Function (new) Converts a numeric value to a hexadecimal value. NUMTOHEX Function
(String)

TO_BLOB Function (changed) This function now supports CLOB and NCLOB values as input. TO_BLOB
Function (Data Type Conversion)

LIKE Function (changed) Previously, if any of the input parameters were NULL, the function
returned FALSE. Now, the function returns UNKNOWN. LIKE Predicate

LIKE_REGEXPR Function Previously, if any of the input parameters were NULL, the function
(changed) returned FALSE. Now, the function returns UNKNOWN. LIKE_REGEXPR
Predicate

LOCALTOUTC Function (changed) The <timezone> and <timezone_databaset> parameters are now
optional. LOCALTOUTC Function (Datetime)

What's New in the SAP HANA Platform 2.0


80 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
UTCTOLOCAL Function (changed) The <timezone> and <timezone_databaset> parameters are now
optional. UTCTOLOCAL Function (Datetime)

System Views (New and Changed)

ABSTRACT_SQL_PLANS System View (changed) The ABSTRACT_SQL_PLAN_ID column now specifies a


unique identifier for each abstract SQL plan entry instead
of for the abstract SQL plan.

Several new columns have been added to this view:

● The CAPTURE_TIME and CAPTURE USER columns


specify the timestamp and ID of the user who captured
the stored abstract SQL plan.
● The STATEMENT_HASH column specifies the MD5
hash value for the STATEMENT_STRING column.
● The QUERY_ID column specifies the abstract SQL
query ID.
● The VOLUME_ID column specifies the query
compilation location volume ID.
● The RELATED_OBJECTS column specifies information
embedded in the ABSTRACT_SQL_PLAN.
● The ABSTRACT_SQL_PLAN_VERSION column
specifies mitigation information embedded in the
ABSTRACT_SQL_PLAN.
● The DETAILS column specifies additional information
on the abstract SQL plan including invalidation
reasons.

ABSTRACT_SQL_PLANS System View

APPLICATION_CONNECTION_HISTORY System View Provides stored application connection history


(new) information. APPLICATION_CONNECTION_HISTORY
System View

ASSOCIATIONS System View (changed) A new DEFAULT_FILTER column specifies the default
predicate used to filter column values, if defined.
ASSOCIATIONS System View

AUDIT_ACTIONS System View (changed) The IS_DATABASE_SUPPORTED column specifies whether


the audit action can be added to an audit policy that was
created by an authorized user remotely via the system
database: TRUE/FALSE. AUDIT_ACTIONS System View

AUDIT_ POLICIES System View (changed) A new RETENTION_PERIOD column specifies the number
of days the corresponding audit entries are retained.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 81
The IS_DATABASE_LOCAL column specifies whether the
policy was created on the current database and can be
changed from within this database.

AUDIT_POLICIES System View

COLLATIONS System View (new) Provides a list of collations that can be used when ordering
values using an ORDER BY clause in a query. COLLATIONS
System View

CONFIGURATION_PARAMETER_PROPERTIES System This new view displays metadata and properties of public
View (new and changed) configuration parameters for SAP HANA.

The HAS_KEY_INDEX column has been updated. The new


data type is VARCHAR(9) and the values have changed
from TRUE or FALSE to NO, OPTIONAL, or MANDATORY.

Two new columns have been added: IS_READ_ONLY and


IS_SYSTEM_MANAGED.

The new IS_TEMPLATE column specifies TRUE for


configuration parameter templates and FALSE for regular
parameters.

The HAS_VALUE_LIST column has been renamed


VALUE_LIST_SEPARATOR and the data type is now
VARCHAR(1). This column specifies the element separator
character for value lists.

CONFIGURATION_PARAMETER_PROPERTIES System
View

CS_ALL_COLUMNS System View (changed) The new INTERNAL_COLUMN_ID specifies the ID of the
internal column. CS_ALL_COLUMNS System View

DYNAMIC_RESULT_CACHE_INDEX_COLUMNS System Provides information about the indexes of dynamic result


View (new) caches. DYNAMIC_RESULT_CACHE_INDEX_COLUMNS
System View

HOST_DISK_USAGE View (new) Provides disk usage information. The table contains
information for the last 42 days and the collection interval
is once a day. HOST_DISK_USAGE View (Embedded
Statistics Service)

HOST_LONG_RUNNING_STATEMENTS View (changed) Five new columns have been added to this view:

● The RUNTIME column specifies the runtime, in


seconds, since the last statement execution.
● The APPLICATION_NAME column specifies the name
of the application.
● The APPLICATION_SOURCE column specifies that an
application can define which source file SAP HANA is
called from. The usage is up to the application.

What's New in the SAP HANA Platform 2.0


82 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
● The STATEMENT_HASH column specifies the MD5
hash value for the statement string.
● The START_MVCC_TIMESTAMP column specifies the
internal MVCC timestamp of the transaction start
time.

HOST_LONG_RUNNING_STATEMENTS View (Embedded


Statistics Service)

HOST_LONG_IDLE_CURSOR View (changed) Three new columns have been added to this view:

● The RUNTIME column specifies the runtime, in


seconds, since the last statement execution.
● The LAST_EXECUTED_TIME column specifies the
most recent statement execution time. This
timestamp is updated when opening cursors and
executing DML or DDL, but not when fetching cursor
results or closing cursors.
● The STATEMENT_HASH column specifies the MD5
hash value for the statement string.

HOST_LONG_IDLE_CURSOR View (Embedded Statistics


Service)

HOST_SERVICE_THREAD_CALLSTACKS View (new) Fetches active callstacks in 5 minute intervals and stores
the information for the next 42 days.
HOST_SERVICE_THREAD_CALLSTACKS View (Embedded
Statistics Service)

JWT_PROVIDERS System View (changed) The new IS_CASE_SENSITIVE column specifies whether
identity checks are case sensitive. JWT_PROVIDERS
System View

M_ABSTRACT_SQL_PLAN_STATISTICS System View Provides SQL query runtime statistics.


(new) M_ABSTRACT_SQL_PLAN_STATISTICS System View

M_ABSTRACT_SQL_PLAN_OVERVIEW System View (new) Provides the status of each Plan Stability Manager on
every index server in SAP HANA.
M_ABSTRACT_SQL_PLAN_OVERVIEW System View

M_ACTIVE_PROCEDURES System View (changed) The new STATEMENT_EXECUTION_MEMORY_SIZE


column specifies the peak memory used for executing
each statement inside a procedure.
M_ACTIVE_PROCEDURES System View

M_ACTIVE_STATEMENTS System View (changed) The new STATEMENT_HASH column specifies the MD5
hash value for the statement string.
M_ACTIVE_STATEMENTS System View

M_BACKUP_CONFIGURATION System View (changed) The new FILE_ROOTKEY_BACKUP_PATH column specifies


the directory for file-based rootkey backups.
M_BACKUP_CONFIGURATION System View

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 83
M_BACKUP_HISTORY_BROKEN System View (new) Provides information regarding broken backup history
entries. M_BACKUP_HISTORY_BROKEN System View

M_BUFFER_CACHE_STATISTICS System View (new) Provides a cache level overview of the configuration, cache
status, and memory usage.
M_BUFFER_CACHE_STATISTICS System View

M_BUFFER_CACHE_POOL_STATISTICS System View Provides statistics for each buffer pool in a cache.
(new) M_BUFFER_CACHE_POOL_STATISTICS System View

M_CONFIGURATION_PARAMETER_VALUES System View Displays landscape service parameter values.


(new) M_CONFIGURATION_PARAMETER_VALUES System View

M_CONSISTENCY_CHECK_HISTORY System View (new) Provides table run information.


M_CONSISTENCY_CHECK_HISTORY System View

M_CONSISTENCY_CHECK_HISTORY_ERRORS System Lists the errors that were found within a specified check
View (new) run. M_CONSISTENCY_CHECK_HISTORY_ERRORS
System View

M_CS_COLUMNS/M_CS_ALL_COLUMNS System View The PERSISTENT_MEMORY_FILE_NAME has been added


(changed) to these two views. M_CS_ALL_COLUMNS System View
M_CS_COLUMNS System View

M_CS_LOADS System View (changed) Two new columns have been added: STATEMENT_ID
specifies the statement ID and STATEMENT_HASH
specifies the unique identifier for an SQL string.
M_CS_LOADS System View

M_CS_LOB_SPACE_RECLAIMS System View (changed) The COLLECTION_SCOPE column has been extended to
include entries with the label TABLES.
M_CS_LOB_SPACE_RECLAIMS System View

M_CS_MVCC System View (changed) The following new columns have been added:

● SPARSE_DTS_BLOCK_COUNT specifies the number


of DTS blocks that are sparse timestamp blocks.
● SPARSE_DTS_MEMORY_SIZE specifies the memory
size of the sparse block.
● FREE_SPARSE_TS_BLOCK_COUNT specifies the
number of available sparse timestamp blocks for
successive operations.
● VISIBLE_ROWSTATE_STUB_BLOCK_COUNT specifies
the number of visible stub blocks present in the MVCC
layer associated with the fragment.
● ROWSTATE_STUB_BLOCK_COUNT specifies the total
number of stub blocks, both visible and invisible,
present in the MVCC layer associated with the
fragment.

What's New in the SAP HANA Platform 2.0


84 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
● FREE_ROWSTATE_BLOCK_COUNT specifies the
number of free row-state blocks available for
successive operations.
● PAGE_CHAIN_ACTIVE_MEMORY_SIZE specifies the
memory size of the active part of the MVCC page
chain.

M_CS_MVCC System View

M_CS_RECORD_LOCK_STATISTICS System View (new) Provides column store record lock information.
M_CS_RECORD_LOCK_STATISTICS System View

M_CS_TABLES System View (changed) The new MEMORY_SIZE_IN_MISC column specifies the
used memory size, in bytes, for the internal metadata
structures. M_CS_TABLES System View

M_CS_UNLOADS System View (changed) The PERSISTENT_MEMORY column has been added to the
view. M_CS_UNLOADS System View

M_DATA_VOLUME_PARTITION_STATISTICS System View The new FILES_SIZE column specifies the size of the data
(changed) volume files on the disk.
M_DATA_VOLUME_PARTITION_STATISTICS System View

M_DATA_VOLUME_STATISTICS System View (changed) The new FILES_SIZE column specifies the size of the data
volume files on the disk. M_DATA_VOLUME_STATISTICS
System View

M_DISKS System View (changed) The following columns have been added:

● MOUNT_DETAILS specifies the mount details as


stated in /proc/mount.
● MOUNT_SOURCE specifies the source of the mount.
● MOUNT_PATH specifies the mount path.

M_DISKS System View

M_DSO_OPERATIONS System View (changed) The following keys have been added:

● PACKAGE_PROCESSING_TIME specifies the sum of


the processing times for all packages.
● PACKAGE_INBOUND_QUEUE_READ_TIME specifies
the sum of the inbound queue read times in all
packages.
● PACKAGE_ACTIVE_DATA_READ_TIME specifies the
sum of the active data read times in all packages.
● ACTIVE_DATA_READ_RECORD_COUNT specifies the
total number of active rows read.
● PACKAGE_CALCULATION_TIME specifies the sum of
the calculation times for the change log and the new
active data.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 85
● AVG_CALCULATION_JOB_COUNT specifies the active
number of jobs per package used for the calculation of
the change log and the new active data.
● CHANGE_LOG_INSERT_TIME specifies the sum of the
time spent inserting the change log records.
● ACTIVE_DATA_INSERT_TIME specifies the sum of the
time spent inserting new active data records.
● ACTIVE_DATA_UPDATE_TIME specifies the sum of the
time spent updating active data records.
● ACTIVE_DATA_DELETE_TIME specifies the time spent
deleting active data records.
● PACKAGE_COUNT specifies the total number of
packages.

M_DSO_OPERATIONS System View

M_DYNAMIC_RESULT_CACHE System View (changed) The following columns have been added:

● LAST_ACCESS_TIME specifies the timestamp of the


last cache entry access.
● ACCESS_COUNT specifies the number of read
accesses on the cache entry.
● MISS_COUNT specifies the number of cache miss
read accesses on the cache entry.
● MEMORY_SIZE_IN_INDEX specifies the size, in bytes,
of the memory occupied by the dynamic result cache
entry's index.

M_DYNAMIC_RESULT_CACHE System View

M_ES_RESULT_CACHE System View (new) Provides details about each result that has been cached.
You must have the EXTENDED STORAGE ADMIN privilege
to access this view. M_ES_RESULT_CACHE System View

M_EXECUTED_STATEMENTS System View (changed) Two new columns have been added: CLIENT_IP specifies
the IP of the client machine and CLIENT_PID specifies the
client process ID. M_EXECUTED_STATEMENTS System
View

M_EXPENSIVE_STATEMENTS System View (changed) The new SESSION_VARIABLES column specifies the
statement session variables.
M_EXPENSIVE_STATEMENTS System View

M_FULLTEXT_COLUMN_STATISTICS System View (new) Tracks the usage of fulltext indexes.


M_FULLTEXT_COLUMN_STATISTICS System View

M_HEAP_MEMORY_AREAS System View (new) Provides memory fragmentation details.


M_HEAP_MEMORY_AREAS System View

What's New in the SAP HANA Platform 2.0


86 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
M_HOST_INFORMATION System View (changed) Several new columns have been added:

● NET_PORT_RANGES specifies the relevant ports for


SAP HANA and is dependent on the running services.
● NET_PORT_UNRESERVED_RANGES specifies the
relevant ports for SAP HANA that are not reserved and
that are within the net.ipv4.ip_local_port_range.
● NET_PORT_EPHEMERAL_MAX_COUNT specifies the
number of unreserved ports, which are in
net.ipv4.ip_local_port_range.

M_HOST_INFORMATION System View

M_HOST_NETWORK_STATISTICS System View (behavior Previously, this view only returned rows when queried from
change) SystemDB - one row per host machine. When queried from
a tenant database, no rows were returned. Now the query
returns rows when queried from a tenant database - one
row for each host machine on which a service process of
the respective tenant database is running. The behavior
when queried from SystemDB is unchanged.
M_HOST_NETWORK_STATISTICS System View

M_HOST_RESOURCE_UTILIZATION System View The new OPEN_FILE_COUNT column specifies the number
(changed) of allocated file handles on the host and the new
ACTIVE_ASYNC_IO_COUNT column specifies the number
of asynchronous input and/or output requests on the host.
M_HOST_RESOURCE_UTILIZATION System View

M_MEMORY_OBJECT_DISPOSITIONS System View Two columns have been added:


(changed) SHRINKABLE_OBJECT_COUNT specifies the number of
shrinkable objects and SHRINKABLE_OBJECT_SIZE
specifies the size of the shrinkable objects.
M_MEMORY_OBJECT_DISPOSITIONS System View

M_MULTIDIMENSIONAL_STATEMENT_STATISTICS The following columns have been added:


System View (changed)
● LAST_REQUEST_QUEUE_COUNT specifies the
number of jobs waiting in the request queue.
● LAST_EXECUTION_STATUS specifies the last
execution status of the statement.
● LAST_PERFORMANCE_DATA specifies the last
performance data.

M_MULTIDIMENSIONAL_STATEMENT_STATISTICS
System View

M_PERFTRACE System View (changed) The new ROOT_STATEMENT_HASH column shows the
root statement hash filter if the performance trace is
limited to a specific statement. M_PERFTRACE System
View

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 87
M_PLE_RUNTIME_OBJECTS System View (new) Lists all the internal cache objects created to support the
planning sessions, with details about each one.
M_PLE_RUNTIME_OBJECTS System View

M_PLE_SESSIONS System View (new) Lists all planning sessions on the system as well as their
status and details. M_PLE_SESSIONS System View

M_PREPARED_STATEMENTS System View (changed) The new STATEMENT_HASH column specifies the MD5
hash value for the statement string.
M_PREPARED_STATEMENTS System View

M_RS_TABLES System View (changed) The new SCAN_COUNT column specifies the number of
table scans. M_RS_TABLES System View

M_SERVICE_MEMORY System View (changed) The following new columns have been added:

● BLOCKED_MEMORY_LIMIT specifies the minimal


guaranteed memory for the process.
● FREE_MEMORY_SIZE specifies the allocated free
memory.
● MIN_SEGMENT_SIZE specifies the minimal segment
size for getting heap memory from the operating
system.
● FRAGMENTED_MEMORY_SIZE specifies the amount
of memory held by SAP HANA memory management.
● VIRTUAL_ADDRESS_SPACE_TOTAL_SIZE specifies
the total virtual address space for each process.
● VIRTUAL_ADDRESS_SPACE_USED_SIZE specifies the
used size of the virtual address space.

M_SERVICE_MEMORY System View

M_SERVICE_THREAD_CALLSTACKS System View The new IS_ACTIVE column specifies whether the thread is
(changed) active. M_SERVICE_THREAD_CALLSTACKS System View

M_SERVICE_THREADS System View (changed) The new ROOT_STATEMENT_ID column specifies the ID of
the root statement being executed and the new
ROOT_STATEMENT_HASH column specifies the MD5 hash
value for the root statement string. M_SERVICE_THREADS
System View

M_SERVICE_THREAD_SAMPLES System View (changed) The new ROOT_STATEMENT_ID column specifies the ID of
the root statement being executed and the new
ROOT_STATEMENT_HASH column specifies the MD5 hash
value for the root statement string.
M_SERVICE_THREAD_SAMPLES System View

M_SERVICES System View (changed) The new IS_DATABASE_LOCAL column specifies whether
or not the service is local to the database, tenant, or if it
belongs to one specific database. M_SERVICES System
View

What's New in the SAP HANA Platform 2.0


88 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
M_SNAPSHOTS System View (changed) Two new columns have been added:
REDO_LOG_POSITION specifies the redo log position
corresponding to the snapshot and LAST_COMMIT_TIME
specifies the timestamp of the last commit of the
snapshot. M_SNAPSHOTS System View

M_SQLSCRIPT_CODE_COVERAGE_OBJECT_DEFINITIONS Provides definitions for the objects referenced in


System View (new) SQLScript code coverage results.
M_SQLSCRIPT_CODE_COVERAGE_OBJECT_DEFINITIONS
System View

M_SQLSCRIPT_CODE_COVERAGE_RESULTS System View Provides per-session SQLScript code coverage results.


(new) M_SQLSCRIPT_CODE_COVERAGE_RESULTS System View

M_SQLSCRIPT_PLAN_PROFILER_RESULTS System View The following new columns have been added:
(changed)
● PROCEDURE_DATABASE_NAME specifies the
database name of outermost procedure.
● PROCEDURE_LIBRARY_NAME specifies the library
name of the outermost procedure.
● OPERATOR_STATEMENT_STRING specifies the
operator string.
● OPERATOR_DATABASE_NAME specifies the database
name of the procedure/function where the operator is
defined.
● OPERATOR_SCHEMA_NAME specifies the schema
name of the procedure/function where the operator is
defined.
● OPERATOR_LIBRARY_NAME specifies the library
name of the procedure/function where the operator is
defined.
● OPERATOR_PROCEDURE_NAME specifies the name
of the procedure/function where the operator is
defined.
● OPERATOR_LINE specifies the SQL line of the
operator.
● OPERATOR_COLUMN specifies the SQL column of the
operator.
● OPERATOR_POSITION specifies the SQL position of
the operator.
● USED_MEMORY_SIZE_SELF specifies the memory
used, in bytes, by the operation itself, excluding its
children.
● USED_MEMORY_SIZE_CUMULATIVE specifies the
total memory used, in bytes, in the operation itself,
including its children.

M_SQLSCRIPT_PLAN_PROFILER_RESULTS System View

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 89
M_SQLSCRIPT_VARIABLE_CACHE System View (new) A new clause, <variable_cache_clause>, allows you to
specify whether to cache intermediate variables for a
SQLScript procedure when desirable for computations in
systems where storage and computation nodes are
separate. M_SQLSCRIPT_VARIABLE_CACHE System view

M_TABLE_PARTITIONS System View (changed) The new MEMORY_SIZE_IN_PAGE_LOADABLE column


specifies the total resident paged memory size of the
partition and the DISK_SIZE_IN_PAGE_LOADABLE column
specifies the total disk size of page-loadable storage for
the partition. M_TABLE_PARTITIONS System View

M_TENANTS System View (Removed) This view, which was previously empty, is no longer
included in the catalog.

M_SERVICE_THREADS System View (changed) The new NUMA_NODE_INDEX column specifies the last
known NUMA node that the thread was executed on.
M_SERVICE_THREADS System View

M_SERVICE_THREAD_SAMPLES System View (changed) The new NUMA_NODE_INDEX column specifies the last
known NUMA node that the thread was executed on.
M_SERVICE_THREAD_SAMPLES System View

M_SYSTEM_DATA_STATISTICS System View (new) Provides the data statistics that are automatically
generated when querying column and row store objects
that support runtime statistics.
M_SYSTEM_DATA_STATISTICS System View

M_SYSTEM_LIMITS System View (changed) The depth of joins in a statement is now limited to 255.
This is reflected in the M_SYSTEM_LIMITS system view as
MAXIMUM_DEPTH_OF_JOINS. System Limitations

M_SYSTEM_REPLICATION_TIMETRAVEL System View Provides information about the valid time travel range for
(new) each service on a secondary site.
M_SYSTEM_REPLICATION_TIMETRAVEL System View

M_TABLE_LOB_STATISTICS System View (changed) The new MEMORY_SIZE column specifies the size of the
LOB pages that are loaded in the memory and the new
MEMORY_PAGE_COUNT column specifies the number of
LOB pages loaded in the memory.
M_TABLE_LOB_STATISTICS System View

M_WORKLOAD_REPLAY_PREPROCESSES System View The data type for the PARAMETERS column has changed
(changed) from NVARCHAR(5000) to NCLOB.
M_WORKLOAD_REPLAY_PREPROCESSES System View

OWNERSHIP System View (changed) The new APPLICATION_NAME column specifies the name
of the application used for object creation.OWNERSHIP
System View

What's New in the SAP HANA Platform 2.0


90 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
PERSISTANCE_HISTORY System View (new) Records the database version history.
PERSISTENCE_HISTORY System View

PSE_PURPOSE_OBJECTS (new) Provides information about all PSEs, with or without a


purpose, with or without an assigned purpose object.
PSE_PURPOSE_OBJECTS System View

REORG_GENERATE_OVERVIEW System View (new) Tracks automated and administrator calls to the
REORG_GENERATE procedure.
REORG_GENERATE_OVERVIEW System View

SAML_PROVIDERS System View (changed) The new IS_CASE_SENSITIVE column specifies whether
identity checks are case sensitive. SAML_PROVIDERS
System View

STATEMENT_HINTS System View (changed) The new STATEMENT_HASH column specifies the MD5
hash value for the STATEMENT_STRING column.
STATEMENT_HINTS System View

TABLE_REPLICAS System View (changed) The following columns have been added:

● SOURCE_TABLE_TYPE
● REPLICA_SCHEMA_NAME
● REPLICA_TABLE_NAME
● REPLICA_TABLE_TYPE
● REPLICA_TYPE
● HAS_DIFFERENT_PARTITIONS
● HAS_DIFFERENT_COLUMNS

TABLE_REPLICAS System View

TABLES System View (changed) The new IS_MOVABLE column indicates whether the table
can be moved to another location.

TABLES System View

TABLE_PARTITIONS and M_TABLE_PARTITIONS System The following columns have been added:
Views (changed)
● NOTE_ID
● PARENT_NODE_ID
● GROUP_TYPE
● SUBTYPE
● GROUP_NAME

TABLE_PARTITIONS System View M_TABLE_PARTITIONS


System View

M_WORKLOAD_CAPTURES System View (changed) The data type for the PARAMETERS column has changed
from NVARCHAR(5000) to NCLOB.
M_WORKLOAD_CAPTURES System View

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 91
WORKLOAD_CLASSES System View (changed) Two new columns have been added:
WRITE_TRANSACTION_LIFETIME specifies the lifetime, in
minutes, of the long-running, uncommitted write
transactions and IDLE_CURSOR_LIFETIME specifies the
lifetime, in minutes, of long-lived cursors.
WORKLOAD_CLASSES System View

WORKLOAD_MAPPINGS System View (changed) The following columns have been added:

● USERGROUP_NAME
● SCHEMA_NAME
● OBJECT_NAME
● XS_APPLICATION_USER_NAME
● XS_APPLICATION_USER_NAME_WILDCARD

WORKLOAD_MAPPINGS System View

Other Changes by Feature Name (New and Changed)

Support for The ORDER BY clause used in the SELECT statement, as well as many aggregate and
Collation window functions, now support the specification of a collation name to better control
Specification in sorting. A list of supported collation types can also be found in the new COLLATIONS system
ORDER BY view. COLLATIONS System View
Syntax (new)

Support for Previously, with SET TRANSACTION AUTOCOMMIT DDL OFF, partial rollback was only
Partial Rollback supported if the current transaction did not contain DDL execution. Now, partial rollback is
(AUTOCOMMIT supported even if the current transaction contains DDL; only the statement that triggered
DDL OFF the rollback is rolled back.
mode) (new)

System A new system limitation, MAXIMUM_DEPTH_OF_JOINS, has been added to limit the
Limitation for maximum depth of joins in a statement and is set to 255.
Join Depth
(changed) The MAXIMUM_NUMBER_OF_TABLES_IN_SCHEMA system limitation has been removed.

System Limitations

HINT Details Two new hints have been added: UNFOLD_SCALAR_UDF prefers scalar UDF unfolding and
(changed) NO_UNFOLD_SCALAR_UDF avoids scalar UDF unfolding.

The ROUTE_TO and NO_ROUTE_TO hints have been extended to include <service_type>.
ROUTE_TO <service_type> routes the statement to a node related to a service, such as
"indexserver", "cacheserver", and so on. The NO_ROUTE_TO <service_type> avoids
routing the statement to a node related to a service.

The new AGGR_TARGET hint prefers aggregation toward a target.

Three new hints have been added: ESX_DISK_HASH_JOIN, NO_ESX_DISK_HASH_JOIN, and


ESX_PARTITION_HASH_JOIN_BUCKETS(<bucket size>).

What's New in the SAP HANA Platform 2.0


92 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
HINT Details

Inline Previously, you could annotate tables and views only after their creation by using the
Annotation ANNOTATE statement. Now, you can also annotate these objects while creating or altering
Support them by using the new <annotation_settings> syntax in the WITH clause of the DDL
(changed) statement.

CREATE TABLE Statement (Data Definition) ALTER TABLE Statement (Data Definition)
CREATE VIEW Statement (Data Definition) ALTER VIEW Statement (Data Definition)
CREATE PROJECTION VIEW Statement (Data Definition)

WITH Clause Previously, WITH clauses in nested subqueries were not supported (for example, SELECT a
Now FROM (WITH w1 AS (SELECT * FROM t1) SELECT a FROM W1);). Now, you can
Supported in
specify a WITH clause in a nested subquery wherever nested subqueries are supported.
Nested
Subqueries
(changed)

Support for The following changes allow you to administer anonymized views:
Anonymized
Views (new) CREATE | ALTER VIEW Statements The new WITH ANONYMIZATION clause allows
(changed) you to configure an anonymized view. CREATE
VIEW Statement (Data Definition) ALTER VIEW
Statement (Data Definition)

REFRESH VIEW Statement (new) The new REFRESH VIEW statement allows you to
refresh an anonymized view. REFRESH VIEW
Statement (Data Definition)

M_ANONYMIZATION_VIEWS System Provides runtime information about anonymized


View (new) views in the SAP HANA database.
M_ANONYMIZATION_VIEWS System View

ANONYMIZATION_VIEWS System View Provides information about anonymized views in


(new) the SAP HANA database.
ANONYMIZATION_VIEWS System View

ANONYMIZATION_VIEW_COLUMNS Provides information about the anonymized


System View (new) columns in SAP HANA database.
ANONYMIZATION_VIEW_COLUMNS System
View

VIEWS System View (changed) A new column, HAS_ANONYMIZATION, indicates


whether a view has anonymization parameters
defined for it. VIEWS System View

Client-side
ALTER CLIENTSIDE ENCRYPTION COLUMN Adds a new version of a client-side
Encryption
KEY Statement (new) encryption column key (CEK), or drops all
(New and
Changed) older versions of a CEK. ALTER CLIENTSIDE

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 93
ENCRYPTION COLUMN KEY Statement
(Encryption)

ALTER TABLE Statement (changed) You can add and drop clientside column
encryption keys by version.

ALTER TABLE Statement (Data Definition)

CREATE CLIENTSIDE ENCRYPTION Clientside encryption now supports the


COLUMN KEY (changed) ARIA-256-CBC block cipher algorithm.

You can add and drop clientside column


encryption keys by version.

CREATE CLIENTSIDE ENCRYPTION


COLUMN KEY Statement (Encryption)

GRANT Statement (changed) The new ALTER CLIENTSIDE ENCRYPTION


KEYPAIR privilege authorizes a user to add a
new version of a CKP, or drops all older
versions of a CKP. GRANT Statement
(Access Control)

CLIENTSIDE_ENCRYPTION_KEYPAIRS The new KEYPAIR_VERSION column


System View (changed) provides version information for CKP.
CLIENTSIDE_ENCRYPTION_KEYPAIRS
System View

CLIENTSIDE_ENCRYPTION_COLUMN_KEYS Possible values for the


System View (changed) ENCRYPTION_ALGORITHM column now
include ARIA-256-CBC.

The new COLUMN_KEY_VERSION column


provide version information for CEK. The
ALTER_TABLE_IN_PROGRESS column
indicates whether the CEK is being used by
an ALTER TABLE operation.

CLIENTSIDE_ENCRYPTION_COLUMN_KEYS
System View

TABLE_COLUMNS System View (changed) A new value, ACTIVATING, has been added
to the CLIENTSIDE_ENCRYPTION_STATUS
column. The value indicates the column is
undergoing re-encryption with the latest
version of the CEK. TABLE_COLUMNS
System View

Setting Load The following SQL statements and system views have been enhanced to support setting the
Unit for Tables, unit used to load results in memory:
Columns, and
Partitions ● ALTER INDEX Statement ALTER INDEX Statement (Data Definition)
(new)

What's New in the SAP HANA Platform 2.0


94 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
● ALTER TABLE Statement ALTER TABLE Statement (Data Definition)
● CREATE TABLE Statement CREATE TABLE Statement (Data Definition)
● INDEXES System View INDEXES System View
● M_CS_ALL_COLUMNS System View M_CS_ALL_COLUMNS System View
● M_CS_COLUMNS System View M_CS_COLUMNS System View
● M_CS_TABLES System View M_CS_TABLES System View
● PARTITIONED_TABLES System View PARTITIONED_TABLES System View
● TABLE_COLUMNS System View TABLE_COLUMNS System View
● TABLE_PARTITIONS System View TABLE_PARTITIONS System View
● TABLES System View TABLES System View

Application- The following SQL grammar and system view changes have been made to support
time Period application-time period tables:
Tables (new)
CREATE | ALTER TABLE Statements New <application_time_period_spec>
(changed) and <bi_temporal_table_spec> clauses.
CREATE TABLE Statement (Data Definition)
ALTER TABLE Statement (Data Definition)

UPDATE Statement (changed) New FOR PORTION OF APPLICATION_TIME


clause applies an update to all the records
within the given time period. UPDATE
Statement (Data Manipulation)

SELECT Statement (changed) New <for_application_time_period>


clause allows you to select records that were
active as of the specified application time
timestamp. SELECT Statement (Data
Manipulation)

New New TEMPORAL_APPLICATION_TIME_AS_OF


TEMPORAL_APPLICATION_TIME_AS_OF session variable executes queries on an
Session Variables application-time period table in time travel
mode without having to specify a FOR
APPLICATION_TIME AS OF clause. Session
Variables

TABLES System View (changed) Changes to the TEMPORAL_TYPE column to


reflect application-time period tables. TABLES
System View

TEMPORAL_TABLES System View Changes to the PERIOD_NAME column to


(changed) reflect application-time period tables.
TEMPORAL_TABLES System View

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 95
Support for ARRAY Type for SQLScript The following SQL grammar and system views
Functions and Procedures (changed) have been changed for this enhancement:

● CREATE | ALTER PROCEDURE statements


CREATE PROCEDURE Statement
(Procedural) ALTER PROCEDURE
Statement (Procedural)
● CREATE | ALTER FUNCTION statements
CREATE FUNCTION Statement
(Procedural) ALTER FUNCTION
Statement (Procedural)
● ELEMENT_TYPES system view
ELEMENT_TYPES System View

2.6.2 SAP HANA Client Interfaces (New and Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features, as documented in the SAP HANA Client
Interface Programming Reference and the SAP HANA Client Installation and Update Guide.

Security and Encryption (New and Changed)

Client-side Encryption Client-side encryption DML and DDL operations on tables with encrypted DECIMAL
DECIMAL Support and DECIMAL(<precision>,<specification>) columns are now allowed.
(changed)

New Environment To use SAP Common Crypto Library, use the new hdbclienv.sh or
Variable Scripts for hdbclienv.bat scripts to set the following environment variables:
Configuring Common
Crypto Library (new) ● SECUDIR
● PATH
● LD_LIBRARY_PATH
● DYLD_LIBRARY_PATH (Mac OS)
● HDB_CLIENT_HOME

Download and Install SAP Common Crypto Library

What's New in the SAP HANA Platform 2.0


96 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Machine Learning APIs (New)

Machine Learning APIs The SAP HANA Client installation includes the following machine learning APIs:
Included in the Client
Installation (new) ● SAP HANA Python Client API for Machine Learning Algorithms. SAP HANA
Python Client API for Machine Learning Algorithms
● R Machine Learning API. R Machine Learning API

Microsoft ADO.NET (New)

Microsoft .NET Core On Microsoft Windows, the SAP HANA client install now supports Microsoft .NET Core.
Support (new) Choose the .NET Core option in the SAP HANA client install. This option installs a new
driver (Sap.Data.Hana.Core.v2.1.dll). Microsoft .NET Core Support

Session Variables (New)

DriverVersion Session The DriverVersion session variable returns the version of the driver being used
Variable (New) for the connection. Setting Session-Specific Client Information

HDBSQL (New)

HDBSQL Options The new -nochop option specifies not to remove trailing blanks from a character
(new) output. SAP HANA HDBSQL Options

JDBC (New and Changed)

JDBC Connection Properties (new) The following connection properties have been added for JDBC:

● The cursorHoldabilityType property controls whether the


cursor for a statement is held or rolled back after the transaction is
committed.
● The deferredPrepared property reduces the number of round
trips between the client and the SAP HANA server by not sending a
Prepare request to the server when Connection.prepareStatement()
or Connection.prepareCall() is invoked. Enabling this property helps

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 97
improve performance for applications by reducing the number of
client-server round-trips without changing application logic.
● The sslKeyStore property allows you to specify the contents of the
keystore file as a string.
● The sslTrustStore property allows you to specify the contents of
the truststore file as a string.
● The routeDirectExecute property allows you to convert direct
execute into prepare and execute (routed execute) if the number of
index servers is more than one and if statement routing is enabled.
● The maxLazyDroppedStatements property controls the maximum
number of queued statements to be dropped.

JDBC Connection Properties

JDBC The getPrintLines(java.sql.Statement) method allows applications to


getPrintLines(java.sql.Statement) access to messages printed from a stored procedure via
Static Method (new) SQLSCRIPT_PRINT:PRINT_LINE. getPrintLines(java.sql.Statement)
Method

JDBC Static Methods for The following methods have been added to provide details about
Processing Time and CPU and memory usage, CPU time, and processing time:
Memory Usage (new)
● The getServerCPUTime() method returns the server CPU time for
the result set fetch. getServerCPUTime(java.sql.ResultSet) Method
● The getServerMemoryUsage() method returns the server
memory usage for the result set fetch.
getServerMemoryUsage(java.sql.ResultSet) Method
● The getServerProcessingTime() method returns the elapsed
server processing time for the result set fetch.
getServerProcessingTime(java.sql.ResultSet) Method
● The getServerCPUTime(java.sql.Statement) method
retrieves the total server CPU processing time.
getServerCPUTime(java.sql.Statement) Method
● The getServerMemoryUsage(java.sql.Statement) method
returns memory usage data for a prepared or executed statement.
getServerMemoryUsage(java.sql.Statement) Method
● The getServerProcessingTime(java.sql.Statement)
method returns the elapsed processing time for a prepared or
executed statement. getServerProcessingTime(java.sql.Statement)
Method

JDBC API Previously, the following objects only support the standard values
support for (HOLD_CURSORS_OVER_COMMIT and CLOSE CURSORS_AT_COMMIT).
cursor
holdability ● java.sql.Connection.getHoldability()
(changed) ● java.sql.Connection.setHoldability()
● java.sql.Connection.createStatement()
● java.sql.Connection.prepareStatement()

What's New in the SAP HANA Platform 2.0


98 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
● java.sql.Connection.prepareCall()
● java.sql.DatabaseMetaData.supportsResultSetHoldability()
● java.sql.DatabaseMetaData.getResultSetHoldability()
● java.sql.Statement.getResultSetHoldability()
● java.sql.ResultSet.getHoldability()

Now, these objects support the following values that are specific to SAP HANA:
HOLD_CURSORS_OVER_ROLLBACK and
HOLD_CURSORS_OVER_COMMIT_AND_ROLLBACK. Cursor Holdability Support

JDBC API Support for The SAP HANA JDBC driver supports objects from the JDBC standard to
Savepoints (new) implement support for savepoints. Savepoint Support

JDBC Trace Options (new) The following trace options have been added for JDBC:

● TRACE CONNECTIONS ON | OFF


● TRACE CLEANERS ON | OFF
● TRACE DEBUG ON | OFF
● TRACE SHOW PLAINTEXTCSE ON | OFF

JDBC Trace Options

Node.js (New)

New Driver Node 10 is now a supported platform for the node drivers.
Version

Connection The following methods have been added:


Class Methods
(new) ● The abort(Function) method aborts the running database request that is being
executed on the connection. abort([Function]) Method
● The setRowSetSize(Integer) method specifies the size of the row set.
setRowSetSize (Integer) Method

ResultSet The following methods have been added:


Class Methods
(new) ● The getServerCPUTime() method returns the server CPU time for the result set fetch.
getServerCPUTime() Method
● The getServerMemoryUsage() method returns the server memory usage for the
result set fetch. getServerMemoryUsage() Method
● The getServerProcessingTime() method returns the elapsed server processing
time for the result set fetch. getServerProcessingTime() Method
● The getValueLength(Integer) method gets the length of a LOB column or a
character string type. getValueLength(Integer) Method
● The isNull(Integer) method checks if the specified column is NULL. isNull(Integer)
Method

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 99
Statement The following methods have been added:
Class Methods
(new) ● The getPrintLines() method allows applications to access to messages printed from
a stored procedure via SQLSCRIPT_PRINT:PRINT_LINE. getPrintLines() Method
● The getRowStatus() method returns the status array of the most recent batch
execution. getRowStatus() Method
● The getServerCPUTime() method retrieves the total server CPU processing time.
getServerCPUTime() Method
● The getServerMemoryUsage() method returns memory usage data for a prepared or
executed statement. getServerMemoryUsage() Method
● The getServerProcessingTime() method returns the elapsed processing time for a
prepared or executed statement. getServerProcessingTime() Method
● The isValid() method checks whether the statement is valid. isValid() Method
● The setTimeout(Integer) method changes the default timeout for a statement.
setTimeout(Integer) Method

ODBC (New)

Tracing Options The hdbodbc_cons utility includes new options that allow you to trace connections for a
for variety of information.
hdbodbc_cons
(new) 1. Tracing can now use an internal buffer (4 KB) to store trace content before flushing it
to disk (when the buffer is full), to reduce disk I/O activity when tracing is enabled.

hdbodbc_cons [config] trace flush on|off

2. You can now restrict tracing to occur only when certain error codes occur, and only
trace a certain number of occurrences. Content is repeatedly buffered internally/
overwritten unless one of the error codes are encountered. The most recent content in
the buffer is written to the trace file and all of the trace content up to the buffer size
that occurs after the error is also written as well. Tracing content then returns to being
buffered without being written out to the trace file.

hdbodbc_cons [config] trace only on error <error code


1>[,<error code 2>>,...<error code 1000>] [buffer <buffer
size>] [count <count>]

3. Use trace severity levels to control the amount of data that is written to a trace file.

hdbodbc_cons [config] trace <category> on [level <severity>] |


off

ODBC Tracing and Trace Options

What's New in the SAP HANA Platform 2.0


100 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Prepared Statements (New and Changed)

Prepared Statements Prepared statements can now become candidates for caching on their first use.
Can Now Be Cached Previously, they would become candidates only after being used twice.
On First Use (new)

Queued Dropped Previously, your index server immediately received a message to close a prepared
Prepared Statements statement when your application closes the statement. To improve application
to Improve performance, closed prepared statements are now queued by the client driver and the
Performance communication for closing these queued closed statements is deferred to when the
(changed) next request to the index server occurs, or when the queue limit is reached. The
default queue limit is 50. Because of this enhancement, applications may now appear
to have more open prepared statements (for example, in the
M_PREPARED_STATEMENTS system view) until the deferred close has been
completely communicated.

Python (New and Changed)

Cursor Class The get_resultset_holdability and set_resultset_holdability methods support the following
Methods new values: 2 (CURSOR_HOLD_OVERROLLBACK) and 3
(changed) (CURSOR_HOLD_OVER_COMMIT_AND_ROLLBACK). get_resultset_holdability() Method
set_resultset_holdability(holdability) Method

Legacy Python The following legacy Python driver files are no longer automatically installed with the
Driver Files Are No client:
Longer
Automatically ● /usr/sap/hdbclient/pyhdbcli.so
Installed (changed) ● /usr/sap/hdbclient/hdbcli/__init__.py
● /usr/sap/hdbclient/hdbcli/dbapi.py
● /usr/sap/hdbclient/hdbcli/resultrow.py

You can still manually install these files by extracting them from thepip/setuptools
package located in /usr/sap/hdbclient/hdbcli-x.x.x.tar.gz.

Cursor Class Three new cursor class methods have been added:
Methods (new)
● The server_cpu_time() method returns the total server CPU processing time.
server_cpu_time() Method
● The server_memory_usage() method returns the server memory usage data.
server_memory_usage() Method
● The server_processing_time() method returns the elapsed server processing
time. server_processing_time() Method

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 101
SQLDBC (New)

Connection Properties The following properties have been added:


(new)
Property Description

communicationTimeout Aborts communication attempts to the


server after the specified timeout.

connDownRollbackError Setting this property to TRUE specifies that


if the connection is down, the client rolls
back the most recent application request,
and sends an error to the application con­
taining information about why the connec­
tion is down. The following conditions must
be true:

● The session is recoverable in the server


● There is a written transaction (uncom­
mitted operation) in the session
● The client failed to send the last SQL
statement, OR the last statement was
sent to the server successfully, but both
auto-commit and DDL auto-commit in
the client are off.

By default, this property is set to FALSE.

cursorHoldabilityType Specifies whether the cursor for a statement


is held or not after the transaction is com­
mitted or rolled back.

maxLazyDroppedStatements Controls the maximum number of queued


statements to be dropped. Setting this value
to 0 disables the lazy drop feature and
causes a request to be sent to the server
each time a statement is dropped by the ap­
plication.

packetSizeLimit Sets the maximum size for a request or reply


packet, in bytes.

routeDirectExecute Converts direct execute into prepare and ex­


ecute (routed execute) if the number of in­
dex servers is more than one and if state­
ment routing is enabled.

ODBC Connection Properties

What's New in the SAP HANA Platform 2.0


102 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Connection Property The following SQLDBC connection properties have been given new aliases:
Aliases (new)
Property Alias

clientside_encryption_keystore cseKeyStorePassword
_password

proxy_host proxyHostname

proxy_password proxyPassword

proxy_port proxyPort

proxy_scp_account proxyScpAccount

proxy_userid proxyUserName

The aliases can be used interchangeably with their original property names. ODBC
Connection Properties

Statement Attributes The following statement attributes have been added:


(new) SQL_ATTR_SERVER_CPU_TIME, SQL_ATTR_SERVER_MEMORY_USAGE, and
SQL_ATTR_SERVER_PROCESSING_TIME. ODBC Statement Attributes

Collect Memory Use SQLGetStmtAttr with the SQL_ATTR_SERVER statement attributes to retrieve
Consumption Data memory consumption data with a SQLBIGINT value. Collecting Server
Using the Performance Statistics
SQL_ATTR_SERVER
Attributes (new)

Force Statement Applications connecting to an Active/Active enabled system can force the
Routing to a Site for execution of a specific statement to the secondary site in order to minimize server
Active/Active (Read processing time. Forced Statement Routing to a Site for Active/Active (Read
Enabled) (new) Enabled) Implement Forced Statement Routing to a Site for Active/Active (Read
Enabled) Using ODBCImplement Forced Statement Routing to a Site for Active/
Active (Read Enabled) Using JDBCImplement Forced Statement Routing to a Site
for Active/Active (Read Enabled) Using Node.js

Multi-level Placement The SAP HANA server now supports placing lower level partitions of multi-level
Support for Partition- partitioned tables into different categories, and the SAP HANA client has been
Aware Statement extended to retrieve more detailed multi-level placement information to determine
Routing (new) the optimal prepared statement execution location.

Tracing Options for The hdbsqldbc_cons utility includes new options that allow you to trace
hdbsqldbc_cons (new) connections for a variety of information.

1. Tracing can now use an internal buffer (4 KB) to store trace content before
flushing it to disk (when the buffer is full), to reduce disk I/O activity when
tracing is enabled.

hdbsqldbc_cons [config] trace flush on|off

2. You can now restrict tracing to occur only when certain error codes occur, and
only trace a certain number of occurrences. Content is repeatedly buffered
internally/overwritten unless one of the error codes are encountered. The most

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 103
recent content in the buffer is written to the trace file and all of the trace
content up to the buffer size that occurs after the error is also written as well.
Tracing content then returns to being buffered without being written out to the
trace file.

hdbsqldbc_cons [config] trace only on error <error code


1>[,<error code 2>>,...<error code 1000>] [buffer
<buffer size>] [count <count>]

3. Use trace severity levels to control the amount of data that is written to a trace
file.

hdbsqldbc_cons [config] trace <category> on [level


<severity>] | off

SQLDBC Tracing and Trace Options

Miscellaneous Changes (New)

IPv6 Support (new) SAP HANA clients now support connecting to SAP HANA servers with IPv6 network
addresses. You can also use IPv6 addresses to specify the server's location. For
example, "serverNode=[2001:db8::1a2b]:32013". Connecting to SAP HANA Databases
and Servers

Microsoft Windows Windows Server 2019 is now a supported platform for SQLDBC-based drivers.
Server 2019 2499500
Support (new)

2.6.3 SAP HANA SQL Command Network Protocol Reference


(Removed)

SAP HANA Platform 2.0 SPS 04 does not include the SAP HANA SQL Command Network Protocol Reference.

SAP HANA Client Interface Programming Reference Removed

The SAP HANA Client Interface Programming Reference is no longer included in the SAP HANA documentation
set. Comprehensive documentation for the SAP HANA client is available in the SAP HANA Client Installation
and Update Guide for SAP HANA Platform and the SAP HANA Client Interface Programming Reference for SAP
HANA Platform.

What's New in the SAP HANA Platform 2.0


104 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
2.6.4 SAP HANA Spatial (New and Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA Spatial.

ST_Buffer Method (Changed)

ST_Buffer now supports the parameter number_of_interpolation_points.


ST_Buffer Method

ST_Collect Method (New)

Collects geometries into a single geometry collection or multi-geometry.


ST_Collect Method

ST_CollectAggr Method (New)

Creates a single geometry collection or multi-geometry containing all geometries of the column.
ST_CollectAggr Method

ST_Rotate Method (New)

Rotates a geometry by a given angle counter-clockwise around the coordinate systems origin or a given center.
ST_Rotate Method

ST_Scale Method (New)

Scales a geometry by the given factor.


ST_Scale Method

ST_Simplify Method (New)

Simplifies a geometry via the Douglas-Peucker algorithm.


ST_Simplify Method

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 105
Hexagon Clustering (New)

SAP HANA Spatial supports a hexagonal grid-based aggregation. The following methods are available for the
hexagon grid clustering algorithm: ST_ClusterID(), ST_ClusterCell().

Hexagon

ST_ClusterCell Method (New)

Computes the polygon representing the cluster cell of the given point. This method works for the following
cluster algorithm: Hexagon.

ST_ClusterCell Method

ST_Translate Method (New)

Translates a geometry by given offsets.

ST_Translate Method

ST_Translate3D Method (New)

Translates a geometry by given offsets.

ST_Translate3D Method

ST_LocateAlong Method (New)

Returns a derived geometry collection value with elements that match the specified measure.

ST_LocateAlong Method

ST_LocateBetween Method (New)

Returns a derived geometry collection value with elements that match the specified range of measures
inclusively.

ST_LocateBetween Method

What's New in the SAP HANA Platform 2.0


106 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
ST_Force2D Method (New)

Returns the geometry which results from dropping the Z and M coordinates, from the target geometry, if they
exist, retaining only the X and Y components.
ST_Force2D Method

ST_Force3DM Method (New)

Returns the geometry which results from dropping the Z coordinate of the target geometry, if it exists, and
adding an M coordinate if it doesn't exist, setting its value to 0.
ST_Force3DM Method

ST_Force3DZ Method (New)

Returns the geometry which results from dropping the M coordinate of the target geometry, if it exists, and
adding a Z coordinate if it doesn't exist, setting its value to 0.
ST_Force3DZ Method

ST_Force4D Method (New)

Returns the geometry which results from adding Z and M coordinates, and if any of them don't exist, sets their
value to 0.
ST_Force4D Method

New Algorithm for Distance Calculations (New)

Distance calculations use an algorithm by Karney. This algorithm produces better results than Vincenty's
algorithm, converges faster and works for almost antipodal points.
How Flat-Earth and Round-Earth Representations Work

Zero Tolerance and Exact Computation Paradigm (New)

SAP HANA Spatial does not consider tolerance anymore and performs computation according to the exact
computation paradigm.
Zero Tolerance and Exact Computation Paradigm

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 107
Reduced Memory Footprint (Changed)

The in-memory representation of geometries in planar spatial reference systems has been revised and requires
up to 50% less memory.

2.6.5 SAP HANA Graph (New and Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for SAP HANA Graph.

GraphScript Extensions

Dynamic Ad-hoc Graphs (New)


GraphScript supports creating graph objects directly from input tables.

Data Types

Support of Virtual Tables (New)


A graph workspace can be created on a virtual table or on a view that depends on a virtual table.

Graph Workspaces

Support of Multiple Graph Workspaces (New)


GraphScript can use multiple graph workspaces.

Graph Workspaces

Table Content as Input (New)


GraphScript allows tables as input parameters.

Expressions

Multisets and Sequences Data Types (Changed)


A user can now create and use multisets and sequences of supported SQL types (BOOLEAN, DOUBLE,
INTEGER, TIMESTAMP, NVARCHAR, VARCHAR).

Data Types

Vertex Degree Functions (New)


The following new functions are provided:

● IN_DEGREE(:v): Returns the number of incoming edges of a given vertex.


● OUT_DEGREE(:v): Returns the number of outgoing edges of a given vertex.
● DEGREE (:v): Returns the total number of incoming and outgoing edges of a given vertex.

The result type (for all the degree functions) is BigInt.

What's New in the SAP HANA Platform 2.0


108 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Built-In Functions

Vertex Adjacent Edge Functions (New)


The following new functions are provided:

● IN_EDGES(:v): Returns the incoming edges of a given vertex.


● OUT_EDGES(:v): Returns the outgoing edges of a given vertex.
● EDGES(:v): Returns all the incoming and outgoing edges of a given vertex.
● The result type (for all the vertex incidence functions) is Multiset<Edge>.

Built-In Functions

Built-in Algorithms (Changed)


The following existing algorithms were enhanced:

● The NEIGHBORS algorithm supports also negative distance ranges.


Built-In Functions
● TRAVERSE BFS can now stop a graph traversal from inside a hook function in GraphScript with END
TRAVERSE [ALL].
Statements

Algorithms (New)
The following new built-in algorithms are provided:

● Top-k Shortest Path


● Shortest Path 1-to-All
● Strongly Connected Components

Built-In Functions

Debugging (New)
The debugging feature provides means to detect logical errors in GraphScript procedures, setting breakpoints
and inspecting variables.

GraphScript Language

openCypher Support

openCypher Subqueries in SQL (New)


openCypher can be used directly in SQL subqueries within the OPENCYPHER_TABLE function.

openCypher Pattern Matching

Aggregation in Pattern Matching (New)


openCypher supports aggregation functions MIN, MAX, SUM, and COUNT in the RETURN clause.

Return Clause

DISTINCT Flag (New)


openCypher RETURN supports the DISTINCT flag.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 109
Return Clause

String Concatenation (New)


openCypher supports string concatenation.

Return Clause

Paths in Pattern Matching (New)


openCypher can return path information in JSON format.

Return Clause

Graph Viewer (Changed)

The search and the map layout for the SAP HANA Graph Viewer were improved.

Appendix A – SAP HANA Graph Viewer

2.6.6 SAP HANA Predictive Analysis Library (New and


Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the Predictive Analysis Library (PAL).

General and Architectural Changes

● State Enabled Prediction in Prediction Function (changed)


PAL can create model with specified state ID. If both model content and state ID is provided to the
prediction function, the corresponding state will be created in addition to the execution of prediction.
More functions that support state-enabled prediction are added:
○ _SYS_AFL.PAL_SVM_PREDICT
○ _SYS_AFL.PAL_RANDOM_DECISION_TREES_PREDICT
○ _SYS_AFL.PAL_DECISION_TREE_PREDICT
○ _SYS_AFL.PAL_CLUSTER_ASSIGNMENT
○ _SYS_AFL.PAL_LATENT_DIRICHLET_ALLOCATION_INFERENCE
○ _SYS_AFL.PAL_BINNING_ASSIGNMENT
○ _SYS_AFL.PAL_NAIVE_BAYES_PREDICT
○ _SYS_AFL.PAL_PCA_PROJECT
○ _SYS_AFL.PAL_MULTILAYER_PERCEPTRON_PREDICTT
○ _SYS_AFL.PAL_KNN
○ _SYS_AFL.PAL_FRM_PREDICT
○ _SYS_AFL.PAL_LINEAR_REGRESSION_PREDICT

What's New in the SAP HANA Platform 2.0


110 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
○ _SYS_AFL.PAL_LOGISTIC_REGRESSION_PREDICT
○ _SYS_AFL.PAL_ALS_PREDICT
○ _SYS_AFL.PAL_CRF_INFERENCE
○ _SYS_AFL.PAL_HGBT_PREDICT
State Enabled Real-Time Scoring Functions
● Managing Workload of PAL Procedures (changed)
Workload management in SAP HANA allows you to balance and manage all workload types, including PAL
function for optimal throughput and response time. Enhancements include mapping workload class
specification to the use of individual PAL procedures.
Restricting CPU and Memory Usage
● Model Comparison (new)
Model comparison functions are integrations of partition, training, testing and measuring. They help user
to compare different models with the same dataset.
Model comparison functions are composed of several steps:
1. (Optional) Partition data into training set and testing set
2. Call training functions with training dataset
3. Call predict functions with testing dataset
4. Calculate measurements on testing data
Algorithms that support model comparison include:
○ Multiple Linear Regression
○ Support Vector Machine(Regression)
○ Bi-Variate Geometric Regression
○ Bi-Variate Natural Logarithmic Regression
○ Exponential Regression
○ Polynomial Regression
Model Comparison

New and Changed Algorithms

● Conditional Random Field (new)


Conditional random fields (CRFs) are a probabilistic framework for labeling and segmenting structured
data, such as sequences. In PAL, linear-chain CRF can be applied to Named-entity recognition problem.
The named-entity recognition task is, given a sentence, first to segment which words are part of entity, and
then to classify each entity by type (PERSON, ORGANIZATION, LOCATION, and so on).
Conditional Random Field
● Kernel Density (new)
Kernel Density Estimation (KDE) is quite popular in unsupervised learning, feature engineering, and data
modeling. Its concept is analogue with histograms whereas getting rid of its defects. Given this kernel form,
the density estimates at a point within a group of points.
Kernel Density
● Change Point Detection (new)
Change-point detection methods aim at detecting multiple abrupt changes such as change in mean,
variance or distribution in an observed time-series data.
Change-Point Detection
● Entropy (new)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 111
This function calculates the information entropy of attributes.
Entropy
● Hybrid Gradient Boosting Tree (new)
Hybrid gradient boosting tree (HGBT) function supports mixed feature types, that is, both continuous and
categorical, supports both classification and regression tasks, supports loss criteria such as square loss
and logistic loss, supports L1 and L2 regularization, and supports model evaluation and cross-validation.
Normally its execution is faster.
Hybrid Gradient Boosting Tree
● T-distributed Stochastic Neighbour Embedding (TSNE) (new)
T-distributed stochastic neighbour embedding (TSNE) is a machine learning algorithm for visualization as
well as dimensionality reduction. The algorithm achieves high quality visualization by adopting
unsupervised learning and non-linear method.
T-distributed Stochastic Neighbour Embedding
● Geometry DBSCAN (new)
Geometry DBSCAN is a geometry version of DBSCAN. It only accepts 2-D geometry points as input data.
Geometry DBSCAN
● Discretize (new)
Discretize is an enhanced version of binning function which can be applied to table with multiple columns.
It partitions table rows into multiple segments called bins, then apply smoothing methods in each bin of
each column respectively.
Discretize
● Missing Value Handling (new)
Missing Value Handling aims to handle missing values in a table. Missing values in each column of the table
can be handled by one of the following imputation types: MODE, MEAN, MEDIAN, ALS,
SPECIFIED_CATEGORICAL_VALUE, SPECIFIED_NUMERICAL_VALUE, DELETE, NONE.
Missing Value Handling
● KORD (changed)
Two new measure type parameter values are added:
○ Confidence
○ Support
K-Optimal Rule Discovery (KORD)
● Multi-Class Logistic Regression (changed)
Supports penalty terms, model evaluation and parameter selection.
Multi-Class Logistic Regression
● Logistic Regression (with Elastic Net Regularization) (changed)
Supports automatic selection of optimization method.
Logistic Regression (with Elastic Net Regularization)
● Area Under Curve (AUC) (changed)
Procedure _SYS_AFL.PAL_ROC_AUC is able to output threshold value.
Area Under Curve (AUC)
● Generalised Linear Models (changed)
Supports model evaluation and parameter selection
Generalised Linear Models
● KNN (changed)
○ Categorical features are supported
○ Regression case is supported
KNN

What's New in the SAP HANA Platform 2.0


112 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
● Agglomerate Hierarchical Clustering (changed)
Added the EXCLUDED_FEATURE parameter.
Agglomerate Hierarchical Clustering
● Gaussian Mixture Model (GMM) (changed)
Added the EXCLUDED_FEATURE parameter.
Gaussian Mixture Model (GMM)
● Factorized Polynomial Regression Models (changed)
Added the following parameters:
○ EXCLUDED_FEATURE
○ USER_EXCLUDED_FEATURE
○ ITEM_EXCLUDED_FEATURE
Factorized Polynomial Regression Models

2.6.7 SAP HANA SQLScript Reference (New and Changed)

SAP HANA Platform 2.0 SPS 04 introduces new and changed features for the SAP HANA SQLScript Reference.

AUTOCOMMIT DDL Mode Control

A new feature for SQLScript procedures that allows you to specify if a procedure is to be run with autocommit
DDL on or off.

CREATE PROCEDURE

Column STATEMENT_EXECUTION_MEMORY_SIZE in
M_ACTIVE_PROCEDURES

This column shows the peak memory (in bytes) used for executing a statement. It is sum of local peak
memories of multiple servers in case of a distributed execution.

M_ACTIVE_PROCEDURES

EXIT HANDLER for Transactional Exception

You can now declare a transactional exception. The supported error codes are 131, 133, 138.

DECLARE EXIT HANDLER

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 113
Anonymous Block Plan Caching

It is now possible to enable caching and HINTs on anonymous blocks, in order to control their compilation and
execution and to reduce compilation time.

Anonymous Block

Cursor Holdability in SQLScript

Until now, cursor holdability in SQLScript could only be controlled via system configuration. Now it is possible
to use control features for specific objects directly in SQLScript.

Cursor Holdability

Array Element Output Parameter

Until now, it was only possible to pass a single array element as an input parameter to a procedure, but it was
not to use an array element as an output parameter. Now it is possible to pass a single array element as an
output parameter.

CREATE PROCEDURE

EXEC

SELECT INTO with DEFAULT Values

SQLScript Plan Profiler Supports Anonymous Blocks

SQLScript Plan Profiler provides a simple and easy way to start the problem analysis of SQLScript procedures.
As it did not support anonymous blocks before, users had to switch to procedures to use the Profiler. With this
enhancement, both hint and system commands can be used to enable the SQLScript Plan Profiler for
anonymous blocks.

SQLScript Plan Profiler

Extension of the ROUTE_TO Hint

Until now, the ROUTE_TO hint accepted only integer arguments as target <volume_id>. The extended
ROUTE_TO hint accepts string arguments as <servicetype>, such as "indexserver", "cacheserver", and so on.

ROUTE_TO Hint

What's New in the SAP HANA Platform 2.0


114 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Table Variable Support for UNNEST

Until now, it was only possible to use UNNEST in SQLScript to combine arrays into a table variable. Now you
can also use table variables as input parameters for UNNEST. Since table variables usually contain more than
one column, it is now possible to specify which columns of the input table variable should be included in the
result.

UNNEST Function

EXPLAIN PLAN for SQLScript Table User-Defined Function (TUDF)

SQLScript now provides more detailed information for the SQLScript TUDF native operator in EXPLAIN PLAN.

EXPLAIN PLAN for Table User-Defined Functions

Auto Type Derivation

It is now possible to declare a variable without explicitly specifying its type and let SQLScript determine the
type automatically.

Auto Type Derivation

SQLScript Code Analyzer Rule for Dynamic SQL

A new rule has been added to SQLScript Code Analyzer to detect dynamic SQL.

SQLScript Code Analyzer

IN Operator in SQLScript

SQLScript now supports the use of IN clauses as conditions in IF or WHILE statements.

IN Operator

SQLScript Code Analyzer Rules for ::ROWCOUNT

The new rules check if the system variable ::ROWCOUNT is used after a SELECT statement or after the use of
dynamic SQL.

SQLScript Code Analyzer

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 115
Code Analyzer Suppressions

Due to the nature of a static code analysis, the SQLScript Code Analyzer may produce false positives. To avoid
confusion when analyzing large procedures with many findings and potentially many false positives, the Code
Analyzer offers a way to manually suppress these false positives by means of SQLScript Pragmas.

SQLScript Code Analyzer

Pragmas

With pragmas SQLScript offers a new way for providing meta information. Pragmas are clearly distinct syntax
elements that function like comments, but while comments provide information to the reader of the code,
pragmas provide information to the compiler and the code analyzer. Pragmas only affect statements and
declarations and can be used to annotate SQLScript code.

SQLScript Pragmas

UDL Member Procedure Call Without SQLScript Artifacts

It is now possible to call user-defined library member procedures without the use of SQLScript objects.

UDL Member Procedure Call Without SQLScript Artifacts

SQL in SQLScript Scalar Expressions

SQLScript now supports SELECT as an SQL query within scalar expressions.

SQL in Scalar Expressions

Read-Only Dynamic SQL

It is now possible to mark DSQL statements as read-only.

EXEC

EXECUTE IMMEDIATE

What's New in the SAP HANA Platform 2.0


116 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
Support of ANY TABLE TYPE Parameter

The ANY TABLE TYPE parameter is a table parameter whose type is defined as a wildcard and is later
determined during query compilation.

Any Table Type Parameter

SQL Embedded SQLScript Function

SQLScript allows a table function to be embedded inside an SQL query without the creation of any additional
metadata. The HANA SQL query now accepts SQL FUNCTION block as a table that can embed imperative
SQLScript logic inside a single query.

SQL Embedded Function

Support of PARALLEL EXECUTION Block for Row Tables, Foreign Keys and
Triggers

Until now, the use of PARALLEL EXECUTION blocks was limited when using triggers, foreign keys and row
tables. All of them are now supported within PARALLEL EXECUTION blocks.

Explicit Parallel Execution

Recursive SQLScript

SQLScript now supports recursive programming logic.

Recursive SQLScript Logic

CONTINUE HANDLER in SQLScript

It is now possible to continue the SQLScript execution from the next statement after the statement that has
returned an error.

DECLARE CONTINUE HANDLER

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 117
Extension of SQLScript Plan Profiler for Nested Calls

New columns are introduced in the M_SQLSCRIPT_PLAN_PROFILER_RESULTS view for handling of nested
calls.

M_SQLSCRIPT_PLAN_PROFILER_RESULTS View

Library DDL Extension

SQLScript Libraries now can be changed with the ALTER command and can be created with CREATE OR
REPLACE to overwrite existing libraries.

User-Defined Libraries

Sorted Table Variables

Sorted table variables are a special kind of table variables, designed to provide efficient access to their data
records by a defined key. They are suitable for usage in imperative algorithms operating on mass data.

Sorted Table Variables

End-User Test Framework in SQLScript

The already existing mechanism of using libraries in SQLScript has been re-used for the purposes of writing
end-user tests. To specify that a library contains end-user tests, a new language type, SQLSCRIPT TEST, has
been introduced. To ensure a clear separation between productive and test-only coding, libraries of that
language type may not be used in any other function, procedure or library.

End-User Test Framework in SQLScript

EXISTS operator in SQLScript

SQLScript now supports the use of EXISTS clauses as conditions in IF and WHILE statements. Just like in
standard SQL, it evaluates to true, if a sub-query returns a non-empty result set, and to false in any other case.

EXISTS Operator

SQL DML Statements on Table Variables

You can modify the data of SQLScript table variables with SQL DML statements.

What's New in the SAP HANA Platform 2.0


118 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
SQL DML Statements on Table Variables

Transactional SAVEPOINT

SQLScript now supports transactional savepoints that allow the rollback of a transaction to a predefined point.

SAVEPOINT

Extension of SQLScript Plan Profiler for Memory Usage

Extension of the monitoring view M_SQLSCRIPT_PLAN_PROFILER_RESULTS. Two new columns that display
memory size used for executing SQL Statements in SQLScript procedures have been introduced.

M_SQLSCRIPT_PLAN_PROFILER_RESULTS View

::ROWCOUNT System Variable

Up to SAP HANA 2.0 SPS03, the system variable ::ROWCOUNT was updated only after DML statements.
Starting with SAP HANA 2.0 SPS04, the behavior of ::ROWCOUNT changes, it is now also updated for SELECT,
CALL and CREATE TABLE statements. That constitutes an incompatible behavior change, described in the
SQLScript Reference Guide and in SAP Note 2701826 .

::ROWCOUNT

Table Type Parameters in Scalar User-Defined Functions

Scalar UDFs now also accept table type parameters (table variables, physical tables, or views) as input.

CREATE FUNCTION

Array Parameters for Procedures and Functions

You can create procedures and functions with array parameters so that array variables or constant arrays can
be passed to them.

Array Parameters for Procedures and Functions

CREATE PROCEDURE

CREATE FUNCTION

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 04 Features PUBLIC 119
Library Functions and Scalar Variables in SQL

You no longer need to create SQLScript artifacts (procedures, functions, libraries and anonymous blocks) to
access a library member, you can directly consume it in SQL.

Library Member Functions and Variables

Built-in Library SQLSCRIPT_LOGGING

The SQLScript Logging Library provides user-level logging facilities for debugging and monitoring.

Built-In Library SQLSCRIPT_LOGGING

What's New in the SAP HANA Platform 2.0


120 PUBLIC SAP HANA Platform 2.0 SPS 04 Features
3 SAP HANA Platform 2.0 SPS 03 Features

Find out about the new and changed features introduced with the SAP HANA platform 2.0 SPS 03.

3.1 Installation and Update

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for installation and update.

SAP HANA Server Installation and Update (New and Changed) [page 121]
SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the installation and update of
SAP HANA.

3.1.1 SAP HANA Server Installation and Update (New and


Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the installation and update of SAP
HANA.

XS Advanced Installation Options (New)

Starting from SAP HANA SPS03 (Rev. 34) and the latest version of the XS advanced model component (SAP
EXTENDED APP SERVICES 1), which is described in SAP Note 2542036 , you can choose the location of
the XS advanced platform data during installation, for example, in the (default) System database or in a
specific tenant database.

XS Advanced Database Setup Options

Software Authenticity Verification (New)

Before installation and update of SAP HANA software components, the authenticity and integrity of the
software can be verified with the 'verify_signature' parameter.

Software Authenticity Verification

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 121
Resume Update after DU Import Error (Changed)

Previously, if an update failed because of a delivery unit import error, hdbupdrep had to be used to import
delivery units manually. Now, you can rerun the SAP HANA database lifecycle manager to resume the update.

System Information for System Landscape Directory (SLD) Configuration


(New)

The SAP HANA database lifecycle manager (HDBLCM) Web user interface now offers a system information
page with a tab for SLD configuration parameters.

Usability Improvement (Changed)

When configuring the System Landscape Directory (SLD) registration, existing values of the configuration
parameters are listed as default values.

Configuring an SAP HANA System to Connect to the System Landscape Directory (SLD)

Administering Offline Resources (Changed)

The SAP HANA cockpit for offline administration is no longer offered for the administration of offline resources.
With SAP HANA cockpit SP 04, the SAP HANA cockpit includes all capabilities that could formerly be
performed only through the SAP HANA cockpit for offline administration.

3.2 Security

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for security.

SAP HANA Database Security (New and Changed) [page 123]


SAP HANA Platform 2.0 SPS 03 introduces new and changed security-related features for the SAP
HANA database.

What's New in the SAP HANA Platform 2.0


122 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
3.2.1 SAP HANA Database Security (New and Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed security-related features for the SAP HANA
database.

Data Anonymization (New)

SAP HANA now provides native support for data anonymization. This allows you to gain statistically valid
insights from data containing personal or sensitive information while protecting the privacy of individuals.

Data anonymization capabilities are integrated into SAP HANA calculation views and can be configured using
the calculation view editor of the SAP Web IDE for SAP HANA. Two anonymization methods are supported: k-
anonymity and differential privacy. Which method provides the most appropriate level of privacy depends on
your data and the potential attack scenarios and attackers.

Access to anonymized views is secured using standard SAP HANA authorization mechanisms.

SAP HANA Data Anonymization

Shared Business Authorizations in SAP HANA (New)

“Authorization objects ” form the basic layer of authorization for ABAP-based SAP applications such as S/4
HANA or SAP Business Warehouse. It possible to create analytic privileges in SAP HANA that reuse these
authorizations.

Shared Business Authorizations in SAP HANA

User Group-Specific Password Policies (New)

You can now configure a customized password policy for user groups. The passwords of users in the group
must adhere to the group-specific password policy if enabled. The password policy configured for the database
applies for those parameters that do not have a group-specific configuration.

Password Policy

User Groups

LDAP-Based Authentication and User Provisioning (New)

Users accessing SAP HANA directly via JDBC/ODBC database clients can now be authenticated against an
LDAP directory server using the user name and password provided by the client.

In addition, by allowing the LDAP provider to create database users in SAP HANA, LDAP-authenticated users
can be automatically provisioned in SAP HANA. Once it is verified that the authenticated user is a member of at

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 123
least one LDAP group mapped to an SAP HANA role, the required database user is automatically created in
SAP HANA and granted the relevant role(s).

LDAP User Authentication

Data Encryption (New and Changed)

Password hash algorithm (Changed)


Database user passwords are now stored in hashed and salted form using PBKDF2 (Password-Based Key
Derivation Function 2). For downward compatibility, they also continue to be hashed using secure hash
algorithm SHA-256.

The SAP HANA implementation of PBKDF2 uses the SHA-256 secure hash algorithm and 15,000 iterations.

Encryption configuration in tenant databases (Changed)


The default status of data-at-rest encryption services in tenant databases (on or off) is no longer inherited from
the system database. It is now controlled in the system database with parameters in the new
database_initial_encryption section of the global.ini configuration file. All encryption services are
off by default.

It is also possible to specify who initially has control over enabling and disabling encryption in tenant
databases: the tenant administrator in the tenant database (default), or the system administrator in the
system database. Responsibility can switched later if necessary.

Encryption Configuration

Client-side data encryption (New)


With client-side data encryption, columns that contain sensitive data, such as credit card numbers or social
security numbers, are encrypted by using an encryption key accessible only by the client. Column data is
encrypted and decrypted on the client.

To use client-side encryption, your interface must meet a number of requirements. These are documented in
the SAP HANA Client Interface Programming Reference.

Numerous new privileges and SQL statements have been added to support client-side encryption. For more
information, see support for client-side encryption in the section SAP HANA SQL and System Views Reference.

Client-Side Data Encryption (SAP HANA Security Guide)

Client-Side Data Encryption (SAP HANA Administration Guide)

Configuring the Client for Client-Side Encryption and LDAP

Data Masking (Changed)

In addition to views, you can now also mask data in tables.

SAP HANA Data Masking

What's New in the SAP HANA Platform 2.0


124 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Auditing (Changed)

● Auditing for SAP HANA extended application services, advanced model (SAP HANA XS advanced) has
been integrated into the SAP HANA auditing framework. SAP HANA XS advanced audit entries may now be
written to the standard SAP HANA audit targets, database table and syslog.
Audit Trails
● A number of new actions can be audited. For more information, see changes to the CREATE AUDIT POLICY
statement in the section SAP HANA SQL and System Views Reference.

Authorization Enhancements (Changed)

● Any user with the system privilege ROLE ADMIN can now revoke catalog roles granted by another user.
● A user can now grant all currently available privileges on a schema by granting the ALL PRIVILEGES object
privilege.

SAP HANA Cockpit (New and Changed)

For more information, see the section on SAP HANA cockpit.

SAP HANA Cockpit (New and Changed) [page 128]

3.3 Planning and Design

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for planning and design.

SAP Enterprise Architecture Designer, Edition for SAP HANA (New and Changed) [page 126]
SAP HANA Platform 2.0 SPS03 introduces new and changed features in SAP Enterprise Architecture
Designer, Edition for SAP HANA.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 125
3.3.1 SAP Enterprise Architecture Designer, Edition for SAP
HANA (New and Changed)

SAP HANA Platform 2.0 SPS03 introduces new and changed features in SAP Enterprise Architecture Designer,
Edition for SAP HANA.

Core Features

● Symbol Format
A new format toolbar allows you to change the fill, outline, and font color of symbols.
Formatting Symbols
● Open Diagram
A new Open Diagram tool in object property sheets lets you open any of the diagrams in which the object
appears.
Object Properties
● Exporting and Importing Models
You can now transfer models from one SAP EA Designer repository to another by exporting and importing
generated zip files.
Transferring Content Between Repositories
● Analysis Criteria and Heat Map Enhancements
You can now search for and apply analysis criteria to multiple objects at once and change the analysis
values applied to objects on the fly when heat map coloring is active.
Analyzing EAM Objects with Criteria
Applying Heat Map Coloring to a Diagram
● Capability Coverage
A new Capability Coverage list on the Dependencies tab of application property sheets allows you to add
business capabilities to the list and specify the maturity of the application's coverage of them.
Specifying Application Coverage of Business Capabilities

Requirements Management

● Requirement Diagrams
New requirement diagrams allow you to visualize the hierarchy and other relationships between all or some
of the requirements from your requirements list.
Requirement Diagrams

Information Architecture

● CDM to PDM Generation


You can now generate a conceptual data model (CDM) to a physical data model (PDM). You can generate
multiple PDMs from a single CDM, and regenerate to these PDMs as necessary to push updates from your
CDM.

What's New in the SAP HANA Platform 2.0


126 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Generating a CDM to a PDM
● CDS Extensions
We now provide support for HANA CDS extensions for entities.
Extensions (HDI)

Administration

● Configuration Enhancements
Custom properties now support URL and Date data types. You can also now modify the values appearing in
drop-down lists for certain properties and add new types of dependencies.
Customizing Modeling Objects
● Change List Reassignment
If the creator of a draft change list is unavailable, an administrator can now re-assign the draft changes to
another user.
Monitoring Repository Activities

3.4 Administration

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for administration.

SAP HANA Cockpit (New and Changed) [page 128]


SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the SAP HANA cockpit with
SAP HANA cockpit support package (SP) 06.

SAP HANA System Administration (New and Changed) [page 146]


SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the administration of SAP
HANA.

SAP HANA High Availability (New and Changed) [page 150]


SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA high availability.

SAP HANA Database Backup and Recovery (New and Changed) [page 151]
SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA backup and
recovery.

SAP HANA XS Advanced Cockpit (New) [page 151]


SAP HANA Platform 2.0 SPS 03 introduces the new and enhanced version of SAP HANA XS Advanced
Administration tool called SAP HANA XS Advanced Cockpit.

SAP HANA Application Run-Time Services (New and Changed) [page 152]
SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the application run-time
services in SAP HANA.

SAP HANA Smart Data Access (New and Changed) [page 153]
SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA smart data
access.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 127
3.4.1 SAP HANA Cockpit (New and Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the SAP HANA cockpit with SAP
HANA cockpit support package (SP) 06.

SAP HANA Cockpit SP 06 (New)

SAP HANA cockpit SP 06 is available with SAP HANA Platform 2.0 SPS 03.

SAP HANA Cockpit SP 06 Features [page 129]

About SAP HANA Cockpit SPs

The SAP HANA cockpit is part of the SAP HANA platform 2.0. An SAP HANA cockpit SP is released with every
SAP HANA platform support package stack (SPS), but additional SAP HANA cockpit SPs may be released
between SAP HANA platform SPSs. For more information about the revision and maintenance strategy of the
cockpit, see SAP Note 2433181 .

SAP HANA cockpit SPs are cumulative. This means that a higher SP includes all features and fixes available in
earlier SPs.

Included in SAP HANA Platform 2.0


SAP HANA Cockpit SP Release Note Revision

06 SAP Note 2604594 Included with revision 2.00.030

05 SAP Note 2567836 Not included

04 SAP Note 2513227 Not included

03 SAP Note 2462387 Included with revision 2.00.020

02 SAP Note 2433764 Included with revision 2.00.010

01 SAP Note 2414668 Not included

00 SAP Note 2380291 Included with revision 2.00.000

Additional Information

Information Link

SAP HANA cockpit documentation https://help.sap.com/viewer/p/SAP_HANA_COCKPIT

SAP HANA cockpit 2.0: Revision and Maintenance Strategy SAP Note 2433181

What's New in the SAP HANA Platform 2.0


128 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Information Link

SAP HANA cockpit 2.0: Supported operating systems and SAP Product Availability Matrix for SAP HANA, platform edi­
Web browsers tion 2.0

SAP HANA database explorer release notes SAP Note 2373065

Related Information

SAP HANA Cockpit SP 06 Features [page 129]


SAP HANA Cockpit SP 05 Features [page 134]
SAP HANA Cockpit SP 04 Features [page 141]
SAP HANA Cockpit SP 03 Features [page 217]
SAP HANA Cockpit SP 02 Features [page 269]
SAP HANA Cockpit SP 01 Features [page 275]

3.4.1.1 SAP HANA Cockpit SP 06 Features

Administration and Monitoring [page 130]


SAP HANA cockpit SP 06 introduces new and changed features for system administration and
monitoring.

SAP HANA Database Explorer [page 130]


SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA Database
Explorer.

Performance Monitoring and Analysis [page 131]


SAP HANA cockpit SP 06 introduces new and changed features for performance monitoring and
analysis.

User Management and Security Administration [page 133]


SAP HANA cockpit SP 06 introduces new features for user management and data anonymization.

Backup and Recovery [page 133]


SAP HANA cockpit SP 06 introduces new and changed features for backup and recovery.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 129
3.4.1.1.1 Administration and Monitoring

SAP HANA cockpit SP 06 introduces new and changed features for system administration and monitoring.

Memory Analysis (Changed)

In the Memory Analysis application, you can now opt to view a selected service in the Performance Monitor or
the Workload Analyzer.

Analyze Memory Statistics

Table Redistribution (New)

Beginning in SP 06, you can view and save current table distributions, automatically generate an optimized
table distribution, re-run a previously executed plan, or restore a saved plan.

Table Redistribution

Documentation on Required Privileges (New)

We've added a help topic listing the SAP HANA privileges you need to access applications and tools in the SAP
HANA cockpit.

Authorizations Needed for Monitoring and Administration

3.4.1.1.2 SAP HANA Database Explorer

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA Database Explorer.

Catalog The catalog browser tree now shows the following new object types:
Browser
● Graph Workspaces
● Table Types

Graph Right-clicking the Graph Workspaces object opens a new editor that shows the properties of
Workspaces the graph workspace and allows you to apply filters and algorithms to your graph
Visualizer workspace. For more information about graph workspaces, see the SAP HANA Graph
Reference guide.

What's New in the SAP HANA Platform 2.0


130 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Preferences
New ● Set session-based debug logging by clicking the Enable debug logging
Database checkbox. A red circle appears at the top of the catalog browser in the
Explorer database explorer perspective to indicate that logging is enabled.
Section Session-based debug logging is useful if you encounter a problem and
need to send session log reports to SAP support.
● Delete personal data by clicking Remove all user data.

Data Preview The Data Preview editor for dimension calculation views and CUBE calculation views now
contains a Hierarchies tab that shows hierarchies and measures details if they are available
for the view. For more information about hierarchies see the SAP HANA Hierarchy Developer
Guide, and for hierarchy function syntax, see the SAP HANA SQL and System Views
Reference guide.

For more information about the new Hierarchies tab, see "Preview Calculation View Output"
in the SAP HANA Modeling Guide.

Background ● You can now run a query as a background activity, which is a task that persists even
Activities after the session in which it was created has ended.
● A Background Activities Monitor has been created to manage background activities and
to view their progress and results.
● You can now run a SQL query on multiple databases by clicking Run Run on
Multiple Databases . The query runs as a background activity.

SQLScript Code You can now analyze a procedure or function written in SQLScript to search for patterns
Analyzer indicating problems in code quality, security or performance. Choose the Analyze SQLScript
Code option from the context menu of a database, schema, procedure, or function.

SQL Debugger The SQL debugger has adopted the common look and feel of the Development
(SAP Web IDE) perspective’s Node.js and Java debugger user interface, creating a common user
experience when debugging Node.js, Java, or SQLscript code.

Remote You can now create remote sources in the database explorer and create virtual objects from
Sources those remote sources. For more information about how to create and work with remote
sources in database explorer, see the SAP HANA Smart Data Access section in the SAP
HANA Administration Guide.

3.4.1.1.3 Performance Monitoring and Analysis


SAP HANA cockpit SP 06 introduces new and changed features for performance monitoring and analysis.

Capture and Replay (New)

Capture and Replay offers the following new functionalities:

● When analyzing the comparison report, it is now possible to filter specific statement-related aspects on the
Overview tab using the drop down arrow. In the Different Statements block, you can filter the statements by

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 131
time or by the number of records that have different results. In the Replay Failed Statements block, you can
filter the statements by time or error code.
● From a capture-replay comparison report, it is now possible to export replay results and store them outside
the database choosing the arrow on top right. Back on the Replay List you can import a replay on top right.

Capturing and Replaying Workloads

Performance Monitor (New)

It is now possible to examine the performance of your selected KPIs at different time intervals on the
Performance Comparison page.

Compare Performance

SQL Analyzer (New and Enhanced)

SQL Analyzer offers the following new and enhanced functionalities:

● The Manage plan stability link allows you to ensure the fast performance of queries by capturing query
plans in a source system and reusing them in a target system.
● SQLScript V3 is now supported.
● The Plan Graph view is enhanced with edge information details.
● It is now possible to access SQL plans saved from a previously executed query using the Manage saved
plans link.

Managing Plan Stability

Analyze Statement Performance

Manage Saved Plans

Workload Analyzer (Enhanced)

The Workload Analyzer Based on Thread Samples now opens on a chart displaying the most expensive SQL
statements based on lock time.

Analyze Workloads Based on Thread Samples

What's New in the SAP HANA Platform 2.0


132 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
3.4.1.1.4 User Management and Security Administration

SAP HANA cockpit SP 06 introduces new features for user management and data anonymization.

SAML Identity Provider (New)

It is now possible to create the SAML identity providers required for SAML-based single sign-on. On the
Overview page, choose the link Manage SAML identity providers under Security Related Links .

Add a SAML Identity Provider in SAP HANA Cockpit

Data Anonymization Views (New)

To enable analytics on data while still keeping the privacy of individuals, data anonymization capabilities are
integrated into SAP HANA calculation views. You can see a list of all calculation views that have one or more
anonymization node views configured in the SAP HANA cockpit.

On the Overview page, choose the link View anonymization report under Security Related Links.

Configuration of SSO Access to SAP HANA Cockpit (Changed)

You now use SAP HANA XS advanced cockpit to set up SSO access to SAP HANA cockpit.

Configure SSO Access to the SAP HANA Cockpit

3.4.1.1.5 Backup and Recovery

SAP HANA cockpit SP 06 introduces new and changed features for backup and recovery.

Recovering Older SAP HANA Releases

SAP HANA cockpit 2.0 SP06 can be used to recover SAP HANA 2.0 and SAP HANA 1.0 databases with Support
Package Stack (SPS) 12.

For more information about compatible database revisions of SAP HANA 1.0, see SAP Note 2616241 (Recovery
of SAP HANA 1.0 with SAP HANA Cockpit 2.0).

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 133
Related Information

SAP Note 2616241

3.4.1.2 SAP HANA Cockpit SP 05 Features

Find out about the new and changed features introduced with the SAP HANA cockpit SP 05.

Administration and Monitoring [page 134]


SAP HANA cockpit SP 05 introduces new and changed features for system administration and
monitoring.

SAP HANA Database Explorer [page 137]


The following features are new or changed for this release of SAP HANA database explorer.

Performance Monitoring and Analysis [page 137]


SAP HANA cockpit SP 05 introduces new and changed features for performance monitoring and
analysis.

User Management and Security Administration [page 139]


SAP HANA cockpit SP 05 introduces new and changed features for user management and security-
related administration.

High Availability and Scalability [page 140]


SAP HANA cockpit SP 05 introduces new and changed features for high availability and scalability.

Backup and Recovery [page 140]


SAP HANA cockpit SP 05 introduces new and changed features for backup and recovery.

3.4.1.2.1 Administration and Monitoring

SAP HANA cockpit SP 05 introduces new and changed features for system administration and monitoring.

Cockpit Roles (Changed)

In addition to the existing cockpit roles of Cockpit Administrator, Cockpit Resource Administrator, and Cockpit
User, the SAP HANA cockpit now includes the roles of Cockpit User Administrator and Cockpit Power User.
Each of these roles is permitted access to specific aspects of the cockpit or the Cockpit Manager
administration tool. Multiple roles can be assigned to an individual user. The COCKPIT_ADMIN master user,
created during cockpit installation, has all three administrator roles (Cockpit Administrator, Cockpit Resource
Administrator, and Cockpit User Administrator), and you can use it to configure users and resources during
initial set-up.

Managing Cockpit Users

Configure SSO Access to the SAP HANA Cockpit

What's New in the SAP HANA Platform 2.0


134 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Cockpit Settings (Changed)

● The Cockpit Manager administration tool now offers additional functionality for sizing collections.
● A Cockpit Administrator can now specify the length of time that the cockpit should wait for a connection
before initiating a timeout.
● You can specify which, if any, of the auto-generated resource groups should be visible in the cockpit and
the Cockpit Manager. These auto-generated groups (Production, Test, Development) are based on the
system usage type of each resource.

Setting Data Collection

Setting Connection Timeout

Specifying Display of Auto-Generated Groups

Register Resources (Changed and New)

● When registering or editing a resource in the Cockpit Manager, Cockpit Resource Administrators now have
the option of naming the resource with a custom name.
● If you import a resource, the Cockpit Manager can now register that resource in an offline state.
● You can now register a resource whose statistics server isn't running or is unreachable.

Register a Resource

Import Resources

Start or Stop a Resource (Changed)

In the cockpit's System Overview, cockpit users can now start or stop a resource directly from the Overall
Database Status tile (for a single container) or the Overall System Database Status tile (for a system database).

Start a Resource

Stop a Resource

Memory Analysis (Changed)

● Beginning in SP05, you can launch the Dump Viewer (in the SAP Database Explorer) to view trace files
related to out-of-memory events displayed in the Memory Analysis application.
● Memory Analysis is now directly accessible from the System Overview.

Analyze Memory Statistics

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 135
Monitor Volumes (New)

Using the new Disk Volume Monitor, you can now check disk statistics in order to ensure that there is enough
space on disk for data volumes and log volumes.

Disk Usage

Configure System Properties (Changed)

In the Configuration of System Properties application, the ability to update the layers for an existing parameter
has been enhanced with a more interactive dialog offering additional choices.

Manage System Configuration in SAP HANA Cockpit

Workload Classes (Changed and New)

● Workload classes can now be imported from another system, and exported in preparation for importing
them into another system.
Import Workload Classes
Export Workload Classes
● Two new properties have been added to the dialog for creating workload class mappings: application
component name and application component type.
Create a Workload Class Mapping
● You can now open the Workload Classes app to set up or modify workload classes from the Expensive
Statements app and the Statements Monitor.
Monitor and Analyze Expensive Statements
Monitor and Analyze Active Statements

Configure Admission Control (New)

Using the new Workload Admission Control Settings application, you can now manage peak load by applying
processing limits and determining how to handle new requests if a system is close to the point of saturation.

Managing Admission Control in SAP HANA Cockpit

System Health (Changed)

In the System Health application, by selecting specific system health information, you can now drill down to
details on specific KPIs displayed in the Performance Monitor and the Workload Analyzer.

Use the Cockpit to Manage Admission Control

What's New in the SAP HANA Platform 2.0


136 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Audit Logging for the Cockpit (New)

You can use the Audit Log to identify log entries for cockpit events that you want to track, such as logins or the
creation and deletion of user accounts.

Auditing in SAP HANA Cockpit

3.4.1.2.2 SAP HANA Database Explorer

The following features are new or changed for this release of SAP HANA database explorer.

Tracing Enhancements

Kernel Profiling You can now configure tracing for the kernel profiler to analyze performance issues with
systems on which third-party software cannot be installed, or for parts of the database
that are not accessible by the performance trace.

Expensive You can now configure tracing for expensive statements whose execution time exceeded a
Statements configured threshold. Right-click your database, click Trace Configuration, and click Edit
Traces on the Expensive Statements Trace tile.

Statement The new statement library contains default system statements. You can also create user-
Library defined statements in the SQL console and add them to the statement library.

3.4.1.2.3 Performance Monitoring and Analysis

SAP HANA cockpit SP 05 introduces new and changed features for performance monitoring and analysis.

Capture and Replay (New)

Capture and Replay offers the following new functionalities:

● It is now possible to create a full database backup turning on the Create Full Backup setting on the
Configure New Capture page. If you didn’t create a backup when starting the capture, you can also start a
full backup from the Capture Monitor page.
● When dealing with statements that have minor runtime differences, the tolerance ratio can lead to
unexpected results after validating the runtime delta. It is now possible to change this threshold value
during the preprocessing step to avoid unintended and misleading classifications in the replay report.
● It is now possible to synchronize the replay with an existing database backup on the Replay Configuration
page.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 137
Capturing and Replaying Workloads

Performance Monitor (new and changed)

Performance Monitor offers the following new and changed functionalities:

● It is now possible to define the monitored time frame by selecting from Presets.
● It is now possible to compare the performance of your selected KPIs at different times with the
Performance Comparison functionality.

Monitoring and Analyzing with the Performance Monitor

Threads (new and changed)

Threads offers the following new and changed functionalities:

● It is now possible to filter threads by host, service, and thread type.


● It is now possible to select the sorting parameters of the threads via the Group and Sort option.
● Call Stack information is now available for the selected thread.
● It is now possible to define the columns by choosing parameters that will be displayed in the table.

Threads

Statements Monitor (changed)

On the Statements Monitor page, it is now possible to set up or modify the workload class of a statement.

Monitor and Analyze Active Statements

Expensive Statements (changed)

On the Expensive Statements page, it is now possible to set up or modify the workload class of a statement.

Monitor and Analyze Expensive Statements

SQL Analyzer (new and changed)

SQL Analyzer offers the following new and changed functionalities:

What's New in the SAP HANA Platform 2.0


138 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
● It is now possible to see the details of table accesses performed during a processing of a table on the Table
Accesses tab, like offset, processing time, and location. You can also get aggregated information for each
column and choose aggregator functions, filter and sort the results, and customize columns.
● It is now possible to re-execute the SQL query with parameter changes.
● SQL Analyzer can now be opened through the Statement Hints page.
● It is now possible to move to Operator List after selecting the Tables Used tile in Overview.
● It is now possible to split the areas between the operators and the timeline chart.
● The Plan Graph now displays critical paths.

Analyze Statement Performance

Managing Statement Hints

Workload Analyzer (new)

The Workload Analyzer Based on Thread Samples now opens on a chart displaying top SQL statements by lock
time. You can choose different operation periods to be displayed, and choose an entry on the chart to have
more information displayed below along with the full SQL statement. Once a bar is selected, the corresponding
information will be added to the filter on the analysis page. You can navigate to the original analysis page by
clicking Analyze in the footer bar.

Analyze Workloads Based on Thread Samples

3.4.1.2.4 User Management and Security Administration

SAP HANA cockpit SP 05 introduces new and changed features for user management and security-related
administration.

User Management (New and Changed)

● It is now possible to assign privileges to users directly using the new Assign Privileges app. Note that it is
still recommended that you assign roles to users instead of granting privileges individually.
Assign Privileges to a User
● You can now navigate from the Users app to both the Assign Privileges and Assign Roles app.

Auditing (Changed)

● If the audit trail target is or was a database table, you can now view the audit trail in the Auditing app.
Several options are available for sorting and filtering the audit trail.
Audit Trail View

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 139
3.4.1.2.5 High Availability and Scalability

SAP HANA cockpit SP 05 introduces new and changed features for high availability and scalability.

Reinitializing the Secondary System (New)

You can register again a previously stopped secondary system. You must do this when a full data shipping is
needed or when you want to change the operation mode.

Reinitialize the Secondary System

Monitoring the Network for Multiple Hosts (Changed)

It is possible to monitor the network for multiple hosts using the Monitor Network link:

● Use the Network Traffic tab to understand the role of each host and the size of the sent (Request Size) and
received data (Response Size) between the hosts.
● Network Speed Check (Internal Communication)
The list offers an overview of all network channels between the involved hosts starting with the slowest
network connection.
The Measure Network Speed link offers the possibility to measure the network speed between the hosts in
a scale-out SAP HANA database.
● Network Speed Check (System Replication Communication)
The list offers an overview of all network channels between the involved hosts in the system replication
configuration.
The Measure Network Speed link offers the possibility to measure the network speed between the hosts in
a system replication configuration.

3.4.1.2.6 Backup and Recovery

SAP HANA cockpit SP 05 introduces new and changed features for backup and recovery.

Backup Configuration

SAP HANA Cockpit now offers a dedicated app for backup configuration. Using this app, you can:

● Get an overview of the active backup and recovery configuration settings for each database
● Change the default backup and recovery configuration settings for all the tenant databases and the system
database

For more information, see Configure Backups in the SAP HANA Administration Guide (SAP HANA Database
Backup and Recovery).

What's New in the SAP HANA Platform 2.0


140 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Related Information

Change the Backup Configuration Settings

3.4.1.3 SAP HANA Cockpit SP 04 Features

Find out about the new and changed features introduced with the SAP HANA cockpit SP 04.

Administration and Monitoring [page 141]


SAP HANA cockpit SP 04 introduces new and changed features for system administration and
monitoring.

SAP HANA Database Explorer [page 143]


SAP HANA cockpit SP 04 introduces new and changed features for SAP HANA database explorer.

Performance Monitoring and Analysis [page 144]


SAP HANA cockpit SP 04 introduces new and changed features for performance monitoring and
analysis.

User Management and Security Administration [page 145]


SAP HANA cockpit SP 04 introduces new and changed features for user management and security-
related administration.

High Availability and Scalability [page 146]


SAP HANA cockpit SP 04 introduces new and changed features for high availability and scalability.

3.4.1.3.1 Administration and Monitoring

SAP HANA cockpit SP 04 introduces new and changed features for system administration and monitoring.

Single-Sign On

Along with the option to enable or enforce single-sign on (SSO) for a specific resource (thus removing the need
for providing database user credentials each time you connect to the resource), you can choose to configure
SSO access to the cockpit itself. Doing so means that cockpit users, cockpit resource administrators and the
cockpit administrator need not provide cockpit user credentials in order to access the cockpit or the cockpit
manager.

Setting Up Single Sign-On

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 141
Administering Offline Resources (Changed)

The SAP HANA cockpit for offline administration is no longer offered for the administration of offline resources.
With SP 04, the SAP HANA cockpit includes all capabilities that could formerly be performed only through the
SAP HANA cockpit for offline administration.

Registering Offline Resources (New)

You can now register a resource with SAP HANA cockpit even when the cockpit is unable to connect to the
resource. Once the resource is registered, you can use the cockpit to start it or update its license.

Register a Resource

Collecting Diagnosis Information (New)

To help SAP Support analyze and diagnose problems with your system, you can collect a range of diagnosis
information from your system into a zip file. You can now trigger the collection of diagnosis information from
the SAP HANA cockpit. (This was previously only available through the SAP HANA studio, the SAP HANA
cockpit for offline administration, and by using the command line).

Collect and Download Diagnosis Information with the Cockpit

Workload Classes (Changed)

It is now possible to disable or enable an existing workload class.

Disable or Enable a Workload Class

Managing Tenant Databases (Changed)

The Manage Databases app now has additional capabilities. For a selected tenant, you can now:

● Copy or move a tenant.


● Change the SYSTEM password for a tenant from the system database.

Managing Tenant Databases

Managing Tenant Databases

What's New in the SAP HANA Platform 2.0


142 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Memory Analysis (Changed)

You can now display details about which allocators are consuming the most memory for the host and service,
in the given time period.

Analyze Memory Statistics

Tenant-Specific Licenses (Changed)

As a tenant database administrator, you can now install and delete tenant-specific licenses in your tenant using
the Licensing app.

Install a Permanent License

Delete Licenses

Cockpit API (New)

SAP HANA cockpit now offers REST APIs that you can use with a third-party tool to register resources, create
users and groups, and add users and resources to groups.

Managing Resources, Users, and Groups with the Cockpit APIs

3.4.1.3.2 SAP HANA Database Explorer

SAP HANA cockpit SP 04 introduces new and changed features for SAP HANA database explorer.

Catalog Browser Enhancements

New Connection Information When you right-click a database in the catalog browser, you can now click
Context Menu Item Connection Information, which allows you to view information about an
existing connection.

New Generate SELECT When you right-click on a view or a table, you can now click Generate
statement Context Menu Item SELECT statement which opens the SQL console and generates a SELECT
statement based on the specific view or table.

New Add Filter Button in Object


When you click Open Data Add Filter on a table, view, or column, a
Definition View for Tables,
counter is now displayed that shows the number of filters that have been
Views, or Columns
applied to that object.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 143
SQL Console Enhancements

New Run Statement Option in The Run drop-down menu in the SQL console now contains the Run
the Run Drop-Down Menu Statement option, which has the corresponding shortcut key F9. Choosing
this option runs the entire SQL statement, even if it contains more than one
line. The shortcut key for the Analyze SQL option is now Ctrl-Shift-X.

New Option to Continue You can now choose whether to continue or cancel your SQL execution once
Running SQL After Error is an error is returned.
Returned

Security Enhancements

Increased Security to Prevent Information logged for debugging or diagnostic purposes is subject to
Collection of Personal Information strict standards that prevent the collection of personal information.

3.4.1.3.3 Performance Monitoring and Analysis

SAP HANA cockpit SP 04 introduces new and changed features for performance monitoring and analysis.

Performance Monitor (New)

On the Performance Monitor page, you can now import and export collected data.

Capture and Replay (New)

Capture and Replay offers the following new functionalities:

● On the Replay Configuration page in the User Authentication area it is now possible to reset the password
for the database users captured in the source system.
● On the Overview tab it is now possible to view an overall comparison of the SQL statements based on
results and runtime information. This overall comparison makes it possible to identify for example the SQL
statements, which have a different performance in the execution time, or to identify the reasons why the
replay failed.

Capturing and Replaying Workloads

What's New in the SAP HANA Platform 2.0


144 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Workload Analyzer (New and changed)

On the Workload Analyzer Based on Thread Samples page, the filters adjustable in the header bar now apply to
all charts.

Workload Analyzer Based on Engine Instrumentation offers the following new functionalities:

● It is now possible to view and compare information on a traced workload in the Capture Information page
that opens by clicking a desired workload. You can also load the trace from that page.
● From the SQL Statements tab on the Workload Analyzer page, you can select a desired workload to analyze
its Plans and Jobs.
● It is possible to perform a hierarchical analysis of data by adding Request ID to the dimensions in the SQL
Statements tab on the Workload Analyzer page.

Analyzing Workloads

3.4.1.3.4 User Management and Security Administration

SAP HANA cockpit SP 04 introduces new and changed features for user management and security-related
administration.

Database User and Role Management (Changed)

● If you are implementing user authorization based on LDAP group membership, you can now map LDAP
groups to roles using the Role app. Users configured for LDAP authorization who belong to the specified
group(s) are automatically granted the role in line with your LDAP configuration for SAP HANA.
● The Role app now shows the role type. A role can be:
○ A catalog role
○ A catalog role with LDAP group mappings
○ A HDI role, that is role created using the SAP HANA deployment infrastructure (SAP HANA XS
advanced model)
○ A HDI role with LDAP group mappings
○ A repository role, that is a role created in the repository of the SAP HANA database (SAP HANA XS
classic model)
Database Role Details

Auditing (Changed)

If the audit trail target is a database table, you now delete old audit entries in the Auditing app.

Delete Audit Entries

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 145
3.4.1.3.5 High Availability and Scalability

SAP HANA cockpit SP 04 introduces new and changed features for high availability and scalability.

Monitoring System Replication (New)

New monitoring features are available for system replication:

● On the System Replication Overview in the Log Shipping Backlog Site 1 to 2 tab, the system replication log
shipping backlog for the last 24 hours is shown in a graph. If this backlog exceeds the thresholds set for
alert 104, the graph columns indicate this with a different colour.
● The replication status tenantcopy is displayed in the Replicated Services tab on the System Replication
Overview when a tenant is being copied or moved in the primary system.
● On the System Replication Overview the tables providing information on the replicating services also
display the corresponding tenant database names.

Monitoring SAP HANA System Replication with the SAP HANA Cockpit

3.4.2 SAP HANA System Administration (New and Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the administration of SAP HANA.

Tenant Database Management (New)

Fallback Snapshots for Tenant Databases (New)


You can create a fallback snapshot for a tenant database. It allows you to revert to a particular database state. A
fallback snapshot may be useful if you perform changes to the contents of a database that you may need to roll
back quickly, e.g. if you upgrade to a new version of an application.

Reset to a Fallback Snapshot

Reinitialization of an Unrecoverable System Database (New)


You can reinitialize the system database with information on all tenant databases of the SAP HANA instance
using the command-line tool hdbmdcutil. This may be necessary if the persistency of the system database
has been damaged and cannot be recovered.

SAP Note 2588284

Port Number Change of Tenant (New)


You can change the port number of a tenant database by executing the ALTER DATABASE statement.

ALTER DATABASE Statement (Tenant Database Management)

What's New in the SAP HANA Platform 2.0


146 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Persistent Data Storage (New and Changed)

Persistent Memory (New)


Persistent memory (non-volatile RAM, also referred to as Storage Class Memory) is supported in SAP HANA as
a persistent storage type. The persistent storage functions as DRAM memory and is used specifically for main
data fragments of the column store. Delta data continues to be stored in DRAM. Usage of this feature can be
configured so that it can be applied independently at four levels: database, table, partition, column.

SAP Note 2618154 – SAP HANA Persistent Memory (NVM)

Persistent Memory

Partitioning Data Volumes (New)


Data volumes on the indexserver can be partitioned so that read and write operations can run in parallel with
increased data throughput. The indexserver data volume can be partitioned so that data can be segmented
and distributed over several stripes on the disk to improve performance.

Partitioning Data Volumes

Table Maintenance (New and Changed)

Default Table Type (Changed)


The default table type has been changed in SAP HANA 2.0 SPS 03 to column-type tables. A configuration
parameter is available to override this behavior if necessary.

SAP HANA 2551355 – SAP HANA 2.0 SPS 03 Release Note

Heterogeneous Partitioning (New)


Heterogeneous partitioning makes it possible to apply a more flexible second-level partition schema to tables
with different second-level range specifications for each first level partition. Among other options this feature
also supports locating subpartitions on hosts which support extended storage for dynamic tiering.

Heterogeneous Partitioning

System-Versioned Tables (New)


System-versioned tables have been introduced in SAP HANA SPS 03 and will eventually replace the existing
history tables feature. They support the tracking of changes on column store tables by capturing the validity
period of each record.

System-Versioned Tables

Table Redistribution (Changed)


New configuration options have been introduced to table redistribution to provide a series of weighting
parameters to influence the priorities of the redistribution. When executed from the command line using the
CALL REORG_GENERATE() command you can include configuration parameter values with the call which
apply only for the current session. In this way you can test redistribution options by repeatedly generating,
reviewing, and optimizing the plan before it is finally executed.

Table Redistribution Commands

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 147
Table Consistency Check (Changed)

Several new configuration parameters are available for the Table Consistency Check so that the run-time of the
job can be better managed.

Configuration Parameters for the Table Consistency Check

Workload Management and Engines (New)

Configuration Parameter Tracking (New)

To improve traceability of configuration changes, parameter tracking is now available. This feature maintains a
history of changes to configuration values including details of the time the change was made, the user name,
the current and previous values. Optionally, a reason for each change can be entered in a comment value.

Configuring SAP HANA System Properties (INI Files)

Workload Management (Changed)

In the area of workload management new configuration parameters are available for admission control so that
timeout values can be set for queued jobs, and workload classes also now support a statement timeout value
which can either be set in a workload class or as a configuration parameter.

SQL Plan Stability (New)

SQL Plan Stability is a feature to protect the performance of queries by capturing query plans in a source
system and reusing them in a target system to regenerate the original query plan. The Plan Stability feature
could be used, for example, when upgrading from SAP HANA 1.0 to SAP HANA 2.0 (the feature is also available
for capture purposes in SAP HANA 1.0 SPS 12).

SQL Plan Stability

Processing Engines for Improved Statement Performance (Changed)

New processing engines offering better performance when executing SQL queries continue to be developed
and are being phased in to SAP HANA: the SAP HANA Execution Engine (HEX) and the Extended SQL Executor
(ESX). Configuration parameters are available to disable these engines if necessary; hints for queries are also
available to either avoid or prefer the use of these engines.

Statement Performance Analysis

Embedded Statistics Service (New)

STATISTICS_ALERT_THRESHOLDS_HISTORY (New)

A history of changes made to alert thresholds is now maintained and can be retrieved from this system view:
STATISTICS_ALERT_THRESHOLDS_HISTORY.

STATISTICS_ALERT_THRESHOLDS_HISTORY Table (Embedded Statistics Service)

What's New in the SAP HANA Platform 2.0


148 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Alerts (New)
The following new alerts have been introduced:

Alert ID Description

105 Total open transactions check: monitors the number of open transactions per service.

106 ASYNC replication: checks if local in-memory buffer overflows.

107 Checks if fallback snapshots are consistent.

108 Fallback snapshots: checks for out of date fallback snapshots.

109 Backup history: checks if the backup history is incomplete or inconsistent.

110 Catalog consistency: an alert is raised if the catalog consistency check detects errors (identifies the
number of errors and affected objects).

117 Checks record count of non-partitioned column-store tables (only include tables are checked).

127 Checks record count of column-store table partitions (only include tables are checked).

128 Checks for the vulnerability where users may be enabled for LDAP Authentication but SSL is not enabled.

Client-Side Data Encryption (New)

With client-side data encryption, columns that contain sensitive data, such as credit card numbers or social
security numbers, are encrypted by using an encryption key accessible only by the client. Column data is
encrypted and decrypted on the client.

To use client-side encryption, your interface must meet a number of requirements. These are documented in
the SAP HANA Client Interface Programming Reference.

Numerous new privileges and SQL statements have been added to support client-side encryption. For more
information, see support for client-side encryption in the section SAP HANA SQL and System Views Reference.

Client-Side Data Encryption (SAP HANA Security Guide)

Client-Side Data Encryption (SAP HANA Administration Guide)

Configuring the Client for Client-Side Encryption and LDAP

SAP HANA HDBSQL Options (New)

● The new -strictSeparatorLine option removes the parsing of a single quote, double quote, and BEGIN...END
nesting. Separator line matching is strict and no leading or trailing spaces are allowed. When -c is not used,
the default separator is a semi-colon on its own line.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 149
● The new /read interactive option reads commands from the specified batch file.
● The new -printoutput option specifies how output from the SQLScript print library is handled.

SAP HANA HDBSQL Options

3.4.3 SAP HANA High Availability (New and Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA high availability.

getTakeoverRecommendation.py (New)

The getTakeoverRecommendation.py script evaluates the status of the primary system and of the system
replication to help decide if a takeover is justified.

Performing a Takeover

Alert ID 106: System Replication Log Shipping Backlog (New)

Alert 106 is raised when the local in-memory buffer in the ASYNC replication mode is running full indicating
possible network issues with the connection to the secondary system.

Multitarget System Replication (New)

The primary system can replicate data changes to more than one secondary system.

High Availability for SAP HANA

Invisible Takeover (New)

After an invisible takeover, the client keeps the connections to the primary system and the sessions are
restored to the secondary system.

Invisible Takeover and Restart

What's New in the SAP HANA Platform 2.0


150 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Secondary Time Travel (New)

It is now possible to start the secondary system in online mode on a previous point in time. Secondary time
travel can be used to quickly access again data, which was deleted in the original system.

Secondary Time Travel

Host Auto-Failover Parameters (New)

● nameserver.ini/[failover]/enable_master_failover
When set to false, the masterize check of the nameserver master candidates is disabled. Furthermore,
adding a new host does not modify the master candidates list.
● daemon.ini/[failover]/startup_error_restart_retries
The number of retries if a service fails in the startup procedure.

Host Auto-Failover Parameters

3.4.4 SAP HANA Database Backup and Recovery (New and


Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA backup and recovery.

New Features in SAP HANA Cockpit SP05 and SP06

SAP HANA cockpit now offers a dedicated app for backup configuration, and capabilities to recover older SAP
HANA releases.

For more information, see Backup and Recovery [page 140] (SAP HANA cockpit SP 05), Backup and Recovery
[page 133] (SAP HANA cockpit SP 06).

3.4.5 SAP HANA XS Advanced Cockpit (New)

SAP HANA Platform 2.0 SPS 03 introduces the new and enhanced version of SAP HANA XS Advanced
Administration tool called SAP HANA XS Advanced Cockpit.

SAP HANA XS Advanced Cockpit (New)

SAP HANA XS Advanced Cockpit provides an user interface that enables you to maintain the XS advanced run-
time environment. It also allows you to configure identity management settings, assign permissions, and

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 151
execute actions on applications. At runtime, you can use SAP HANA XS Advanced Cockpit to perform the
following:

● Manage Organizations and Spaces


● Manage Users
● Manage Hosts
● Monitor Applications
● Configure Trust and Manage Identities
● Manage Tenant Databases

Maintaining the XS Advanced Runtime Environment with SAP HANA XS Advanced Cockpit

3.4.6 SAP HANA Application Run-Time Services (New and


Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the application run-time services in
SAP HANA.

The following changes are included with SAP HANA 2.0 SPS 03 for the management of the XS advanced run-
time component:

● Support for TCP routes at the platform router


● XS advanced now provides support for Python application run times
● Support the automatic detection of renamed tenants
● Support resource quotas for organizations
● Support separate platform sizing profiles for application-usage and platform-usage scenarios
● Provide support for "procfiles", which enables applications to define custom start commands
● Simplify the setup of certificates required for SSL connections between platform components and the SAP
HANA database
● Provide stable URL for registered services
● The XS command-line interface (CLI) now provides support for the following components and actions:
○ The management of tenant databases (with the command xs tenant-databases)
○ The management of application roles and role collections (for example, with the commands xs role-
templates, xs create-role, and xs role-collections)
○ Viewing information about uploaded domain certificates (with the command xs domain-
certificates)
○ Providing stable URLs for registered services, by redirecting requests to <API_URL>/go/
<service_name> to the actual application endpoint (with the command xs create-service-url)
● The XSA command-line interface (CLI) now provides support for the following components and actions:
○ Managing the deletion of personal data (with the XSA delete-personal-data command)
○ System configuration checks (with the new XSA command XSA diagnose )
○ The backup of the file-system service (with the new XSA commands XSA backup-fss and XSA
recover-fss)

What's New in the SAP HANA Platform 2.0


152 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
3.4.7 SAP HANA Smart Data Access (New and Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA smart data access.

Remote Sources (New)

You can create a remote source to a Google BigQuery database.

Google BigQuery ODBC Driver

Create a Google BigQuery Remote Source

Remote Sources (Changed)

Smart data access supports Teradata 15.10 with some functional restrictions.

2600176 - Smart Data Access - Supported Databases and Versions

Virtual Tables Support Spatial Data Types (New)

Virtual tables support the spatial data type, for SAP HANA remote sources only, with some functional
restrictions.

Support for SAP HANA Spatial

Universal ITAB (Changed)

Some behavior has changed since SPS 02.

2514255 - Universal ITAB for SAP HANA Smart Data Access

Optimized Mode for Linked Database (New)

Introduces an optimized mode, which provides better performance and eliminates maintenance.

Linked Database Overview

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 153
Boolean Data Type (New)

Boolean data type now supported.

Data Type Support

3.5 Development

SAP HANA Platform 2.0 SPS 03 introduces new and changed features as described in the development
documentation.

SAP HANA XS Advanced Development (New and Changed) [page 154]


For SAP HANA Platform 2.0 SPS 03, SAP HANA supports development and deployment of SAP HANA
extended application services (XS) advanced model applications.

SAP Web IDE for SAP HANA (New and Changed) [page 157]
SAP HANA Platform 2.0 SP03 introduces new and changed features for SAP Web IDE and integrated
SAP HANA tools.

SAP HANA Spatial (New and Changed) [page 164]


SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA Spatial.

SAP HANA Graph (New and Changed) [page 167]


SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA Graph.

SAP HANA Interactive Education (SHINE) for XS Advanced (New and Changed) [page 168]
SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA Interactive
Education (SHINE) for XSA.

Text Search and Text Analysis (New and Changed) [page 169]
SAP HANA Platform 2.0 SPS 03 introduces new and changed features for text search and text analysis.

3.5.1 SAP HANA XS Advanced Development (New and


Changed)

For SAP HANA Platform 2.0 SPS 03, SAP HANA supports development and deployment of SAP HANA
extended application services (XS) advanced model applications.

This section contains details of changes and additions to the following development related tools and features:

Application Migration (New and Changed)

● Support for integrated one-view migration, which helps migrate the following views automatically:
○ Scripted calculation views

What's New in the SAP HANA Platform 2.0


154 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
○ Attribute views
○ Analytic views
○ Analytic privileges
● Extended support for data migration:
○ Move an SAP HANA database table to an HDI container on the same instance.
○ Migrate data using virtual tables.
● Extend the configuration of the synonym-target-provider for individual objects.
● More filter options for migrated object types

Application Run-Time Environment (New)

● JavaScript Run-Time Environment


○ Support for Node.js 8.x

 Note

The XS advanced JavaScript run-time environment no longer provides support for Node.js 4.x.

○ SAP NPM Registry


○ CHANGELOG
○ What's New
● Python Run-Time Environment
○ XS advanced model now supports the Python run-time environment with new build packs and libraries

Deployment Service (New and Changed)

● Service keys and service tags


It is also now possible to inject service keys into an application environment
● MTA module- and resource-type updates
● Application router as a service (MTA module type)
● Optional MTA resources
● TCP routes in XS advanced are now supported
● Support for the MTA module parameter enable-ssh
● Zero-downtime update of MTAs (with HDI persistence not requiring data migration)

SAP HANA Deployment Infrastructure (New and Changed)

● Extended support for existing design-time artifacts and their associated plug-ins, for
example, .hdblibrary (supports SQLScript)
● Support for new plug-in types:
○ System-versioning table (.hdbsystemversioning)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 155
Transforms a design-time, system-versioned table that refers to a current and history table into a
system-versioned table database object.
● New administration parameters
● Export and Import containers

Core Data Services (New)

● Support for multi-store tables (including multi-level partitions)


● Support for time-selection partitions
● Support for tables in extended storage
● Updated data-type compatibility support

XS Advanced Services (New and Changed)

The following new or updated services are available:

● SAP UI5 (new)


● Messaging (ActiveMQ) (new)

XS Command Line Interface (New)

● Tenant database administration


● Role collections (and role assignment) administration

Developer Documentation (New and Changed)

The following additions and changes have been made to the documentation provided for XS advanced
application developers:

● SAP HANA Developer Information Map


○ Extended and improved all existing areas with more links, descriptions, and visual aids
○ Added graphical maps and interactive tables in all sections to help you locate and navigate to the
desired information target more easily and quickly
○ Added a new Development Journey section
○ Added a new Security section to the Information by Scenario section
● SAP HANA Developer Guide for XS Advanced
Includes updates and improvements to the following high-level areas:
○ The tutorials in the Getting Started section
○ The Deployment Descriptors section

What's New in the SAP HANA Platform 2.0


156 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
○ The Defining the Data Model section
○ The Writing Application Code section
○ The Services section
○ The Security section
○ The Application Router section
○ The HDI Plug-ins Reference section
○ The XS Command-Line Reference section
● SAP HANA Administration Guide
Includes updates and improvements to the following high-level, XS-advanced-related areas:
○ The Maintaining the Application Run Time section
○ The SAP HANA Deployment Infrastructure section (maintaining HDI containers)

3.5.2 SAP Web IDE for SAP HANA (New and Changed)

SAP HANA Platform 2.0 SP03 introduces new and changed features for SAP Web IDE and integrated SAP
HANA tools.

SAP Web IDE for SAP HANA is a browser-based integrated development environment (IDE) for the
development of SAP HANA-based applications comprised of web-based or mobile UIs, business logic, and
extensive SAP HANA data models. SAP Web IDE works in conjunction with the SAP HANA deployment
infrastructure (HDI), the Application Lifecycle Management tools (ALM), the XS Advanced runtime platform,
and various SAP HANA tools.

SAP Web IDE [page 158]


SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP Web IDE.

Calculation View Editor (Modeler) [page 159]


SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the calculation view editor in
SAP Web IDE.

CDS Graphical Editor [page 161]


SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the CDS graphical editor in
SAP Web IDE.

Annotation Modeler [page 162]


As of version 2.0 SPS 03, SAP Web IDE for SAP HANA includes Annotation Modeler, which was
previously available on SAP HANA Cloud Platform only.

Node.js Development [page 162]


SAP HANA Platform 2.0 SPS03 introduces new and changed features for Node.js development in SAP
Web IDE.

SAP HANA Database Explorer [page 162]


SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA Database
Explorer.

SAP Web IDE Flowgraph Editor [page 164]


SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA Flowgraph Editor.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 157
3.5.2.1 SAP Web IDE

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP Web IDE.

Enhanced Source Control (Git) Capabilites

Executing Commands from the Git History Pane


You can now execute the following commands from the Git History pane:

● Tag a commit
● Cherry-pick a change
● Revert a commit
● Check out a commit
● Compare commits

Git Commands from the Git History Pane

Connecting to Git Repositories with Personal Access Tokens


It is now possible to connect to a Git repository on Team Foundation Server (TFS) with a personal access token.

1. In TFS, generate a personal access token, and store it in a text file for future use.
2. In SAP Web IDE, when you connect to a remote repository on TFS, supply this token as the password in the
Authentication dialog box.

Performing Administration Tasks in SAP HANA XS Advanced Cockpit

As of SPS 03, you perform the SAP Web IDE administration tasks in SAP HANA XS Advanced Cockpit, which
replaces the previously available XS Advanced Administration tool.

You can access the cockpit directly from the main menu in SAP Web IDE. Choose Tools SAP HANA XS
Advanced Cockpit .

The Trust Certificates tool in SAP HANA XS Advanced Cockpit replaces the previously available SAP Web IDE
SSL Certificate Management tool, which is deprecated as of this version.

SAP HANA Cockpit (New and Changed) [page 128]

Multi-Target Application Development

● For resources of the org.cloudfoundy.managed-service type that are defined in the MTA descriptor,
the corresponding services are now automatically generated.

What's New in the SAP HANA Platform 2.0


158 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
● The visual MTA editor enhances user experience by providing value selection boxes for various entries.

3.5.2.2 Calculation View Editor (Modeler)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the calculation view editor in SAP
Web IDE.

Anonymizing Data Using Calculation Views (New)

Users can use the anonymization capabilities in SAP HANA to anonymize calculation view output.
Anonymization methods help gain statistically valid insights from your data while protecting the privacy of
individuals.

Anonymize Data Using Calculation Views

Extracting Semantics (Changed)

Users can extract and copy variables defined in the underlying views to the semantic definition of the target
calculation view.

Extract and Copy Semantics From Underlying Data Sources

Renaming and Refactoring (New and Changed)

Users can rename a calculation view, its output columns, or input parameters and refactor them to retain the
behavior of the impacted objects.

Rename and Refactor Calculation Views

Creating Pruning Configuration Tables (Changed)

Users can use a form-based editor to create a pruning configuration table that helps prune data in union view
nodes.

Prune Data in Union Nodes

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 159
Data Preview (New and Changed)

Enhanced support to preview output of calculation views with hierarchies.

Preview Calculation View Output

Creating Joins (New and Changed)

● Users can create multi joins (creating multiple join definition within a single join view node) and specify the
multi join order and the central table.
● Users can create non equi joins.

Create Joins

Create Non Equi Joins

Performing Currency Conversion

● Support for banking currency conversion functions.


● Support for reverse lookup in currency conversions.

Associate Measures with Currency

Generating Time Data

In addition to generating time data in the SYS_BI schema, users can now create time-related tables in an SAP
HANA Database Module and generate time data . They can use these tables as data sources in a calculation
view to add a time dimension to the view.

Generate Time Data in the _SYS_BI Schema

ORDER BY and Sort the Result Set of Calculation Views

Users can use one or more output columns of a calculation view to ORDER BY and sort the result set of a
calculation view. They can also specify the sort direction.

ORDER BY and Sort the Result Set

What's New in the SAP HANA Platform 2.0


160 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Using SAP HANA Hierarchy Functions (New)

Users can model calculation views with the new hierarchy function view nodes that allow them to use several
SAP HANA hierarchy functions in the view definition. The hierarchy functions typically help work with
hierarchical data.

Use Hierarchy Functions

Enhancements to Graph View Nodes (New and Changed)

In addition to the already supported SAP HANA Graph actions, the graph view nodes in calculation views now
also support the action, Shortest Path (One-to-One). This SAP HANA Graph action when executed on a graph
workspace returns the shortest path from the provided start vertex to the provided target vertex.

Supported Graph Actions in Calculation Views

3.5.2.3 CDS Graphical Editor

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the CDS graphical editor in SAP Web
IDE.

Preview Output of CDS Views and Entities (New)

After modeling and activating a CDS view or an entity, you can preview the output data using the SAP Database
Explorer.

Preview Output of CDS Views and Entities

Importing Elements (Changed)

When defining the elements in an entity, you can also do so by importing elements from other catalog tables.
These catalog tables can be available in the same HDI container in which you are creating the entity or a
synonym that points to catalog table in another HDI container.

Create an Entity with the CDS Graphical Editor

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 161
Support for Cross Joins (Changed)

When creating a join, in addition to the already supported join types, the tool now also supports cross joins as a
join type.

Supported Join Types

3.5.2.4 Annotation Modeler

As of version 2.0 SPS 03, SAP Web IDE for SAP HANA includes Annotation Modeler, which was previously
available on SAP HANA Cloud Platform only.

Annotation Modeler is a new feature that provides an intuitive user interface for annotating OData services. It
enables you to build and enhance the user interface of model-based applications in SAP Web IDE. In addition,
you can also override annotations from other sources, such as metadata, by cloning them to your local
annotation files and editing them locally in your SAP Web IDE project.

Annotation Modeler

3.5.2.5 Node.js Development

SAP HANA Platform 2.0 SPS03 introduces new and changed features for Node.js development in SAP Web
IDE.

Debugging Node.js Modules (Changed)

We switched the Node.js version for the debugger in SAP Web IDE. With SAP HANA SPS03 the debugger only
supports Node.js 8.1 or higher.

Run Node.js Modules

3.5.2.6 SAP HANA Database Explorer

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA Database Explorer.

Catalog The catalog browser tree now shows the following new object types:
Browser
● Graph Workspaces
● Table Types

What's New in the SAP HANA Platform 2.0


162 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Graph Right-clicking the Graph Workspaces object opens a new editor that shows the properties of
Workspaces the graph workspace and allows you to apply filters and algorithms to your graph
Visualizer workspace. For more information about graph workspaces, see the SAP HANA Graph
Reference guide.

Preferences
New ● Set session-based debug logging by clicking the Enable debug logging
Database checkbox. A red circle appears at the top of the catalog browser in the
Explorer database explorer perspective to indicate that logging is enabled.
Section Session-based debug logging is useful if you encounter a problem and
need to send session log reports to SAP support.
● Delete personal data by clicking Remove all user data.

Data Preview The Data Preview editor for dimension calculation views and CUBE calculation views now
contains a Hierarchies tab that shows hierarchies and measures details if they are available
for the view. For more information about hierarchies see the SAP HANA Hierarchy Developer
Guide, and for hierarchy function syntax, see the SAP HANA SQL and System Views
Reference guide.

For more information about the new Hierarchies tab, see "Preview Calculation View Output"
in the SAP HANA Modeling Guide.

Background ● You can now run a query as a background activity, which is a task that persists even
Activities after the session in which it was created has ended.
● A Background Activities Monitor has been created to manage background activities and
to view their progress and results.
● You can now run a SQL query on multiple databases by clicking Run Run on
Multiple Databases . The query runs as a background activity.

SQLScript Code You can now analyze a procedure or function written in SQLScript to search for patterns
Analyzer indicating problems in code quality, security or performance. Choose the Analyze SQLScript
Code option from the context menu of a database, schema, procedure, or function.

SQL Debugger The SQL debugger has adopted the common look and feel of the Development
(SAP Web IDE) perspective’s Node.js and Java debugger user interface, creating a common user
experience when debugging Node.js, Java, or SQLscript code.

Remote You can now create remote sources in the database explorer and create virtual objects from
Sources those remote sources. For more information about how to create and work with remote
sources in database explorer, see the SAP HANA Smart Data Access section in the SAP
HANA Administration Guide.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 163
3.5.2.7 SAP Web IDE Flowgraph Editor

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA Flowgraph Editor.

Automatically Create Partitions (Changed)

You have an additional choice for partitioning your data. In addition to manually choosing the columns and
selecting the partitioning type (list, range, or column), you can also let the application choose the columns or
you can suggest some columns that you want to use to partition your data. The advantage of automatically
selecting columns is that the application finds the columns to be used for partitioning.

3.5.3 SAP HANA Spatial (New and Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA Spatial.

ST_AddMeasure Method (new)

Returns a derived linestring with added or altered M values.

ST_AddMeasure Method

ST_AddPoint Method (new)

Adds a point to a given linestring.

ST_AddPoint Method

ST_LineInterpolatePoint Method (new)

Returns a point linearly interpolated on a given linestring.

ST_LineInterpolatePoint Method

ST_LineLocatePoint Method (new)

Finds the point on a given linestring that is closest to a given point.

What's New in the SAP HANA Platform 2.0


164 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
ST_LineLocatePoint Method

ST_LineSubstring Method (new)

Returns a sub-linestring of the given linestring.

ST_LineSubstring Method

ST_MakeLine Method (new)

Creates a linestring from two given points.

ST_MakeLine Method

ST_AlphaShapeAggr Method (new)

Aggregation function that returns the alpha shape geometry of a set of input geometries, based on a specified
radius value.

ST_AlphaShapeAggr Method

ST_AlphaShapeArea Method (new)

Returns an alpha shape of the input geometry, based on a specified area fraction.

ST_AlphaShapeArea Method

ST_AlphaShapeAreaAggr Method (new)

Aggregation function that returns the alpha shape geometry of a set of input geometries, based on a specified
area fraction.

ST_AlphaShapeAreaAggr Method

ST_AlphaShapeEdge Method (new)

Returns an alpha shape of the input geometry, based on a specified edge fraction.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 165
ST_AlphaShapeEdge Method

ST_AlphaShapeEdgeAggr Method (new)

Aggregation function that returns the alpha shape geometry of a set of input geometries, based on a specified
edge fraction.

ST_AlphaShapeEdgeAggr Method

ST_ConcaveHull Method (new)

Returns a subset of an alpha shape of the input geometry.

ST_ConcaveHull Method

ST_ConcaveHullAggr Method (new)

Aggregation function that returns the alpha shape geometry of a set of input geometries.

ST_ConcaveHullAggr Method

ST_GeomFromGeoJSON Constructor (new)

Constructs a geometry from an RFC 7946 compliant GeoJSON geometry object.

ST_GeomFromGeoJSON Constructor

ST_InvalidReason Method (new)

Returns the reason why a geometry is invalid.

ST_InvalidReason Method

What's New in the SAP HANA Platform 2.0


166 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
3.5.4 SAP HANA Graph (New and Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA Graph.

GraphScript Extensions (New and Changed)

● The WEIGHTEDPATH data type specifies a path with an associated weight.


Data Types
● The SHORTEST_PATH function returns a shortest path within a given parent graph from a start vertex to a
target vertex.
Expressions
● The WITH ORDINALITY option was added to the following constructs:
○ Projection Expression
Expressions
○ Foreach Loop
Statements
○ Filter Expression
Expressions
● The data type TIMESTAMP has been added.
Data Types
● The data type SEQUENCE has been added.
Data Types
● The SEQUENCE data type can be used in FOREACH constructs.
Statements

openCypher Support (New and Changed)

● Usage of the IS NULL attribute has been extended for pattern matching.
Expressions
● Multiple MATCH clauses are supported in openCypher.
Match Clause
● Simple text predicates (starts with, ends with, contains) are supported in openCypher.
Match Clause
● The search function SYS.TEXT_Contains() has been integrated into openCypher.
Built-In Functions

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 167
3.5.5 SAP HANA Interactive Education (SHINE) for XS
Advanced (New and Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for SAP HANA Interactive Education
(SHINE) for XSA.

Fiori Elements (New)

The user CRUD tile in Fiori Launchpad is now implemented by using Fiori elements.

Full-Text Search (New)

The SAP Search UI on SAP HANA provides an easy way to perform full-text search on content stored in tables
or exposed via views. Here the search is performed on Product Categories and also on Business Partners.

SAP HANA Secure Store (New)

SAP HANA Secure Store is used to store securely the credentials of HERE maps.

CDS Enhancements (Changed)

Comments field is added to CDS artifacts and usage of table functions in CDS views is enabled.

Data Generator Code Push-Down (Changed)

The time-based data generation is implemented entirely in HANA procedures.

ES6 Standard Enhancements (Changed)

Node.js code is updated to use ECMA Script (ES6) features.

SAP HANA Interactive Education (SHINE)

What's New in the SAP HANA Platform 2.0


168 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
3.5.6 Text Search and Text Analysis (New and Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for text search and text analysis.

Text Search (New and Changed) [page 169]


SAP HANA Platform 2.0 SPS 03 introduces new and changed features for text search.

Text Analysis (New and Changed) [page 171]


SAP HANA Platform 2.0 SPS 03 introduces new and changed features for text analysis.

3.5.6.1 Text Search (New and Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for text search.

Built-In Procedure sys.esh_config() and CDS (new and changed)

Note the following new features for built-In procedure sys.esh_config() and CDS:

● New annotation @EnterpriseSearch.filteringFacet.noIntervals to avoid interval generation for


date and numeric facets.
● New annotation @EnterpriseSearch.snippets.maximumLength to define maximum/expected length
of a snippet.

Annotation @EnterpriseSearch

Property Annotations

Built-In Procedure sys.esh_search() (new and changed)

Note the following new features for built-In procedure sys.esh_search():

● The GetSuggestion() function accepts the parameter fuzzinessThreshold.


With this optional numeric parameter the user can control the fuzziness of the suggestion terms. The
default fuzziness is 0.85. The value range of the parameter is (0, 1].
getSuggestion() supports new parameter 'type' to enable suggestions for searchable views.
Method 'GetSuggestion' - Suggestion Call
● The whyfound information contains complete text with highlighting for text columns without the
snippets annotation.
The full content of the column with highlighting is returned for all columns that do not have an
@EnterpriseSearch.snippets.enabled annotation set to true. This ensures that the application
always receives the complete column to display in the UI. Otherwise, only a snippet would be returned and,
for example, one half of a longer document title could be missing.
A snippet of the column content is returned for all columns with
@EnterpriseSearch.snippets.enabled set to true.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 169
Custom Query Options
● Snippets are returned for columns with presentation mode only.
● Either snippets or complete column values are returned instead of returning both values.
Property Annotations
Annotation @EnterpriseSearch
● $apply to support groupby operations and optionally an aggregation by count.
System Query Options
$apply with groupby
$apply with groupby and Aggregation
● Definition of stopwords to improve search performance.
Performance Optimizations for Large Stopword Tables
● Score functions for columns of type ST_POINT.
Fuzzy Search on ST_POINT Columns
● Query language extension to define fuzzy search options in a search term.
Supported Features of the Query Language
● Privileges on _SYS_RT views and on built-In proceduresys.esh_search() are now part of the PUBLIC
role.
Database Privileges Needed for Search
● Search results filtering (changed)
Search results now only include data in the user's own language (languages in language vector). Before all
languages were included.
Search in Language-Dependent Columns

Annotations in the Search Response

Freestyle search with CONTAINS() ( new and changed)

Freestyle search with CONTAINS() can now return fuzzy scores instead of TF/IDF scores by setting search
option 'textSearch=compare'.

Some text search parameters (bestMatchingTokenWeight, considerNonMatchingTokens,


excessTokenWeight) are now allowed for freestyle search calls, too.

(Freestyle search in this case means a search with CONTAINS() over multiple columns).

Available Fuzzy Search Options

Permitted Combinations of Fuzzy Search Parameters

Search Rule Sets (new and changed)

Execute privileges on procedure SYS.EXECUTE_SEARCH_RULE_SET are now part of the database role PUBLIC.

A new error table for the batch mode provides error messages for each record which caused an error during
processing.

Added support for further SQL types (like, for example, VARBINARY).

What's New in the SAP HANA Platform 2.0


170 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Added support for NULL values (rule condition 'isMissing').

Dynamic configuration options for term mapping list ids and stopword list ids (names of the list ids are taken
from a column in the input record).

Ignore fulltext index on a column if the search rule set defines string column options (and therefore
cannot use the full-text index). Search rule set does not fail if a full-text index is added later.

Search Rule Sets in Batch Mode

Executing a Search With a Rule Set

Session variable CDS_CLIENT (new and changed)

The session variable CDS_CLIENT is now preferred to define the ABAP client number to be used for the current
database call.

Note that ABAP also defines a second session variable CLIENT, this is always the logon client of the user.

Annotation @EnterpriseSearch

Property Annotations

Stopword Tables and ABAP Client Columns

Term Mappings

3.5.6.2 Text Analysis (New and Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for text analysis.

Sentiment Analysis for Japanese (new)

Sentiment analysis is supported for text in Japanese.

For general information about using the sentiment analysis, see .

For more information about the sentiment analysis as it applies to each language, see SAP HANA Text Analysis
Language Reference Guide.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 171
Tolerant Spelling Support for Catalan, Indonesian, Norwegian, Polish,
Romanian, and Serbian

Linguistic analysis of Catalan, Indonesian, Norwegian, Polish, Romanian, and Serbian is more tolerant of
variations in capitalization, diacritics, accents, and hyphenation. This increases recall for full text search and
text analysis applications that process inputs in those languages.

For example, "nordkorea" is recognized as a variation of "Nord-Korea" in Norwegian. Similarly, "slucha" is


recognized as a variation of "słuchać" in Polish, and "coveka" is recognized as a variation of "čovek" in Serbian.

For more information about the stemming feature as it applies to each language, see Stemming.

Expanded Entity Normalization

Text analysis can now normalize the values of CURRENCY, DATE, MEASURE, PERCENT, TIME_PERIOD, and YEAR
entities. (CURRENCY and PERCENT were introduced for English in SPS02.)

For example, when a German DATE entity containing "7. März 2016" is extracted by text analysis, the
TA_NORMALIZED column in the TA results table will contain "2016-03-07". Or, when an English MEASURE entity
containing "five hundred meters" is extracted, the TA_NORMALIZED column will contain "500 m". Similarly, a
French MEASURE entity containing “5 centimètres” will have “5 cm” in the TA_NORMALIZED column.

This feature is only supported for English, French, and German, and only for selected entity types.

This feature must be activated using a custom text analysis configuration, see .

For more details refer to in the SAP HANA Text Analysis Language Reference Guide.

3.6 Reference

SAP HANA Platform 2.0 SPS 03 introduces new and changed features as described in the reference
documentation.

SAP HANA SQL Reference Guide (New and Changed) [page 173]
SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the SAP HANA SQL and
System Views Reference.

SAP HANA Client Interfaces Reference (New and Changed) [page 189]
SAP HANA Platform 2.0 SPS 03 introduces new and changed features, as documented in the SAP
HANA Client Interface Programming Reference.

SAP HANA SQL Command Network Protocol Reference (New and Changed) [page 192]
SAP HANA Platform 2.0 SPS 03 introduces new and changed features, as documented in the SAP
HANA SQL Command Network Protocol Reference.

SAP HANA Predictive Analysis Library (New and Changed) [page 193]
SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the Predictive Analysis
Library (PAL).

What's New in the SAP HANA Platform 2.0


172 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
SAP HANA SQLScript Reference (New and Changed) [page 196]
SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the SAP HANA SQLScript
Reference.

SAP HANA Analytics Catalog (BIMC Views) Reference (New and Changed) [page 200]
SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the SAP HANA Analytics
Catalog (BIMC Views) Reference.

SAP HANA External Machine Learning (New and Changed) [page 201]
SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the External Machine
Learning Library (EML).

3.6.1 SAP HANA SQL Reference Guide (New and Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the SAP HANA SQL and System
Views Reference.

SQL Statements (New and Changed)

ALTER COLLECTION Statement (new)

Alters a collection table. Specifically, this new statement checkpoints the collection
table.
ALTER DATABASE Statement (enhanced)

You can now turn encryption on or off for a tenant database using the new
[ PERSISTENCE | LOG | BACKUP ] ENCRYPTION [ ON | OFF ] syntax. You an also
specify whether encryption configuration for a tenant database is controlled by the
tenant database using the ENCRYPTION CONFIGURATION CONTROLLED BY LOCAL
DATABASE syntax.

You can now update the port of a service using the new ALTER <service_type>
clause.

You can now create and drop a fallback snapshot for a tenant database using the new
{CREATE | ALTER} FALLBACK SNAPSHOT command.
ALTER SYSTEM ALTER CONFIGURATION Statement (enhanced)

You can now provide a reason in the format of a comment when changing a
configuration parameter.
ALTER SYSTEM ALTER DATAVOLUME { ADD | DROP } PARTITION Statements (new)

Use these two new statements to add and drop data volume partitions to/from all index
servers in the topology.
ALTER SYSTEM {ENABLE | DISABLE | REMOVE} ABSTRACT SQL PLAN Statement (new)

Enables or disables execution plan generation and or removes Abstract SQL Plans from
the system landscape..

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 173
ALTER SYSTEM START APPLY ABSTRACT SQL PLAN Statement (new)

Starts applying stored Abstract SQL Plans.


ALTER SYSTEM START CAPTURE ABSTRACT SQL PLAN Statement (new)

Starts capturing Abstract SQL Plans.


ALTER SYSTEM { START | STOP | CLEAR } SQLSCRIPT PLAN PROFILER Statement (new)

Manages the new SQLScript plan profiler.


ALTER | REFRESH | DROP STATISTISTICS Statements (enhanced)

You can now specify more than one data statistics objects when executing these
statements.
ALTER SYSTEM CLEAR CACHE Statement (new)

Clears one or more cache instances.


ALTER SYSTEM CLEAR INIFILE CONTENT HISTORY Statement (new)

Clears .ini file content history from the catalog.

ALTER SYSTEM ENCRYPTION CONFIGURATION Statement (new)

Use the ALTER SYSTEM ENCRYPTION CONFIGURATION Statement to control whether


the system database or tenant databases control encryption configuration.
ALTER SYSTEM MIGRATE ABSTRACT SQL PLAN Statement (new)

Migrates the Abstract SQL Plan to a new SAP HANA system.


ALTER SYSTEM START DATABASE Statement (enhanced)

You can now start a tenant database using its fallback snapshot, which effectively
restores the database to the state it was at when the fallback snapshot was created.
ALTER SYSTEM STOP APPLY ABSTRACT SQL PLAN Statement (new)

Stops applying stored Abstract SQL Plans.


ALTER SYSTEM STOP CAPTURE ABSTRACT SQL PLAN Statement (new)

Stops capturing Abstract SQL Plans.


ALTER SYSTEM UPDATE ABSTRACT SQL PLAN Statement (new)

Updates the location information for Abstract SQL Plans.


ALTER TABLE Statement (enhanced)
ONLINE keyword

A new ONLINE keyword allows you to MOVE a target table or partition without blocking
DML operations while DDL operations are executing.
ALTER USER Statement (enhanced)

You can now add and remove users from user groups using the ALTER USER
statement.
ANNOTATE Statement (new)

Annotates objects such as tables, views, columns, table functions, procedures, and
parameters.

What's New in the SAP HANA Platform 2.0


174 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
CREATE AUDIT POLICY Statement (enhanced)

The following new auditing actions have been added:

● CREATE | DROP AGENT GROUP


● PERSONAL DATA ACCESS
● PERSONAL DATA MODIFICATION
● CONFIGURATION CHANGE
● SECURITY EVENT

CREATE | DROP LIBRARY Statements (new)

You can now create SQLScript user-defined libraries.


CREATE | ALTER FUNCTION Statement (enhanced)

You can now specify if a function is deterministic using the new DETERMINISTIC
keyword.
CREATE | ALTER PROCEDURE Statement (enhanced)

You can now specify if a procedure is deterministic using the new DETERMINISTIC
keyword.
CREATE | ALTER TABLE Statement (enhanced)
Support added for a new index type

A new lightweight index type with reduced memory footprint is supported: INVERTED
INDIVIDUAL.
Support added for hidden columns

A new column constraint, HIDDEN, can be specified for a column to hide the column. A
hidden column is excluded from a SELECT * on a table. It is also excluded in an INSERT
INTO..VALUES operation unless the column list specifically references it. A hidden
column still appears in system views such as TABLE_COLUMNS, INDEX_VIEWS,
PARTITIONS, and so on. In the TABLE_COLUMNS system view, a new column called
IS_HIDDEN is provided to indicate whether a column is hidden.
Additional functions supported when defining columns as GENERATED ALWAYS

The following functions are now supported with GENERATE ALWAYS when defining a
column: BASE64_ENCODE / BASE64_DECODE / BITAND / BITOR / BIT_COUNT /
HASH_MD5 / HASH_SHA256
Support added for data masking
You can now create and alter tables and columns that contain masked data, which is
only visible to users with the required privileges.
<alter_constraint_clause>
The new <alter_constraint_clause> clause allows you to enable and disable
enforcement and validation of a constraint.
HETEROGENEOUS partitioning

Use HETEROGENEOUS partitioning to create and manage first and second level
partitions. HETEROGENEOUS partitioning introduces new syntax and clauses to add,
modify, and drop partitions.
CREATE | ALTER USERGROUP Statement (enhanced)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 175
You can now set password policy options at a usergroup level using the new parameter-
set related clauses in these statements.
CREATE | ALTER VIEW Statement (enhanced)

You can now define expression macros on a view. Expression macros allow you to
perform aggregation calculations on the results from a query on a view before the
results are returned.
CREATE | ALTER WORKLOAD CLASS Statement (enhanced)

A new property, WORKLOAD TIMEOUT, allows you to specify an expiry time for running
statements.
CREATE | ALTER WORKLOAD MAPPING Statement (enhanced)

The CREATE WORKLOAD MAPPING and ALTER WORKLOAD MAPPING statements


now have the <wildcard-option> clause, which allows you to specify a wildcard for
the workload mapping property for value-matching purposes.
CREATE INDEX Statement (enhanced)

A new lightweight index type with reduced memory footprint is supported: INVERTED
INDIVIDUAL.
CREATE PROJECTION VIEW Statement (enhanced)

The CREATE PROJECTION VIEW statement has been extended to support table
associations using the new WITH ASSOCIATIONS clause.
CREATE ROLE Statement (enhanced)

The new NO GRANT TO CREATOR option prevents the automatic granting of the role to
the user who created it.
CREATE TABLE Statement (enhanced)

Using the new ADD <identity_column> syntax, you can now add an identity column
to tables created with the AS <subquery> syntax during actual table creation.

Using the new WITH clause, you can define the data that is inserted into the columns at
creation time.

A new RECORD COMMIT TIMESTAMP option has been added that tracks the commit
timestamp of a specified row.

CREATE USERGROUP Statement (enhanced)

The new NO GRANT TO CREATOR option prevents the automatic granting of all object
rights of the user group to user creating it.
DELETE Statement (enhanced)

A new WHERE CURRENT OF <cursor> syntax, allows you to delete the record at the
current location in a cursor.
DROP COLLECTION Statement (enhanced)

The DROP COLLECTION statement now supports either a CASCADE or RESTRICT


option to control the cascade behavior when there objects that are dependent on the
collection table.

What's New in the SAP HANA Platform 2.0


176 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
EXPORT Statement (enhanced)

The following enhancements have been made to this statement:

● You can now export to a single archive file by specifying a path to a file with the
extension .tar.gz or .tgz that contains the data.
● You can now filter the data exported from a table using the new WHERE clause
syntax.
● You can now export invalid objects such as a view for which the underlying table
has been dropped.

GRANT Statement (enhanced)

The following new privileges have been added:


ALL PRIVILEGES

Grants all schema privileges that exist at the time that the statement is executed.
CLIENT PARAMETER ADMIN

Authorizes a user to override the secure behavior of the CLIENT user parameter when it
is enabled.

The following privileges have changed:


UNMASKED object privilege
The UNMASKED object privilege is now supported for the table object type.
IMPORT Statement (enhanced)

You can now import catalog objects from a single archive file by specifying a path to a
file with the extension .tar.gz or .tgz that contains the data. Also, the AS
<format_option> clause has been extended to support a new LOAD_HISTORY option
to support importing from a load history file.

You can now import invalid objects such as a view for which there is no base table.
IMPORT FROM Statement (enhanced)

Previously, when using the IMPORT FROM statement to import data from a CSV file,
you could only import data into a table. Now, you can also import data into views and
synonyms.

Also, support for importing from a GZIP (.gz) file is now supported by specifying the
location and name of the GZIP file in the file path option.
INSERT Statement (enhanced)

Using the new WITH clause, you can define the data being inserted into the table. Using
the new AS clause, you can specify an alias for the table that can be referenced later in
the statement.
LOAD | UNLOAD Statements for JSON Document Store (new)
Statement (new)

You can now explicitly load and unload a collection table that stores JSON documents.
MERGE INTO Statement (enhanced)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 177
The new WHEN MATCHED clause specifies the update to perform when values match,
while the new WHEN NOT MATCHED clause specifies the insert to perform when values
do not match.
RENAME TABLE Statement (enhanced)

You can now safely rename a table even if there are foreign keys that reference it; the
foreign key references can remain during the renaming process.
REVOKE Statement (enhanced)

The new GRANTED BY <grantor> clause allows a user with the ROLE ADMIN privilege
to revoke a role that they did not grant. <grantor> specifies the user who granted
<role_name> to <grantee>.

SELECT Statement (enhanced)

SELECT .. FOR UPDATE is now supported on one or more column tables. SELECT .. FOR
UPDATE IGNORE LOCKED is now supported on column tables.

A new option, SELECT .. FOR SHARE LOCK, acquires shared locks on the queried
records. This causes the locked records stay intact until the transaction is committed
or rolled back.

UPDATE Statement (enhanced)

A new WHERE CURRENT OF <cursor> syntax, allows you to update the record at the
current location in a cursor.

SQL Functions (New and Changed)

ADD_NANO100 Function (new)

Adds the specified number of microseconds to the specified TIMESTAMP value and
returns a value.
DAYS_BETWEEN Function (behavior change)

Previously, the DAYS_BETWEEN function calculated its result differently from other
similar 'BETWEEN' functions such as SECONDS_BETWEEN; specifically, calculation of
days did not factor whether a day was a complete 24 hour block of time. This has been
changed.

The DAYS_BETWEEN function now calculates a day to be a the full (24 hour) block of
time, consistent with how other 'BETWEEN' functions perform their calculations.
EXPRESSION_MACRO Function (new)

Allows you to perform an expression macro on results returned from querying a view.
GENERATE_PASSWORD Function (new)

The new GENERATE_PASSWORD function allows you to generate a new password of


configurable length.
Enhancements to hierarchy functions

What's New in the SAP HANA Platform 2.0


178 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Complete documentation for the hierarchy feature, including for the functions listed
here, is located in the SAP HANA Hierarchy Developer Guide.

Three new hierarchy functions have been added, as described below:

HIERARCHY_ANCESTORS_AGGREGATE Function (new)

Traverses a hierarchy from the top (ancestors) to the bottom and returns an
aggregation as a result set.
HIERARCHY_COMPOSITE_ID_LENGTH Function (new)

Calculates the maximum length of a hierarchy composite node identifier based on a


source object and a list of component attributes.
HIERARCHY_DESCENDANTS_AGGREGATE Function (new)

Traverses a hierarchy from the bottom (descendants) to the top and returns an
aggregation as a result set.

Several new specifications have been added to the generator functions, as noted below:

<hierarchy_genfunc_recurse_spec>

Identifies the PARENT_ID and NODE_ID source columns using an association. This
specification is applicable to the HIERARCHY, HIERARCHY_TEMPORAL, and
HIERARCHY_SPANTREE functions.
<hierarchy_genfunc_order_spec>

Defines the sort order of sibling nodes, overriding any sort order defined in the source
specification. This specification is applicable to the HIERARCHY,
HIERARCHY_LEVELED, HIERARCHY_TEMPORAL, and HIERARCHY_SPANTREE
functions.
<hierarchy_genfunc_multiparent_spec>

Specifies the multi-parent processing policy. This specification is applicable to the


HIERARCHY and HIERARCHY_TEMPORAL functions.
<hierarchy_genfunc_cycle_spec>

Specifies the cycle processing policy. This specification is applicable to the HIERARCHY
and HIERARCHY_TEMPORAL functions.
<hierarchy_genfunc_load_spec>

Provides a hint as to how the hierarchy source should be loaded. This specification is
applicable to the HIERARCHY, HIERARCHY_TEMPORAL, and HIERARCHY_SPANTREE
functions.
NORMALIZE Function (new)

Returns a normalized string result.


RECORD_COMMIT_TIMESTAMP Function (new)

Returns a commit timestamp for the specified row of the given table.
RECORD_ID Function (new)

Returns an ID for each row of a column store or row store table.


TO_NVARCHAR Function (enhanced)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 179
New syntax for the optional <format> option allows you more flexibility in formatting
the output values of this function.
TO_VARCHAR Function (enhanced)

New syntax for the optional <format> option allows you more flexibility in formatting
the output values of this function.

System Views (New and Changed)

ABSTRACT_SQL_PLANS System View (new)

Provides information about Abstract SQL Plans.


ADAPTER_CAPABILITIES System View (new)

Specifies supported capabilities for each created adapter.


ANNOTATIONS System View (new)

Provides information about annotations that have been added to SQL objects.
ALL_AUDIT_LOG System View (new)

This new system view provides general audit information in addition to audit
information for XSA events.
AUDIT_LOG System View (enhanced)

The data types of the KEY, PREV_VALUE, and VALUE columns, have been changed to
the following:

● The KEY column data type is now NVARCHAR(2000)


● The PREV_VALUE data type is now NVARCHAR(5000)
● The VALUE data type is now NVARCHAR(5000)

CS_VIEW_PARAMETERS System View (enhanced)

The new EVALUATED_DEFAULT_VALUE column specifies the result of the evaluation of


the expression in the DEFAULT_VALUE column.. The new
IS_DEFAULT_VALUE_VOLATILE column specifies whether or not the default value is
volatile.
DATA_STATISTICS System View (enhanced)

The new INVALIDATION_REASON column specifies the reason that the data statistics
object is invalid.
EFFECTIVE_STRUCTURED_PRIVILEGES System View (enhanced)

The data type for the EFFECTIVE_FILTER and the STRUCTURED_PRIVILEGE_FILTER


columns is now NCLOB.
ENCRYPTION_ROOT_KEYS System View (enhanced)

The ROOT_KEY_VERSION column has been deprecated.


LIBRARIES System View (enhanced)

A new CREATE_TIME column provides the creation time for the library.

What's New in the SAP HANA Platform 2.0


180 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
LIBRARY_MEMBERS System View (new)

Provides member information for SQLScript user-defined libraries.


M_ACTIVE_PROCEDURES System View (enhanced)

The new ITAB_MATERIALIZATION_TIME column specifies the internal table


materialization time. The new ITAB_MATERIALIZATION_MEMORY_SIZE column
specifies the memory size of the internal table materialization.
M_CE_CALCSCENARIO_HINTS System View (new)

Exposes all hints that are defined in a calculation scenario.


M_COLLECTION_TABLE_VIRTUAL_FILES System View (new)

The new M_COLLECTION_TABLE_VIRTUAL_FILES system view provides information


about the virtual tables for JSON collections.
M_COLLECTIONS_TABLES System View (new)

The new M_COLLECTIONS_TABLES system view provides information about JSON


collections.
M_CS_ALL_COLUMN_STATISTICS (new)

Provides information on how many scans and index searches were performed on a
specified columns.
M_CS_COLUMNS System View (enhanced)

The INDEX_TYPE column has been extended to include a MINMAX value, which
specifies a minimum and maximum value of the index to scan for the given column.
M_CS_TABLES System View (enhanced)
The new HAS_RECORD_COMMIT_TIMESTAMP column returns TRUE if the table is
tracking commit timestamps, and FALSE otherwise.
M_DATABASES System View (enhanced)

A new column, FALLBACK_SNAPSHOT, indicates whether a fallback snapshot exists for


the tenant database.
M_DISKS System View (enhanced)

The new TOTAL_DEVICE_SIZE column specifies the total device size returned by the
operating system for the value in the PATH column.
M_EFFECTIVE_PASSWORD_POLICY System View (new)

The new M_EFFECTIVE_PASSWORD_POLICY view lets you check password policy


parameters for users.
M_ENCRYPTION_OVERVIEW System View (enhanced)

A new column, CONFIGURATION_CONTROL, indicates whether encryption


configuration is controlled by the system database or the local database.
M_EXPENSIVE_STATEMENT_EXECUTION_LOCATION_STATISTICS System View (enhanced)

The new CPU_TIME column specifies the tracked CPU time that each location
consumed.
M_INIFILE_CONTENT_HISTORY System View (new)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 181
Provides change history information for configuration (*.ini) files.

M_METADATA_CACHE_STATISTICS System View (new)

Provides information regarding the efficiency and use of the metadata cache.
M_MULTIDIMENSIONAL_STATEMENT_STATISTICS System View (new)

Displays all multidimensional statement statistics gathered since server startup.


M_PERSISTENCE_ENCRYPTION_STATUS System View (enhanced)

The USED_ROOT_KEY_VERSION column is deprecated and the new


USED_ROOT_KEY_HASH column specifies the hash of the root key that the service is
using.
M_REMOTE_SOURCE_STATISTICS System View (enhanced)

The new SUBSCRIPTION_SCHEMA_NAME and SUBSCRIPTION_NAME columns


specify subscription information.
M_REMOTE_STATEMENTS System View (enhanced)

The new STATEMENT_ID column specifies the ID of HANA statements. Users who run
multiple statements that generate SQL for a remote source (such as an extended store)
can join M_REMOTE_STATEMENTS with statement monitoring views such as
M_PREPARED_STATEMENT, and analyze the remote activity for any given HANA
statement.
M_RS_TABLES System View (enhanced)
The new HAS_RECORD_COMMIT_TIMESTAMP column returns TRUE if the table is
tracking commit timestamps, and FALSE otherwise.
M_SNAPSHOTS System View (enhanced)

A new column, PURPOSE, indicates the purpose of the snapshot.


M_SQL_PLAN_CACHE System View (enhanced)

The new APPLICATION_SOURCE column specifies the application source information.


M_SQL_PLAN_STATISTICS System View (enhanced)

The new APPLICATION_SOURCE column specifies the application source information.


M_SQLSCRIPT_PLAN_PROFILERS System View (new)

Lists the sessions and procedures that are currently being profiled by the SQLScript
plan profiler.
M_SQLSCRIPT_PLAN_PROFILER_RESULTS System View (new)

Stores the results generated by the SQLScript plan profiler.


M_SYSTEM_LIMITS System View (enhanced)

The following limits have been added to the view:


MAXIMUM_SIZE_OF_MEMORY_LOB_IN_COLUMN_STORE

Maximum size of an in-memory LOB for a column store table.


MAXIMUM_SIZE_OF_MEMORY_LOB_IN_ROW_STORE

Maximum size of an in-memory LOB for a row store table.

What's New in the SAP HANA Platform 2.0


182 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
MAXIMUM_SIZE_OF_PACKED_LOB

Maximum size of a packed LOB.


MAXIMUM_SIZE_OF_DISK_LOB

Maximum size of a LOB on disk


M_SYSTEM_REPLICATION_TAKEOVER_HISTORY System View (new)

Provides access to a history of HSR takeover executions.


M_TABLE_PARTITION_STATISTICS System View (new)

Returns the table partition runtime statistics.


M_TABLE_PARTITIONS System View (new)

Holds information about disk and memory used by aging tables.


M_TABLE_PRUNING_STATISTICS System View (new)

Provides an interface to access statistics for historical data.


M_TABLES System View (enhanced)

The new HAS_RECORD_COMMIT_TIMESTAMP column returns TRUE if the table is


tracking commit timestamps, and FALSE otherwise.
Monitoring System View Enhancements (enhanced)

The following monitoring system views have been enhanced to include columns that
provide information regarding the on-disk and in-memory size of paged data:

● M_CS_ALL_COLUMNS
● M_CS_COLUMNS
● M_CS_COLUMNS_PERSISTENCE
● M_CS_TABLES

REFERENTIAL_CONSTRAINTS System View (enhanced)

The IS_ENFORCED and IS_VALIDATED columns have been added to specify whether a
referential constraint is currently enforced and validated.
STRUCTURED_PRIVILEGES System View (enhanced)

The data type of the OPERAND column is now NCLOB.


TABLE_COLUMNS System View (enhanced)

The TABLE_COLUMNS system view has the new columns IS_MASKED and
MASK_EXPRESSION, which return whether a column is masked and specifies the
masked expression to users who have the required privileges.
TABLES System View (enhanced)

● The TABLES system view contains the new column HAS_MASKED_COLUMNS


which returns TRUE if the table has a mask definition for at least one column.
● The new HAS_RECORD_COMMIT_TIMESTAMP column returns TRUE if the table is
tracking commit timestamps, and FALSE otherwise.

VIEW_EXPRESSION_MACROS System View (new)

Describes the expression macros defined for views.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 183
WORKLOAD_CLASSES System View (enhanced)

A new column, STATEMENT_TIMEOUT, specifies the statement timeout property for


the workload class.
WORKLOAD_MAPPINGS System View (enhanced)

The WORKLOAD_MAPPINGS system view contains the following new columns to


support wildcard functionality:

● APPLICATION_NAME_WILDCARD
● APPLICATION_COMPONENT_NAME_WILDCARD
● APPLICATION_COMPONENT_TYPE_WILDCARD
● CLIENT_WILDCARD

XSA_AUDIT_LOG System View (new)

This new system view provides XSA auditing information.

Other changes by feature name

Enhancements to the CONTAINS Predicate

A new search specifier, <fulltext> allows you to specify whether a fulltext index on a
column is used or not.
Support for persist memory storage of tables, columns and partitions

SAP HANA now supports storage of tables, columns, and partitions in persistent
memory. The following changes have been made to support this feature:
CREATE | ALTER TABLE Statements (enhanced)

New grammar has been added to allow you to specify persistent memory storage
settings at the table, column, and partition level.
System view changes

The following views have new or changed columns to store persistent memory settings:

● TABLES System View (enhanced).


● TABLE_PARTITIONS System View (enhanced).
● TABLE_COLUMNS System View (enhanced).
● M_CS_TABLES System View (enhanced).
● M_CS_COLUMNS System View (enhanced).
● M_CS_ALL_COLUMNS System View (enhanced).
● M_PERSISTENT_MEMORY_VOLUMES System View (new).
● M_PERSISTENT_MEMORY_VOLUME_DATA_FILES System View (new).
● M_PERSISTENT_MEMORY_VOLUME_STATISTICS System View (new).

Behavior changes for sequences

Sequence values are now stored as DECIMAL instead of BIGINT. As well, the limit for
MINVALUE and MAXVALUE have changed (see details the CREATE SEQUENCE
Statement).

What's New in the SAP HANA Platform 2.0


184 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
The return type behavior for CURRVAL and NEXTVAL has changed. Previously, the
return type was always BIGINT. Now if MAXVALUE > 2^63-1(INT64_MAX) or
MINVALUE < -2^63(INT64_MAX), then the return type of NEXTVAL or CURRVAL is
DECIMAL type; otherwise, the return type is BIGINT. You can check the current value of
a sequence by querying the M_SEQUENCES system view.

The following system view columns have changed data type to DECIMAL:
SEQUENCES.START_NUMBER, SEQUENCES.MIN_VALUE, SEQUENCES. MAX_VALUE,
SEQUENCES.INCREMENT_BY, M_SEQUENCES.START_VALUE,
M_SEQUENCES.END_VALUE, and M_SEQUENCES.CURRENT_VALUE.

Similarly, the following system view columns have changed data type to INT:
SEQUENCES.CACHE_SIZE, and M_SEQUENCES.CACHE_SIZE.
CONTAINS Predicate (enhanced)

The CONTAINS predicate syntax has been extended to support a new FULLTEXT ({ ON
| OFF | AUTOMATIC }) clause. This clause allows you to control the behavior of the
CONTAINS predicate in the presence/absence of a full text index.
Support for LDAP User Authentication

Enhanced support for LDAP user authentication has been added.

USERS System View (enhanced)

A new column, IS_LDAP_ENABLED, indicates whether a user may authenticate using


LDAP authentication.
M_CONNECTIONS System View (enhanced)

The AUTHENTICATION_METHOD column now contains LDAP when a connection used


LDAP authentication to successfully authenticate a user.
ALTER USER Statement (enhanced)

You can now specify LDAP as a user authentication method with the {ENABLE|
DISABLE} <authent_mech_options clause>.

CREATE USER Statement (enhanced)

You can now specify FOR LDAP PROVIDER as an option for the WITH IDENTITY clause
to create a user enabled to use LDAP authentication.
VALIDATE LDAP PROVIDER Statement (enhanced)

Two new options, NO AUTHORIZATION CHECK and PASSWORD, have been added. If
either of these options are specified with the CHECK USER clause, then LDAP
authentication validations are performed instead of authorization checks.
Support for automatic user creation for LDAP providers

Support for automatic user creation using an LDAP provider has been added.

CREATE | ALTER LDAP PROVIDER Statements

The new ATTRIBUTE USER_NAME clause allows automatic user creation.

ALTER LDAP PROVIDER also has a new clause, DISABLE USER CREATION FOR LDAP to
disable automatic user creation for an LDAP provider.
VALIDATE LDAP PROVIDER Statement (enhanced)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 185
A new clause, CHECK USER CREATION FOR LDAP, verifies the LDAP configuration
required for automatic user creation with LDAP authentication.
LDAP_PROVIDERS System View (enhanced)

The following columns support automatic user creation:

● ATTRIBUTE_USER_NAME
● IS_USER_CREATION_ENABLED_FOR_LDAP
● IS_USER_CREATED_AS_RESTRICTED_FOR_LDAP

USERS System View (enhanced)

The column IS_CREATED_BY_LDAP_PROVIDER has been added to the view as part of


the changes to support automatic user creation.
Support for system-versioned tables

The following changes have been made to support system-versioning of column tables.
CREATE | ALTER TABLE Statements (enhanced)

A new set of clauses and options in the CREATE TABLE and ALTER TABLE statements
(<system_versioning_configuration> syntax) have been added to allow you to
configure and enable system versioning for a table.
SELECT Statement (enhanced)

A new FOR SYSTEM_TIME clause allows you to return records that were active in a
specified validity period. This new clause is for use when querying system-versioned
tables.
TABLES System View (enhanced)

A new TEMPORAL_TYPE column stores whether a table is history table (HISTORY), or a


system-versioned table (TEMPORAL). Otherwise, the value is NULL.
TABLE_COLUMNS System View (enhanced)

Two new generation types, ALWAYS AS ROW START and ALWAYS AS ROW END, are
now possible for the GENERATION_TYPE column. These values reflect a GENERATED
ALWAYS AS ROW START | END... specification on a column.
TEMPORAL_TABLES System View (new)

The new TEMPORAL_TABLES system view stores information on temporal tables such
as history tables and system-versioned tables.
SET | UNSET [SESSION] Statement (enhanced)

A new TEMPORAL_SYSTEM_TIME_AS_OF <timestamp> session variable allows you


set the session to records that occur after a specified time.
Support for client-side encryption

Support for client-side encryption has been added.


CLIENTSIDE_ENCRYPTION_COLUMN_KEYS System View (new)

Provides column encryption key information.


CLIENTSIDE_ENCRYPTION_KEYPAIRS System View (new)

What's New in the SAP HANA Platform 2.0


186 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Provides information about all of the column encryption key pairs in the SAP HANA
database.
TABLE_COLUMNS System View (enhanced)

The following new columns provide information about client-side column encryption in
the SAP HANA database: CLIENTSIDE_ENCRYPTION_STATUS,
CLIENTSIDE_ENCRYPTION_COLUMN_KEY_ID, and
CLIENTSIDE_ENCRYPTION_MODE.
VIEW_COLUMNS System View (enhanced)

The following new columns provide information about client-side column encryption in
the SAP HANA database: CLIENTSIDE_ENCRYPTION_STATUS,
CLIENTSIDE_ENCRYPTION_COLUMN_KEY_ID, and
CLIENTSIDE_ENCRYPTION_MODE.
GRANT Statement (enhanced)

The following new privileges support the client-side encryption feature:


CLIENTSIDE ENCRYPTION COLUMN KEY ADMIN

Allows a user to create, alter, and drop column encryption keys (CEKs). CEK admins
can also create a key copy of a CEK.
CREATE CLIENTSIDE ENCRYPTION KEYPAIR

Authorizes a user to create client-side encryption key pairs.


DROP CLIENTSIDE ENCRYPTION KEYPAIR

Authorizes a user to drop client-side encryption key pairs.


USAGE ON CLIENTSIDE ENCRYPTION COLUMN KEY

Authorizes a user to create or alter a table that uses a column encryption key (CEK) and
to export data from the table.
CREATE AUDIT POLICY Statement

The following audit actions have been added in support of the client-side-encryption
feature:

● CREATE CLIENTSIDE ENCRYPTION COLUMN KEY


● ALTER CLIENTSIDE ENCRYPTION COLUMN KEY
● DROP CLIENTSIDE ENCRYPTION COLUMN KEY
● CREATE CLIENTSIDE ENCRYPTION KEYPAIR
● DROP CLIENTSIDE ENCRYPTION KEYPAIR

EXPORT Statement (enhanced)

Use the new CLIENTSIDE ENCRYPTION COLUMN KEY clause to export a client
encryption key.
IMPORT Statement (enhanced)

Use the new CLIENTSIDE ENCRYPTION COLUMN KEY clause to import a client
encryption key.
CREATE TABLE Statement (enhanced)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 187
Use the new CLIENTSIDE ENCRYPTION ON WITH <key_name> clause to define a
column that contains client-side encrypted data.
ALTER TABLE Statement (enhanced)

Use the new ALTER <column_name> SET CLIENTSIDE ENCRYPTION { ON | OFF }


WITH <key_name> clause to enable client-side encryption on an existing table column.

Use the new ALTER CLIENTSIDE ENCRYPTION WITH<key_name> clause to change the
column encryption key for a column containing client-side encrypted data. Additional
ALTER TABLE commands have been added to support changing the column encryption
key for a column, as described below:
CONTINUE CLIENTSIDE ENCRYPTION clause

In cases where encryption of the column data has been interrupted, this statement
instructs the SAP HANA server to continue encryption where it left off.
CANCEL CLIENTSIDE ENCRYPTION clause

Instructs the SAP HANA server to roll back the encryption changes after encryption has
been interrupted.
CREATE CLIENTSIDE ENCRYPTION COLUMN KEY Statement (new)

Creates a column encryption key that you can use to encrypt and decrypt client-side
encrypted data.
DROP CLIENTSIDE ENCRYPTION COLUMN KEY Statement (new)

Drops a column encryption key.


ALTER CLIENTSIDE ENCRYPTION COLUMN KEY Statement (new)

Alters a column encryption key (CEK) to grant or remove access to it, and to populate it
with encryption key information.

CREATE CLIENTSIDE ENCRYPTION KEYPAIR Statement (new)

Allows you to create a client key pair.


DROP CLIENTSIDE ENCRYPTION KEYPAIR Statement (new)

Allows you to drop a client key pair.


New datetime session variables

The following datetime session variables have been added, allowing you to override the
system default datetime formats for the current session: DATE_FORMAT,
TIME_FORMAT, SECONDDATE_FORMAT, TIMESTAMP_FORMAT.
Changes to hints

View the new and updated hints in the HINT Details topic.
DOUBLE_JOIN_THRU_UNION_ALL Hints (new)

The new DOUBLE_JOIN_THRU_UNION_ALL hint prefers a pushdown join through


double union all, while the NO_DOUBLE_JOIN_THRU_UNION_ALL hint avoids a
pushdown join through double union all.
HEX_HASH_JOIN and NO_HEX_HASH_JOIN SQL Hints (new)

What's New in the SAP HANA Platform 2.0


188 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
The new HEX_HASH_JOIN hint guides the SQL optimizer to prefer HEX hash joins over
other joins, while the NO_HEX_HASH_JOIN hint guides the SQL optimizer to avoid HEX
hash joins.
RESULT_LAG Hint (updated)

The RESULT_LAG hint guides the optimizer to access source or replica tables by
evaluating stale data with the <seconds> parameter.

NO_LARGE_EXPR_MATERIALIZATION Hint (new)

Disables the early materialization of a large expression created by the SQL Optimizer.
OPTIMIZATION_TRANSFORMATION_LIMIT(<integer>) Hint (new)

The new OPTIMIZATION_TRANSFORMATION_LIMIT(<integer>) hint sets the


maximum number of transformation rules to apply during plan enumeration.
PREAGGR_BEFORE_CASE_AGGR Hints (new)

The PREAGGR_BEFORE_CASE_AGGR hint prefers pre-aggregation before case


expression aggregation while the NO_PREAGGR_BEFORE_CASE_AGGR hint avoids pre-
aggregation before case expression aggregation.

3.6.2 SAP HANA Client Interfaces Reference (New and


Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features, as documented in the SAP HANA Client
Interface Programming Reference.

Support for Client- With client-side data encryption, columns that contain sensitive data, such as credit
Side Encryption card numbers or social security numbers, are encrypted by using an encryption key
accessible only by the client. Column data is encrypted and decrypted on the client.

To use client-side encryption, ensure that your interface is meets the following
requirements. See Configuring the Client for Client-Side Encryption and LDAP.

A new SQLDBC connection property,


CLIENTSIDE_ENCRYPTION_KEYSTORE_PASSWORD, and a corresponding JDBC
connection property, cseKeyStorePassword, provide the password for the local key
store and are required when using client-side encryption.

Numerous new privileges and SQL statements have been added to support client-side
encryption. See .

Client-Side Data Encryption (SAP HANA Security Guide)

Client-Side Data Encryption (SAP HANA Administration Guide)

Support for SOCKS The following ODBC connection attributes have been added to support the SOCKS
Proxy and proxy and WebSockets communication protocol:
WebSockets
Protocol ● SQL_SQLDBC_PROXY_HOST
● SQL_SQLDBC_PROXY_PORT

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 189
● SQL_SQLDBC_PROXY_SCP_ACCOUNT
● SQL_SQLDBC_PROXY_USERID
● SQL_SQLDBC_PROXY_PASSWORD
● SQL_SQLDBC_PROXY_SERVICENAME

ODBC Connection Attributes

The following SQLDBC connection properties have been added to support the SOCKS
proxy and WebSockets communication protocol:

● PROXY_HOST
● PROXY_PASSWORD
● PROXY_SCP_ACCOUNT
● PROXY_USERID

Ruby API SAP HANA now includes the SAP HANA for Ruby project that provides two separate
packages for developing Ruby applications. Ruby Application Programming

New plug-in for The plug-in for earlier versions of Microsoft Visual Studio supports Entity Framework
Microsoft Visual connections to a database and read-only browsing. In addition to this functionality, the
Studio 2017 new plug-in supports tasks such as running scripts and creating objects. Microsoft
Visual Studio 2017 Plug-In

New and changed The following new node.js methods have been added or changed:
node.js methods
and functions connection.clearPool([Function]) Method Creates a connection pool, which can
(new) improve performance when you open
connections. clearPool([Function])

connection.state() Method (new) Returns a string that indicates the state of


the connection. state() Method

connection.{disconnect | close | end} An end function has been added to this


([Function]) Method (changed) method for compatibility with older SAP
HANA database drivers. {disconnect |
close | end}([Function]) Method

connection.exec[ute](String[, Array] A new options object has been added to


[,Object][, Function]) Method and both the exec[ute](String[, Array]
statement.exec[ute]([, Array][, Object][, [,Object][, Function]) method and the
Function]) Method (changed) exec[ute]([, Array][, Object][, Function])
method to specify the optional object
containing the options for specifying the
representation of rows in the result.
exec[ute](String[, Array][,Object][,
Function]) Method exec[ute]([, Array][,
Object][, Function]) Method

resultset.close([callback]) Method An optional callback function has been


(changed) added to the close([callback]) method.
close([Callback]) Method

What's New in the SAP HANA Platform 2.0


190 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
statement.getData(Integer, Integer, Reads a stream of bytes from the
Buffer, Integer, Integer[, Function]) specified output LOB parameter.
Method (new) getData(Integer, Integer, Buffer, Integer,
Integer[, Function]) Method

Stream Module Creates a readable stream by using an


createParameterLobStream(statement, output LOB parameter.
paramIndex, options) Function (new) createParameterLobStream(Object,
Integer, Object) Function

Stream Module Creates a statement object which


createStatement(connection, sql, executes a SQL statement with readable
callback) Function (new) streams for input LOB parameters.
createStatement(Object, String[,
Function]) Function

node.js Support for The node.js driver supports the key, cert, and ca connection properties, which allow
Encrypted you to specify encryption credentials in environments where you may not have access
Connections to the file system. These can be specified in a string or an array format. Node.js
Connection Properties Encrypting Node.js Connections

node.js Support for The node.js driver supports the POOLING connection property and Connect.clearPool
Connection Pooling Method to use connection pools. Node.js Connection Properties

JDK Support The SAP HANA JDBC driver now includes support for the Java Development Kit (JDK)
Updates (changed) 9. Support for JDK 1.6 has been removed.

Prepared Statement The new prepared statement caching feature optimizes an application by automatically
Caching (new) recognizing a cached prepared statement. The following connection properties have
been added to support prepared statement caching:

● The STATEMENTCACHESIZE connection property has been added for all SQLDBC-
based APIs.
● The statementCacheSize connection property has been added for JDBC.

Prepared Statement Caching JDBC Connection Properties ODBC Connection


Properties

Connection Connection properties for all client interfaces are now case insensitive except where
Properties are Case otherwise noted.
Insensitive for all
Interfaces
(changed)

Show Timestamp The new show timestamps JDBC trace option enables/disables timestamps for each
JDBC Trace Option trace record. JDBC Trace Options
(new)

connectTimeout The new connectTimeout JDBC connection property aborts connection attempts after
JDBC Connection the specified timeout. Setting this option to 0 disables the timeout. JDBC Connection
Property (new) Properties

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 191
Empty and Invalid SQLDBC and SQLDBC-based client interfaces no longer allow invalid SERVERNODE
SERVERNODE connection property values or a <host>:<port> location. Depending on the interface,
Connection the <host>:<port> location can be specified using the SERVERNODE connection
Properties Are No
property or using a different process. The location value syntax must be
Longer Supported
"<host>:<port>" where the host specifies a valid host name or IP address and the port
specifies a valid number between 0 and 65535. If there is more than one
<host>:<port> location, then they must be separated by a comma. An invalid or
empty location now returns an error.

CommonCryptoLib There are now two versions of the SAP HANA client installer, one which includes the
is Available in the CommonCryptoLib and one that does not. In the version that includes the
Client Installer CommonCryptoLib, you must set the $SECUDIR environment variable to the location of
(new) the libcrypto.dll or libsapcrypto.so shared library.

SQLDBC Tracing SQLDBC does not delete previous trace content when starting a new trace and archives
(updated) the original file, if any, by appending ".archive" to the original name. SQLDBC Tracing
and Trace Options

Finding the Native There is a new algorithm for finding the native Microsoft ADO.NET DLL. The DLL for the
Microsoft ADO.NET SAP HANA Data Provider for Microsoft ADO.NET
DLL (updated)

SAP HANA HDBSQL The new -history and \hi[story] options specify the number of items to keep in the
Options (new) history buffer. The default is 50. SAP HANA HDBSQL Options

Related Information

SAP Note 2036111

3.6.3 SAP HANA SQL Command Network Protocol Reference


(New and Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features, as documented in the SAP HANA SQL
Command Network Protocol Reference.

Input and Output Field Formats (new)

The following new input and output field formats have been added:

● BOOLEAN Input and Output Field Format


● FIXED8 Input and Output Field Format
● FIXED12 Input and Output Field Format

What's New in the SAP HANA Platform 2.0


192 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
● FIXED16 Input and Output Field Format

LDAP Authentication (new)

Securely transmits a client-specified password to an SAP HANA database, which then securely forwards the
password to an LDAP server.

Terminology (new)

The following new terms have been added:

● I12: Specifies a 12-byte integer in little-endian format.


● I16: Specifies a 16-byte integer in little-endian format.

3.6.4 SAP HANA Predictive Analysis Library (New and


Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the Predictive Analysis Library (PAL).

General and Architectural Changes

● Model Evaluation and Parameter Selection (new)


PAL supports model evaluation by re-sampling techniques (k- fold cross-validation and bootstrapping) and
hyper-parameter tuning by gird or randomized search. Evaluation results and some extra information are
provided in the STATISTIC table. And for parameter selection, selected optimal parameters are written into
the last OPTIMAL_PARAM table. A final model is trained using optimal parameters and whole data set.
Algorithms that support model evaluation and parameter selection:
○ _SYS_AFL.PAL_FRM
○ _SYS_AFL.PAL_ALS
○ _SYS_AFL.PAL_LINEAR_REGRESSION
○ _SYS_AFL.PAL_POLYNOMIAL_REGRESSION
○ _SYS_AFL.PAL_LOGISTIC_REGRESSION
○ _SYS_AFL.PAL_MULTILAYER_PERCEPTRON
○ _SYS_AFL.PAL_NAIVE_BAYES
○ _SYS_AFL.PAL_DECISION_TREE
○ _SYS_AFL.PAL_SVM
○ _SYS_AFL.PAL_KNN_CV
Model Evaluation and Parameter Selection

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 193
● State Enabled Prediction in Prediction Function (changed)
PAL can insert the STATE information, generated by the _SYS_AFL.CREATE_PAL_MODEL_STATE type-any
procedure into the parameter table of the predict procedure.
Functions that support state-enabled prediction:
○ _SYS_AFL.PAL_SVM_PREDICT
○ _SYS_AFL.PAL_RANDOM_DECISION_TREES_PREDICT
○ _SYS_AFL.PAL_DECISION_TREE_PREDICT
○ _SYS_AFL.PAL_CLUSTER_ASSIGNMENT
○ _SYS_AFL.PAL_LATENT_DIRICHLET_ALLOCATION_INFERENCE
○ _SYS_AFL.PAL_BINNING_ASSIGNMENT
○ _SYS_AFL.PAL_NAIVE_BAYES_PREDICT
○ _SYS_AFL.PAL_PCA_PROJECT
○ _SYS_AFL.PAL_MULTILAYER_PERCEPTRON_PREDICTT
○ _SYS_AFL.PAL_KNN
○ _SYS_AFL.PAL_FRM_PREDICT
○ _SYS_AFL.PAL_LINEAR_REGRESSION_PREDICT
○ _SYS_AFL.PAL_LOGISTIC_REGRESSION_PREDICT
○ _SYS_AFL.PAL_ALS_PREDICT
State Enabled Real-Time Scoring Functions
● Numerical Computation (new)
PAL uses a new performed numerical library in SPS03. Matrix operation related PAL algorithms, such as
logistic regression, linear regression, GLM, SVM, recommender system, PCA, and factor analysis, can
benefit from the new library with better runtime performance.
● Calling PAL Procedures in Parallel with MAP_REDUCE (new)
MAP_REDUCE allows you to embed procedures directly without table functions. It has a built-in grouping
algorithm for parallelization.
Calling PAL Procedures in Parallel with MAP_REDUCE
● Calling PAL Procedures in Parallel with Hint PARALLEL_BY_PARAMETER_VALUES (new)
Hint PARALLEL_BY_PARAMETER_VALUES enables parallel execution of PAL functions. Use a dedicated
column in input table(s) to indicate the grouping to use this hint.
Calling PAL Procedures in Parallel with Hint PARALLEL_BY_PARAMETER_VALUES

New and Changed Algorithms

● Alternating Least Square (new)


Alternating least squares (ALS) is a powerful matrix factorization algorithm for building both explicit and
implicit feedback based recommender systems.
Alternating Least Squares
● Field-aware Factorization Machine (new)
Field-aware Factorization Machine (FFM) introduces a concept of filed to indicate that some similar
features belong to the same field. Features spanned from the same categorical variable are considered as
the same filed. FFM can be applied to a variety of prediction tasks, for example, binary classification,
regression, and ranking.
Field-Aware Factorization Machine
● Hierarchical Forecast (new)

What's New in the SAP HANA Platform 2.0


194 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Hierarchical Forecast provides three forecast methods, namely bottom-up, top-down, and optimal
combination, to adjust the time series forecast results with hierarchical structure.
Hierarchical Forecast
● PageRank (new)
PageRank is an algorithm used by a search engine to determine a page’s relevance or importance.
PageRank counts the number of links to a page to roughly estimate how important the website is. A page is
considered important if it has a higher rank.
PageRank
● Logistic Regression (changed)
○ Returns convergence status (reached or not reached)
○ Exposes exit-threshold for Proximal Gradient Descent optimization method
○ Allows L2 penalty for Newton, L-BFGS optimization methods
○ Performance enhancement when using proximal gradient decent optimization or cyclic coordinate
descent
Logistic Regression (with Elastic Net Regularization)
● Generalized Linear Model (changed)
○ Supports negative binomial regression
○ Supports categorical variable
○ Supports ordinal regression
Generalised Linear Models
● Gradient Boosting Decision Tree (changed)
Added the SEED parameter

● ARIMA (changed)
Performance enhancement
ARIMA
● DBSCAN (changed)
○ Performance enhancement
○ Added the SAVE_MODEL parameter to control whether to store the JSON format model
○ Added the METHOD parameter to indicate how to search neighbors in specified radius
DBSCAN
● Triple Exponential Smoothing (changed)
Optimized the initialization method
Triple Exponential Smoothing
● Kmeans/Kmedoids/Kmedians (changed)
Added COSINE as distance
K-Means
K-Medoids
K-Medians
● KNN (changed)
○ Added COSINE as distance
○ Performance enhancement
KNN
● Random Decision Trees (changed)
Enhanced performance for sampling, out-of-bag calculation, and prediction function
Random Decision Trees

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 195
● Multi-class Logistic Regression (changed)
Added p-value, z-score, and other statistics
Multi-Class Logistic Regression
● Multi-layer Perceptron (changed)
○ Added the ReLU active function
○ Added the weight initialization option
○ Returns convergence status of optimization
○ Supports mini-batch stochastic gradient decent
Multilayer Perceptron
● Multiple Linear Regression (changed)
○ Supports training without intercept
○ Performance enhancement when using cyclic coordinate descent
Multiple Linear Regression
● Random Distribution Sampling (changed)
Supports multi-threaded number generation for Poisson Distribution
Random Distribution Sampling
● Croston's Method (changed)
Enhanced initialization method based on historical values
Croston's Method

Related Information

SAP HANA Predictive Analysis Library (PAL)

3.6.5 SAP HANA SQLScript Reference (New and Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the SAP HANA SQLScript Reference.

Error Handling for FOR UPDATE NOWAIT (Changed)

It is now possible to define an exit handler for the statement FOR UPDATE NOWAIT with the error code 146.

DECLARE EXIT HANDLER

BETWEEN Operator in SQLScript (New)

The predicate x [NOT] BETWEEN lower AND upper can now also be used in IF and WHILE statements in
SQLScript. It works just like [ NOT ] ( x >= lower AND x <= upper).

Conditionals

What's New in the SAP HANA Platform 2.0


196 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
While Loop

BOOLEAN Support in SQLScript (New)

SQLScript supports the boolean data type, and a boolean variable can be declared, assigned, and returned as
other data types.

Scalar Data Types

Variable Declaration Using LIKE (New)

When you declare a variable, you can specify its type by using the type of a persistent table, a view, or another
variable.

Table Variable Type Definition

USING and INTO Clauses in DSQL (New)

This feature introduces additional support for parameterized dynamic SQL. It is now possible to use table
variables in USING and INTO clauses and CALL-statement parameters with USING and INTO clauses are
supported.

USING and INTO Clauses in DSQL

SELECT INTO with DEFAULT Values (New)

The SELECT INTO statement is widely used for assigning a result set to a set of scalar variables. The
introduction of DEFAULT values makes it possible to assign default values to the target variables when the
result set is empty.

SELECT INTO with DEFAULT Values

Row Type Variable (New)

You can declare a row type variable that is a collection of scalar data types. You can use such variables to easily
fetch a single row from a table.

Row Type Variable

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 197
Updatable Cursor (New)

When you iterate over each row of a result set, you can use the updatable cursor to change a record directly on
the row, to which the cursor is currently pointing.

Updatable Cursor

CREATE OR REPLACE (Changed)

The command now supports any change to a procedure or a function without any of the currently existing
limitations. You can now change:

● the security mode (INVOKER, DEFINER)


● the parameter signature (parameter name, parameter type, default value)
● the result view object
● the route target

SQLScript Plan Profiler (New)

SQLScript Plan Profiler is a new performance analysis tool designed mainly from the perspective of stored
procedures and functions. When SQLScript Plan Profiler is enabled, a single tabular result per call statement is
generated.

SQLScript Plan Profiler

Procedure Result Cache / Deterministic Procedure Cache (New)

Procedure Result Cache (PRC) is a server-wide in-memory cache that caches the output arguments of
procedure calls using the input arguments as keys. Deterministic Procedure Cache is an automatic application
of PRC for deterministic procedures.

Procedure Result Cache

Map Reduce Operator (New)

MAP_REDUCE is a programming model introduced by Google that allows easy development of scalable parallel
applications for processing big data on large clusters of commodity machines. The MAP_REDUCE operator is a
specialization of the MAP_MERGE operator.

Map Reduce Operator

What's New in the SAP HANA Platform 2.0


198 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
Built-in Library SQLSCRIPT_STRING (New)

The SQLSCRIPT_STRING library offers a handy and simple way for manipulating strings. You can split libraries
with given delimiters or regular expressions, flexibly format or rearrange strings, and convert table variables
into the already available strings.

Built-in Library SQLSCRIPT_STRING

Built-in Library SQLSCRIPT_PRINT (New)

The PRINT library offers the option to print strings or even whole tables. It is especially useful when used
together with the STRING library.

Built-in Library SQLSCRIPT_PRINT

Consistent Scalar Function Result (New)

The implicit SELECT statements used within a procedure (or an anonymous block) are executed after the
procedure is finished and scalar user-defined functions (SUDF) are evaluated at the fetch time of the SELECT
statement, due to the design of late materialization. To avoid unexpected results for statements, that are out of
the statement snapshot order within a procedure or a SUDF, implicit result sets will now be materialized in case
the SUDF references a persistent table.

Consistent Scalar Function Result

User-Defined Libraries (New)

LIBRARY is a metadata object that includes multiple variables, procedures and functions. By combining
relevant procedures and functions into a single metadata object, you reduce metadata management cost.
Additionally, the atomicity of relevant objects is guaranteed because they are managed as a single object.

User-Defined Libraries

Search in Table Variables (New)

An efficient way to search by key-value pairs in table variables.

Search in Table Variables

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 199
New Rules in the SQLScript Code Analyzer (New)

Detect SELECT Statements in Scalar UDFs (New)


SELECT statements in scalar user-defined functions can have a negative impact on performance. If table
operations are really needed, procedures or table UDFs should be used instead.

COMMIT or ROLLBACK in Dynamic SQL (New)


This rule detects dynamic SQL using the COMMIT or ROLLBACK statement. It is recommended to use
COMMIT and ROLLBACK directly in SQLScript.

DML Statements in Loops (New)


The rule detects the following DML statements inside loops: INSERT, UPDATE, DELETE, REPLACE/INSERT. It is
recommended to check those findings, if you have performance problems in your SQLScript code.

Use of CE Functions (New)


The new rule USE_OF_CE_FUNCTIONS checks whether Calculation Engine Plan Operators (CE functions) are
used. Since they make optimization more difficult and lead to performance issues, they should be avoided.

Use of Unassigned Scalar Variables (New)


The rule detects scalar variables that are used but have never been explicitly assigned.

SQLScript Code Analyzer

3.6.6 SAP HANA Analytics Catalog (BIMC Views) Reference


(New and Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the SAP HANA Analytics Catalog
(BIMC Views) Reference.

Conversion Indicator (New)

The property IS_UNCONVERTED guarantees that a measure has not been converted either in the underlying
data sources, or in the current calculation view.

View BIMC_DIMENSION_VIEW

View BIMC_MEASURES

Scale (New)

The property SCALE represents the scaling factor the UI should use to present a number. It contains the
number of decimal places with which the number should be shifted to the right.

What's New in the SAP HANA Platform 2.0


200 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
View BIMC_DIMENSION_VIEW

View BIMC_MEASURES

Attribute Display Folder (New)

The property ATTRIBUTE_DISPLAY_FOLDER represents the path to be used when displaying the attribute in
the user interface. Folder names are separated by a semicolon. Nested folders are indicated by a backslash (\).

View BIMC_DIMENSION_VIEW

Table BIMC_DIMENSIONS

View BIMC_ALL_VARIABLES_VIEW (Changed)

The view BIMC_ALL_VARIABLES_VIEW now supports multi-language texts and can be queried via an MDX
SELECT statement.

View BIMC_ALL_VARIABLES_VIEW

3.6.7 SAP HANA External Machine Learning (New and


Changed)

SAP HANA Platform 2.0 SPS 03 introduces new and changed features for the External Machine Learning
Library (EML).

PREDICTM (New)

The PREDICTM function supports multiple inferences within a single AFL call. To distinguish the different sets
of inputs and results, each input table has an INTEGER "tag" column. Spans of adjacent rows with the same
INTEGER tag value are formatted into a separate inference call. The results are tagged with the corresponding
INTEGER tag in the output table’s "tag" column and appear in consecutive rows per partial result set. Where
possible, the inference calls are processed in parallel.

Multiple Inferences with PREDICTM

Data Types (Changed)

The additional SAP HANA data type INTEGER maps to the DT_INT32 and DT_INT64 TensorFlow data types and
is supported in rank 2 shapes.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 03 Features PUBLIC 201
Models and Call Signatures

Remote Sources (Changed)

New attributes allow Web proxies to be handled in gRPC remote sources:

● proxyhost: The HTTP CONNECT enabled proxy server, specified by its DNS name and port
● proxyuser: Optional proxy credentials, consisting of the proxy user and an optional proxy password

Creating Remote Sources

Software Versions (Changed)

● The recommended TensorFlow version is 1.6.


● The recommended TensorFlow Serving version is 1.5. The minimum supported version is 0.5.1.
● The gRPC version now used in EML is 1.6.2.

Components

What's New in the SAP HANA Platform 2.0


202 PUBLIC SAP HANA Platform 2.0 SPS 03 Features
4 SAP HANA Platform 2.0 SPS 02 Features

Find out about the new and changed features introduced with the SAP HANA platform 2.0 SPS 02.

4.1 Installation and Update

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for installation and update.

SAP HANA Server Installation and Update (New and Changed) [page 203]
SAP HANA Platform 2.0 SPS 02 introduces new and changed features for the installation and update of
SAP HANA.

4.1.1 SAP HANA Server Installation and Update (New and


Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for the installation and update of SAP
HANA.

Installing XS Advanced Runtime (New)

The installation of the XS advanced runtime is now supported in high availability scenarios.

Installing an SAP HANA System Including the XS Advanced Runtime

Updating SAP HANA Components (Changed)

Some AFL components can be updated without the need for a database restart and system downtime. A
component supports this feature if its manifest file contains the entry

online-upgrade-plugin: 1

Installing or Updating SAP HANA Components

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 203
4.2 Security

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for security.

SAP HANA Database Security (New and Changed) [page 204]


SAP HANA Platform 2.0 SPS 02 introduces new and changed security-related features for the SAP
HANA database.

4.2.1 SAP HANA Database Security (New and Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed security-related features for the SAP HANA
database.

User Groups (New)

It is now possible to manage related users together with user groups. Group administrators can be assigned to
manage individual user groups exclusively and independently of each other.

To be a group administrator, a user requires the new object privilege GROUP OPERATOR on the group.

User Groups

LDAP Group Authorization (New)

● For user authorization based on LDAP group membership, it is now possible to obtain the groups that
users are indirectly members of through nested groups. Nested group lookup can be configured with the
NESTED GROUP LOOKUP URL clause of the CREATE LDAP PROVIDER and ALTER LDAP PROVIDER
statements.
● LDAP group authorization can be disabled in tenant databases if it is not required.
● LDAP group authorization is now integrated into the SAP HANA database trace. Use the new LDAP trace
component to obtain diagnostic information not only from SAP HANA, but also the OpenLDAP library.

LDAP Group Authorization

CREATE LDAP PROVIDER Statement (Access Control)

Restricted Features in Tenant Databases

What's New in the SAP HANA Platform 2.0


204 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
Authorization and Authentication Enhancements (New and Changed)

● It is now possible to add comments to users, roles, and user groups using the COMMENT ON statement.
● User names may now include hyphen-minus (-).
● The new system privileges DATABASE START and DATABASE STOP are now available in the system
database. They authorize a user to stop or start tenant databases, as well as access the M_DATABASES
system view.

Encryption (Changed)

You must now back up a new data volume encryption root key or a new internal application encryption root key
before you can activate it. If you don't have an up-to-date backup of your encryption root keys you might not be
able to recover your database to its most recent state.

Changing Encryption Root Keys

hdbuserstore (Changed)

hdbuserstore key names containing underscores (_), hyphens (-), and periods (.) are now supported.

hdbuserstore Commands

SAP HANA Cockpit (New and Changed)

The SAP HANA cockpit has a number of new and enhanced features for user and role management and
encryption configuration. For more information, see the section on SAP HANA cockpit.

SAP HANA Cockpit SP 03 Features [page 217]

4.3 Planning and Design

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for planning and design.

SAP Enterprise Architecture Designer, Edition for SAP HANA (New and Changed) [page 206]
SAP HANA Platform 2.0 SP02 introduces new and changed features in SAP Enterprise Architecture
Designer, Edition for SAP HANA.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 205
4.3.1 SAP Enterprise Architecture Designer, Edition for SAP
HANA (New and Changed)
SAP HANA Platform 2.0 SP02 introduces new and changed features in SAP Enterprise Architecture Designer,
Edition for SAP HANA.

SAP Enterprise Architecture Designer, Edition for SAP HANA Core Features [page 206]
SAP HANA Platform 2.0 SP02 introduces new and changed features in SAP Enterprise Architecture
Designer, Edition for SAP HANA, edition for SAP HANA for all architectural domains.

Requirements Management [page 211]


SAP HANA Platform 2.0 SP02 introduces new features in SAP Enterprise Architecture Designer, Edition
for SAP HANA, edition for SAP HANA for requirements management.

Process Architecture [page 212]


SAP HANA Platform 2.0 SP02 introduces new features in SAP Enterprise Architecture Designer, Edition
for SAP HANA, edition for SAP HANA for process architecture.

Information Architecture [page 212]


SAP HANA Platform 2.0 SP02 introduces new features in SAP Enterprise Architecture Designer, Edition
for SAP HANA, edition for SAP HANA for information architecture.

SAP Enterprise Architecture Designer, Edition for SAP HANA Administration [page 215]
SAP HANA Platform 2.0 SP02 introduces new administration features in SAP Enterprise Architecture
Designer, Edition for SAP HANA, edition for SAP HANA.

4.3.1.1 SAP Enterprise Architecture Designer, Edition for


SAP HANA Core Features
SAP HANA Platform 2.0 SP02 introduces new and changed features in SAP Enterprise Architecture Designer,
Edition for SAP HANA, edition for SAP HANA for all architectural domains.

Homepage (Changed)

What's New in the SAP HANA Platform 2.0


206 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
The new homepage combines the old homepage and workspace screens. It provides access to all your draft
diagrams and those awaiting your review and comment. You can add your favorite diagrams and repository
folders to your homepage and also access your recently viewed diagrams.

Working with Diagrams in SAP EA Designer

Toolbox and Reuse of Local Model Objects (Changed)

The behavior of the toolbox has changed. You now create objects in your diagrams from a toolbox docked to
the left side of the diagram by drag and drop. A new local search tool allows you to reuse objects created in the
current model in your diagram.

Creating Objects in a Diagram

Navigation in Model Structure and Creation of New Diagrams in Models


(New)

A new toolbar above the diagram contains a new breadcrumbs control, which allows you to navigate through
the structure of models subdivided into packages, and a view selector, which lets you navigate between
diagrams in the current package, create new diagrams in the package, and open the new list viewer to list the
diagrams in the package.
Navigating in the Model Structure

List Viewer (New)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 207
The new list viewer provides an alternative tabular view of the objects in the current package, and is accessed
through the view selector in the toolbar above the diagram. You can filter the list by name or other properties
and choose the columns to display.

Viewing Lists

CSV Import (New)

You can import lists of objects defined in CSV files into your diagram. For example, if you have lists of sites,
servers, people, and applications, you can import them rather than creating them manually.

Importing Objects from CSV Files

Heat Map Coloring of Diagrams (New)

You can apply heat map coloring to any diagram. The coloring can be used to highlight objects impacted by the
selected object or, for enterprise architecture diagrams, to display their level of compliance with analysis
criteria:

What's New in the SAP HANA Platform 2.0


208 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
Applying Heat Map Coloring to a Diagram

Analysis Criteria (New)

Criteria allow you to define a benchmark, standard, or scale, and then rank your enterprise artifacts against it.
Criteria can be used to drive heat map coloring of your enterprise architecture diagrams:

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 209
Analyzing EAM Objects with Criteria

AutoLayout for Diagrams and Composite Symbols (Changed)

New autolayout options help you organize symbols and links in your diagrams and sub-symbols inside
composite symbols.

Auto-Layout for Diagrams and Composite Symbols

Impact Analysis (Changed)

The impact and lineage analysis will now provide, by default, up to three expanded levels of impacts
(comprising up to 100 objects) and lineages. To pursue the analysis further, click on a plus sign on the edge of
the tree. Link objects are no longer displayed in order to simplify the analysis diagram, and you can open any
object displayed in the tree in its original diagram.

What's New in the SAP HANA Platform 2.0


210 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
Impact and Lineage Analysis

Architecture Areas (Changed)

Architecture areas, which allow a loose grouping of objects are now available in database diagrams and in
NoSQL diagrams.

Areas

Share Links to Repository Folders, Documents, and Objects (New)

You can now share links to these repository objects.

Browsing The Repository

Business Function Renamed to Business Capability (Changed)

This change aligns the object more closely with common industry terminology.

Business Capabilities

4.3.1.2 Requirements Management

SAP HANA Platform 2.0 SP02 introduces new features in SAP Enterprise Architecture Designer, Edition for
SAP HANA, edition for SAP HANA for requirements management.

Import and Export ReqIF Files (New)

Requirements Interchange Format (ReqIF) files are XML files used to exchange requirements between different
requirement management tools. You can import a .reqif file or a .reqifz ZIP archive containing a .reqif
file and associated images to a requirement list and export all or parts of a requirements list (including any
images contained in your requirements) to a .reqifz ZIP archive.

Importing Requirements from a ReqIF File

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 211
Compare Requirements Document Versions

You can now compare two versions of a requirements document to obtain a color-coded visualization of
differences between them.

Comparing Diagram Versions

4.3.1.3 Process Architecture


SAP HANA Platform 2.0 SP02 introduces new features in SAP Enterprise Architecture Designer, Edition for
SAP HANA, edition for SAP HANA for process architecture.

Import SAP Solution Manager v7.2 Process Diagrams (New)

You can now import SAP Solution Manager 7.2 process diagrams. You can share and comment on Solution
Manager business process diagrams, link their objects to objects in other models, and include them in impact
analysis.

Importing SAP Solution Manager 7.2 Process Diagrams

4.3.1.4 Information Architecture


SAP HANA Platform 2.0 SP02 introduces new features in SAP Enterprise Architecture Designer, Edition for
SAP HANA, edition for SAP HANA for information architecture.

Data Movement Diagrams (New)

What's New in the SAP HANA Platform 2.0


212 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
Data movement diagrams help you design and analyze the transfer of data between data stores, and the
transformations that they undergo on the way. SAP EA Designer supports the creation of data movement
diagrams manually or by reverse-engineering of FlowGraph files. You can model ETL flows and generate
FlowGraph files for import to SAP Web IDE for activation.

Data Movement

NoSQL Diagrams (New)

NoSQL diagrams help you design, analyze, and document the JSON structures that are accepted and
generated by your systems. SAP EA Designer supports the creation of NoSQL JSON Schema models manually,
or by reverse-engineering of a schema or sample data file. You can model JSON artifacts and generate JSON
schema and sample data files.

NoSQL

Reverse of SQL Scripts (New)

You can reverse a .sql script file to your database diagram.

Reverse-Engineering a Database

Graphical SQL views (New)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 213
You can visualize your SQL view in a read-only diagram, showing each of the view's data sources and joins.

Views

HDI DataStores (New)

You can model, generate, and reverse-engineer DataStores (also known as NDSOs) in your HANA HDI
diagrams.

Datastores (HDI)

Visible Dependencies for Calculation Views (New)

Your calculation views now point to their sources in the HANA HDI diagram:

Calculation Views (HDI)

What's New in the SAP HANA Platform 2.0


214 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
Teradata v15 (New)

SAP EA Designer supports the creation of Teradata v15 data models manually, by reverse-engineering, or by
generation from another data model.

Teradata 15

Git Support (New)

You can reverse HDI files from and generate them to your Git repository. Git is also supported as a source and
target for the reverse and generation of JSON files, and as a target for generating FlowGraph files.

Reverse-Engineering HDI Files

4.3.1.5 SAP Enterprise Architecture Designer, Edition for


SAP HANA Administration

SAP HANA Platform 2.0 SP02 introduces new administration features in SAP Enterprise Architecture Designer,
Edition for SAP HANA, edition for SAP HANA.

XSA User Authentication (New)

Users with SAP HANA accounts can log in using their XS Advanced user and password. XSA is only used for
authentication. Rights and permissions on repository folders and documents are controlled in the repository.

Managing Externally-Authenticated Repository Users

Push Folders and Diagrams to Users' Homepages (New)

The repository administrator can push diagrams and folders to users' homepages to give them personalized
entry points to the repository. Diagrams appear as cards in the user's homepage, and folders as entries in the
Quick Links card. You can push diagrams and folders to individual users or to groups.

Pushing Diagrams and Folders to Users' Homepages

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 215
4.4 Administration

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for the administration of SAP HANA.

SAP HANA Cockpit (New and Changed) [page 216]


SAP HANA Platform 2.0 SPS 02 introduces new and changed features for the SAP HANA cockpit with
SAP HANA cockpit support package (SP) 03.

SAP HANA System Administration (New and Changed) [page 223]


SAP HANA Platform 2.0 SPS 02 introduces new and changed features for the administration of SAP
HANA.

SAP HANA Application Lifecycle Management (New and Changed) [page 225]
SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA Application
Lifecycle Management for SAP HANA extended application services, advanced model (XS advanced).

SAP HANA High Availability (New and Changed) [page 226]


SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA high availability.

SAP HANA Database Backup and Recovery (New and Changed) [page 227]
SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA backup and
recovery.

SAP HANA Application Run-Time Services (New and Changed) [page 227]
SAP HANA Platform 2.0 SPS 02 introduces new and changed features for the application run-time
services in SAP HANA.

SAP HANA Smart Data Access (New and Changed) [page 229]
SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA smart data
access.

4.4.1 SAP HANA Cockpit (New and Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for the SAP HANA cockpit with SAP
HANA cockpit support package (SP) 03.

SAP HANA Cockpit SP 03 (New)

SAP HANA cockpit SP 03 is now available.

SAP HANA Cockpit SP 03 Features [page 217]

About SAP HANA Cockpit SPs

SAP HANA cockpit SPs are available independently of the SAP HANA 2.0 platform revision, but may be
included as part of SAP HANA platform revisions.

What's New in the SAP HANA Platform 2.0


216 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
Included in SAP HANA Platform 2.0
SAP HANA Cockpit SP Release Note Revision

00 SAP Note 2380291 Included with revision 2.00.000

01 SAP Note 2414668 -

02 SAP Note 2433764 Included with revision 2.00.010

03 SAP Note 2462387 Included with revision 2.00.020

SAP HANA cockpit SPs are cumulative. This means that a higher SP includes all features and fixes available in
earlier SPs.

Feature Available with Earlier SPs


SAP HANA Cockpit SP 02 Features [page 269]

SAP HANA Cockpit SP 01 Features [page 275]

4.4.1.1 SAP HANA Cockpit SP 03 Features

Find out about the new and changed features introduced with the SAP HANA cockpit SP 03.

Administration and Monitoring [page 218]


SAP HANA cockpit SP 03 introduces new and changed features for system administration and
monitoring.

SAP HANA Database Explorer [page 219]


SAP HANA cockpit SP 03 introduces new and changed features for SAP HANA database explorer.

Performance Monitoring and Analysis [page 219]


SAP HANA cockpit SP 03 introduces new and changed features for performance monitoring and
analysis.

User Management and Security Administration [page 220]


SAP HANA cockpit SP 03 introduces new and changed features for user management and security-
related administration.

High Availability and Scalability [page 221]


SAP HANA cockpit SP 03 introduces new and changed features for high availability and scalability.

Backup and Recovery [page 222]


SAP HANA cockpit SP 03 introduces new and changed features for backup and recovery.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 217
4.4.1.1.1 Administration and Monitoring

SAP HANA cockpit SP 03 introduces new and changed features for system administration and monitoring.

Managing Tenant Databases (Changed)

The Database Services app now has additional capabilities. For a selected tenant, you can now:

● Set limits for memory allocation and for CPU cores


● Change the number of reserved instances
● Set backup options
● Restrict or blacklist tenant features
● Enable or disable auto-restart

Managing Tenant Databases

System Health (Changed)

The System Health app for multi-host systems has been enhanced with additional functionality.

Monitoring Health in Multi-Host Systems

Resource Registration (Changed)

You can now import and export resources.

Working with Resources and Resource Groups

Administering Offline Resources (Changed)

The SAP HANA cockpit for offline administration is no longer required for the administration of offline
resources. With SP 03, the SAP HANA cockpit includes all capabilities that could formerly be performed only
through the SAP HANA cockpit for offline administration. While the SAP HANA cockpit for offline
administration is still available, it is recommended that you instead use the SAP HANA cockpit.

What's New in the SAP HANA Platform 2.0


218 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
4.4.1.1.2 SAP HANA Database Explorer

SAP HANA cockpit SP 03 introduces new and changed features for SAP HANA database explorer.

SQL Console Enhancements

Ability to determine which database The SQL console now displays the database system that is
system a SQL console is connected to connected to on the console toolbar.

Ability to rename SQL console tabs The SQL console now allows you to rename the console tab by
right-clicking the tab and clicking Rename.

Database Object Searching Enhancements

The Object Search now allows you to limit your search to a specific database.

Connection Enhancements

A Connection Status Dialog now appears if you experience network connectivity problems. The dialog allows
you to re-establish the connection.

Related Information

Getting Started With the SAP HANA Database Explorer

4.4.1.1.3 Performance Monitoring and Analysis

SAP HANA cockpit SP 03 introduces new and changed features for performance monitoring and analysis.

Performance Monitor (Changed)

On the Performance Monitor page, you can zoom into a specific time frame by selecting it directly on the load
chart.

Monitoring and Analyzing with the Performance Monitor

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 219
Threads (Changed)

On the Threads page, you can identify what transaction is blocking a statement in a dedicated column.

Threads

Capture and Replay (Changed)

Capture and Replay offers the following new functionalities:

● On the Replay Configuration page it is now possible to select more than one replayer from the Replayer List
in the Replayer Information section.
● On the Replay Configuration page you can set optional filters (for example, statement type) in the General
Information section.
● On the Replay Configuration page it is possible to see which type of requests are not supported for the
replay step.

Capturing and Replaying Workloads

Workload Analyzer (Changed)

The workload analyzer based on thread samples offers now the possibility to import and export datasets in
order to store the data in an application and to analyze it in another system.

The workload analyzer based on engine instrumentation offers now the possibility to set specific filters (for
example, statement hash, thread type, or application source) on the upper part of the screen.

Analyzing Workloads

4.4.1.1.4 User Management and Security Administration

SAP HANA cockpit SP 03 introduces new and changed features for user management and security-related
administration.

Database User and Role Management (Changed)

● If you are implementing user authorization based on LDAP group membership, you can now set the
authorization mode of a user to LDAP on the User page.
Users configured for LDAP authorization are then automatically granted the roles that are mapped to the
groups of which they are a member. A user with authorization mode LDAP is granted roles exclusively
based on their LDAP group membership. It is not possible to grant such a user other roles or privileges
directly.

What's New in the SAP HANA Platform 2.0


220 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
● You can now add a comment to user definitions.

Create a Database User

Encryption Configuration and Encryption Key Management (New)

● In addition to data volume encryption, it is now possible to see and change the status of redo log
encryption and backup encryption on the Data Encryption tile of the Overview page.
● The Data Encryption tile now opens the new Data Encryption Configuration page. Here, you can see the
status of all data encryption services, enable and disable each service, and access the page for managing
encryption keys.
● The new Manage Keys page allows you to see the status and version history of all encryption root keys in
your database. You can also perform all steps required to change your root keys safely, including creating a
password-protected root key backup.

Enabling Encryption of Data and Log Volumes

Enable Encryption of Data and Log Backups

Change Root Keys Using SAP HANA Cockpit

4.4.1.1.5 High Availability and Scalability

SAP HANA cockpit SP 03 introduces new and changed features for high availability and scalability.

Secondary Read Access (New)

On the System Replication Overview it is now possible to see when the SQL ports of the secondary system are
open for read access.

Monitoring SAP HANA System Replication with the SAP HANA Cockpit

Network Security Settings (New)

It is now possible to view the specific network security details configured between the primary and secondary
systems using the Network Security Settingstab on the System Replication Overview.

Monitoring SAP HANA System Replication with the SAP HANA Cockpit

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 221
Monitor Network (New)

It is possible to monitor the network using the Monitor Network link in the SAP HANA cockpit. The Measure
Network Speed link on the Monitor Network page offers the possibility to measure the network speed between
the hosts in a scale-out SAP HANA database. The Network Speed Check list offers an overview of all network
channels between the involved hosts starting with the slowest network connection.

Configuring the Network for Multiple Hosts

4.4.1.1.6 Backup and Recovery

SAP HANA cockpit SP 03 introduces new and changed features for backup and recovery.

Copying an SAP HANA Database

SAP HANA cockpit now allows you to copy a database using backup and recovery.

You can copy a system database or a tenant database within the same system or to a different system.

It is possible to copy an SAP HANA database using file-based backups or backups created with third-party
tools.

Copy a Database

Backup Encryption (Changed)

SAP HANA native backup encryption can now be enabled and disabled from SAP HANA cockpit.

Enable Encryption of Data and Log Backups

Enable Encryption of Data and Log Backups

What's New in the SAP HANA Platform 2.0


222 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
4.4.2 SAP HANA System Administration (New and Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for the administration of SAP HANA.

Tenant-Specific Licenses (New)

It is now possible to install licenses individually in tenant databases. A license installed in a tenant database is
valid only for that database. If no license is available in a tenant database, the license installed in the system
database applies.

License Keys for SAP HANA Database

Workload Management (Changed)

Admission control
The Admission Control feature (first introduced in SPS 01) is now enabled by default. Default values for a
number of the configuration parameters for this feature have been revised in the SPS 02 release.

Workload Classes
Two additional properties are now available in workload classes: TOTAL STATEMENT MEMORY LIMIT and
TOTAL STATEMENT THREAD LIMIT. These set limits which apply to all statements currently running for the
class as a whole.

Workload Management

Table Replication: Row Store to Column Store Tables (New)

You can now replicate data asynchronously from a row store source table to a column store target table in a
scale-out environment. Row store tables typically provide better performance for transactional (OLTP)
workload in comparison to column store tables. Similarly, column store tables offer the best performance for
analytics (OLAP) workload. Row to column table replication may therefore be an optimal replication
configuration for mixed workload types to get the best performance from both types of table. SQL commands
are now available to implement this kind of table replication.

Row to Column Table Replication

Partitioning: Dynamic Partition Pruning (New)

Pruning is a background process which optimizes query processing on partitioned tables. Static partition
pruning analyzes queries to determine whether or not they match the given partitioning specification of a table.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 223
Dynamic partition pruning is a new extension of this feature which applies pruning to aging tables. It uses pre-
calculated statistics to identify the specific columns and partitions which are required for the query currently
running; this avoids the need to access and load into memory partitions which are not required.

Static and Dynamic Partition Pruning

Configure Host-Independent Tenant Addresses (New)

The client connection to a tenant database is established over port 3<instance_no>13. If a tenant database is
moved to another system, the instance number of the system and consequently the connection port will
change. To establish a connection independent of its current host, you can specify additional port numbers and
map them to the tenant.

Configure Host-Independent Tenant Addresses

Restricted SQL Access (New)

You can open additional SQL ports to prevent SQL access on port 3<instance>13. This prevents the exposure
of the system database SQL administration port to the external network. You enable this feature by setting the
property [multidb] systemdb_separated_sql_port to true in the global.ini file.

Port Assignment in Tenant Databases

Prevent the Start of a Tenant Database at System Startup (New)

By default, all tenant databases that were running before the SAP HANA system was stopped are restarted
upon system startup. For troubleshooting purposes you may want to prevent a particular database from
starting until the issue is resolved.

Prevent the Start of a Tenant Database at System Startup

Authorization for Database Stop/Start (New)

Two new system privileges were introduced to authorize users to start and stop a database: DATABASE START
and DATABASE STOP. Both system privileges are part of DATABASE ADMIN.

Start a Tenant Database

Stop a Tenant Database

What's New in the SAP HANA Platform 2.0


224 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
Table Consistency Check (Changed)

To perform table consistency checks, it is no longer necessary to enable the corresponding collector. These
checks are now performed automatically.

Table Consistency Check

SAP HANA HDBSQL (Changed)

HDBSQL Recognizes HDBSQL has been enhanced to recognize BEGIN...END blocks in a file or interactive
BEGIN...END Blocks in a input so that you no longer need to modify the script and use the -separatorownline
File option. The -separatorownline behavior remains available when the option is
specified, but it has been marked as deprecated.

New option - The new -attemptencrypt option specifies that encrypted data transmission is used.
attemptencrypt If the connection fails, it attempts to use unencrypted connections which results in
the following warning, "The encrypted communication attempt failed. Retrying the
connection attempt without encryption options."

SAP HANA HDBSQL Options

4.4.3 SAP HANA Application Lifecycle Management (New


and Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA Application Lifecycle
Management for SAP HANA extended application services, advanced model (XS advanced).

Integration of XSA Application Lifecycle Management Graphical User


Interface in SAP HANA Cockpit (Changed)

You can start the SAP HANA Application Lifecycle Management Graphical User interface for a particular
resource using one of the following links in the SAP HANA Application Lifecycle Management section in the SAP
HANA Cockpit.

The following links are available:

● Installing, updating and uninstalling XS advanced components


● Installing, updating and uninstalling XS advanced products
● Displaying the installation history of XS advanced components and products

SAP HANA Cockpit

SAP HANA Application Lifecycle Management

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 225
Installing and Updating Products and Software Components in SAP HANA
XS Advanced Model (New and Changed)

● If an extension descriptor is used for the installation process, the system checks that the extension
descriptor file does not exceed a specific file size and that the syntax of the extension descriptor file is
correct. If the file is too big or if the syntax is incorrect, the system will not start the installation process.
● Installing and Updating Using the Command Line Interface: The new command display-
installation-history was introduced that allows you to display the installation history .

Installing and Updating Using the Command Line Interface

Checks Before Installing or Updating Products or Software Components in SAP HANA XS Advanced Model

4.4.4 SAP HANA High Availability (New and Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA high availability.

srReadAccessInitialized (New)

The srReadAccessInitialized() hook shows on the primary system when the SQL ports are open on the
secondary system.

Hook Methods

Alert ID 104: System Replication Increased Log Shipping Backlog (New)

Alert 104 is raised when the system replication log shipping backlog is increased. In this case, the log shipping
to the secondary system is delayed or will not work properly causing data loss on the secondary system in case
a takeover is executed.

Copying and Moving Tenant Databases in a System Replication Landscape


(Changed)

It is now possible to copy or move a tenant database to a primary system in a running system replication
configuration. It is also possible to copy or move a tenant database from a primary system in a running system
replication configuration to another target system, which is different from the secondary system.

Copying and Moving Tenant Databases

What's New in the SAP HANA Platform 2.0


226 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
4.4.5 SAP HANA Database Backup and Recovery (New and
Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA backup and recovery.

SAP Business Warehouse Extension Nodes

SAP HANA backup and recovery now provides extended support for worker groups.

If you are using extension nodes for SAP Business Warehouse, and have defined worker groups, information
about the worker groups for each volume are stored as part of SAP HANA full backups (complete data backups
and data snapshots).

Before you start a recovery, you must ensure that the worker groups in the SAP HANA system and the backups
have the same names.

Points to Note: Extension Nodes for SAP Business Warehouse

Extension Node

Documentation (Changed)

From now on, the term data snapshot is used instead of storage snapshot, which was used in previous SAP
HANA releases.

4.4.6 SAP HANA Application Run-Time Services (New and


Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for the application run-time services in
SAP HANA.

The following changes are included with SAP HANA 2.0 SPS 02 for the management of the XS advanced run-
time component:

● XSA CLI
The XSA command-line interface enables you to manage XS advanced instances and services without
stopping the SAP HANA database.
● XS CLI
The xs command-line interface enables you to manage the XS advanced run-time environment and its
components.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 227
XSA CLI (Changed)

Additions, changes, and improvements have been made to the XSA CLI in the following areas:

● set-certificate
Set the certificate for the default domain after the XS controller is shut down
● save-ssfs-to-dbss
Create a backup copy of the XS advanced file-system secure store and save it in the database secure store;
the file-system secure store is then included automatically in the regular database backup operation
● restore-dbss-to-ssfs
Restore the XS advanced file-system secure store from the backup copy saved in the database secure
store
● show-stored-parameters-from-secure-store-db
Display a list of the parameters stored within the secure-store database after the last successful startup of
the XS advanced controller
● delete-user-data
Ensure data privacy rules are respected by erasing user data from the log files

XS CLI (Changed)

Additions, changes, and improvements have been made to the xs CLI in the following areas:

● Application management
Added the wait-for-apps command
● Services management
Updated the marketplace and services commands
● Routes
Added the --path option for specifying the application context (for example, /path/myapp to the create-
route, delete-route, map-route, and unmap-route commands in the Routes section
● Administration
Moved the service-urls command to the Other Commands section
● Other Commands
Added the service-urls command
● Plug-ins
Updated the display-installation-logs command
Added the display-installation-history command

Related Information

SAP HANA Administration Guide

What's New in the SAP HANA Platform 2.0


228 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
4.4.7 SAP HANA Smart Data Access (New and Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA smart data access.

Linked Database (Changed)

Linked database is now extended to any smart data access remote source.

Linked Database Overview

Remote Source Failover (New)

If a connection to a remote source becomes unavailable, the smart data access remote source reconnects to
one of the hosts specified in the host list. Automatic failover is enabled through the ODBC connection
configuration and is dependent of whether the remote source itself supports failover.

Automatic Failover Support

Safe Mode For ODBC Connections (New)

HANA Smart Data Access provides the capability to load ODBC drivers and execute ODBC calls from within the
scriptserver process. This reduces potential issues with the indexserver caused by third-party ODBC drivers.

Safe Mode for ODBC Connections

Setting Session Specific Information for Connections to SAP HANA Remote


Sources

Session specific client information can now be set for connections to SAP HANA remote sources.

Remote Statement Details

The Remote Statement Details page in SAP HANA Cockpit now includes the size of fetched records in bytes.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 229
4.5 Development

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for development.

SAP HANA XS Advanced Development (New and Changed) [page 230]


For SAP HANA Platform 2.0 SPS 02, SAP HANA supports development and deployment of SAP HANA
extended application services (XS) advanced model applications.

Text Search, Text Analysis, and Text Mining [page 235]


SAP HANA Platform 2.0 SPS 02 introduces new and changed features for text search, text analysis,
and text mining.

SAP Web IDE for SAP HANA (New and Changed) [page 240]
SAP HANA Platform 2.0 SP02 introduces new and changed features for SAP Web IDE and integrated
SAP HANA tools.

SAP HANA Graph (New and Changed) [page 246]


SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA Graph.

SAP HANA Spatial (New and Changed) [page 246]


SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA Spatial.

SAP HANA Interactive Education (SHINE) for XS Advanced (New) [page 247]
SAP HANA Platform 2.0 SPS 02 introduces new features for SAP HANA Interactive Education (SHINE)
for XS Advanced.

SAP HANA Extended Application Services classic model (XS classic) and SAP HANA Repository [page
248]
SAP HANA Extended Application Services classic model (XS classic) and SAP HANA Repository are
deprecated as of SAP HANA 2.0 SPS 02.

4.5.1 SAP HANA XS Advanced Development (New and


Changed)

For SAP HANA Platform 2.0 SPS 02, SAP HANA supports development and deployment of SAP HANA
extended application services (XS) advanced model applications.

This section contains details of changes and additions to the following development related tools and features:

● Application Migration (new) [page 231]


● Application Run-Time Environment (New and Changed) [page 231]
● Application Router (New) [page 232]
● Deployment Service (New and Changed) [page 232]
● SAP HANA Deployment Infrastructure (New and Changed) [page 232]
● Core Data Services (New) [page 233]
● Command-Line Interface (New and Changed) [page 233]
● Developer Documentation (New and Changed) [page 234]

What's New in the SAP HANA Platform 2.0


230 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
Application Migration (new)

The XS Advanced Migration Assistant enables you to migrate an XS classic application to run in the XS
advanced run-time environment. For SAP HANA 2.0 SPS 01 and SPS 02, the migration assistant includes the
following new or changed features:

● Staged migration (changed)


Migrate an XS classic application to XS advanced in semantic units using the XS Advanced Migration
Assistant.
● HTA mode (changed)
A new option (--hta) for the XS Advanced Migration Assistant, which produces output that does not include
information about permissions defined in .hdbgrants artifacts or role artifacts that are used to enable
public access to synonym targets.
● Migrating flow graphs (new) and time-series models (new)
Flow graphs and time-series models are part of the completely automated migration strategy using the XS
Advanced Migration Assistant.

Application Run-Time Environment (New and Changed)

With SAP HANA 2.0 SPS 02, SAP HANA XS advanced provides the following run-time environments for your
application:

● JavaScript/Node.js (changed)
SAP HANA XS, advanced model, provides a JavaScript run time to which you can deploy your Node.js and
XS JavaScript applications.

 Note

The XS JavaScript (XSJS) run time is a compatibility layer that runs on top of Node.js and enables you
to execute your existing code base, for example, .xsjs and .xsjslib files.

○ SAP NPM Registry (New)


SAP-specific Node.js packages are now available on a public registry (npm.sap.com)
● Java (changed)
SAP HANA XS, advanced model, provides a Java run time to which you can deploy your Java applications.
The Java run time for SAP HANA XS advanced provides a Tomcat or TomEE run time to deploy your Java
code. The following components are new (or changed) for SAP HANA 2.0 SPS 02:
○ sap-java-hdi (changed)
Version 2.0 of the SAP HANA DI (HDI) client library for Java applications,sap-java-hdi, wraps the
HDI SQL APIs in Java classes and methods.

 Tip

Version 2.0 of sap-java-hdi is not compatible with sap-java-hdi version 1.0.

● Custom run time (changed)


You can also create and run a custom run-time environment of your own in XS advanced, so that you can
deploy applications written using languages such as Python or PHP, which are not supported by any of the
default run-time environments included in the XS advanced run-time store.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 231
 Restriction

SAP does not provide support for custom language, buildpack, or run-time scenarios.

Applications deployed to a custom run-time environment in XS advanced do not have automatic access to
(or use of) some important features that are built into and supported by the XS advanced framework,
including (but not limited to): authentication and security, logging and auditing, and connections to the
database. If you deploy an application to a custom run-time environment in XS advanced, you must
configure these components manually for the custom application

Application Router (New)

For SAP HANA Platform 2.0 SPS 02, SAP HANA XS advanced provides the following updates and new features
for the Node.js application router (approuter.js):

● CORS
The XS advanced Node.js-based application router includes a new environment variable that you can use
to enable support for cross-origin request sharing (CORS). CORS enables you to override a Web browser's
security policy so that Web pages from other domains can make HTTP requests to your application
domain.

Deployment Service (New and Changed)

For SAP HANA Platform 2.0 SPS 02, SAP HANA XS advanced provides the following updates and new features
for the deployment service, for example, in the deployment descriptor (mtad.yaml) and the XS CLI command
xs deploy):

● Updates to MTA module and resource types (changed)


● Support for “optional” resources with XS advanced applications (new).
In this scenario, the application must be able to compensate for the absence of any “optional” resources
during deployment.

SAP HANA Deployment Infrastructure (New and Changed)

For SAP HANA Platform 2.0 SPS 02, SAP HANA XS advanced provides the following updates and new features
for SAP HANA Deployment Infrastructure (HDI):

● HDI administration tools (new)


● HDI artifact types and build plug-ins (changed):
○ Database table constraints (.hdbconstraint)
○ DocStore Collections (.hdbcollection)

What's New in the SAP HANA Platform 2.0


232 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
Core Data Services (New)

For SAP HANA Platform 2.0 SPS 02 SAP HANA XS advanced provides the following updates and new features
for Core Data Services (CDS):

● Tables and views defined in CDS can now be enhanced with comments.

Command-Line Interface (New and Changed)

For SAP HANA Platform 2.0 SPS 02, SAP HANA XS advanced provides the following updates and new features
for the XS advanced command-line interfaces (CLI):

● XSA CLI
Use the XSA command-line interface to manage XS advanced instances and services without stopping the
SAP HANA database.
● XS CLI
Use the xs command-line interface (CLI) to manage the XS advanced run-time environment and its
components.

XSA CLI (New)


Numerous additions, changes, and improvements have been made to the XSA CLI in the following areas:

● set-certificate
Set the certificate for the default domain after the XS controller is shut down
● save-ssfs-to-dbss
Create a backup copy of the XS advanced file-system secure store and save it in the database secure store;
the file-system secure store is then included automatically in the regular database backup operation
● restore-dbss-to-ssfs
Restore the XS advanced file-system secure store from the backup copy saved in the database secure
store
● delete-user-data
Erase user data from the log files

XS CLI (Changed)
Numerous additions, changes, and improvements have been made to the xs CLI in the following areas:

● Application management
Added the wait-for-apps command
● Services management
Updated the marketplace and services commands
● Administration
Moved the service-urls command to the Other Commands section
● Other Commands
Added the service-urls command
● Plug-ins
Updated the display-installation-logs command
Added the display-installation-history command

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 233
Developer Documentation (New and Changed)

This section contains information about additions or changes to the following development-related documents
for SAP HANA 2.0 SPS 02:

● SAP HANA Developer Information Map


● SAP HANA Developer Quick Start Guide
● SAP HANA Developer Guide for SAP HANA XS Advanced Model

SAP HANA Developer Information Map


For SAP HANA 2.0 SPS 02, the SAP HANA Developer Information Map has been improved and expanded to
enable much quicker and easier access to the library of information available to help develop XS advanced
applications. You can now access the information from the following perspectives:

● Developer Guide
Which document am I interested in (developer, reference, programming language), what is its title, what
information does it contain, and where do I find it?
● Developer Tasks
What am I trying to do, what tasks are required to do it, and where do I find the information about these
tasks?
● Developer Scenario
Which developer role or persona is most typically associated with the information I need to find: database
development, application development, or user-interface client design?

SAP HANA Developer Quick Start Guide


For SAP HANA 2.0 SPS 02, the SAP HANA Developer Quick Start Guide has been greatly simplified allowing
much quicker and easier access to the tutorials designed to get you started with the process of developing
applications for the XS advanced run-time environment.

SAP HANA Developer Guide for SAP HANA XS Advanced Model


The SAP HANA Developer Guide for SAP HANA XS Advanced Model describes the recommended process to
follow when building and deploy applications that run in the SAP HANA extended application services,
advanced model (XS advanced) run time; it also describes the required technical structure of applications that
can be deployed to the XS advanced run-time platform using either SAP Web IDE for SAP HANA along with
administration and command-line tools.

The following areas in the SAP HANA Developer Guide for XS advanced model are new, updated, or improved:

● Maintaining Application Development and Deployment Descriptors


Improved and more comprehensive descriptions of the configuration files used to define and describe the
build and deployment of a Multi-Target Application (MTA)
● Defining the Data Model in XS Advanced
○ Configuring the HDI Deployer
○ Maintaining JSON Collections in the SAP HANA Document Store
○ Using Synonyms to Access External Schemas and Objects in XS Advanced
● Defining Web-Based Data Access:
○ Defining OData Services for XS Advanced Applications
Improved and more comprehensive tutorials for creating validation and modification exits with
JavaScript for OData version 2 services

What's New in the SAP HANA Platform 2.0


234 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
○ Data Access with XMLA in SAP HANA XS
Improved and expanded the tutorial for setting up and using the XMLA interface in XS advanced
● Writing the XS Advanced Application Code:
○ Expanded the JavaScript run-time section to include information about new and updated SAP-specific
Node.js packages as well as details of how to make use of the new @SAP public NPM Registry
(npm.sap.com)
● Maintaining Application Services in XS Advanced
Expanded the section to include much more details of default services and, in particular, how and when to
use them
● Service Plans
Expanded and improved the information concerning the mapping of service plans to resource types
● Service Types
Expanded and improved the information about XS advanced service types (for example, managed services
and user-provided services) and when and how to use them
● Maintaining XS Advanced Application Routes and Destinations
Improvements to and extension of existing information as well as new information about features and
functionality added with SAP HANA Platform 2.0 SPS 02
● SAP Web IDE
Expanded and improved the reference section for SAP Web IDE for SAP HANA, a browser-based integrated
development environment (IDE) for the development of SAP-HANA-based applications, to included details
of the new tools, features, and general improvements in functionality for this release
● HDI Artifact Types and Build Plug-ins Reference
Improvements and additions to the list of available plugins providing support for a wide variety of database
artifacts types, for example, .hdbconstraint (constraints on foreign keys in database tables)
and .hdbcollection (JSON collections for the SAP HANA DocStore)
● XS Command-Line Interface
Numerous improvements and additions to the parameters and options already available with existing
commands, for example, marketplace and services as well as important additions to the installation
and deployment functions including more control of the application version deployed and the services
bound to the deployed application

Related Information

SAP HANA Developer Quick Start Guide


SAP HANA Developer Guide for XS Advanced Model

4.5.2 Text Search, Text Analysis, and Text Mining

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for text search, text analysis, and text
mining.

Text Search (New and Changed) [page 236]


SAP HANA Platform 2.0 SPS 02 introduces new and changed features for text search.

Text Analysis (New and Changed) [page 237]

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 235
SAP HANA Platform 2.0 SPS 02 introduces new and changed features for text analysis.

Text Mining (New and Changed) [page 239]


SAP HANA Platform 2.0 SPS 02 introduces new and changed features for text mining.

4.5.2.1 Text Search (New and Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for text search.

Built-In Procedure sys.esh_config() and CDS

Note the following new features for built-In procedure sys.esh_config() and CDS:

● new annotation @Consumption.labelElement to define a label column for a facet


Annotation @Consumption
● new annotation @EnterpriseSearch.filteringFacet.displayPosition to define the sequence of
the facets in the search response
● new annotation @EnterpriseSearch.filteringFacet.order to define the order of values within a
facet
● new annotation @EnterpriseSearch.filteringFacet.countNullValues to count NULL values
within a facet

Annotation @EnterpriseSearch

Property Annotations

Built-In Procedure sys.esh_search()

Note the following new features for built-In procedure sys.esh_search():

● Use a timeout parameter to specify a timeout value for each search of a bulk request or a federated search.
● Use a language vector as an input parameter to define a prioritized list of languages.
● new annotation @com.sap.vocabularies.Search.v1.Language in the search result returns language
codes
● new annotation @com.sap.vocabularies.Search.v1.Text in facet results returns labels for facet
columns
● new annotation @com.sap.vocabularies.Search.v1.CPUTime returns the active cpu time of a search
● new $metadata annotation @EnterpriseSearchHana.isSortable
Method 'GET' - $metadata Call

Annotations in the Search Response

What's New in the SAP HANA Platform 2.0


236 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
Privileges

The EXECUTE privilege on sys.esh_search() has been granted to database role PUBLIC.

4.5.2.2 Text Analysis (New and Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for text analysis.

Web IDE Extensions for Text Analysis

SAP Web IDE for SAP HANA (on-premise version) adds support for developing custom text analysis
configurations (in addition to dictionaries and extraction rules). Custom text analysis configurations can be
generated using one of the standard SAP HANA configurations as a starting point, and can be tested using the
TA Batch Test feature.

Users will be able to ensure that they have a working text analysis configuration for their custom dictionaries
and rules, ready for immediate deployment, at the end of the development process.

Automatic Word Form Handling in Custom Dictionaries

Text analysis dictionaries can optionally perform matching on the base forms (stems) of the words used in the
dictionary entries, instead of requiring exact string matches (the default). By enabling this option for a
dictionary, an entity string can be specified once (in a natural form) and the matching process will consider all
inflected forms of the words automatically when searching for matches. This reduces the effort required to
create dictionaries, improves recall in highly-inflected languages, and, depending on the dictionary terms
defined, can yield smaller, more manageable dictionaries.

Automatic word form handling is supported for all languages. For English, German, French, Italian and Spanish,
this feature can additionally handle inflected forms for specialized entries not included in the internal text
analysis lexicons (e.g., medical terms).

See chapter Extraction Dictionary Syntax inside the SAP HANA Text Analysis Extraction Customization Guide for
details.

Entity Normalization

Text analysis can now normalize the values of CURRENCY and PERCENT entities.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 237
For example, when a CURRENCY entity for "150 dollars" is extracted by text analysis, the TA_NORMALIZED
column in the TA results table will contain "150 USD". Similarly, when a PERCENT entity for "15.8 percent" is
extracted, the TA_NORMALIZED column will contain "15.8%".

This feature is only supported for English.

This feature must be activated using a custom text analysis configuration.

Improved Sentiment Analysis in Arabic

The precision and recall of Sentiment Analysis for Arabic has been improved.

For example, the input "5/5 ‫ "منتج‬is recognized as a Sentiment with Topic "‫ "منتج‬and StrongPositiveSentiment
"5/5".

Improved Handling of Dates in Arabic

The recognition of dates has been improved in Arabic.

Improvements in Linguistic Analysis (part-of-speech detection):

● "02/02/12" Before: "Unknown" Now: "Number"


● "26-33-27" Before: "Unknown" Now: "Number"

Improvements in Entity Extraction (DATE entities):

● "02/02/12" Before: (not extracted) Now: DATE


● "26-33-27" Before: DATE Now: (not extracted)

Improved Linguistic Analysis in Korean

Numerous incremental changes to Korean increase the accuracy of full text search and text analysis when
processing Korean text.

Tokenization improvements in linguistic analysis:

● 백만 달러 Before: "Noun" and "Verb" Now: "Number" ("백만") and "Noun" ("달러")

Parenthesized Hangul characters:

● ㈆ Before: "Unknown" Now: "Noun"


● ㈒ Before: "Unknown" Now: "Noun"

What's New in the SAP HANA Platform 2.0


238 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
Tolerant Spelling Support for Danish, Swedish, and Russian

Linguistic analysis of Danish, Swedish, and Russian is more tolerant of variations in capitalization, accents, and
hyphenation. This increases recall for full text search and text analysis applications that process inputs in those
languages.

For example, "sverige" is recognized as a variation of the proper name "Sverige" in Swedish. Likewise,
"danmark" is recognized as a variation of "Danmark" in Danish, and "москве" is recognized as a variation of
"Москва" in Russian.

Improved Emoji Support

Emojis are now split into their own separate token. For example, previously, "happy☺" would be treated as a
single token. Now it will be treated as two distinct tokens, "happy" and "☺". This results in improved recall for
Emoticon entities when using sentiment analysis.

Related Information

4.5.2.3 Text Mining (New and Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for text mining.

Support for using stems (base forms) or raw tokens as terms

Text Mining now includes optional support for using word stems (base forms) or raw tokens as terms when
constructing the term-document matrix. The use of stems may provide better text mining results for certain
languages like Korean, and possibly also when using limited amounts of reference text (i.e., very small
reference documents and/or very small sets of reference documents).

This feature must be activated using a custom text mining configuration.

Related Information

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 239
4.5.3 SAP Web IDE for SAP HANA (New and Changed)

SAP HANA Platform 2.0 SP02 introduces new and changed features for SAP Web IDE and integrated SAP
HANA tools.

SAP Web IDE for SAP HANA is a browser-based integrated development environment (IDE) for the
development of SAP HANA-based applications comprised of web-based or mobile UIs, business logic, and
extensive SAP HANA data models. SAP Web IDE works in conjunction with the SAP HANA deployment
infrastructure (HDI), the Application Lifecycle Management tools (ALM), the XS Advanced runtime platform,
and various SAP HANA tools.

SAP Web IDE [page 240]


SAP HANA Platform 2.0 SP02 introduces new and changed features for SAP Web IDE.

Calculation View Editor (Modeler) [page 241]


SAP HANA Platform 2.0 SP02 introduces new and changed features for the calculation view editor
(modeler) of SAP Web IDE.

CDS Graphical Editor [page 242]


SAP HANA Platform 2.0 SP02 introduces new and changed features for the CDS graphical editor of
SAP Web IDE.

Database Explorer [page 244]


SAP HANA Platform 2.0 SP02 introduces new and changed features for the database explorer in SAP
Web IDE.

Java and Node.js Development [page 244]


SAP HANA Platform 2.0 SP02 introduces new and changed features for Java and Node.js development
in SAP Web IDE.

SAP HANA Streaming Analytics Plugin [page 245]


SAP HANA Platform 2.0 SP02 introduces new and changed features in the SAP HANA streaming
analytics plugin for SAP Web IDE.

4.5.3.1 SAP Web IDE

SAP HANA Platform 2.0 SP02 introduces new and changed features for SAP Web IDE.

Ability to create remote branches in Git

You can now create remote branches for your Git projects. Right-click your project and choose Git Create
Remote Branch .

Create Remote Branches

What's New in the SAP HANA Platform 2.0


240 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
Ability to deploy an application directly from SAP Web IDE to the XS
Advanced or Cloud Foundry

You can deploy the results of an application build, packaged into an .mtar file, to a runtime platform of your
choice.

Packaging and Deploying Applications.

Ability to enable or disable optional features in SAP Web IDE

Enable SAP Web IDE Extensions

4.5.3.2 Calculation View Editor (Modeler)

SAP HANA Platform 2.0 SP02 introduces new and changed features for the calculation view editor (modeler)
of SAP Web IDE.

Renaming and Refactoring Objects

Rename calculation views and refactor them to automatically adjust references in all dependent objects.

Using the Outline Pane for Calculation Views

Use the outline pane in SAP Web IDE for SAP HANA to obtain a quick overview of the modeler objects (view
nodes and columns) in a calculation view. You can also select an object in the outline pane, and navigate to the
editor to identify where the object is used in the calculation view.

Creating Virtual Tables with a Form-Based Editor

Use the new form-based editor in SAP Web IDE for SAP HANA to create virtual tables.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 241
Enhancements in Currency Conversion and Unit Conversion

● When assigning conversion semantics (unit conversion or currency conversion) to a column, you can reuse
the conversion semantics of another column as a reference.
● You can set the behavior of intermediate conversions to either compatible or highest precision. This helps
to obtain accurate and desired currency or unit conversion results.

Enhancements in Auto Documentation

In SAP Web IDE for SAP HANA, you can automatically generate documentation of multiple calculation views at
a time.

Enhancements in Filtering View Nodes

● In addition to defining filters on projection, aggregation, and join view nodes, you can also define filters on
union, rank, minus and intersect view nodes.
● If you are using the same view node as an input to multiple other nodes, and if you have defined filters in
any of these nodes (top nodes), the engine cannot push down the filters to the below node at execution.
But, with SAP HANA 2.0 SPS 02 version onwards, you can control the behavior of filter push down for such
cases. You can set a flag that enables the below node to ignore multiple outputs, push down filters, and
provide filtered output to each top node.
● If you are using a rank node as an input to any of the top nodes, and if you have defined a filter on the top
node, the engine cannot push down the filter to nodes below the rank node at execution. But, with SAP
HANA 2.0 SPS 02 version onwards, you can set a flag at each rank node to push down filters to the below
nodes.

Automatically Creating Files for Synonym Definitions

In SAP Web IDE for SAP HANA, you can use synonyms to consume modeler objects from user-defined
schemas (non HDI). The tool can automatically create the files necessary for the synonym definition.

4.5.3.3 CDS Graphical Editor

SAP HANA Platform 2.0 SP02 introduces new and changed features for the CDS graphical editor of SAP Web
IDE.

What's New in the SAP HANA Platform 2.0


242 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
Creating Subqueries

You can use the CDS graphical editor in SAP Web IDE for SAP HANA to define CDS views with subqueries.
Subqueries are nested SQL queries that enables you to create CDS views for complex business scenarios.

Using the LIMIT and OFFSET SQL Clauses

You can use the SQL clauses LIMIT and OFFSET in a CDS view definition. The LIMIT SQL clause enables you to
restrict the number of output records to a specified “limit”. The OFFSET SQL clause specifies the number of
records to skip before displaying the records defined by the LIMIT SQL clause.

Creating Parameters in a CDS View

You can use the CDS graphical editor in SAP Web IDE for SAP HANA to define CDS views with parameters. The
parameters enable you to pass additional values to modify the results of the CDS view at runtime.

Creating Entites to Store Series Data

You can use the CDS graphical editor in SAP Web IDE for SAP HANA to create entities that can efficiently store
series data.

Publishing CDS artifacts with contexts as OData Services

You can publish CDS artifacts at the context level as OData v4 services.

Enhancements in Modeling CDS Views

When modeling a CDS view, you can use elements from structure types in the CDS view definition.

Define Editor Preference

Define your preferred CDS editor in Tools Preferences Default Editor HANA CDS Source .

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 243
4.5.3.4 Database Explorer

SAP HANA Platform 2.0 SP02 introduces new and changed features for the database explorer in SAP Web IDE.

Ability to limit database object search

The Object Search now allows you to limit your search to a specific database.

Ability to determine which database system a SQL console is connected to

The SQL console now displays the database system that is connected to on the console toolbar.

Ability to rename SQL console tabs

The SQL console now allows you to rename the console tab by right-clicking the tab and clicking Rename.

New Connection Status Dialog

A Connection Status Dialog now appears if you experience network connectivity problems. The dialog allows
you to re-establish the connection.

4.5.3.5 Java and Node.js Development

SAP HANA Platform 2.0 SP02 introduces new and changed features for Java and Node.js development in SAP
Web IDE.

Java development

Improved debugging

● You can attach the debugger on demand to your running Java application in addition to the option to start
the application in debug mode.
● You can debug multi module applications like Spring Boot.

What's New in the SAP HANA Platform 2.0


244 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
4.5.3.6 SAP HANA Streaming Analytics Plugin

SAP HANA Platform 2.0 SP02 introduces new and changed features in the SAP HANA streaming analytics
plugin for SAP Web IDE.

Plugin name change

SAP HANA smart data streaming has been renamed SAP HANA streaming analytics.

Enabling the plugin and the link to the streaming analytics runtime tool

The streaming analytics plugin for SAP Web IDE is no longer enabled when you first log in to the SAP Web IDE,
even if you have installed all the required components. You have to enable the plugin, and the link to the

streaming analytics runtime tool, through Preferences  → Features.

CCL Graphical viewer properties pane

The CCL graphical viewer can now display detailed properties for any object in the diagram. Enable the

properties pane by clicking the 


icon, then selecting the checkbox. To see the properties for an element,
open this pane, then select an element in the diagram.

New build option to custom server and workspace

In addition to Build, which compiles and deploys the streaming module to the XSA space you're already
working in, you can now also use Build to.... This method asks for a host, port, workspace, and user credentials.
If you enter the name of a workspace that doesn't exist, a new workspace gets automatically created.

Related Information

What's New in SAP HANA Streaming Analytics

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 245
4.5.4 SAP HANA Graph (New and Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA Graph.

GraphScript Extensions (New and Changed)

● Tabular results can be produced in GraphScript, effectively allowing non-scalar GraphScript results to be
returned.
● The EDGES function returns all edges between a start set or vertex and a target set or vertex.
● WHILE loops as known from other languages are now supported.
● The data type NVARCHAR is supported.
● Filter expressions can be used to evaluate complex predicates on vertex or edge multisets.
● Subgraphs can be constructed for a given graph induced by a given set of vertices or edges.
● An inverse graph can be constructed from a given graph. In an inverse graph the edge directions are
flipped.

SAP HANA Graph Reference

Various Performance Improvements (Changed)

Various performance improvements in GraphScript, pattern matching, and built-in algorithms.

4.5.5 SAP HANA Spatial (New and Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA Spatial.

Support of NULL M Values (New)

SAP HANA Spatial supports NULL measure values (NULL M values). NULL M values indicate that there is no M
value for a point in a geometry.

Multidimensional Support

What's New in the SAP HANA Platform 2.0


246 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
Column Configuration (New)

You can configure table columns with column type ST_GEOMETRY to perform the following checks:

● VALIDATION {NONE | FULL}


Checks whether a geometry is a valid geometry. The default value is NONE.
● BOUNDARY CHECK {OFF | ON}
Checks whether a geometry is inside the boundary defined by the Spatial Reference System (SRS) of the
checked geometry. The default value is OFF.

Column Definition and Column Configuration

ST_GEOMETRY_COLUMNS System View

ST_AlphaShape Method (New)

Returns the alpha shape geometry of the input geometry, based on a specified radius value.

ST_AlphaShape Method

4.5.6 SAP HANA Interactive Education (SHINE) for XS


Advanced (New)

SAP HANA Platform 2.0 SPS 02 introduces new features for SAP HANA Interactive Education (SHINE) for XS
Advanced.

Fiori Launchpad (New)

Dynamic data is displayed in the tiles of Fiori Launchpad.

Audit Logging (New)

The audit log service allows you to perform audit log tasks within the SAP HANA XS advanced runtime
environment. In SHINE, the audit log service is used to log the changes to transactional data which take place
when a user runs the Data Generator.

CDS Enhancements (New)

CDS enhancements include constraints for referential integrity and comments for tables.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 247
SQL Script Enhancements (New)

SQL Script enhancements include INSERT, UPDATE and DELETE operators for table variables.

4.5.7 SAP HANA Extended Application Services classic


model (XS classic) and SAP HANA Repository

SAP HANA Extended Application Services classic model (XS classic) and SAP HANA Repository are
deprecated as of SAP HANA 2.0 SPS 02.

Related Information

Deprecation of SAP HANA extended application services, classic model and SAP HANA Repository (SAP Note
2465027)

4.6 Reference

SAP HANA Platform 2.0 SPS 01 introduces new and changed features as described in the reference
documentation.

SAP HANA SQL and System Views Reference (New and Changed) [page 249]
SAP HANA Platform 2.0 SPS 02 introduces new and changed features, as documented in the SAP
HANA SQL and System Views Reference.

SAP HANA Client Interfaces Reference (New and Changed) [page 257]
SAP HANA Platform 2.0 SPS 02 introduces new and changed features, as documented in the SAP
HANA Client Interface Programming Reference.

SAP HANA SQL Command Network Protocol Reference (Changed) [page 259]
SAP HANA Platform 2.0 SPS 02 introduces new and changed features, as documented in the SAP
HANA SQL Command Network Protocol Reference.

SAP HANA SQLScript Reference (New and Changed) [page 259]


SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA SQLScript.

SAP HANA Analytics Catalog (BIMC Views) Reference (New and Changed) [page 261]
SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA Analytics Catalog
(BIMC Views).

SAP HANA Predictive Analysis Library (New and Changed) [page 261]
SAP HANA Platform 2.0 SPS 02 introduces new and changed features for the Predictive Analysis
Library (PAL).

SAP HANA External Machine Learning Library (New) [page 263]

What's New in the SAP HANA Platform 2.0


248 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
The SAP HANA External Machine Learning Library is a new application function library (AFL)
introduced in SAP HANA Platform 2.0 SPS 02 that supports the integration of Google TensorFlow, as
an external machine learning framework, with SAP HANA.

4.6.1 SAP HANA SQL and System Views Reference (New and
Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features, as documented in the SAP HANA SQL
and System Views Reference.

SQL Statements (New and Changed)

ALTER SYSTEM When you create a new root key with the ALTER SYSTEM APPLICATION ENCRYPTION
APPLICATION statement, the WITHOUT ACTIVATE clause is now mandatory. ALTER SYSTEM
ENCRYPTION APPLICATION ENCRYPTION Statement (System Management)
Statement
(changed)

COMMENT ON The COMMENT ON statement now allows you to add a comment on users, roles, and
Statement user groups. COMMENT ON Statement (Data Definition)
(changed)

CREATE | ALTER A RESTART clause, allows you to specify the restart behavior of the tenant database
DATABASE after a system restart. CREATE DATABASE Statement (Tenant Database
Statement Management), ALTER DATABASE Statement (Tenant Database Management)
(changed)

CREATE | ALTER A new LOCATION allows you to specify a location for the cache.
FUNCTION
Statement The CREATE FUNCTION statement has been extended to support an optional OR
(changed) REPLACE specification. A CREATE OR REPLACE FUNCTION statement allows you to
create a function if it does not exist, or alter its definition it if it does exist.

CREATE FUNCTION Statement (Procedural), ALTER FUNCTION Statement


(Procedural)

CREATE | ALTER A new clause, NESTED GROUP LOOKUP URL, allows you to specify the URL from which
LDAP PROVIDER the user's group membership (both direct and indirect) can be obtained. The
Statement previously-required ATTRIBUTE MEMBER OF clause is now optional; however, one of
(changed) NESTED GROUP LOOKUP URL or ATTRIBUTE MEMBER OF is required for an LDAP
provider.

CREATE LDAP PROVIDER Statement (Access Control), ALTER LDAP PROVIDER


Statement (Access Control)

CREATE | ALTER A new data statistics object type, SAMPLE, is provided for creating samples of data
STATISTICS that the SQL optimizer can use during optimization.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 249
Statement Data statistics objects defined as SIMPLE TOPK are now supported on column store
(changed) tables.

Two new properties VALID FOR ESTIMATION and VALID FOR DATA DEPENDENCY have
been added.

CREATE STATISTICS Statement (Data Definition), ALTER STATISTICS Statement (Data


Definition)

CREATE | ALTER The following enhancements have been made to the CREATE TABLE and ALTER TABLE
TABLE Statement statements.
(changed)
● IDENTITY columns are now supported in global and local temporary tables, both in
row store and column store tables.
● Primary keys are now supported for local temporary row store tables.
● ALTER TABLE statement: you can now swap a source and replica so that the
replica becomes the source by using the new SET REPLICA SOURCE AT
'<host_name>:<port_number>' clause.
● ALTER TABLE statement: You can now alter the owner of a table using the new
OWNER TO clause. Use of this clause removes the need to copy a table between
users.

CREATE TABLE Statement (Data Definition), ALTER TABLE Statement (Data


Definition)

CREATE | ALTER A new parameterized view clause allows you to define the columns for the view as
VIEW Statement parameters.
(changed)
A new LOCATION allows you to specify where the view is stored in the cache.

CREATE VIEW Statement (Data Definition), ALTER VIEW Statement (Data Definition)

CREATE | ALTER Two new properties, the TOTAL STATEMENT MEMORY LIMIT and the TOTAL
WORKLOAD CLASS STATEMENT THREAD LIMIT, are provided to check whether the limits of all ongoing
Statement statement executions for a specific workload class are exceeded.
(changed)
CREATE WORKLOAD CLASS Statement (Workload Management), ALTER WORKLOAD
CLASS Statement (Workload Management)

CREATE | ALTER | New CREATE | ALTER | DROP USERGROUP statements allow you to create, alter and
DROP USERGROUP drop user groups.
Statements (new)
CREATE USERGROUP Statement (Access Control), ALTER USERGROUP Statement
(Access Control), DROP USERGROUP Statement (Access Control)

CREATE AUDIT Three audit actions have been introduced as part of the new user group feature
POLICY Statement support: CREATE USERGROUP, ALTER USERGROUP, and DROP USERGROUP.
(changed)
Three audit actions have been introduced to support renaming of database objects:
RENAME COLUMN, RENAME INDEX, and RENAME TABLE.

CREATE AUDIT POLICY Statement (Access Control)

What's New in the SAP HANA Platform 2.0


250 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
CREATE The CREATE PROCEDURE statement has been extended to support an optional OR
PROCEDURE REPLACE specification. A CREATE OR REPLACE PROCEDURE statement allows you to
Statement create a procedure if it does not exist, or alter its definition it if it does exist. CREATE
(changed) PROCEDURE Statement (Procedural)

CREATE USER A new clause, SET USERGROUP, allows you to add a user to a user group. CREATE
Statement USER Statement (Access Control)
(changed)

GRANT Statement The following privileges can now be granted using the GRANT statement.
(changed)
USERGROUP Authorizes a user to configure the parameters of, and
OPERATOR membership in, a user group.

DATABASE START Authorizes a user to start any database in the system and to
select from the M_DATABASES view.

DATABASE STOP Authorizes a user to stop any database in the system and to
select from the M_DATABASES view.

GRANT Statement (Access Control)

IMPORT FROM A new ESCAPE clause allows you to specify the escape character used in the import
Statement data. IMPORT FROM Statement (Data Import Export)
(changed)

INSERT Statement The INSERT statement now allows the FOR XML clause in the subquery. INSERT
(changed) Statement (Data Manipulation)

RECOVER DATA A new IGNORE WORKERGROUPS clause allows you to recover data even if the target
Statement system does not have worker groups with the same names as those on the indexserver
(changed) that was backed up. RECOVER DATA Statement (Backup and Recovery)

RECOVER A new IGNORE WORKERGROUPS clause allows you to recover a database even if the
DATABASE target system does not have worker groups with the same names as those on the
Statement indexserver that was backed up. RECOVER DATABASE Statement (Backup and
(changed) Recovery)

RENAME DATABASE You can now rename a tenant database using the new RENAME DATABASE statement.
Statement (new) RENAME DATABASE Statement (Tenant Database Management)

REVOKE Statement The following privileges can now be revoked using the REVOKE statement.
(changed)
USERGROUP Authorizes a user to configure the parameters of, and
OPERATOR membership in, a user group.

DATABASE START Authorizes a user to start any database in the system and to
select from the M_DATABASES view.

DATABASE STOP Authorizes a user to stop any database in the system and to
select from the M_DATABASES view.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 251
REVOKE Statement (Access Control)

UPDATE Statement The UPDATE statement now allows the FOR XML clause in the subquery. UPDATE
(changed) Statement (Data Manipulation)

SELECT Statement The FOR XML clause is now supported in table and scalar subqueries.
(changed)
You can now use the SELECT statement to select from parameterized views.

SELECT Statement (Data Manipulation)

SELECT Statement Use the new IS SET | UNSET clause to test for values that have been set or unset for
(JSON Document the specified key. SELECT Statement (JSON Document Store)
Store) (changed)

SQL Functions (New and Changed)

ENCRYPTION_ROOT_KEYS_HAS_BACKUP_PASSWORD Returns a value that indicates whether the root key


Function (new) backup password is set.
ENCRYPTION_ROOT_KEYS_HAS_BACKUP_PASSWORD
Function (Security)

HIERARCHY_SPANTREE Function (new) Creates a partial hierarchy based on parent-child source


data and an (optional) maximum recursion depth input
parameter, as well as an orphan-handling directive.

HIERARCHY_TEMPORAL Function (new) Generates a time-dependent hierarchy on recursive


parent-child source data whose edges are additionally
qualified by validity intervals.

NDIV0 Function (new) Prevents divide by zero errors. NDIV0 Function


(Numeric)

TO_JSON_BOOLEAN Function (new) Converts a given <value> to a boolean value in JSON


format. TO_JSON_BOOLEAN (Data Type Conversion)

XMLTABLE Function (new) Creates a relational table from an XML string.


XMLTABLE Function (String)

System Views (New and Changed)

DEPENDENCY_RULES System View (new) For internal use only, provides a list dependency rules in
the system. DEPENDENCY_RULES System View

What's New in the SAP HANA Platform 2.0


252 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
DEPENDENCY_RULE_COLUMNS System View For internal use only, provides a list dependency rule
(new) columns in the system. DEPENDENCY_RULE_COLUMNS
System View

DYNAMIC_RESULT_CACHE System View (new) ) Provides information about metadata objects that are
enabled for a dynamic result cache.
DYNAMIC_RESULT_CACHE System View

ENCRYPTION_ROOT_KEYS System View Two new columns, IN_BACKUP and ROOT_KEY_HASH,


(changed) have been added to provide information about the root
key hash value and whether it has ever been backed up.
ENCRYPTION_ROOT_KEYS System View

HIERARCHY_OBJECTS System View (new) Provides the list of objects that hierarchy navigation
functions can be run on. HIERARCHY_OBJECTS System
View

M_DATA_VOLUME_PAGE_STATISTICS System The new PARTITION_ID column provides the ID for the
View (changed) data volume partition.

The new STATE column provides information on the data


volume state. M_DATA_VOLUME_PAGE_STATISTICS
System View

M_DATA_VOLUME_PARTITION_STATISTICS Provides information on data volume partition statistics.


System View (new) M_DATA_VOLUME_PARTITION_STATISTICS System View

M_DATA_VOLUME_STATISTICS System View Provides information on data volume statistics.


(new) M_DATA_VOLUME_STATISTICS System View

M_DATA_VOLUME_SUPERBLOCK_STATISTICS The new PARTITION_ID column provides the ID for the


System View (changed) data volume partition.

The new STATE column provides information on the data


volume state.

M_DATA_VOLUME_PAGE_STATISTICS System View

M_EVENTS System View (changed) The new SOURCE_HOST column specifies the original
host if the event was created via another HOST.

The new SOURCE_PORT column specifies the original


port if the event was created via another HOST.

M_EVENTS System View

M_HOST_AGENT_INFORMATION System View Displays computer system information retrieved from the
(new) SAP Host Agent. M_HOST_AGENT_INFORMATION
System View

M_HOST_AGENT_METRICS System View (new) Displays performance metrics retrieved from the SAP
Host Agent. M_HOST_AGENT_METRICS System View

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 253
M_LICENSE System View (updated) The new IS_DATABASE_LOCAL column specifies whether
the tenant is using a local license or a global license.
M_LICENSE System View

M_LICENSES System View (updated) The new IS_DATABASE_LOCAL column specifies whether
the tenant is using a local license or a global license.
M_LICENSES System View

M_LOAD_HISTORY_SERVICE System View The following columns have been added:


(changed)
● INTERNAL_CONNECTION_COUNT specifies the
number of open internal SQL connections.
● EXTERNAL_CONNECTION_COUNT specifies the
number of open external SQL connections.
● IDLE_CONNECTION_COUNT specifies the number of
open idle SQL connections.
● INTERNAL_TRANSACTION_COUNT specifies the
number of internal transactions.
● EXTERNAL_TRANSACTION_COUNT specifies the
number of external transactions.
● USER_TRANSACTION_COUNT specifies the number
of user transactions.

M_LOAD_HISTORY_SERVICE System View

M_REMOTE_STATEMENTS System View The new FETCHED_SIZE column specifies the byte size of
(changed) fetched records. M_REMOTE_STATEMENTS System View

M_RESULT_CACHE System View (changed) The new IS_EVICTED column specifies TRUE if a cache
entry is evicted, FALSE otherwise. M_RESULT_CACHE
System View

M_SERVICE_REPLICATION System View The following columns have been added:


(changed)
● REPLAY_BACKLOG_SIZE - specifies the size of all log
buffers that have been shipped to the secondary site
but have not yet been replayed on the secondary site.
● REPLAY_BACKLOG_TIME - specifies the time
difference between the time of the last shipped log
buffer and the last replayed log buffer on the
secondary site.
● MAX_REPLAY_BACKLOG_SIZE - specifies the
maximum value of the REPLAY_BACKLOG_SIZE since
the system startup.
● MAX_REPLAY_BACKLOG_TIME - specifies the
maximum value of REPLAY_BACKLOG_TIME since
the system startup.

M_SERVICE_REPLICATION System View

What's New in the SAP HANA Platform 2.0


254 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
M_SERVICE_THREAD_SAMPLES System View The data types for the following columns have been
(changed) updated: PASSPORT_ROOTCONTEXT_ID is now
VARBINARY(16), PASSPORT_TRANSACTION_ID is now
NVARCHAR(32), and PASSPORT_CONNECTION_ID is
now VARBINARY(16). M_SERVICE_THREAD_SAMPLES
System View

M_SERVICE_THREADS System View (changed) The data types for the following columns have been
updated: PASSPORT_ROOTCONTEXT_ID is now
VARBINARY(16), PASSPORT_TRANSACTION_ID is now
NVARCHAR(32), and PASSPORT_CONNECTION_ID is
now VARBINARY(16). M_SERVICE_THREADS System
View

M_SQL_PLAN_CACHE System View (changed) The new LAST_INVALIDATION_REASON column specifies


the reason for the last invalidation. M_SQL_PLAN_CACHE
System View

M_WORKLOAD_CAPTURES System View Two new columns have been added:


(changed) CAPTURE_FAILED_STATEMENT_COUNT specifies the
number of failed current or capture statements while
CAPTURE_FAILED_FETCH_COUNT specifies the number
of failed current or capture fetch operations.
M_WORKLOAD_CAPTURES System View

M_WORKLOAD_REPLAY_PREPROCESSES Two new columns have been added:


System View (changed) CAPTURE_FAILED_STATEMENT_COUNT specifies the
number of failed capture statements while
CAPTURE_FAILED_FETCH_COUNT specifies the number
of failed fetch operations during capture.
M_WORKLOAD_REPLAY_PREPROCESSES System View

REMOTE_SUBSCRIPTION_DATA_CONTAINERS Provides information regarding remote subscription data.


System View (new) REMOTE_SUBSCRIPTION_DATA_CONTAINERS System
View

REORG_PLAN System View (changed) Two new columns have been added: STEP_GROUP
specifies the ID of the table redistribution group of steps
that the item belongs to and PRECONDITION indicates the
preconditions that have to be fulfilled before the table
redistribution step can be executed. REORG_PLAN
System View

REORG_STEPS System View (changed) Two new columns have been added: STEP_GROUP
specifies the ID of the table redistribution group of steps
that the item belongs to and PRECONDITION indicates the
preconditions that have to be fulfilled before the table
redistribution step can be executed. REORG_STEPS
System View

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 255
RESULT_CACHE System View (changed) A new CACHE_LOCATION column provides the location of
the result cache. RESULT_CACHE System View

USERGROUPS System View (new) Lists all the user groups in the HANA system.
USERGROUPS System View

USERS System View (changed) A new column, IS_RESTRICTED_DETAILS, specifies the


missing privilege(s): ROLE PUBLIC, CREATE ANY ON
OWN SCHEMA.

A new column, USERGROUP_NAME, specifies the name


of the user groups that the user belongs to.

USERS System View

VIEW_PARAMETERS System View (new) Provides the parameters specified for each parameterized
view in the database. VIEW_PARAMETERS System View

VIEWS System View (changed) A new column, HAS_PARAMETERS, indicates whether the
view is defined with parameters. VIEWS System View

WORKLOAD_CLASSES System View (Changed) Two new columns, TOTAL_STATEMENT_MEMORY_LIMIT


and TOTAL_STATEMENT_THREAD_LIMIT, have been
added to provide information about the limits of all
ongoing statement executions for a specific workload
class. WORKLOAD_CLASSES System View

Miscellaneous

New support for hyphens in user You can now include hyphens in user names.
names

New support for declaring the Previously, when defining a column as BOOLEAN, you could not define the
default value of a boolean column default value as UNKNOWN. This has changed; you can now define the
as UNKNOWN default value of a boolean column as UNKNOWN. For example, CREATE
TABLE table1(a BOOLEAN DEFAULT UNKNOWN...

New support for JSON object The JSON object expression generates a JSON object, and looks very
expressions similar to a JSON document. JSON object expressions can be referenced
by some statements and operators. Expressions

What's New in the SAP HANA Platform 2.0


256 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
4.6.2 SAP HANA Client Interfaces Reference (New and
Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features, as documented in the SAP HANA Client
Interface Programming Reference.
Updated Python Support

The new SAP HANA driver for Python provides support for Python 2.7 and Python 3.4
and later. You can install the driver into local Python environments by using the pip
installer. The driver is built on the same C++ native library used by ODBC, ADO.NET,
and other interfaces. As a result it provides all the protocol support built into that
library, including support for Active/Active database configurations, network
compression, and more. Python Support
Go (golang) Support

The new dedicated Go driver interface allows Go applications to access the SAP HANA
server by using the Go SQL API. Go (golang) Support
JDBC Enhancements

New Statistics Trace The new JDBC statistics trace level sets tracing for connection
Level statistics, including durations, packet and byte counts, and
compression ratios. JDBC Trace Options

New Connection A new connection property, compress, supports network


Properties compression.

A new connection property, prefetch, controls result set


prefetching. JDBC Connection Properties

ODBC Enhancements

COMPACT command The new COMPACT command for hdbodbc_cons compacts


for hdbodbc_cons the trace configuration store of ODBC-based clients. ODBC
Tracing and Trace Options

Node.js Enhancements

createLobStream (resultset, This function in the Stream Module creates a


columnIndex, options) function node.js readable stream by using a result set
that fetches data as LOB columns.
createLobStream (Object, Integer, Object)
Function

sendParameterData(columnIndex, This method sends LOB data to the server in


buffer[, callback]) Method chunks. sendParameterData(paramIndex,
buffer[, callback]) Method

API Version Support (changed)

Complete API version support information is now available at 2499500 .


SQLDBC Enhancements (changed)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 257
COMPACT command for The new COMPACT command for hdbsqldbc_cons
hdbsqldbc_cons compacts the trace configuration store of SQLDBC-based
clients. SQLDBC Tracing and Trace Options

Network compression

Network compression is supported by JDBC and all SQLDBC-based APIs. To enable


network compression for all client connections, set the indexserver.ini > session >
compression configuration parameter to TRUE. To enable network compression for a
specific connection, set the new SQLDBC or JDBC COMPRESS connection property to
TRUE. Network Compression JDBC Connection Properties
Batch Routing Enhancement (changed)

Using a unique constraint, the indexserver can now order the client to use the optimal
statement route defined by the first row of parameters in a batch, which guides the
entire batch of parameters without having to calculate the best route per row. This new
feature applies to both range partitioned and hash partitioned tables and is
implemented for SQLDBC-based drivers as well as the JDBC driver.
Behavior Changes

Parameter Previously, for JDBC and SQLDBC-based clients, the conversion of


Conversion parameter data types to the type used on the server was performed the
server side. Now, this conversion is performed on the client side.

If this conversion involves an inexact floating-point type, then the value


may be slightly different near the limits of the precision of the floating-
point type. For example, in the following statement, if a C DOUBLE
parameter is bound to an INSERT parameter for a VARCHAR(100)
column, (COL1 in the statement below), then the inserted value may
differ in the sixteenth digit, but is still the same when rounded to 15
significant digits.

INSERT INTO MY_TABLE(COL1) VALUES(?);

Inexact floating-point client data types include DOUBLE and FLOAT.


Examples of inexact floating-point server data types include REAL,
DOUBLE, and FLOAT.

Node.js Driver Renamed

The name of the Node.js driver has changed to @sap/hana-client.

For example, previously you called require('hana'). Now you call require('@sap/
hana-client')Node.js Application Programming

Related Information

SAP Note 2036111

What's New in the SAP HANA Platform 2.0


258 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
4.6.3 SAP HANA SQL Command Network Protocol Reference
(Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features, as documented in the SAP HANA SQL
Command Network Protocol Reference.

Terminology (changed)

The new I12 abbreviation has been added to describe 12-byte integers in little-endian format. The new I16
abbreviation describes 16-byte integers in little-endian format.

Input and Output Field Formats (changed)

The following new input and output field formats have been added: BOOLEAN, FIXED8, FIXED 12, and FIXED16.

4.6.4 SAP HANA SQLScript Reference (New and Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA SQLScript.

SQLScript Code Analyzer (New)

The SQLScript Code Analyzer consists of two built-in procedures that scan CREATE FUNCTION and CREATE
PROCEDURE statements and search for patterns indicating problems in code quality, security or performance.

Functionality for Avoiding Busy Waiting Times (New)

In some scenarios, you may need to let certain processes wait for a while (for example, when executing
repetitive tasks). The manual implementation of such waiting times leads to "busy waiting" and the CPU
performs unnecessary work during that time. To avoid this, SQLScript offers a built-in library
SYS.SQLSCRIPT_SYNC containing the procedures SLEEP_SECONDS and WAKEP_CONNECTION.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 259
CREATE OR REPLACE (New)

When creating a SQLScript procedure or a function, you can use the OR REPLACE option to change that
procedure or function, if it already exists.

System Variable for Line Numbers (New)

SQLScript procedures, functions and triggers can now return the line number of the current statement by
means of the system variable ::CURRENT_LINE_NUMBER.

NOT NULL Constraint for Return Table Types (New)

You can now apply the NOT NULL constraint on columns in table types used in SQLScript.

Support for SELECT Statements in Explicit Parallel Blocks (New)

SELECT statements are now supported in explicit parallel blocks.

Enhancement of the INSERT Operator on Table Variables (Changed)

With this enhancement you can insert the content of one table variable into another table variable with a single
operation without using SQL.

Encryption for Functions and Procedures (New)

When application developers want to secure their intellectual property, they can use the new SQLScript
encryption feature to hide procedure and function definitions from all users.

What's New in the SAP HANA Platform 2.0


260 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
4.6.5 SAP HANA Analytics Catalog (BIMC Views) Reference
(New and Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for SAP HANA Analytics Catalog (BIMC
Views).

Support for Null Values (New)

A new field IS_NULLABLE has been added to the table BIMC_DIMENSION_VIEW to support NULL values.

View BIMC_DIMENSION_VIEW

4.6.6 SAP HANA Predictive Analysis Library (New and


Changed)

SAP HANA Platform 2.0 SPS 02 introduces new and changed features for the Predictive Analysis Library (PAL).

General and Architectural Changes

In SPS 02, we provide new Type-Any interfaces to call PAL functions. The wrapper procedure generation is no
longer necessary for PAL functions. When the SAP HANA Application Function Library (AFL) component is
installed, all PAL functions will be pre-installed as store procedures in schema _SYS_AFL, and those
procedures can accept different input table types (as for example for various data inputs). For example, there is
only one k-means procedure and the user can pass a 10-feature table or 100-feature table to that procedure
and the procedure will automatically determine the output structure, including the column type and the
column name.

In SPS 02, the following new general procedure parameters are introduced:

● THREAD_RATIO
Set an upper limit of thread usage in proportion to the currently available threads on the system, as a
accompanying approach to limit resource usage along with the SAP HANA Workload Management
capabilities. Further the parameter allows the users to enable multithreading in a convenient way.
● DEPENDENT_VARIABLE
For all classification or regression algorithms, enable the user to explicitly set the dependent variable (i.e.
<Y>, <response>, …) by its column name instead of requiring it to be the last input column.
● HAS_ID
Indicate if the input data's first column is the ID column and should not be used as an input column for the
processing of the algorithm.
● CATEGORICAL_VARIABLE
For all related PAL functions, allow the user to explicitly set an integer column as a “categorical” column by
column name in a string. By default with SAP HANA Platform 2.0 SPS 02, integer columns are considered
as a continuous column for all PAL functions.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 261
New and Enhanced PAL Algorithms

In SPS 02, additions and changes apply in the following PAL algorithms:

● Factor Analysis (New)


Factor Analysis is a statistical method that tries to extract a low number of unobserved variables, i.e.
factors, that can best describe the correlation pattern of a larger set of observed variables. Factor Analysis
can be used to reduce the dimension of the data as well as reveal the underlying relationships between the
observed variables. It is related to PCA, but they are not the same.
Factor Analysis
● Multidimensional Scaling (MDS) (New)
This function serves as a tool for dimensional reduction or data visualization. It embeds the samples in N-
dimension in a lower P-dimension by applying the classic multi-dimensional scaling.
Multidimensional Scaling (MDS)
● State enabled scoring functions (New)
The following algorithms now newly support to keep the parsed model in-memory and to enable faster
real-time predictions: LDA Inference, NBC, BPNN, decision tree, PCA projection, cluster assignment,
binning assignment, LDA project, LDA CLASSIFY, Posterior Scaling
State Enabled Real-Time Scoring Functions
● Algorithm Enhancements:
○ Distribution Fitting (Enhanced)
Added support for Poisson distribution and Exponential distribution
Distribution Fitting
○ Random Distribution Sampling (Enhanced)
Added support for many univariate distributions, for example: Bernoulli, beta, binomial, Cauchy, chi-
squared, exponential, extreme value, Fisher’s F, geometric, lognormal, negative binomial, PERT,
“student’s t”.
Added a new function named DISTRRANDOMMVAR to support multivariate distribution: multinomial.
Added support for multithreading.
Random Distribution Sampling
○ KNN (Enhanced)
Added an additional output table, which returns k-nearest neighbors in the training data, and the
distances.
KNN
○ State enabled scoring functions (Enhanced)
The following new algorithms are supported: LDA Inference, NBC, BPNN, decision tree, PCA
projection, cluster assignment, binning assignment, LDA project, LDA CLASSIFY, Posterior Scaling.
State Enabled Real-Time Scoring Functions
○ Auto Exponential Smoothing (Enhanced)
Added seasonal mode detection for model selection
Automatically select damped model if the damped model returns a smaller measure error
Enabled user defined PHI value and range
Auto Exponential Smoothing
○ K-Means (Enhanced)
Added elbow method for “k determination”
Avoided duplicate initial centers when init method = 2|3
K-Means
○ Accelerated K-Means (Enhanced)

What's New in the SAP HANA Platform 2.0


262 PUBLIC SAP HANA Platform 2.0 SPS 02 Features
Added Hamerly's accelerate method
Enhanced the memory consumption model
Accelerated K-Means

Related Information

SAP HANA Predictive Analysis Library (PAL)

4.6.7 SAP HANA External Machine Learning Library (New)

The SAP HANA External Machine Learning Library is a new application function library (AFL) introduced in SAP
HANA Platform 2.0 SPS 02 that supports the integration of Google TensorFlow, as an external machine
learning framework, with SAP HANA.

The External Machine Learning (EML) Library makes use of Google’s gRPC remote procedure call package.
These combined capabilities allow you to remotely invoke predefined TensorFlow models, hosted on the
TensorFlow Serving server, through gRPC calls encapsulated inside AFL procedures.

The EML API provides the following features:

● PREDICT function: The PREDICT function is wrapped using


SYS.AFLLANG_WRAPPER_PROCEDURE_CREATE, which exposes the given TensorFlow model within SAP
HANA and allows it to be invoked like a normal AFL function.
● _SYS_AFL.EML_MODEL_CONFIGURATION table: The mappings of models to remote sources.
● CHECKDESTINATION procedure: Validates that a model can be reached and has a valid serving state.
● A set of privileges for EML development and administration tasks.

Related Information

SAP HANA External Machine Learning Library

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 02 Features PUBLIC 263
5 SAP HANA Platform 2.0 SPS 01 Features

Find out about the new and changed features introduced with the SAP HANA platform 2.0 SPS 01.

5.1 Installation and Update

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for installation and update.

Documentation Changes [page 264]


SAP HANA Platform 2.0 SPS 01 introduces changes to the documentation for SAP HANA installation
and update.

SAP HANA Server Installation and Update (New and Changed) [page 265]
SAP HANA Platform 2.0 SPS 01 introduces new and changed features for the installation and update of
SAP HANA.

5.1.1 Documentation Changes

SAP HANA Platform 2.0 SPS 01 introduces changes to the documentation for SAP HANA installation and
update.

SAP HANA Server Installation and Update Guide (Changed)

The SAP HANA Server Installation and Update Guide now includes a new section called Updating a Single-
Container System. This section contains information about the automatic migration of a single-container
system to a tenant database system with SAP HANA 2.0 SPS 01.

Related Information

Updating a Single-Container System

What's New in the SAP HANA Platform 2.0


264 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
5.1.2 SAP HANA Server Installation and Update (New and
Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for the installation and update of SAP
HANA.

Installing and Updating an SAP HANA System (Changed)

As of SAP HANA 2.0 SPS 01, the multi-container database mode is the only database mode. By default, a single
tenant database is created during installation. The upgraded system will have one tenant database that
corresponds to the old single container. You can add additional tenant databases later using the SAP HANA
cockpit.

SAP HANA options hosts or host roles can be automatically provisioned to a system that is installed with a
single tenant. If the SAP HANA system contains multiple tenant databases, the SAP HANA options host or host
role must be manually provisioned to the tenant.

A single-container system will be automatically converted to a tenant database system during the update. The
database of a single-container system is converted into a system database and a tenant database. The
upgraded system will have one tenant database that corresponds to the old single container. A new user
(SYSTEM) is created in the system database (SYSTEMDB). During the update, a password has to be specified
for this user. The database superuser (SYSTEM) of the single-container system becomes the SYSTEM user of
the tenant database. You may have to adapt your operations concept to include the new system database.
Detailed information can be found in the new section Updating a Single-Container System in the SAP HANA
Tenant Databases Operations Guide or the SAP HANA Server Installation and Update Guide.

Related Information

Installing a Single-Host System


Updating a Single-Container System
2423367 - Multitenant database containers will become the standard and only operation mode

5.2 Security

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for security.

SAP HANA Database Security (New and Changed) [page 266]


SAP HANA Platform 2.0 SPS 01 introduces new and changed security-related features for the SAP
HANA database.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 265
5.2.1 SAP HANA Database Security (New and Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed security-related features for the SAP HANA
database.

Authorization and Authentication (New and Changed)

● Data masking represents an additional layer of access control that can now be applied to SQL and
calculation views. A column mask protects sensitive or confidential data in a particular column of a view by
transforming the data in such a way that it is rendered meaningless, while still appearing real and
consistent.
Mask expressions can be specified using constants or built-in functions directly in the view definition using
the CREATE VIEW or ALTER VIEW statements.
The ability to see unmasked data is controlled by the new object privilege UNMASKED.
● It is now possible to reset the password of the SYSTEM user of a tenant database from the system database
using the ALTER DATABASE statement.
● It is now possible to configure the password policy so that a minimum number of a particular character
type is required, for example, at least 3 digits.
You can configure the password layout in the SAP HANA cockpit (recommended) or in the
indexserver.ini configuration file with the parameter [password policy] password_layout. For
example, if passwords must contain at least 3 digits, you could specify the layout with the value a123A or
789fG.

Secure Communication (Changed)

● Secure communication between SAP HANA and an LDAP server has been enhanced as follows:
○ CommonCryptoLib is now used to implement TLS-secured communication. OpenSSL is no longer
supported.
○ The trust store for secure communication must now be an in-database certificate collection with the
purpose LDAP.
○ The following system properties for configuring secure communication are now available in the ldap
section of the global.ini file:
○ sslMinProtocolVersion
○ sslMaxProtocolVersion
○ sslCipherSuites
○ timeout
○ The LDAP configuration file ldap.conf on the file system is no longer used.
See SAP Note 2438641.
● The new parameter [communication] skip_in_memory_pse_store_for_purposes in the
global.ini configuration allows you to force the usage of personal security environments (PSEs) in the
file system instead of in-database certificate collections for specified purposes (for example, SAML-based
user authentication).

What's New in the SAP HANA Platform 2.0


266 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
Encryption

● You can now enable the encryption of data and log backups. Backups are encrypted using the new backup
encryption root key, which is fully integrated into the existing encryption key management of SAP HANA.
● Two new hdbuserstore commands have been added. The ADDFROMDIR command adds entries from a
store specified by the DIR parameter to the secure user store without overwriting existing keys. The
LISTFROMDIR command lists entries from a store in the store directory.

Security Administration with SAP HANA Cockpit (New and Changed)

The SAP HANA cockpit available with SAP HANA Platform 2.0 SPS 01 has a number of new and enhanced
features for security administration. For more information, see the section on SAP HANA cockpit.

Related Information

SAP HANA Data Masking


Reset the SYSTEM User Password in a Tenant Database
Password Policy Configuration Options
LDAP Group Authorization
Server-Side TLS/SSL Configuration Properties for External Communication (JDBC/ODBC)
Backup Encryption
Secure User Store (hdbuserstore)
SAP HANA Cockpit (New and Changed) [page 268]
SAP Note 2438641

5.3 Administration

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for administration.

Documentation Changes [page 268]


SAP HANA Platform 2.0 SPS 01 introduces new and changed documentation for SAP HANA
administration.

SAP HANA Cockpit (New and Changed) [page 268]


SAP HANA Platform 2.0 SPS 01 introduces new and changed features for SAP HANA cockpit.

SAP HANA System Administration (New and Changed) [page 278]


SAP HANA Platform 2.0 SPS 01 introduces new and changed features for the administration of SAP
HANA.

SAP HANA High Availability (New and Changed) [page 280]


SAP HANA Platform 2.0 SPS 01 introduces new and changed features for SAP HANA high availability.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 267
SAP HANA Database Backup and Recovery (New and Changed) [page 280]
SAP HANA Platform 2.0 SPS 01 introduces new and changed features for SAP HANA backup and
recovery.

SAP HANA Application Lifecycle Management (New) [page 281]


SAP HANA Platform 2.0 SPS 01 introduces new and changed features in SAP HANA application
lifecycle management.

SAP HANA Smart Data Access (New and Changed) [page 282]
SAP HANA Platform 2.0 SPS 01 introduces new and changed features for SAP HANA smart data
access.

SAP HANA Hadoop Integration (New and Changed) [page 283]


SAP HANA Platform 2.0 SPS 01 introduces new and changed features for SAP HANA Hadoop
integration and SAP HANA Spark controller.

5.3.1 Documentation Changes

SAP HANA Platform 2.0 SPS 01 introduces new and changed documentation for SAP HANA administration.

SAP HANA Multitenant Database Containers Operations Guide (New and


Changed)

The SAP HANA Multitenant Database Containers Operations Guide has been renamed to SAP HANA Tenant
Databases Operations Guide.

The SAP HANA Tenant Databases Operations Guide now includes a new section called Updating a Single-
Container System. This section contains information about the automatic migration of a single-container
system to a tenant database system with SAP HANA 2.0 SPS 01.

Related Information

Updating a Single-Container System


2423367 - Multitenant database containers will become the standard and only operation mode

5.3.2 SAP HANA Cockpit (New and Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for SAP HANA cockpit.

SAP HANA cockpit support package (SP) 02 is now availabe. SP 02 also contains features that were made
available with SP 01, which was released after SAP HANA Platform 2.0 SPS 00.

What's New in the SAP HANA Platform 2.0


268 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
About SAP HANA Cockpit SPs

SAP HANA cockpit SPs are available independently of the SAP HANA 2.0 platform revision, but may be
included as part of SAP HANA platform revisions.

Included in SAP HANA Platform 2.0


SAP HANA Cockpit SP Release Note Revision

00 SAP Note 2380291 Included with revision 2.00.000

01 SAP Note 2414668 -

02 SAP Note 2433764 Included with revision 2.00.010

SAP HANA cockpit SPs are cumulative. This means that a higher SP includes all features and fixes available in
earlier SPs.

SAP HANA Cockpit SP 02 Features [page 269]


Find out about the new and changed features introduced with the SAP HANA cockpit SP 02.

SAP HANA Cockpit SP 01 Features [page 275]


Find out about the new and changed features introduced with the SAP HANA cockpit SP 01.

Related Information

SAP HANA Cockpit

5.3.2.1 SAP HANA Cockpit SP 02 Features

Find out about the new and changed features introduced with the SAP HANA cockpit SP 02.

Administration and Monitoring [page 270]


SAP HANA cockpit SP 02 introduces new and changed features for system administration and
monitoring.

SAP HANA Database Explorer [page 272]


SAP HANA cockpit SP 02 introduces new and changed features for SAP HANA database explorer.

Performance Monitoring and Analysis [page 273]


SAP HANA cockpit SP 02 introduces new and changed features for performance monitoring and
analysis.

Security Administration [page 274]


SAP HANA cockpit SP 02 introduces new and changed features for security administration.

High Availability [page 274]


SAP HANA cockpit SP 02 introduces new and changed features for high availability.

Backup and Recovery [page 274]


SAP HANA cockpit SP 02 introduces new and changed features for backup and recovery.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 269
5.3.2.1.1 Administration and Monitoring

SAP HANA cockpit SP 02 introduces new and changed features for system administration and monitoring.

Multi-container Database Mode (Changed)

You can use the cockpit to monitor and manage multiple systems, each running version SAP HANA 1.0 SPS 12,
or later. For all SAP HANA 2.0 SPS 01 systems, the multi-container database mode is the only database mode.
However, the cockpit can also monitor single-container systems running earlier versions of SAP HANA.

Add and Remove Services for Tenant Databases (Changed)

You can now use the cockpit to modify the built-in services of an existing tenant database. You can do this
through the Manage Services app, which you will need to access by drilling down from the system database,
rather than through the tenant itself.

Cockpit User Roles (New)

There are now three roles for cockpit users, which the COCKPIT_ADMIN user can assign through the cockpit
manager configuration tool. Each cockpit user must be assigned at least one cockpit role, which will govern
what portions of the cockpit or the cockpit manager they can acccess. (Cockpit roles are unrelated to the roles
assigned to database users which govern which SAP HANA privileges belong to that database user).

Cockpit Role Permits access to

Cockpit Administrator The Manage Users and Cockpit Settings sections of the
Cockpit Manager. This role is assigned automatically to the
COCKPIT_ADMIN user, created during the installation proc­
ess, and cannot be revoked.

Cockpit Resource Administrator The Registered Resource and Resource Groups sections of
the Cockpit Manager, where they can register resources, cre­
ate resource groups, and assign cockpit users to resource
groups.

Cockpit User The SAP HANA cockpit, where they can view all resources in
any assigned resource groups.

A user who has only the Cockpit User role, will not be able to access the Cockpit Manager. Conversely, a user
who has only the Cockpit Resource Administrator or the Cockpit Administrator role will not be
able to access the cockpit.

What's New in the SAP HANA Platform 2.0


270 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
Single Sign-On (SSO) (New)

Cockpit resource administrators now have the option to enable or enforce SSO for a specific resource. You can
edit this and other settings for the resource through the Cockpit Manager configuration tool. If you enforce
SSO, cockpit users must use SSO to access the resource. If you enable SSO, but do not enforce it, cockpit
users can choose whether to access this resource with SSO or to enter alternate database user credentials.

Memory Analysis (Changed)

Analyze Memory Allocation Statistics has been redesigned and enhanced as Memory Analysis. This application,
which you access by drilling down through Manage Services, enables you to visualize and explore the memory
allocation of every service of a selected host during a specified time range. If you notice an increase in overall
memory usage, you can investigate whether it's due to a particular component, subcomponent, or table.

Host Failover (New)

For multi-host systems, you can now use the cockpit to configure host auto-failover so that if an active host
fails, standby hosts take over to ensure the continued availability of the database. You can monitor the status of
individual hosts and switch the configured roles of hosts; you cannot increase or decrease the number of
worker hosts and standby hosts in relation to each other.

Related Information

Managing Tenant Databases


Add or Remove Services in a Tenant Database
Managing Cockpit Users
Edit Resource Settings, including SSO
Enforce Single Sign-On
Analyze Memory Statistics
Configure Host Failover

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 271
5.3.2.1.2 SAP HANA Database Explorer

SAP HANA cockpit SP 02 introduces new and changed features for SAP HANA database explorer.

Database Browser Enhancements

Database Object Database object editors have been added for nearly all database objects and can be used
Editor to view, filter, and search for all objects of a specific type. Database object editors can be
Enhancements accessed by right-clicking the database object in the database browser and clicking
Show <database-object>, for example, Show Tables. Improvements have also been
made to the database object editors to ensure that they look and behave consistently.

Data Preview The data preview now has two tabs, the Raw Data tab that shows the current data
Enhancements preview result in table format, and the Analysis Tab that provides the option to limit the
result data to the subset of columns selected by the user and represents the result data
in graphical format. The data preview can be accessed for columns, tables, and views by
right-clicking the object in the database browser and clicking Open Data.

MDX Console Enhancements

Improvements have been made to the MDX console to make it easier to create MDX queries. New features
include the ability to search for MDX objects in the Object Search and the ability to look up MDX syntax
elements in the API reference.

SQL Console Enhancements

A new administrative SQL console is available for HDI administrators to grant privileges on the container's
target schema to other users. Access the administrative console by right-clicking the HDI container in the
database browser and clicking Open SQL Console (Admin).

Tracing Enhancements

View Diagnostic Files for The new Host Diagnostic Files folder contains diagnostic files for cockpit
Offline Cockpit Resources resources that are either online or offline and contains all diagnostic files that
have been configured for the SAP Host Agent.

Support for Tracing Database explorer now supports database tracing, SQL tracing, user-specific
Configuration tracing, and end-to-end tracing. These traces are configurable in their respective
tracing editors in the database explorer.

What's New in the SAP HANA Platform 2.0


272 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
Connection Enhancements

Support for User- When adding an HDI container to the database explorer, user-defined containers
defined HDI Containers now appear in the drop-down list of available HDI containers.

Support for HDI- When adding a database to the database explorer, the Database type drop-down list
containers Contained in now offers the Application Managed Service Instances option, which allows you to
Instance Managers add an HDI container that is contained in an instance manager.

Support for Advanced When adding an HDI container or database, the Add Database editor now contains
Connection Options the Advanced Options field, which allows you to specify advanced connection
options, such as encryption options and isolation levels. The new CLIENT option
has also been added, which allows you to set the session client for the connection.

5.3.2.1.3 Performance Monitoring and Analysis

SAP HANA cockpit SP 02 introduces new and changed features for performance monitoring and analysis.

SQL Analyzer

The SQL analyzer offers the following functionalities:

● It is now possible to generate a graphical view of the plan to help you understand and analyze the execution
plan of an SQL statement.
● It is now possible to have a complete overview of the execution plan based on the visualization of
sequential time-stamps in the timeline view.
● It is now possible to view detailed information of operators using the detailed properties view.

Capture and Replay

The Capture and Replay offers the following functionalities:

● In the Comparison Report it is now possible to view statement details by clicking the bar chart displayed in
the report.
● In the Comparison Report it is now possible to export replay reports to PDF.

Manage Statement Hints

The Manage statement hints allows you to add statement hints to an SQL statement without modifying the
actual statement in the application.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 273
5.3.2.1.4 Security Administration

SAP HANA cockpit SP 02 introduces new and changed features for security administration.

Database User Management

● When creating or changing a database user, you can now configure JSON Web token (JWT) as an
authentication mechanism.
● When configuring the password policy for the SAP HANA database, you can now enforce the use of a
specific number of a particular character type, for example, two digits, three special characters.

Database Role Management

You can now view the details of all roles available in the SAP HANA database on the new Role page. You can also
create, change, and drop catalog roles.

To access the Role page, choose the Manage roles link on the overview page of the system.

5.3.2.1.5 High Availability

SAP HANA cockpit SP 02 introduces new and changed features for high availability.

Configuring System Replication

It is possible to configure system replication only from the primary system. If the configuration was
interrupted, it is possible to continue starting from the last successful step.

5.3.2.1.6 Backup and Recovery

SAP HANA cockpit SP 02 introduces new and changed features for backup and recovery.

SAP HANA cockpit now allows you to perform the following tasks:

● Recover single-tenant SAP HANA systems from a storage snapshot.


● Display the backup encryption status information.

What's New in the SAP HANA Platform 2.0


274 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
5.3.2.2 SAP HANA Cockpit SP 01 Features

Find out about the new and changed features introduced with the SAP HANA cockpit SP 01.

Administration and Monitoring [page 275]


SAP HANA cockpit SP 01 introduces new and changed features for system administration and
monitoring.

Performance Monitoring and Analysis [page 276]


SAP HANA cockpit SP 01 introduces new and changed features for performance monitoring and
analysis.

Security Administration [page 277]


SAP HANA cockpit SP 01 introduces new and changed features for security administration.

High Availability [page 277]


SAP HANA cockpit SP 01 introduces new and changed features for high availability.

Backup and Recovery [page 278]


SAP HANA cockpit SP 01 introduces new and changed features for backup and recovery.

5.3.2.2.1 Administration and Monitoring

SAP HANA cockpit SP 01 introduces new and changed features for system administration and monitoring.

License Management

You can now view the details, including memory usage data, of all licenses installed in your SAP HANA system
on the new License page. Here, you can also perform the following tasks:

● Request and install a new permanent license key


● Delete permanent license keys
● Export memory usage data for license auditing purposes

To access the License page, choose the Manage licenses link on the overview page of the database.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 275
5.3.2.2.2 Performance Monitoring and Analysis

SAP HANA cockpit SP 01 introduces new and changed features for performance monitoring and analysis.

Performance Monitor

The Performance Monitor offers the following functionalities:

● It is now possible to define the monitored timeframe by manual entry.


● By using the Add Chart button, it is now possible to create custom charts displaying the host and services
selection, as well as selected KPIs.
● In the Settings menu, it is possible to configure Alerts according to category and priority status, and to
customize your graphs by including hosts and services, as well as additional KPIs.
● Customized user parameters are now saved for the next logon.

Capture and Replay

When replaying preprocessed workloads, it is now possible to turn the Transactional Replay on or off on the
Replay Configuration page. When the Transactional Replay is on, the Comparison Report displays a report on
the results comparison. When the Transactional Replay is off, the Comparison Report displays a report on the
runtime comparison.

Workload Analyzer

The workload analyzer based on engine instrumentation offers the following functionalities:

● It is now possible to start the tracing process from the Workload List page by clicking Start Trace on the
bottom right.
● After starting the tracing process it is possible to turn on the Collect Performance Details, CPU
Consumption, and the Memory Consumption options. These statement-level statistics will be displayed in
the timeline view.

The workload analyzer based on thread samples offers the following functionalities:

● It now displays the number of thread samples next to each legend in the area chart on the lower part of the
screen.
● When customizing the information displayed on the load graph on the upper part of the screen it is now
possible to choose all available services from the host and services combo box. Previously, it was possible
to select only index server services.

What's New in the SAP HANA Platform 2.0


276 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
5.3.2.2.3 Security Administration

SAP HANA cockpit SP 01 introduces new and changed features for security administration.

Database User Management

It is now possible to convert a standard database user to a restricted database user and vice versa. New
options on the User page allow you grant (or revoke) the PUBLIC role and grant (or revoke) authorization to
create objects in the user's own schema.

5.3.2.2.4 High Availability

SAP HANA cockpit SP 01 introduces new and changed features for high availability.

Retention Time Estimation

For the operation modes logreplay and logreplay_readaccess, it is now possible to view a retention time
estimation on the System Replication Overview. The Estimated log retention time is an estimation of the time
left before the primary system starts to overwrite the RetainedFree marked log segments and a full data
shipping becomes necessary to get the primary and the secondary systems back in sync after a disconnect
situation. The Estimated log full time is an estimation of the time left before the primary system runs into a log
full. The value displayed in the header shows the situation into which the system could run first: log retention or
log full.

The estimated log retention time as well as the estimated log full time for all system replication relevant
services are displayed in the Log Replay tab.

Network Speed Check

It is now possible to measure the network speed of the system replication host-to-host network channel
mappings using the Network Speed Check tab on the System Replication Overview.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 277
5.3.2.2.5 Backup and Recovery

SAP HANA cockpit SP 01 introduces new and changed features for backup and recovery.

SAP HANA cockpit now allows you to perform the following tasks:

● Back up tenant databases from the system database.


● Recover tenant databases from the system database.
A database can be recovered to its most recent state or to a specific point in time.
● Data backups can be scheduled through the tenant database.
● From the system database, view the backup history and details in the backup catalog for tenant databases.

5.3.3 SAP HANA System Administration (New and Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for the administration of SAP HANA.

JSON Document Store (New)

The SAP HANA Document Store (often referred to as 'DocStore') is a store for JSON artifacts and allows native
operations on JSON including filtering, aggregation, and joining JSON documents with HANA column or row
store tables. JSON documents (JavaScript Object Notation) are stored in collections, these appear to users like
tables and users can read data from tables and collections in a single statement and can combine tables and
collections by joining as with any other column or row store table.

The Document Store is an optional feature of the SAP HANA database which you have to create for each tenant
database.

Dynamic Result Cache (New)

Result caching may be used to improve the performance of queries which are frequently executed. In
comparison to the static result cache, a dynamic result cache eliminates the risk of querying stale data and will
always return transactionally consistent data. The dynamic result cache can dramatically improve performance
in situations which involve intensive parallel querying of large tables and extensive use of aggregation. The
dynamic result cache guarantees up to date results by firstly incrementally updating the cache with delta
records of newly changed data and then returning the query result from the cache.

What's New in the SAP HANA Platform 2.0


278 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
Workload Management (Changed)

Changed features in the area of workload management include the following:

Event Details for Admission Control: Additional configuration parameters to manage queued transactions
and a monitoring view (M_ADMISSION_CONTROL_EVENTS) to provide information about why a statement
was queued have been introduced in this release to extend the functionality of Admission Control.

Hint for Workload Classes: A workload class hint has been introduced so that administrators can apply an
alternative workload class at the time when the query is executed.

Statistics Server (Changed)

The statistics server is the component of the SAP HANA database that provides internal monitoring functions.
It continuously collects information about system status, performance, and resource usage, and issues alerts
in the event of problems.

As of SAP HANA 1.0 SPS 07, it was possible to switch to the embedded statistics service, which is an alternative
implementation of the statistics server.

An SAP HANA system that is still running the statistics server is automatically migrated to use the embedded
statistics service after an upgrade to SAP HANA 2.0 SPS 01. This change only affects single-container systems.

New SAP HANA HDBSQL Options (Changed)

The following new options have been added to modify the operation of SAP HANA hdbsql commands:

● The new -fn option returns all SQL statements that are sent to the database instance and formats them
with numbered lines. Numbered lines make it easier to determine on which file line a potential error has
occurred.
● The new –batchreset option specifies a reset command (for example, <reset>), which tells SAP HANA
HDBSQL to ignore the most recent query sent to the server. In order to specify batchreset, you must also
set the -separatorownline option. The reset command should not be an SQL statement or a separator.
Setting -batchreset on the same line as the separator command results in an error because it is not a valid
query.

Related Information

The JSON Document Store


Dynamic Result Cache
Workload Management
The Statistics Service
SAP HANA HDBSQL (Command-Line Reference)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 279
5.3.4 SAP HANA High Availability (New and Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for SAP HANA high availability.

srServiceChange Hook (New)

The srServiceStateChanged() hook allows monitoring state changes of the SAP HANA services.

This allows to trigger a takeover to the secondary system rather than a long lasting indexserver restart.

Data Shipping Parallelization (New)

A more performant initialization through data shipping via multiple network connections is now possible.

The datashipping_parallel_channels parameter defines the number of network channels used by full or
delta datashipping. The actual number of channels for each shipping can be adjusted by the system to reduce
overhead depending on the current amount of data to be shipped.

Related Information

High Availability for SAP HANA

5.3.5 SAP HANA Database Backup and Recovery (New and


Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for SAP HANA backup and recovery.

Backup Encryption (New)

SAP HANA supports native backup encryption.

For more information:

● Points to Note: SAP HANA Backup Encryption in the SAP HANA Administration Guide (SAP HANA Database
Backup and Recovery)
● Backup Encryption and Encryption Key Management in the SAP HANA Security Guide
● ALTER SYSTEM BACKUP ENCRYPTION Statement (System Management) in the SAP HANA SQL and
System Views Reference

What's New in the SAP HANA Platform 2.0


280 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
Support for Third-Party Backup Tools (New)

It is now possible to copy a database by recovering it from backups created using a third-party tool:

● A tenant database can be copied using backups created with a third-party tool.
● A single-container system can be recovered to a tenant database using backups created with a third-party
tool.

Recovery From Storage Snapshots (New)

It is now possible to create a storage snapshot for a single-tenant system.

To create a storage snapshot, you need to use native SQL.

To recover SAP HANA from a storage snapshot, you need to recover the system database and the tenant
database separately.

For more information, see Storage Snapshots in the SAP HANA Administration Guide (SAP HANA Database
Backup and Recovery).

Enhancement for Tenant Databases (Changed)

It is now possible to add or remove a service without breaking the backup history.

This means that it is now possible to recover an SAP HANA database using backups that were created before a
topology change was made to recover to a point in time after the topology was changed.

After adding or removing a service, it is no longer necessary to create a full data backup.

5.3.6 SAP HANA Application Lifecycle Management (New)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features in SAP HANA application lifecycle
management.

The new graphical user interface XSA Application Lifecycle Management is available. It can be used for the
installation, update, and uninstallation of products and software components in SAP HANA XS advanced model
and represents an alternative to the XS advanced command line interface.

Related Information

Installing and Updating Using the XS Advanced Application Lifecycle Management Graphical User Interface

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 281
5.3.7 SAP HANA Smart Data Access (New and Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for SAP HANA smart data access.

Linked Database (New)

Linked database allows DML queries on remote data sources without the need to first create virtual tables.
Linked database uses a three-part namespace to directly identify the remote database, schema, and table
name. This makes ad-hoc queries against remote sources convenient.

Support for Three-part Namespace (Changed)

The following SQL statements now support three-part namespace, required for the linked database feature:

● CREATE/ALTER/DROP/REFRESH STATISTICS Statement


● CREATE SYNONYM Statement
● DELETE Statement
● INSERT Statement
● SELECT Statement
● REPLACE | UPSERT Statement
● TRUNCATE Statement
● UPDATE Statement

LINKED DATABASE System Privilege (New)

LINKED DATABASE is a new source privilege to support the linked database feature.

Drop and Refresh Metadata for Linked Database (New)

When the metadata in a remote table changes, use the ALTER REMOTE SOURCE statement to refresh the
linked object to reflect the change. The ALTER REMOTE SOURCE statement can also be used to perform
housekeeping of the internally generated virtual tables.

REMOTE_SOURCES System View (Changed)

A new linked database column was added to indicate if the linked database feature is supported for the remote
source.

What's New in the SAP HANA Platform 2.0


282 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
New Section Added to indexserver.ini file

A new section named linked_database was added to the indexserver.ini file. It contains the parameter
linked_database_cleanup_interval, which specifies the interval in seconds to wake up the job that
performs linked object housekeeping tasks.

EXPORT/IMPORT Virtual Tables (Changed)

The IMPORT statement now supports the ability to transport some or all of the existing virtual tables in the
source system to a new system. You can specify a new schema or database name during the process. You can
also use this statement with a loopback remote source to reproduce a virtual table workflow in a local
environment for troubleshooting purposes.

5.3.8 SAP HANA Hadoop Integration (New and Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for SAP HANA Hadoop integration and
SAP HANA Spark controller.

Proxy Server Parameters

SAP HANA Spark controller facilitates parallel data transfer between SAP HANA and Spark controller executor
nodes, which requires the port range of 56000 to 58000 to remain open in environments where there is
firewall between SAP HANA and Hadoop. However, keeping this port range open can be a security risk. Spark
controller has introduced the sap.hana.p2p.transfer.enabled configuration parameter, which, when
disabled, can be used to stream the data through a single port. This allows for stricter monitoring for security
related issues.

Some Hadoop configurations require the proxy server to be positioned in-between SAP HANA and Spark
controller. In this type of configuration, the sap.hana.p2p.transfer.enabled parameter can be used to
configure Spark controller to work in single-channel data streaming mode to enable communication through
the proxy server.

Support for Parcels Binary Distribution Format

When installing SAP HANA Spark controller with Cloudera Manager, you need to use the parcels binary
distribution format rather than packages. Parcels offer several advantages over packages, including single
object installation and third party support for parcels.

With parcels, the path to the CDH libraries is now /opt/cloudera/parcels/CDH/lib instead of /usr/lib.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 283
Additional Data Format Support

The new configuration parameter sap.hana.es.data.format allows you to specify the data storage format
when moving data to Hadoop. The following values can be specified: parquet, orc, or auto. The default is
auto.

Support for RedHat 7

Set up of SAP HANA Spark controller using the Cloudera Manager on Red Hat Enterprise Linux 7 is now
supported.

For more information, see SAP HANA Spark Controller

5.4 Development

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for development.

SAP HANA XS Advanced Development (New and Changed) [page 285]


For SAP HANA Platform 2.0 SPS 01 SAP HANA supports development and deployment of SAP HANA
extended application services (XS) advanced model applications.

Search, Text Analysis, and Text Mining [page 290]


SAP HANA 2.0 SPS 01 introduces new and changed features for search, text analysis, and text mining.

SAP HANA Graph (New and Changed) [page 294]


SAP HANA Platform 2.0 SPS 01 introduces new and changed features for the administration of SAP
HANA Graph.

Hierarchy Functions (New and Changed) [page 295]


SAP HANA Platform 2.0 SPS 01 introduces new and changed features for hierarchy functions.

SAP Enterprise Architecture Designer, Edition for SAP HANA, edition for SAP HANA (New and Changed)
[page 295]
SAP HANA Platform 2.0 SPS 01 introduces new and changed features in SAP Enterprise Architecture
Designer, Edition for SAP HANA, edition for SAP HANA.

SAP Web IDE for SAP HANA (New and Changed) [page 296]
SAP HANA Platform 2.0 SP01 introduces new and changed features in SAP Web IDE and integrated
SAP HANA tools.

SAP HANA Interactive Education (SHINE) for XS Advanced (New and Changed) [page 302]
SAP HANA Platform 2.0 SPS 01 introduces new features in SAP HANA Interactive Education (SHINE)
for XS Advanced - demo content delivered as a package with sample data and design-time developer
objects that makes it easy to learn how to build applications on SAP HANA Extended Application
Services Advanced Model.

What's New in the SAP HANA Platform 2.0


284 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
5.4.1 SAP HANA XS Advanced Development (New and
Changed)

For SAP HANA Platform 2.0 SPS 01 SAP HANA supports development and deployment of SAP HANA extended
application services (XS) advanced model applications.

Application Run-Time Environment

SAP HANA XS advanced provides the following run-time environments for your application:

● JavaScript/Node.js
JavaScript run time to which you can deploy your Node.js and XS JavaScript applications.

 Note

The XS JavaScript (XSJS) run time is a compatibility layer that runs on top of Node.js, which enables
you to execute your existing code base, for example, .xsjs and .xsjslib files.

● Java (Tomcat 8/TomEE)


SAP HANA XS advanced model provides a Java run time to which you can deploy your Java applications.
The Java run time for SAP HANA XS advanced provides a Tomcat or TomEE run time to deploy your Java
code.
● Custom run time
You can also create and run a custom run-time environment of your own in XS advanced, so that you can
deploy applications written using languages such as Python or PHP, which are not supported by any of the
default run-time environments included in the XS advanced run-time store.

 Restriction

SAP does not provide support for custom language, buildpack, or run-time scenarios.

Applications deployed to a custom run-time environment in XS advanced do not have automatic access to
(or use of) some important features that are built into and supported by the XS advanced framework,
including (but not limited to): authentication and security, logging and auditing, and connections to the
database. If you deploy an application to a custom run-time environment in XS advanced, you must
configure these components manually for the custom application

JavaScript Run Time

SAP HANA XS advanced provides the following updates and new features for the SAP HANA Platform 2.0 SPS
01 JavaScript run-time environment:

● @sap/hdbext
The names of all packages in XS_JAVASCRIPT have been changed names; new package names start with
the “@sap/”, for example, sap-hdbext is now @sap/hdbext.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 285
Java Run Time
SAP HANA XS advanced provides the following updates and new features for the SAP HANA Platform 2.0 SPS
01 Java run-time environment:

● Provides the XS_JAVA archive, which includes a selection of client Java libraries for SAP HANA XS
advanced.
● Support for Apache Tomcat 8.5.x

Application Router

For SAP HANA Platform 2.0 SPS 01, SAP HANA XS advanced provides the following updates and new features
for the Node.js application router (approuter.js):

● Routes are matched by both URL path and HTTP methods


● The following new environment variables are available for advanced configuration of the application router:
○ <COMPRESSION>
Configures the compression level
○ <SECURE_SESSION_COOKIE>
Enforces the secure flag of the application router's session cookie
○ <REQUEST_TRACE>
Enable enhanced request tracing
● Additional checks for regular expressions during startup of the application router
● Support for custom error pages (errorPage) in the application descriptor (xs-app.json). You can use
this parameter to specify the files containing the custom page to display for various, standard HTTP
status-codes, for example: 400, 404, 500.
● Extended and improved support for sizing
● Support for PATCH HTTP method (httpMethods) in the application descriptor configuration.
● Improved extensions support for the application router
● Previous component name in SAP Passport has been changed to “XSA Approuter”

Deployment Service

For SAP HANA Platform 2.0 SPS 01, SAP HANA XS advanced provides the following updates and new features
for the deployment service, for example, in the deployment descriptor (mtad.yaml) and the XS CLI command
xs deploy):

● Support for Zero DownTime Maintenance (ZDM) for XS advanced applications with HDI
● CTS+ Integration allows the deployment of multiple MTAs
● Disallow cross-MTA configuration visibility without explicit target organization or space in the MTA
specification
● New and updated MTA module and resource types
● Renamed XS CLI plug-in option used to specify a target URL for a deployment service end-point from -h to
-u, for example:
xs deploy [-i <OPERATION_ID>] [-a <ACTION>] [-u <URL>]

What's New in the SAP HANA Platform 2.0


286 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
● Renamed the option “TARGET_PLATFORM” to “DEPLOY_TARGET”, for example, in the XS CLI commands,
deploy or bg-deploy, etc.
● Renamed all target-platform* commands to deploy-target*, for example, deploy-target,
create-deploy-target, update-deploy-target, and delete-deploy-target
● Update module and resource parameters
○ New “plural” parameters to enable the specification of multiple values, for example: hosts, domains,
ports
○ Support for the no-start option when pushing and deploying applications to the XS advanced run-
time environment
○ Support for tasks in the modules section

SAP HANA Deployment Infrastructure

For SAP HANA Platform 2.0 SPS 01, SAP HANA XS advanced provides the following updates and new features
for SAP HANA Deployment Infrastructure (HDI):

● HDI Configuration Parameter Reference


● HDI Parameter Reference
● HDI Build Plug-ins and File Formats Reference 2.0
● HDI Admin Documentation
● HDI Deployer

Core Data Services

For SAP HANA Platform 2.0 SPS 01, SAP HANA XS advanced provides the following updates and new features
for Core Data Services (CDS):

● CDS Views can now be enhanced with parameters


● Multiple top level artifacts are allowed in a single CDS document
● Enhancements for query features

JSON Document Store (New)

The SAP HANA Document Store (DocStore) is a place where applications can collect JSON documents, that is;
files with content that is formatted according to the rules defined in the JavaScript Object Notation. The
DocStore allows the creation and maintenance of JSON collections as well as native operations on JSON
documents, for example: filtering and aggregation, and joins with SAP HANA column- or row-store tables.

The DocStore is an optional feature of the SAP HANA database which you have to create for each tenant
database.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 287
XMLA Services

For SAP HANA Platform 2.0 SPS 01, SAP HANA XS advanced provides the following updates and new features
for XMLA services:

● An XML for Analysis (XMLA) application running in SAP HANA application services (SAP HANA XS) is used
to provide the consumption model for client applications exchanging MDX queries (wrapped in XMLA
documents) with the SAP HANA database.
The XMLA service is defined by deploying the Node.js application xmla.

 Note

XS advanced supports XMLA version 1.1.

XS Advanced Command-Line Interface

For SAP HANA Platform 2.0 SPS 01, SAP HANA XS advanced provides the following updates and new features
for the XS command-line interface:

● Numerous improvements and additions to the parameters and options already available with existing
commands
● User administration
New options for updating role collections, update-role-collection, for example, to assign, reassign,
or change roles.
● XS application tasks
Maintain and manage application-related tasks in the XS advanced run-time environment, for example: list
all tasks (xs tasks), run tasks (xs run-task), and cancel tasks (xs cancel-task).
● Renamed XS CLI plug-in option used to specify a target URL for a deployment service end-point from -u to
-h, for example,
xs deploy [-i <OPERATION_ID>] [-a <ACTION>] [-h <URL>]
xs deploy [-i <OPERATION_ID>] [-a <ACTION>] [-h <SERVICE_ENDPOINT>]
● Renamed the option “TARGET_PLATFORM” to “DEPLOY_TARGET”, for example, in the XS CLI commands,
deploy or bg-deploy, etc.
● Renamed all target-platform* commands to deploy-target*, for example, deploy-target,
create-deploy-target, update-deploy-target, and delete-deploy-target

OData Services

For SAP HANA Platform 2.0 SPS 01, SAP HANA XS advanced provides the following updates and new features
for the OData services:

● Support in the JavaScript runtime for annotations in metadata

What's New in the SAP HANA Platform 2.0


288 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
Documentation

This section contains information about the following new or changed development-related documents:

● SAP HANA Developer Information Map for SAP HANA XS advanced model
● SAP HANA Developer Guide for SAP HANA XS advanced model
● SAP HANA XS Migration Guide

SAP HANA Developer Guide for SAP HANA XS Advanced Model

The SAP HANA Developer Guide for SAP HANA XS advanced model describes the recommended process to
follow when building and deploy applications that run in the SAP HANA extended application services,
advanced model (XS advanced) run time; it also describes the required technical structure of applications that
can be deployed to the XS advanced run-time platform using either the SAP Web IDE for SAP HANA or the XS
command line tools.

The following areas in the SAP HANA Developer Guide for XS advanced model have been added, updated, or
improved:

● Getting Started
New and updated tutorials for the SAP HANA Run time Tools (a.k.a SAP HANA Database Explorer)
● Maintaining Application Development and Deployment Descriptors
Improved and more comprehensive descriptions of the configuration files used to define and describe the
build and deployment of a Multi-Target Application (MTA)
● Defining the Data Model in XS Advanced
○ Maintaining JSON Collections in the SAP HANA Document Store
○ Using Synonyms to Access External Schemas and Objects in XS Advanced
● Defining OData Services for XS Advanced Applications
Improved and more comprehensive explanations of how to create and deploy OData services in XS
advanced, for example: changes and additions to the service-definition syntax and many some examples of
working service definitions.
● Writing the XS Advanced Application Code
○ JavaScript/Node.js Run-Time Environment
Improved and more comprehensive explanations of how to make use of the features available in the
JavaScript/Node.js run-time environments, for example, which Node.js packages are available by
default and how you can consume them with your MTA. There is also some new information about the
unit-test framework, which you can use from within SAP Web IDE for SAP HANA.
○ Java Run-Time Environment
Improved and more comprehensive explanations of how to make use of the features available in the
Java run-time environments, for example, how to set up connections to the SAP HANA database, how
to configure logging and tracing, how to set up audit logs, how to configure authentication and
authorization, how to debug your Java application, and how to enable Java Data Services (a native
Java client for using Core Data Services functionality in the XS advanced Java run time).
● Maintaining XS Advanced Application Routes and Destinations
Improvements to and extension of existing information as well as new information about features and
functionality added with SAP HANA Platform 2.0 SPS 01.
● SAP Web IDE
A complete reference for SAP Web IDE for SAP HANA, a browser-based integrated development
environment (IDE) for the development of SAP-HANA-based applications comprised of web-based or
mobile UIs, business logic, and extensive SAP HANA data models. SAP Web IDE works in conjunction with

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 289
the SAP HANA Run-time Tools (HRTT), the SAP HANA deployment infrastructure (HDI), the Application
Lifecycle Management tools (ALM) and the XS advanced run-time platform
● HDI Artifact Types and Build Plug-ins Reference
Improvements and additions to the list of available plugins providing support for a wide variety of database
artifacts types, for example, .hdbcollection (JSON collections for the SAP HANA DocStore).
● XS Command-Line Interface
Numerous improvements and additions to the parameters and options already available with existing
commands as well as important additions to the installation and deployment functions including more
control of the application version deployed and the services bound to the deployed application.

5.4.2 Search, Text Analysis, and Text Mining

SAP HANA 2.0 SPS 01 introduces new and changed features for search, text analysis, and text mining.

5.4.2.1 Search (New and Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for search.

The following list contains features for use with built-in procedures sys.esh_search() and
sys.esh_config() and for use in search models created with CDS.

Support for Spatial Datatypes

It is now possible to define filters on the spatial data types ST_POINT and ST_GEOMETRY.

Columns of SQL type ST_POINT and ST_GEOMETRY are returned in GeoJSON format. GeoJSON is a geospatial
data interchange format based on JavaScript Object Notation (JSON).

The attribute conditions :WITHIN:, :COVERED_BY: and :INTERSECTS: are available and are internally
mapped to the SQL functions ST_Within, ST_CoveredBy, and ST_Intersects.

Facets

With this release, spatial facets for ST_POINT columns are supported. They are calculated using the grid-based
aggregation functions of SAP HANA.

In addition, you can use the new annotation


@EnterpriseSearch.filteringFacet.caseInsensitiveAggregation. If set to true, a case-
insensitive aggregation of facet values is done. If not given or set to false, the default aggregation is case-
sensitive.

What's New in the SAP HANA Platform 2.0


290 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
Dynamic Search Configurations

Some applications define their own persistence to store search configurations. Other applications define
varying configurations that depend on, for example, the user settings or other parameters. For the above use
cases, sys.esh_search() allows the definition of dynamic search configurations at runtime. If a search
configuration is passed to sys.esh_search(), all search configurations already stored in the SAP HANA
configuration tables are ignored.

New Numeric Ranking Weights

With this release, the new annotation @EnterpriseSearchHana.weight is always returned instead of
@Search.ranking. 'HIGH', 'MEDIUM', and 'LOW' are returned as their numeric values ('HIGH' = 1.0, 'MEDIUM' =
0.7, and 'LOW' = 0.5).

Built-In Procedure sys.esh_config() and CDS

Note the following new features for built-in procedure sys.esh_config():

● The new annotation @EnterpriseSearch.filteringFacet replaces the use of mode AUTO_FACET.


● The new annotation @EnterpriseSearch.defaultValueSuggestElement replaces usage mode
SUGGESTION.
● There is the new annotation @EnterpriseSearchHana.identifier to define the OData identifier of a
view.
● There is the new annotation @EnterpriseSearchHana.uiResource.label to define resource bundles
and resource keys, used by the search UI to get label texts.

Built-In Procedure sys.esh_search()

● Note the following new features for built-In procedure sys.esh_search():


● Interval facets are available on numeric columns.
● Search results are written to a database table.
● The user language can be used as an input parameter.
● The query language, for performance optimizations, allows the separation of search terms and filter
conditions used for authorization checks, boosting, and other features.
● It is now possible to limit search and metadata requests to one database schema.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 291
Fuzzy Search

With this release, a set of new score functions for numeric and date types are available. For DATE columns are
functions for linear and Gaussian scores available, for NUMERIC columns linear, Gaussian, logarithmic.

Related Information

Dynamic Search Configurations


Spatial Data
Facets for Numeric and NUMC Columns
Facets for Date and Timestamp Columns
Spatial Facets for ST_POINT Columns
DATE Columns with Score Functions
Fuzzy Search on Numeric Columns

5.4.2.2 Text Analysis (New and Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for text analysis.

Web IDE Extensions for Text Analysis

SAP Web IDE returns the line number of any errors that exist in your custom text analysis dictionaries, rules,
and configuration settings. These errors appear in the Problem View in the Web IDE after building your custom
TA resources. Clicking on an error opens the TA object and places the cursor on the line containing the error.

In addition, many improvements have been made to the error messages to make them clearer and more useful.

Users can locate and repair errors in their custom text analysis dictionaries and rules faster and with less effort.

See chapter Managing Custom Text Analysis Configurations with XS Advanced inside the SAP HANA Text
Analysis Developer Guide for details.

Improved Linguistic Analysis in Korean

Numerous incremental changes to Korean increase the accuracy of full text search and text analysis when
processing Korean text.

Stemming improvements in Linguistic Analysis:

● Numerical tokens: Before: 11시 Now: 11#시


● Compound nouns: Before: 전문회사 Now: 전문#회사

What's New in the SAP HANA Platform 2.0


292 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
More granular part-of-speech tags:

● Addition of PoS tags for numerical tokens: Num-Day, Num-Month, Num-Year, Num-Meas, Num-Time, Num-
Floor, Num-Money, Num-Percent, Num-Phone, Num-Date, and Num-RRN.

Request Extraction in Arabic Sentiment Analysis

Sentiment analysis in Arabic extracts customer requests to help determine what consumers desire.

A simple example is ‫( ممكن تزودوا زر؟‬Would it be possible to add a switch?). From this, text analysis returns the
GeneralRequest entity ‫( ممكن‬would it be possible) with the Topic ‫( تزودوا زر‬add a switch).

Tolerant Spelling Support for Portuguese

Portuguese linguistic analysis is more tolerant of variations in capitalization, accents, and hyphenation. This
increases recall for full text search and text analysis applications that process Portuguese inputs.

For example, rodrigo is recognized as a variation of Rogrigo, acafrao a variation of açafrão, and afrobrasileiro a
variation of afro-brasileiro.

Topic Normalization in Portuguese

Determiners such as "O" and "A" are not included in the topics extracted by Voice of the Customer (sentiment
analysis), simplifying the aggregation and matching of topics and making Portuguese consistent with
sentiment analysis in other languages.

As an example, if the input text contains O livro me fascina!, the Topic extracted by Text Analysis is livro.

Related Information

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 293
5.4.2.3 Text Mining (New and Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for text mining.

Improved Term Input Handling

You can specify multiple input terms with optional term types and wildcarding in the TM_GET_RELATED_TERMS
and TM_GET_RELEVANT_DOCUMENTS functions. When the term type is unspecified, any term type should be
allowed. It allows a combination of terms and all instances of an entity type.

Related Information

SQL Reference for Additional SAP HANA Contexts

5.4.3 SAP HANA Graph (New and Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for the administration of SAP HANA
Graph.

● The graph algorithm Shortest Path (One-to-One) has been added.


● Support for the openCypher query language has been enhanced:
○ Handling of paths
○ Handling of undirected edges
○ A list of reserved keywords for openCypher has been added.

● Support for the GraphScript query language has been enhanced:


○ Set operations on multisets of vertices and edges have been added.
○ Explicit scalar value casting functionality has been added.
○ Support for neighborhood queries has been added.
○ Null value handling has been added.

Related Information

SAP HANA Graph Reference


Shortest Path (One-to-One)
Expressions
openCypher Pattern Matching
Built-In Functions

What's New in the SAP HANA Platform 2.0


294 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
5.4.4 Hierarchy Functions (New and Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for hierarchy functions.

SAP HANA Hierarchy Developer Guide (New)

This release includes a new SAP HANA Hierarchy Developer Guide. This guide explains how to use the hierarchy
functions that are an integral part of SAP HANA core functionality.

SQL Functions (New and Changed)

For information about new and changed hierarchy functions, see SAP HANA SQL and System Views Reference
(New and Changed) in this guide.

Related Information

SAP HANA Hierarchy Developer Guide


SAP HANA SQL and System Views Reference (New and Changed) [page 304]

5.4.5 SAP Enterprise Architecture Designer, Edition for SAP


HANA, edition for SAP HANA (New and Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features in SAP Enterprise Architecture Designer,
Edition for SAP HANA, edition for SAP HANA.

● Export to PowerPoint - Select Share Export to PowerPoint to download the diagram as a *.pptx file
for opening in Microsoft PowerPoint 2013 or higher.
● Diagram Overview Panel - This new panel allows you to navigate in a diagram that is larger than the viewer
by dragging the view box over a thumbnail of the full diagram image. The panel is collapsed by default and
can be opened by clicking the Show Overview arrow in the bottom-right corner of the diagram viewer.
● Dependencies Tab - This new object property tab combines and replaces the former Impacts and Depends
On tabs.
● Share Menu - A new Share menu regroups the various features for sharing and exporting diagrams, and a
new option in the Share Link dialog allows you to choose between generating a link that points to the
specific version of the diagram you are viewing, or one that will always point to the latest published version
of a diagram.
● Physical Data Model Enhancements:

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 295
○ Tolerant SQL Parsing - The parsers that interpret reversed SQL code to model views and physical
options will now display a warning when they encounter syntax that they do not understand and will
continue to parse and extract properties from the remainder of the SQL statement.
○ Reverse-Engineering Options - A new Options tab allow you to optimize reversing objects by controling
the extent of the information captured for them.
○ Rebuild References - A new command, which can be invoked through a reverse-engineering option or
from the tools menu, will attempt to re-create references between tables by matching primary key
columns to columns in other tables by code.
● User Administration Enhancements:
○ A new log at Adminstration/Activities/Security Log allows administrators to review events relating to
user accounts including successful and unsuccessful logins, password changes, user updates, and
blocked and deactivated users.
○ Each user can now review the information associated with their account by clicking their name in the
homescreen and selecting User Account.

5.4.6 SAP Web IDE for SAP HANA (New and Changed)

SAP HANA Platform 2.0 SP01 introduces new and changed features in SAP Web IDE and integrated SAP HANA
tools.

SAP Web IDE for SAP HANA is a browser-based integrated development environment (IDE) for the
development of SAP HANA-based applications comprised of web-based or mobile UIs, business logic, and
extensive SAP HANA data models. SAP Web IDE works in conjunction with the SAP HANA deployment
infrastructure (HDI), the Application Lifecycle Management tools (ALM), the XS Advanced runtime platform,
and various SAP HANA tools.

SAP Web IDE

Feature Description

MTA Editor In addition to a text-based code editor, a graphical editor is


now available for editing the MTA application descrip­
tor(mta.yaml).

Use of SAP-scoped packages When customizing your environment during SAP Web IDE in­
stallation, you can now define an upstream link specific for
the SAP-scoped Node.js packages (package names with the
@sap prefix), so that these packages can be fetched from a
specific npm registry.

What's New in the SAP HANA Platform 2.0


296 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
Feature Description

Database development: Support for earlier SAP HANA data­ When creating an SAP HANA Database module, you can se­
base versions lect the target SAP HANA version that is equal to or earlier
than the one used in your development environment, start­
ing from 1.0 SPS12. This enables you to develop applications
in the new development environment and deploy them to an
earlier version of the database.

Database development: Support for multitenant database You can now use SAP Web IDE for SAP HANA to develop ap­
containers (MDC) plications in a development environment with the MDC con­
figuration.

UI Development: OData service connection in the SAP Fiori When creating an SAP Fiori Master-Detail HTML5 module,
Master-Detail template you can now configure a connection to a live OData service
exposed by a running Java or Node.js module within the
same project, or to a service definition available in the work­
space or in the file system.

UI Development: SAP Fiori Component on Sandbox run con­ You can now run an HTML5 module as SAP Fiori Component
figuration on Sandbox (in the SAP Fiori launchpad sandbox environ­
ment).

UI Development: Running with mock data You can now configure and use mock data for running and
testing HTML5 modules.

UI Development: Layout Editor You can now use smart controls in the Layout Editor for the
development of SAPUI5 HTML5 modules.

SAP Fiori Launchpad module It is now possible to run the SAP Fiori launchpad on SAP
HANA XS Advanced Model.

To enable this, you develop SAP Fiori Launchpad modules


with SAP Web IDE for HANA, where the launchpad skeleton
is created automatically. You can also develop the launchpad
modules manually in other IDEs. We recommend working
with the SAPUI5 version that is provided by SAP HANA 2.0
SPS 01.

All SAP Fiori runtime capabilities are available, including per­


sonalizing the launchpad, the apps, and the theme in use,
applying a custom theme, translation, role filtering, and SAP
Fiori 2.0 capabilities.

Support for the Microsoft Internet Explorer and Edge brows­ You can now run SAP Web IDE for SAP HANA in the Micro­
ers soft Internet Explorer and Edge browsers.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 297
Feature Description

Git: connecting local projects to local and remote Git reposi­ You can now connect a local project to a Git repository by
tories right-clicking your project and choosing Git Initialize

Local Repository .

Once you have a local repository, you can connect to a re­

mote repository. Choose Git Set Remote and enter


the URL of the remote Git repository to connect.

Native DataStore Object You can now create and manage native datastore objects
(NDSOs) as central persistency objects for Data Warehouse
environments. The objects are represented as specialized
CDS artifacts, and allow merging of delta and full loads into
its reportable content. Providing delta data for subscribers
will reduce the amount of data to be processed and improve
the performance.

It is possible to merge attributes with a simple move or ag­


gregation, and mark records in delta loads for deletion. The
object provides interoperability between native Data Ware­
houses and SAP BW/4HANA.

Native datastore object is available with DWF 2.0 and higher.

SAP HANA Tools

Calculation View Editor (Modeler)

Feature Description

Performing Intersect and Minus Set Operations You can perform intersect or minus set operations on data
sources in calculation views using the new intersect or mi­
nus views nodes respectively. This is in addition to the al­
ready supported union set operations on data sources.

Support for CDS Views as Data Sources In addition to the already supported data source types
(such as tables, calculation views, table functions, and
much more), you can also use CDS views or its synonyms
as data sources for modeling calculation views in SAP Web
IDE for SAP HANA.

Graphical Data Preview In addition to the existing support to preview output data of
calculation views in tabular format, you can also preview
output data of calculation views in graphical formats such
as line charts, pie charts, bar graph, heat maps, and other
graphical representations.

What's New in the SAP HANA Platform 2.0


298 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
Feature Description

Associating Attributes with Other Related Attributes You can associate each attribute in the calculation view with
its one or more related attributes from the same calculation
view. The system internally stores the attribute relations in
the BIMC_ATTRIBUTE_RELATIONS table.

Masking Column Values You can define data masking on column values of type VAR­
CHAR and NVARCHAR by creating expressions that define
how to mask these column values in query results. Based on
the masking expression that you define, unauthorized users
will only see masked or partially masked column values in
query results.

Use data sources from any tenant database You can model calculation views in SAP Web IDE for SAP
HANA using data sources from any tenant database availa­
ble in the same SAP HANA instance.

Model table functions as view nodes Use the new table function view node to model a table func­
tion with both tabular input parameters and scalar input pa­
rameters.

CDS Graphical Editor

Feature Description

Support for Additional Data Source Types In addition to using entities as data sources, you can also
use other CDS views, SQL views, or calculation views as data
sources when modeling a CDS view in SAP Web IDE for SAP
HANA.

Creating Associations Between Structure Types and Entities You can define managed associations between structure
types and entities using the CDS graphical editor tool in SAP
Web IDE for SAP HANA.

Support for Additional Entity Element Modifiers You can use SAP HANA SQL clauses “generated always as
expression” and “generated [always | by default] as identity”,
when defining elements in entities using the CDS graphical
editor.

Enhancements in CDS View Modeling When modeling a CDS view using a selected entity as data
source, and if associations are defined for the selected entity
with other entities, then you can use elements from the as­
sociated entities in the CDS view definition.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 299
Database Explorer

Feature Description

Database Object Editor Enhancements Database object editors have been added for nearly all data­
base objects and can be used to view, filter, and search for all
objects of a specific type. Database object editors can be ac­
cessed by right-clicking the database object in the database
browser and clicking Show <database-object>, for example,
Show Tables. Improvements have also been made to the da­
tabase object editors to ensure that they look and behave
consistently.

MDX Console Enhancements Improvements have been made to the MDX console to make
it easier to create MDX queries. New features include the
ability to search for MDX objects in the Object Search and
the ability to look up MDX syntax elements in the API refer­
ence.

SQL Console Enhancements A new administrative SQL console is available for HDI admin­
istrators to grant privileges on the container's target schema
to other users. Access the administrative console by right-
clicking the HDI container in the database browser and click­
ing Open SQL Console (Admin).

View Diagnostic Files for Offline Cockpit Resources The new Host Diagnostic Files folder contains diagnostic files
for cockpit resources that are either online or offline and
contains all diagnostic files that have been configured for the
SAP Host Agent.

Support for Tracing Configuration Database explorer now supports database tracing, SQL trac­
ing, user-specific tracing, and end-to-end tracing. These
traces are configurable in their respective tracing editors in
the database explorer.

Support for User-defined HDI Containers When adding an HDI container to the database explorer,
user-defined containers now appear in the drop-down list of
available HDI containers.

Support for HDI-containers Contained in Instance Managers When adding a database to the database explorer, the
Database type drop-down list now offers the Application
Managed Service Instances option, which allows you to add
an HDI container that is contained in an instance manager.

Support for Advanced Connection Options When adding an HDI container or database, the Add
Database editor now contains the Advanced Options field,
which allows you to specify advanced connection options,
such as encryption options and isolation levels.

What's New in the SAP HANA Platform 2.0


300 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
Feature Description

New Advanced Connection Option CLIENT The new CLIENT advanced option sets the session client for
the connection. The value for this option is a three-character
string, for example: CLIENT=100.

Data Preview Enhancements The data preview now has two tabs, the Raw Data tab that
shows the current data preview result in table format, and
the Analysis Tab that provides the option to limit the result
data to the subset of columns selected by the user and rep­
resents the result data in graphical format. The data preview
can be accessed for columns, tables, and views by right-
clicking the object in the database browser and clicking
Open Data.

Java and Node.js Development

Feature Description

Build Results in Workspace Find the build result of the latest build for each module in
your workspace in a separate folder.

Outdated Dependency Trigger a dependency check and get warnings if dependen­


cies are outdated.

Run Java Archives You can now build and run Spring Boot applications.

Java Unit Tests Trigger a build with unit tests and review the result in the test
result pane.

Java Debugging Build your Java application in debug mode und use the built-
in debug tools.

Provide Snippets in CDS Code Editor You can insert snippets in your HDBCDS files. These snip­
pets cover different use cases and updated syntax. This is
part of feature parity to XS Classic.

Beautify your CDS Code Beautify your CDS code per your preferences set in the
project settings. Define general settings and settings for
alignment, whitespaces and line breaks in detail.

Conditional Breakpoints for Node.js Debug your Node.js module using conditional breakpoints.
The list of all breakpoints in your workspace is located in the
debugger pane.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 301
Text Analysis

Feature Description

Extensions for Text Analysis SAP Web IDE returns the line number of any errors that exist
in your custom Text Analysis (TA) dictionaries, rules, and
configuration settings. These errors appear in the Problem
View in the Web IDE after building your custom TA resources.
Clicking on an error opens the TA object and places the cur­
sor on the line containing the error.

In addition, many improvements have been made to the er­


ror messages to make them clearer and more useful.

Users can locate and repair errors in their custom Text Anal­
ysis dictionaries and rules faster and with less effort.

SAP HANA Smart Data Streaming Plugin


Refer to What's New in SAP HANA Smart Data Streaming (Release Notes).

Related Information

What's New in SAP HANA Smart Data Streaming (Release Notes)

5.4.7 SAP HANA Interactive Education (SHINE) for XS


Advanced (New and Changed)

SAP HANA Platform 2.0 SPS 01 introduces new features in SAP HANA Interactive Education (SHINE) for XS
Advanced - demo content delivered as a package with sample data and design-time developer objects that
makes it easy to learn how to build applications on SAP HANA Extended Application Services Advanced Model.

The following new features included in this release of SHINE for XSA:

● Fiori Launchpad
A new entry point to SHINE via the Fiori Launchpad. The tiles in the Fiori Launchpad appear based on the
user role.
● SAPUI5 as a central service
SAPUI5 no longer needs to be bundled with an application. Applications can access SAPUI5 as a central
service and bind it to the web module. SHINE now uses SAPUI5 a central service.
● Spatial
Spatial data describes the position, shape, and orientation of objects in a defined space. HANA supports
spatial data types, which are, in their turn, used in SHINE to visually represent on a map the sales and
geographic distribution of business partners.
● Jobscheduler token-based authentication
In SHINE, jobs can be scheduled by using the token-based authentication feature of the Jobscheduler XSA
service. This avoids the need for specifying a user name and a password for scheduling jobs.

What's New in the SAP HANA Platform 2.0


302 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
● Local time-dimensional data
Time-dimensional data needs to be generated and populated into M_TIME_DIMENSIONAL table under the
_SYS_BI schema for displaying charts and reports with respect to time. There are MDX statements
available for populating the application local time-dimensional table within the application HDI container
with time dimensional data. SHINE now uses a local time-dimensional table instead of the global
M_TIME_DIMENSIONAL table under the _SYS_BI schema.
● Time-based data generator
The time-based data generator in SHINE allows end users to generate random Purchase Orders and Sales
Orders, distributed across a specified time period, thus producing dynamic charts and reports.

5.5 Reference

SAP HANA Platform 2.0 SPS 01 introduces new and changed features as described in the reference
documentation.

SAP HANA SQL and System Views Reference (New and Changed) [page 304]
SAP HANA Platform 2.0 SPS 01 introduces new and changed features, as documented in the SAP
HANA SQL and System Views Reference.

SAP HANA Client Interfaces Reference (New and Changed) [page 312]
SAP HANA Platform 2.0 SPS 01 introduces new and changed features, as documented in the SAP
HANA Client Interface Programming Reference.

SAP HANA SQLScript Reference (New and Changed) [page 313]


SAP HANA Platform 2.0 SPS 01 introduces new and changed features, as documented in the SAP
HANA SQLScript Reference.

SAP HANA Predictive Analysis Library (New and Changed) [page 313]
SAP HANA Platform 2.0 SPS 01 introduces new and changed features for the Predictive Analysis
Library (PAL).

SAP HANA Analytics Catalog (BIMC Views) Reference (New and Changed) [page 318]
SAP HANA Platform 2.0 SPS 01 introduces new and changed features, as documented in the SAP
HANA Analytics Catalog (BIMC Views) Reference.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 303
5.5.1 SAP HANA SQL and System Views Reference (New and
Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features, as documented in the SAP HANA SQL
and System Views Reference.

SQL Statements (New and Changed)

ALTER DATABASE You can now change the system user password for a tenant database by using
Statement (changed) the new ALTER DATABASE <database_name> SYSTEM USER PASSWORD
<password> syntax.

ALTER REMOTE SOURCE This statement has new syntax to refresh or drop linked objects for the linked
Statement (changed) database feature.

ALTER SYSTEM ALTER A new table placement property, SAME_PARTITION_COUNT, causes all
TABLE PLACEMENT partitions tables in a group to be configured to contain the same number of
Statement (changed) partitions.

ALTER SYSTEM BACKUP This statement Creates and manages backup encryption root keys.
ENCRYPTION Statement
(new)

ALTER SYSTEM [UN]PIN When you are specifying to PIN a plan cache entry, the hint is now optional, and
PLAN CACHE ENTRY there is new behavior. ALTER SYTEM PIN...WITH HINT binds the target query to
Statement (changed) the HINT table. ALTER SYSTEM PIN without the WITH HINT clause pins the plan
to the SQL plan cache.

The ability to specify hosts (index servers) by using the AT [ LOCATION ] clause
has been deprecated. The statement now applies to all indexservers.

ALTER SYSTEM VALIDATE This statement verifies that the encryption root key backup password that is
ENCRYPTION ROOT KEYS specified on the command line is the same as the one stored in the encryption
BACKUP Statement (new) root key store.

BACKUP DATA { CREATE | A new clause, FOR FULL SYSTEM, allows you control whether the statement is
CLOSE | DROP } applied to the current connected database, or to all databases in the system.
SNAPSHOT

CREATE AUDIT POLICY A new audit action, VALIDATE USER, has been added that validates a user's
Statement (changed) credentials.

CREATE | ALTER | You can now include the name of a linked database when you are specifying the
REFRESH | DROP table that the data statistics object is built on.
STATISTICS Statement
(changed)

CREATE | ALTER USER You can now configure JWT provider-user mappings for a user.
Statement (changed)

What's New in the SAP HANA Platform 2.0


304 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
For ALTER USER,you can specify a new user parameter, RSERV REMOTE
SOURCES.

CREATE | ALTER | DROP These statements create, alter, validate, and drop JWT providers.
JWT PROVIDER
Statements (new)

CREATE | ALTER TABLE You can now specify whether the table is the TABLE LEAD in a table group.
Statements (changed)

CREATE | ALTER VIEW ● New syntax allows you to mask confidential data in view columns.
Statement (changed) ● For the linked database feature, <database_name> refers to the name of
the remote source.

CREATE COLLECTION Creates a collection table for storing JSON documents.


Statement (new)

CREATE SYNONYM For the linked database feature, <database_name> refers to the name of the
Statement (changed) remote source.

CREATE TABLE Statement When creating a table using CREATE TABLE...LIKE, you can now specify
(changed) WITHOUT CONSTRAINT to not copy constraints such as the primary key or
UNIQUE constraints.

CREATE TRIGGER You can now specify the order of trigger execution.
Statement (changed)

DELETE Statement For the linked database feature, <database_name> refers to the name of the
(changed) remote source.

DELETE Statement - JSON This statement deletes documents (rows) from a collection table.
Document Store (new)

DROP COLLECTION This statement drops a collection table.


Statement (new)

DROP DATABASE Previously, when dropping a tenant database, the backups for the tenant
Statement (changed) database were dropped too; this behavior has changed. Now, the backups for
the database are no longer dropped. Instead, to drop them when dropping the
tenant database, specify the (new) DROP BACKUPS clause.

GRANT Statement ● The new UNMASKED privilege allows you to mask confidential data in views.
(changed) ● The new LINKED DATABASE privilege allows you to use the new linked
database feature.

INSERT Statement For the linked database feature, <database_name> refers to the name of the
(changed) remote source.

IMPORT Statement Two new parameters were added to <import_option> to support the export
(changed) import of virtual tables between systems. The LOOPBACK REMOTE SOURCE
parameter allows the reproduction of a virtual tables scenario in a local
environment for troubleshooting purposes. RENAME REMOTE OBJECT allows
the renaming of schema and database names when importing virtual tables into
a different system.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 305
LOCK TABLE Statement A new WAIT <unsigned_integer> option allows you to specify a period of
(changed) time to wait for a table lock.

RENAME COLLECTION This statement renames a collection table.


Statement (new)

SELECT Statement ● A new FOR XML clause allows you to return results as an XML document.
(changed) ● A new WAIT <unsigned_integer> option allows you to specify a period of
time to wait for a record lock.
● The FROM clause allows you to specify associated tables.
● For the linked database feature, <database_name> refers to the name of
the remote source.

SELECT Statement - JSON You can now select data from a collection table.
Document Store (new)

TRUNCATE COLLECTION This statement truncates a collection table.


Statement (new)

TRUNCATE TABLE ● You can now specify a projection view for truncation.
Statement (changed) ● For the linked database feature, <database_name> refers to the name of
the remote source.

UPDATE Statement For the linked database feature, <database_name> refers to the name of the
(changed) remote source.

UPDATE Statement - JSON Updates data in a collection table.


Document Store (new)

VALIDATE USER Validates the credentials for a user without causing a login using the credentials.
Statement (new)

SQL Functions (New and Changed)

ABAP_ALPHANUM Function (new) Converts a string to what would result if the string were
transformed into an ALPHANUM type and then
converted back to a string.

ABAP_NUMC Function (new) Converts an input string to a string of a specified length,


containing only digits.

CURRENT_MVCC_SNAPSHOT_TIMESTAMP Returns a timestamp snapshot of the current statement.


Function (new)

CURRENT_OBJECT_SCHEMA Function (new) Returns the current schema name.

ENCRYPTION_ROOT_KEYS_EXTRACT_KEYS Now extracts backup encryption root keys.


Function (changed)

What's New in the SAP HANA Platform 2.0


306 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
INITCAP Function (new) Converts the first character of each word in a specified
string to uppercase and converts remaining characters
to lowercase.

HIERARCHY_ANCESTORS Function (changed) The START specification is now optional. Also, the
DISTANCE clause now supports an expression for a
value.

HIERARCHY_COMPOSITE_ID Function (new) Concatenates multi-column tuple-like node identifiers


into single scalar values.

HIERARCHY_DESCENDANTS Function (changed) The START specification is now optional. Also, the
DISTANCE clause now supports an expression for a
value.

HIERARCHY_LEVELED Function (new) Creates a hierarchy based on source data having a


leveled format.

HIERARCHY_SIBLINGS Function (changed) The START specification is now optional.

INSERT Statement - JSON Document Store (new) Inserts data into a collection table.

SOUNDEX Function (new) Converts alphabet characters into a code that


represents their sound.

SUBSTRING Function (behavior change) Previously, this function handled binary values similarly
to how string values would be handled. For example,
SELECT SUBSTRING(x'ABCDEF',1,2)
"substring" FROM DUMMY; would return 'AB'. This
behavior has been changed. The SUBSTRING function
now interprets the offsets as byte positions, so the
returned value would be 'ABCD'.

WIDTH_BUCKET Function (new) Returns the bucket number that the result of a given
expression is assigned to after it is evaluated.

XMLEXTRACT Function (changed) The new <NamespaceDeclarations> parameter


specifies a namespace declaration of type VARCHAR or
NVARCHAR.

XMLEXTRCTVALUE Function (changed) The new <NamespaceDeclarations> parameter


specifies a namespace declaration of type VARCHAR or
NVARCHAR.

System Views (New and Changed)

CDS_ANNOTATION_ASSIGNMENTS System View (new) Provides CDS annotation assignments.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 307
CS_CONCAT_COLUMNS System View (new) Provides information on concat columns in the
database.

DATA_STATISTICS System View (changed) The following column is new:


DATA_STATISTICS_SCHEMA_NAM.

The following columns have new data types:


CREATE_MEMORY_PERCENT (now REAL) and
LAST_REFRESH_MEMORY_PERCENT (now
REAL).

Many columns are now deprecated and should


no longer be used. See the DATA_STATISTICS
System View topic for information on which
columns are deprecated.

EFFECTIVE_MASK_EXPRESSIONS System View (new) Provides information as to how data is exposed


to certain users in terms of data masking.

ENCRYPTION_ROOT_KEYS System View (changed) Supports the backup root key type.

HINT Details (changed) The new WORKLOAD_CLASS hint designates a


certain workload class for statement execution.

JWT_PROVIDERS System View (new) Lists all JWT provider-user mappings.

JWT_USER_MAPPINGS System View (new) Lists all JWT users.

M_ADMISSION_CONTROL_EVENTS System View (new) Displays information about significant events.

M_ADMISSION_CONTROL_QUEUES System View Provides detailed information regarding queued


session requests by Session-Wise Admission
Control.

M_ADMISSION_CONTROL_STATISTICS System View (new) Provides the overall statistics value of the
Session-Wise Admission Control feature.

M_BACKUP_CATALOG System View (changed) The new ENCRYPTION_ROOT_KEY_HASH


column specifies the key used, if any, for
encrypting the backup.

The new SOURCE_DATABASE_NAME column


specifies the name of the database that creates
the backup.

M_CS_COLUMNS_PERSISTENCE System View (new) Provides column persistence information for


column tables.

M_CS_INDEXES System View (changed) The new CONCAT_COLUMN_NAME column


specifies the name of the concat column in the
case of multi-column indexes. This value is
empty in the case of a single-column index.

What's New in the SAP HANA Platform 2.0


308 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
M_CS_LOG_REPLAY_QUEUE_STATISTICS System View (new) Provides information about column store log
replay queue statistics.

M_CS_LOG_REPLAY_QUEUE_STATISTICS_RESET System View Provides information about column store log


(new) replay queue statistics and the last time when
the queue was reset.

M_CS_TABLES System View (changed) The new LAST_CONSISTENCY_CHECK_TIME


column specifies the last time the table
consistency was checked with the
CHECK_TABLE_CONSISTENCY procedure. The
new
LAST_CONSISTENCY_CHECK_ERROR_COUNT
column specifies the number of errors found in
the last table consistency check.

M_DATA_STATISTICS System View (new) Provides an overview of the current state of


data statistics objects, including their current
content and properties. Many columns from the
DATA_STATISTICS view are now deprecated,
and their information is stored in this new view.

M_DYNAMIC_RESULT_CACHE System View (changed) The following columns have been added:
IS_REFRESHING,
CURRENT_REFRESH_DURATION,
CURRENT_REFRESH_REASON,
LAST_REFRESH_DURATION, and
LAST_REFRESH_REASON.

M_ENCRYPTION_OVERVIEW System View (changed) Now specifies whether SCOPE includes backup.

M_EXPENSIVE_STATEMENT_EXECUTION_LOCATION_STATISTICS Provides location statistics for expensive


System View (new) statements.

M_HOST_INFORMATION System View (changed) A new key, cpu_sockets, has been added to
store the number of sockets per CPU.

M_JOINENGINE_STATISTICS System View (new) Provides statistics about join engine runtime
objects that are used for column store join
operations.

M_LICENSE_MEASUREMENT_STATISTICS (new) Collects license measurement statistics from


tenant databases.

M_LOAD_HISTORY_SERVICE System View (changed) The following columns have been added:
ADMISSION_CONTROL_ADMIT_COUNT,
ADMISSION_CONTROL_REJECT_COUNT,
ADMISSION_CONTROL_QUEUE_SIZE, and
ADMISSION_CONTROL_WAIT_TIME.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 309
M_LOG_REPLAY_QUEUE_STATISTICS System View (new) Provides information about log replay queue
statistics.

M_LOG_REPLAY_QUEUE_STATISTICS_RESET System View (new) This view contains values that have been
accumulated since the last reset of the main
view M_LOG_REPLAY_QUEUE_STATISTICS.

M_MEMORY_OBJECT_DISPOSITIONS (changed) The new CATEGORY column specifies the


allocator category, the corresponding allocator,
and/or some of its sub-allocators that were
used to allocate memory objects.

M_MVCC_SNAPSHOTS System View (new) Provides detailed snapshot information of the


Multiversion Concurrency Control (MVCC)
manager.

M_NUMA_NODES System View (new) Provides resource availability information on


each NUMA node in the hardware topology,
including inter-node distances and neighbor
information.

M_NUMA_RESOURCES System View (new) Provides information on overall resource


availability for the system.

M_PASSWORD_POLICY System View (changed) The VALUE column has been extended from
VARCHAR(16) to VARCHAR(128).

M_SAVEPOINTS System View (changed) The new BLOCKING_PHASE_START_TIME


column specifies the last blocking phase start
time. The new BLOCKING_PHASE_DURATION
column specifies the blocking phase duration.

M_SERVICE_NETWORK_METHOD_IO System View (new) Provides service network method I/O statistics.

M_SERVICE_NETWORK_METHOD_IO_RESET System View (new) Provides service network method I/O statistics
since the last reset.

M_SERVICE_THREADS System View (changed) The following columns have been added:
LOCKS_OWNED,
PASSPORT_ROOTCONTEXT_ID,
PASSPORT_TRANSACTION_ID,
PASSPORT_CONNECTION_ID,
PASSPORT_CONNECTION_COUNTER,
PASSPORT_COMPONENT_NAME, and
PASSPORT_ACTION.

M_SERVICE_THREAD_SAMPLES System View (changed) The following columns have been added:
PASSPORT_ROOTCONTEXT_ID,
PASSPORT_TRANSACTION_ID,
PASSPORT_CONNECTION_ID,
PASSPORT_CONNECTION_COUNTER,

What's New in the SAP HANA Platform 2.0


310 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
PASSPORT_COMPONENT_NAME, and
PASSPORT_ACTION.

M_SQL_PLAN_CACHE System View (changed) The new LOGICAL_CONNECTION_VOLUME_ID


column specifies the volume ID of the logical
connection. This value is 0 if there is no session
context defining it as a global plan.

M_SYSTEM_REPLICATION System View (changed) The new SECONDARY_READ_ACCESS_STATUS


column indicates whether the secondary
system is read-enabled and if read access is
activated.

M_TABLES System View (changed) The TABLE_TYPE column now displays


COLLECTION for collection tables.

M_VOLUME_IO_DETAILED_STATISTICS System View (changed) The following columns have been added:
SUM_APPEND_TIME, SUM_APPEND_SIZE,
SUM_READ_SIZE, SUM_READ_TIME,
SUM_TRIGGER_ASYNC_READ_SIZE,
SUM_TRIGGER_ASYNC_READ_TIME,
SUM_TRIGGER_ASYNC_WRITE_SIZE,
SUM_TRIGGER_ASYNC_WRITE_TIME,
SUM_WRITE_SIZE, and SUM_WRITE_TIME.

M_WORKLOAD_CAPTURES System View (changed) A new column, CAPTURE_FETCH_COUNT, has


been added.

The new CAPTURE_FILE_NAME column


specifies the file name of the captured
workload.

M_WORKLOAD_REPLAY_PREPROCESSES System View (changed) A new column, CAPTURE_FETCH_COUNT, has


been added.

M_WORKLOAD_REPLAY_REPLAYS System View (changed) The following new columns have been added:
REPLAY_SESSION_COUNT,
REPLAY_STATEMENT_COUNT,
REPLAY_FETCH_COUNT, and
REPLAY_COMMITTED_TRANSACTION_COUNT.

REMOTE_SOURCES System view (Changed) A new column,


IS_LINKED_DATABASE_SUPPORTED, has been
added to indicate if linked database is
supported for the remote source.

TABLE_GROUPS System View (changed) New PINNED and LEADING_TABLE columns


record whether the location of a table group is
manually pinned, and whether a table is the
lead table in the table group, respectively.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 311
TABLE_PLACEMENT System View (changed) A new column, SAME_PARTITION_COUNT, has
been added to record whether all partitions
tables in a group contain the same number of
partitions.

TRIGGER_ORDERS System View (new) Provides information about triggers that are
defined for tables, including how the triggers
are ordered.

VIEW_COLUMNS System View (changed) The new IS_MASKED column specifies whether
the column is masked.

VIEWS System View (changed) The new HAS_MASKED_COLUMNS column


records whether the view has at least one
masked column.

5.5.2 SAP HANA Client Interfaces Reference (New and


Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features, as documented in the SAP HANA Client
Interface Programming Reference.
Client Support for Mac OS (new)

The SAP HANA client is now supported on Mac OS.


ODBC Enhancements

The new PREFETCH connection property requests the next block of rows of a result set
while the application is still processing the current block of rows.
Node.js Enhancements

Support for Node.js The new node.js stream module exposes the new
Streaming createArrayStream and createObjectStream functions, which
allow you to create readable streams by using a result set and
to return data as either a JSON object or a JavaScript array.

New Statement The Statement class has a new method, functionCode(), that
Class Method retrieves the function code of the statement.

Node.js Driver The node.js driver is included with the client install package.
Included in the View the readme file for installation instructions.
Client Install
Package

Microsoft ADO.NET Support Enhancements

Support for MSDTC The SAP HANA Data Provider for Microsoft ADO.NET now
supports the Microsoft Distributed Transaction Coordinator.

API Version Support (changed)

What's New in the SAP HANA Platform 2.0


312 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
The JDBC driver now supports version 4.2.
SQLDBC Enhancements (changed)

SQLDBC now allows multiple threads to concurrently access the same connection.
Previously, concurrent access could have resulted in internal errors or other issues.
Using the same connection from multiple threads concurrently can result in operations
being serialized. For maximum performance of database calls from concurrent threads,
each thread should use its own connection. This enhancement also affects ODBC,
ADO.NET, and other interfaces that are based on SQLDBC.

5.5.3 SAP HANA SQLScript Reference (New and Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features, as documented in the SAP HANA
SQLScript Reference.

The following syntax extensions have been added:

● Support for insertion of single rows into table variables


● Support for removal of single and multiple rows from table variables
● Dynamic SQL with IN/OUT scalar parameters
● Enhancement of the SET SESSION expression: support key as variable
● Support for the LOB type in scalar user-defined funtions
● Explain Plan for CALL

5.5.4 SAP HANA Predictive Analysis Library (New and


Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features for the Predictive Analysis Library (PAL).

General

Scoring functions are composed of two steps: parsing model and applying the model on data. In PAL, these two
steps are performed in single functions. It is also possible to run them separately. In this way, the model
parsing (de-serializing content from database table, converting text-format content into model object, etc.) is
executed only once. Then the model is kept and repeatedly applied to data. This is especially beneficial to the
scenarios where the model is complex and the same model is applied by scoring functions multiple times. In
such scenarios, parsing the model takes significant amount of time compared with the whole execution time of
scoring functions. It is wise to avoid doing it over and over again.

Splitting parsing model and executing scoring are achieved by a family of PAL functions called stated enabled
functions. As the name suggests, after being parsed, the model is kept in a container called state. A PAL
function state’s lifecycle is longer than that of a PAL scoring function. There are three types of operations on
the state.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 313
● Creation of state. Trained models are read from database tables and fed to PAL function
CREATE_PAL_MODEL_STATE. It generates states which contain the parsed models and returns the
identifiers of the states.
● List of states. This can be done by SQL statement:
SELECT * FROM SYS.M_AFL_STATES;
● Scoring with state. Together with the data to be scored on, the state is given to PAL function
PREDICT_WITH_PAL_MODEL_STATE. This function enables state based scoring for certain algorithms
such as support vector machine and random forest.
● Clearing of state. States, as containers of parsed model, consume memory. It is necessary to clear them
when they are obsolete. This is done by PAL function DELETE_PAL_MODEL_STATE.

The list of state enabled scoring functions:

● Support vector machine


● Random forest

New Algorithms

● Factorized Polynomial Regression Models


Recommender system analyzes patterns of user interest in items (products) and provides personalized
recommendations that suit a user’s taste. Normally it seeks to predict the “ratings” or “preferences” that
users would give to items and make recommendations according to those predictions. Recommender
system in PAL supports the Factorized Polynomial Regression Models/Factorization Machines approach.
Factorization approach, for example matrix factorization, provides high accuracy in several important
prediction problems, including recommender systems. In its basic form, matrix factorization characterizes
both users and items by vectors of latent factors inferred from user-item rating patterns and high
correspondence between user and item factors will lead to a recommendation. Factorization machines
approach for recommender system is more general than common factorization approaches as it can
characterize latent factors not only for users and items themselves, but also for side features related to
them by making use of additional information, and therefore, makes the predictions more accurate. PAL
supports three kinds of additional side information besides the user-item ratings:
○ Global side features which are related to each specific user-item rating/transaction. For example,
location or time of a movie was rated by or lent to a user;
○ User side features which are related to each user, such as gender, age, education, etc.;
○ Item side features which are related to each item, such as genre of a movie.
● ANOVA
Analysis of variance (ANOVA) is a collection of statistical models used to analyze the differences among
group means and their associated procedures (such as “variation” among and between groups). It is useful
for comparing (testing) three or more means (groups or variables) for statistical significance. ANOVA is
conceptually similar to multiple two-sample t-tests, but is more conservative (results in less type I error)
and is therefore suitable for a wide range of practical problems. The current release of PAL supports one-
way ANOVA and one-way repeated measures ANOVA.
● One-sample Median Test
This is a one-sample non-parametric test to check if the median of the data is different from a user
specified one. It implements the sign test which does not have any assumption on the underlying
distribution of data.
● T Test

What's New in the SAP HANA Platform 2.0


314 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
This function is used to test if the mean of one sample or the mean difference of two samples is
significantly different from a user specified value. The most frequently used t-tests are:
○ One Sample T-Test
○ Paired Sample T-Test
○ Independent Sample T-Test
● Wilcox Signed Rank Test
This is a one-sample or paired two-sample non-parametric test to check if the median of the data is
different from a specific value. It assumes that the underlying distribution of the data set is symmetric.
This function is able to work in two modes:
○ One-sample: with one column of data, it tests the null hypothesis that if the population where the data
is drawn from is symmetric about a user defined location parameter μ0.
○ Paired two-sample: with two equal sized columns of data, it tests the null hypothesis that the
underlying distribution of the difference of these two is symmetric about 0.
● Accelerated K-Means
The new accelerated k-means greatly improves the algorithm performance by applying triangle inequality
to avoid unnecessary distance calculations.
● Decision Tree
Unify the three decision tree algorithms (C4.5, CHAID, and CART) into one DECISIONTREE function.

Enhanced Algorithms

● Random Forest
○ Added stratified sampling for random data selection during training.
○ Added the “ALLOW_MISSING_LABEL” parameter to allow missing target value in the training data.
○ Added the “MAX_DEPTH” parameter to set the largest depth of a tree during the training.
○ Added the “PRIORS” parameter to set the prior probability for the class label during the training.
○ Added the “VERPOSE” parameter to output all classes and the corresponding confidence for scoring
data.
○ Outputs sample standard error for prediction of regression tasks.
○ Simplified the trained model.
● Generalized Linear Models
○ Added elastic net regularization which minimizes

Where
Here and λ≥0. If α=0, we have the ridge regularization; if α=1, we have the LASSO
regularization.
● Logistic Regression
○ Added proximal gradient descent as the method to fit elastic net regularized logistic regression. The
implementation of proximal gradient descent is parallelized.
○ Added objective/log-likelihood, iteration number as the output statistics.
● Sampling
○ Added the “RANDOM_SEED” parameter to indicate the seed to initialize the random number
generator.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 315
● Support Vector Machine
○ Added one class SVM.
One class SVM is an unsupervised algorithm that learns a decision function for outlier detection:
classifying new data as similar to or different from the given dataset.
● ARIMA
○ For the sake of interpretability, the ARIMA model output table still takes key-value style, but has some
adaptation of the key names. The new key names are listed as below:

Key name Description

p Number of AR parameters

AR Coefficients of AR parameters

d Degree of first differencing

q Number of MA parameters

MA Coefficients of MA parameters

s The seasonal period

P Number of SAR parameters

SAR Coefficients of SAR parameters

D Degree of seasonal differencing

Q Number of SMA parameters

SMA Coefficients of SMA parameters

mu The constant part

regressor The covariates’ names

beta The coefficients of covariates

sigma^2 The variance

log-likelihood Log likelihood of the fitted series

AIC Akaike information criterion

AICc Akaike information criterion correction

BIC Bayesian information criterion

dy(n-p:n-1)_ aux An indicator to the number of rows dy(n-p:n-1) occupies

dy(n-p:n-1)_i ith row of last p elements of the differenced series

What's New in the SAP HANA Platform 2.0


316 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
Key name Description

dy_aux An indicator to the number of rows dy occupies

dy_i ith row of the whole differenced series

y(n-d:n-1)_aux An indicator to the number of rows y(n-d:n-1)_occupies

y(n-d:n-1)_i ith row of last d elements of original series

epsilon(n-q:n-1)_aux An indicator to the number of rows epsilon(n-q:n-1)_oc­


cupies

epsilon(n-q:n-1)_i ith row of last q elements of [GRAPHIC REMOVED – IN­


SERT HERE] [HYPERLINK REMOVED]

To ensure forward compatibility, the forecast algorithm can parse the old ARIMA model, too.

○ Added the “INCLUDE_MEAN” parameter to allow ARIMA model to include a constant part.
○ Added the “DISPLACEMENT” parameter to set the displacement for finite-difference calculation of
gradient.
○ Added the “FORECAST_METHOD” parameter to select forecast method from formula forecast or
innovation algorithm.
○ Performance improvement for ARIMA train when the “SEASONAL_PERIOD” is large.

● Auto ARIMA
○ Added the “METHOD” parameter to allow selection of different methods
○ Added the “ALLOW_LINER” parameter to check linear model ARMA(0,0)(0,0)m.
○ Added the “DISPLACEMENT” parameter to set the displacement for finite-difference calculation of
gradient.
○ Added the “FORECAST_METHOD” parameter to select forecast method from formula forecast or
innovation algorithm.
● Back Propagation Neural Network
○ Outputs the training log if the corresponding training log table is provided through the function call.
Currently the training log contains the mean squared error between predicted values and target values
for each iteration.
● K-Medoids
○ Added Jaccard distance metric for categorical features.
● Forecast Smoothing
○ Modified logic for model selection path in forecast smoothing. Set beta and trend_start to 0 when
there is no trend in a TESM model.
● LiteApriori
○ Replace the OPTIMIZATION_TYPE parameter by the new SAMPLE_PROPORTION parameter. For
backward compatibility, the usage of OPTIMIZATION_TYPE is still valid.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 01 Features PUBLIC 317
5.5.5 SAP HANA Analytics Catalog (BIMC Views) Reference
(New and Changed)

SAP HANA Platform 2.0 SPS 01 introduces new and changed features, as documented in the SAP HANA
Analytics Catalog (BIMC Views) Reference.

● A new column IS_HDI_OBJECT (a flag to indicate whether the view is created in HDI (1) or Repo1 (0)) has
been added to the table BIMC_ALL_CUBES.
● A new view BIMC_REPORTABLE_VIEWS, used by clients for easier retrieval of rows in cubes and
dimensions (master data reporting), has been added.
● The former table BIMC_ATTRIBUTE_RELATIONS is now a view with row-level security on table
BIMC_ALL_ATTRIBUTE_RELATIONS.
● The former table BIMC_VARIABLE_RANGE_DEFAULTS is now a view with row-level security on table
BIMC_ALL_VARIABLE_RANGE_DEFAULTS.
● The former table BIMC_VARIABLE_MAPPING is now a view with row-level security on table
BIMC_ALL_VARIABLE_MAPPINGS.
● The former table BIMC_VARIABLE_VALUE is now a view with row-level security on table
BIMC_ALL_VARIABLE_VALUES.

What's New in the SAP HANA Platform 2.0


318 PUBLIC SAP HANA Platform 2.0 SPS 01 Features
6 SAP HANA Platform 2.0 SPS 00 Features

Find out about the new and changed features introduced with the SAP HANA platform 2.0 SPS 00.

6.1 Installation and Update

SAP HANA Platform 2.0 SPS 00 introduces new and changed features for installation and update.

Documentation Changes [page 319]


As of SAP HANA Platform 2.0 SPS 00, the SAP HANA installation and update documentation has been
changed.

SAP HANA Server Installation and Update (New and Changed) [page 321]

SAP HANA Cockpit Installation and Update (New) [page 322]


As of SAP HANA Platform 2.0 SPS 00, a new and enhanced implementation of SAP HANA cockpit is
available for installation.

6.1.1 Documentation Changes

As of SAP HANA Platform 2.0 SPS 00, the SAP HANA installation and update documentation has been
changed.

SAP HANA Master Guide (Changed)

The information in the SAP HANA Master Update Guide is now available in the section Updating an SAP HANA
System Landscape. This section also contains information about updating from SAP HANA Platform 1.0 to SAP
HANA Platform 2.0 SPS 00.

Parts of the information in the SAP HANA Technical Operations Manual is now available in the section Operating
SAP HANA.

Only an introduction into network-related information is now available in the SAP HANA Master Guide. The SAP
HANA Administration Guide now includes a new section called Landscape Management and Network
Administration.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 319
SAP HANA Master Update Guide (Deleted)

The SAP HANA Master Update Guide is no longer available. The information contained in this document is now
available in the SAP HANA Master Guide.

SAP HANA Server Installation and Update Guide (Changed)

The Troubleshooting section has been updated. The chapter Importing Delivery Units Manually was added.

The section Updating the SAP HANA System was re-structued.

SAP HANA Cockpit Installation and Update Guide (New)

The SAP HANA Cockpit Installation and Update Guidel is now available. This guide describes how to install and
update the SAP HANA cockpit. The SAP HANA cockpit provides core system and database administration
features, for example, database monitoring, user management, and data backup.

SAP HANA Platform Lifecycle Management in SAP HANA Cockpit (New)

The SAP HANA database lifecycle manager (HDBLCM) Web user interface now includes a link to the SAP
HANA Platform Lifecycle Management documentation.

Related Information

Importing Delivery Units Manually


Troubleshooting
SAP HANA Platform Lifecycle Management

What's New in the SAP HANA Platform 2.0


320 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
6.1.2 SAP HANA Server Installation and Update (New and
Changed)

Integrated Download, Extract and Update with HDBLCM Web User Interface
(New)

The SAP HANA database lifecycle manager (HDBLCM) Web user interface now allows you to download, extract
and update SAP HANA components and XS advanced applications.

Worker Host Grouping (New)

To implement a multi-temperature memory strategy, you can assign hosts to worker groups.

Uninstall component with existing component-specific hosts/roles in one


step (Changed)

In previous versions of SAP HANA, you had to remove component-specific host roles and hosts first before you
could uninstall additional components. Components including their host roles and hosts can now be
uninstalled in one step.

SUSE Linux Enterprise Server (SLES) 12 SP1 and Red Hat Enterprise Linux
(RHEL) 7.2 as Required Operating System Versions (Changed)

The SAP HANA database lifecycle manager performs a check to see if the minimal operating system
requirements are fulfilled. SAP HANA 2.0 SPS 00 is supported on SUSE Linux Enterprise Server (SLES) 12 SP1
and Red Hat Enterprise Linux (RHEL) 7.2.

Related Information

Upload and Extract SAP HANA Components Using the Web User Interface
workergroup
Multiple-Host System Concepts
Uninstalling SAP HANA Components
SAP Note 2235581 - SAP HANA: Supported Operating Systems

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 321
6.1.3 SAP HANA Cockpit Installation and Update (New)

As of SAP HANA Platform 2.0 SPS 00, a new and enhanced implementation of SAP HANA cockpit is available
for installation.

The new SAP HANA cockpit unifies the administration of single, multiple and tenant databases. It replaces both
the SAP HANA cockpit and the SAP DB Control Center that were available with SAP HANA 1.0. The new cockpit
can be used for the administration of systems running SAP HANA 2.0 or SAP HANA 1.0 SPS12.

The new cockpit represents a separate administration environment from the managed production databases.
The SAP HANA database lifecycle manager (HDBLCM) is used to install and update the SAP HANA cockpit in a
graphical user interface or the command-line interface.

Related Information

SAP HANA Cockpit Installation and Update Guide

6.2 Security

SAP HANA Platform 2.0 SPS 00 introduces new and changed features for security.

Documentation Changes [page 322]


As of SAP HANA Platform 2.0 SPS 00, the SAP HANA security documentation has been changed.

SAP HANA Database Security (New and Changed) [page 323]


As of SAP HANA Platform 2.0 SPS 00, new and changed security-related features are available in the
SAP HANA database.

6.2.1 Documentation Changes

As of SAP HANA Platform 2.0 SPS 00, the SAP HANA security documentation has been changed.

● The SAP HANA Security Guide contains a new chapter on data protection.
● The SAP HANA Security Checklists and Recommendations document contains a new chapter on SAP
HANA XS advanced.

What's New in the SAP HANA Platform 2.0


322 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
6.2.2 SAP HANA Database Security (New and Changed)

As of SAP HANA Platform 2.0 SPS 00, new and changed security-related features are available in the SAP
HANA database.

Encryption (New and Changed)

● The SAP HANA database now supports redo log encryption.


● The management of the encryption root keys used for data volume encryption, redo log encryption, and
the internal application encryption service has been enhanced:
○ All root keys can be conveniently changed by SQL statement.
○ The new system privilege ENCRYPTION ROOT KEY ADMIN is required to change all root keys. A user
with RESOURCE ADMIN can no longer change the data volume encryption root key and the internal
application encryption root key.
○ You can create a dedicated password-protected root key backup to a secure location.

Authorization (New and Changed)

● If you use an LDAP-compliant identity management server to manage users and their access to resources,
you can now leverage LDAP group membership to authorize SAP HANA users.
The new system privilege LDAP ADMIN is required to configure LDAP group authorization.
● A user administrator can now convert a restricted user into a standard user, and vice versa. It is possible to
grant and revoke both the PUBLIC role as well as authorization to create objects in a user's own schema.
● A new and enhanced implementation of the SAP HANA cockpit is available with SAP HANA 2.0. The
delivery units used to deploy the original implementation of the SAP HANA cockpit in SAP HANA 1.0 as
auto content exist for downward compatibility reasons, but they no longer contain any content. The
following roles delivered in the these DUs are therefore no longer available:
○ sap.hana.admin.roles::*
○ sap.hana.admin.cockpit.sysrep.roles::SysRepAdmin
○ sap.hana.backup.roles::*
○ sap.hana.security.base.roles::*
○ sap.hana.security.cockpit.roles::*
○ sap.hana.admin.cockpit.sysdb.roles::SysDBAdmin

Security Administration with SAP HANA Cockpit (New and Changed)

A new and enhanced implementation of the SAP HANA cockpit is available with SAP HANA 2.0.

The new cockpit continues to support the monitoring of critical security settings, the granting of roles to
database users, as well as tasks related to auditing, data volume encryption, and certificate management.

In addition, the new SAP HANA cockpit supports the creation and management of database users.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 323
Related Information

SAP HANA Data Masking


LDAP Group Authorization
Data and Log Volume Encryption
Root Key Backup
Provisioning Users in SAP HANA Cockpit

6.3 Administration

SAP HANA Platform 2.0 SPS 00 introduces new and changed features for administration.

Documentation Changes [page 325]


As of SAP HANA Platform 2.0 SPS 00, the SAP HANA administration documentation has been
changed.

SAP HANA System Administration (New and Changed) [page 325]


As of SAP HANA Platform 2.0 SPS 00, new and changed features are available for the administration of
SAP HANA.

SAP HANA Database Backup and Recovery (New and Changed) [page 329]
As of SAP HANA 2.0 Platform SPS 00, new and changed features are available for SAP HANA backup
and recovery.

SAP HANA High Availability (New and Changed) [page 331]


As of SAP HANA Platform 2.0 SPS 00, new and changed features are available for SAP HANA High
Availability.

SAP HANA Performance Monitoring and Analysis (New and Changed) [page 332]
As of SAP HANA Platform 2.0 SPS 00, new and changed features are available for SAP HANA
Performance Monitoring and Analysis.

SAP HANA Smart Data Access (New and Changed) [page 334]
SAP HANA Platform 2.0 SPS 00 introduces new and changed features for SAP HANA smart data
access.

SAP HANA Hadoop Integration (New and Changed) [page 335]


SAP HANA Platform 2.0 SPS 00 introduces new features for the SAP HANA and Hadoop integration.

What's New in the SAP HANA Platform 2.0


324 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
6.3.1 Documentation Changes

As of SAP HANA Platform 2.0 SPS 00, the SAP HANA administration documentation has been changed.

SAP HANA Technical Operations Manual (Deleted)

The SAP HANA Technical Operations Manual is no longer available. The information contained in this document
is now available in the SAP HANA Master Guide and the SAP HANA Administration Guide.

SAP DB Control Center Guide (Deleted)

The SAP DB Control Center Guide is no longer available. With SAP HANA 2.0, SAP DCC is replaced by the SAP
HANA cockpit, which is documented in the SAP HANA Administration Guide.

SAP HANA Administration Guide (Changed)

The SAP HANA Administration Guide now includes a new section called Landscape Management and Network
Administration. This section consolidates the documentation for landscape management tasks such as
copying and moving SAP HANA systems. It also includes information required to integrate SAP HANA into your
network environment, for example ports and connections. In the SAP HANA 1.0 documentation, network-
related information was primarily available in the SAP HANA Master Guide.

The section SAP HANA Platform Lifecycle Management has also been restructured.

6.3.2 SAP HANA System Administration (New and Changed)

As of SAP HANA Platform 2.0 SPS 00, new and changed features are available for the administration of SAP
HANA.

SAP HANA 2.0 Cockpit (New)

A new and enhanced implementation of SAP HANA cockpit is now available. In SAP HANA 1.0, the cockpit was
used to manage a single resource while SAP DB Control Center was used to manage multiple systems. The
functionalities of both have now been rolled into one comprehensive tool that unifies individual, multiple, and
tenant database management.

You can use the SAP HANA 2.0 cockpit to monitor and manage systems running SAP HANA 2.0 or SAP HANA
1.0 SPS 12.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 325
The new SAP HANA cockpit continues to provide database administrators with a single point of access to a
range of Web-based tools for the administration and detailed monitoring of SAP HANA databases, including
system resource monitoring, alerting, and tenant database administration. In addition, it provides the following
new and enhanced features:

● Creation of groups of systems so that specific cockpit users can monitor aggregate information
● Enhanced monitoring of alert information, across multiple databases, and within a single system
● Configuration of system properties, (*.ini files), an administration task which was previously accomplished
only through the SAP HANA studio
● Monitoring of system health metrics for multi-host systems, including indicators for the resource utilization
of hardware components (CPU, memory, network, and storage)
● The ability to start or stop a system through Manage Services app
● The ability to browse your database catalogs by using the newly integrated SAP HANA database explorer.
This database explorer is similar in functionality and appearance to the database explorer provided with
the SAP Web IDE for SAP HANA. The database explorer includes:
○ An SQL console for executing SQL queries and SQLScript procedures
○ An SQL analyzer for viewing query plans and analyzing the performance of SQL queries
○ An MDX console for executing MDX queries
○ A trace feature for viewing diagnostic files

The SAP HANA cockpit also provides new and enhanced features for:

● Performance monitoring and analysis


● Security administration
● Backup and recovery
● System replication

For more information about these feature enhancements, see the relevant section in this document.

See also SAP Note 2380291.

SAP HANA 1.0 Cockpit (Deleted)

The delivery units used to deploy the original implementation of the SAP HANA cockpit in SAP HANA 1.0 as
auto content exist for downward compatibility reasons, but they no longer contain any content. This includes
the following DUs:

● HANA_ADMIN
● HANA_BACKUP
● HANA_HDBLCM
● HANA_SEC_BASE
● HANA_SEC_CP
● HANA_SYS_ADMIN

What's New in the SAP HANA Platform 2.0


326 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
SAP DB Control Center (Deleted)

SAP HANA 2.0 does not support SAP DB Control Center (SAP DCC). The SAP HANA 2.0 cockpit replaces SAP
DCC.

If you’re upgrading a system running SAP DCC to SAP HANA 2.0, SAP recommends that you remove the SAP
DCC delivery unit, as described in SAP Note 2385193.

Multitenant Database Containers (New and Changed)

● A backup of a single database (single-container system) can be recovered into a tenant database in an
MDC system and retains the backup history. Backups can be located in the file system as well as in a third-
party backup tool using the HANA BACKINT API.
● The standard copy/move process of tenant databases requires an initial certificate configuration in order
to enable communication between systems. In non-production setups or isolated environments, it may be
reasonable to allow a process without the need for trusted communication. The internal communication of
the copy/move processes may now also run unencrypted.
● The performance trace can be enabled for multiple tenant databases at the same time to analyze cross-
database queries.

Workload Management (New)

In the area of Workload Management the admission control feature gives administrators the option to apply
processing limits and to decide how to handle new requests if the system is close to the point of saturation.

User-defined thresholds can be applied using configuration parameters to define an acceptable limit of activity
in terms of the percentage of memory usage or percentage of CPU capacity. Administrators can then configure
the system so that, for example:

● if the system approaches this limit then new requests will be queued until processing capacity is available
● if the system exceeds the load thresholds then new requests will be rejected and a message returned to the
client that the server is temporarily overloaded.

A query timeout feature has now been implemented which can be used to apply a maximum time limit to
process any SQL statement. This is available through client programming interfaces (for example for JDBC:
java.sql.statement.setQueryTimeout). The timeout is not active by default (set to 0 seconds for no timeout).
This feature can be used as a way of automatically canceling client queries which are hanging or looping
indefinitely.

Extension Node for Scaled-Out SAP Business Warehouse (New)

For scaled-out SAP Business Warehouse systems (version 7.50 and above) where a multi-temperature storage
strategy is required, the extension node feature is now available which makes it possible to use a different
(heterogeneous) type of host in the server landscape which is used exclusively for warm data.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 327
In this case, the normal hardware sizing guidelines for storage can be relaxed: whereas normally a 2:1 ratio of
RAM to hot data is required, the extension node supports significantly more storage capacity for warm data.

The configuration for this type of node is based on a new host sub role and a location value in the
TABLE_PLACEMENT system view. Once the data has been correctly modeled it is then distributed by the
landscape redistribution process to the appropriate server node.

Client-Side Statement Routing (New)

● Client-side routing now routes statements for range-partitioned tables.


● Client-side routing for hash-partitioned tables now routes batches, as well as prepared statements.

SAP HANA HDBSQL (New and Changed)

● Use the new -V configuration option in SAP HANA HDBSQL to define a substitution variable.
● The default for the -b option is now 32 bytes. You can now use -b all to always display the whole binary
length.
● The new -quiet option hides the SAP HANA HDBSQL welcome banner.
● The new -oldexectimes option uses SAP HANA 1.0 execution-only timing. SAP HANA HDBSQL in SAP
HANA 1.x only reports time for client and server executions, not fetches for result sets. As of SAP HANA
2.0, SAP HANA HDBSQL includes times for executions and fetches by default.

Related Information

SAP Note 2380291


SAP Note 2385193
SAP HANA Administration Guide

What's New in the SAP HANA Platform 2.0


328 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
6.3.3 SAP HANA Database Backup and Recovery (New and
Changed)

As of SAP HANA 2.0 Platform SPS 00, new and changed features are available for SAP HANA backup and
recovery.

Enhancements for Log Backups

● To improve the performance of log backups, SAP HANA can write all the log segments of a service that are
ready to be backed up at a particular time to a single log backup. You can define the maximum size of this
single log backup.
This option is supported for both file-based log backups and third-party tools.
More information: Writing Multiple Log Segments to One Log Backup in Related Information
● With SAP HANA 2.0, you can define events to trigger a log backup.
By default, a log backup is created immediately after a log segment becomes full, or when the service-
specific timeout has been reached for a log segment.
Alternatively, you can specify that a log backup is created only after a service-specific timeout has been
reached.
This option is supported for both file-based log backups and third-party tools.
More information: Set the Interval Mode for Log Backups in Related Information

Encryption and Backup and Recovery

SAP HANA 2.0 supports data encryption in the persistence layer.

A database administrator must ensure that the encryption root keys are backed up. If a recovery is performed,
a database administrator must also ensure that the root keys are imported before the recovery is started.

More information: Points to Note: SAP HANA Backups and Encryption, Root Key Backup, and Import Backed-up
Root Keys in Related Information

Location of the Backups of the Backup Catalog

The location of the log backups is configured separately from the location of backups of the backup catalog.

Before you recover SAP HANA, you are prompted to specify path to search for the backup catalog.

More information: Destination for Backups of the Backup Catalog in Related Information

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 329
SAP HANA Multitenant Database Containers

It is now possible to use a data backup of an SAP HANA single-container system to recover to a tenant
database.

More information: Points to Note: Copying a Database Using Backup and Recovery, Points to Note: SAP HANA
Multitenant Database Containers and Backup, Points to Note: SAP HANA Multitenant Database Containers and
Recovery in Related Information

Extension Node for Business Warehouse

Database recovery with SAP HANA 2.0 supports extension node for Business Warehouse.

More information: Points to Note: SAP HANA Recovery and Data Temperature: Extension Node for Business
Warehouse in Related Information

SAP HANA on IBM Power Systems: Release Compatibility

SAP HANA 2.0 supports only IBM Power Little Endian (LE) systems.

Backups created with SAP HANA 2.0 are compatible with both supported hardware platforms (Intel and IBM
Power). You can recover SAP HANA 2.0 using backups created with SAP HANA 2.0 on either an Intel-based
system or an IBM Power-based system.

Backups created with SAP HANA 1.0 SPS 10 or newer running on an Intel-based system can be used to recover
SAP HANA 2.0 to both Intel-based and IBM Power-based systems. Backups created with SAP HANA 1.0 on an
IBM Power-based system cannot be used to recover SAP HANA 2.0.

More information: Points to Note: SAP HANA on IBM Power Systems in Related Information

SAP HANA Cockpit (Changed)

A new and enhanced implementation of the SAP HANA cockpit is now available.

The SAP HANA Administration Guide has been updated to reflect the changed procedure to recover SAP HANA
and to schedule SAP HANA backups using SAP HANA cockpit.

More information: SAP HANA System Administration (New and Changed), Schedule Data Backups (SAP HANA
Cockpit), and Recover a Database (SAP HANA Cockpit) in Related Information

Related Information

Consolidated Log Backups

What's New in the SAP HANA Platform 2.0


330 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
SAP HANA Backup Encryption
Root Key Backup
Import Backed-up Root Keys
Destination for Backups of the Backup Catalog
Points to Note: Copying a Database Using Backup and Recovery
Points to Note: SAP HANA Recovery
Extension Node
Points to Note: SAP HANA on IBM Power Systems
SAP HANA System Administration (New and Changed) [page 325]
Schedule Backups
Recover a Database

6.3.4 SAP HANA High Availability (New and Changed)

As of SAP HANA Platform 2.0 SPS 00, new and changed features are available for SAP HANA High Availability.

Active/Active (Read Enabled) (New)

Starting with SAP HANA 2.0 active/active (read enabled) is integrated into the System Replication solution and
allows read-only access on the secondary system.

For more information on this new feature, see the following topics in the SAP HANA Administration Guide:

● Active/Active (Read Enabled)


● High Availability for SAP HANA
● Configure the Secondary System
● System Replication with Operation Mode Logreplay
● Log Retention
● System Replication Configuration Parameters
● System Replication Command Line Reference
● System Replication Details

Required Configuration Step for SAP HANA System Replication


Authentication (New)

Starting with SAP HANA 2.0 a new configuration step is required to setup SAP HANA System Replication. The
secondary system needs to be prepared for authentication by copying the system PKI SSFS .key and the .dat
file from the primary system to the secondary system.

For more information, seeSet up System Replication with hdbnsutil in the SAP HANA Administration Guide.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 331
SAP HANA Cockpit (Changed)

A new and enhanced implementation of SAP HANA cockpit is now available.

The following administration activities are possible:

● Performing the initial set-up, that is enabling system replication and establishing the connection between
two identical systems
● Monitoring the status of system replication to ensure that both systems are in sync
● Performing a takeover to the secondary system in the event of a disaster and failback once the primary
system is available again
● Disabling system replication

For more information about these feature enhancements, see Managing System Replication in the SAP HANA
Cockpit in the SAP HANA Administration Guide.

Related Information

Active/Active (Read Enabled)


High Availability for SAP HANA
Log Retention
SAP HANA System Replication Configuration Parameters
SAP HANA System Replication Command Line Reference
SAP HANA System Replication Details
Overview of Steps

6.3.5 SAP HANA Performance Monitoring and Analysis (New


and Changed)

As of SAP HANA Platform 2.0 SPS 00, new and changed features are available for SAP HANA Performance
Monitoring and Analysis.

Starting with SAP HANA 2.0 the following tools provide new and enhanced features:

Capture and Replay (Changed)

With SAP HANA 2.0 new features are available for the capture and replay tool in the SAP HANA cockpit:

● When configuring new captures it is possible to set the conditions under which the capture is overwritten
based on two criteria:
○ The duration of the capture
○ The disk usage of the capture
For more information, see Capture a Workload in the Related Links section.

What's New in the SAP HANA Platform 2.0


332 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
● When replaying the workload it is possible to compare replays based on the same capture with each other.
For more information, see Compare Replayed Workloads in the Related Links section.
● After replaying the workloads it is possible to compare results of queries in the Replay Report. Furthermore,
the tab Load visualizes the system load during the replay process.
For more information, see Replay a Preprocessed Workload in the SAP HANA Administration Guide.

Workload Analyzer (Changed)

With SAP HANA 2.0 the workload analyzer tool available in the SAP HANA cockpit has two versions. The
workload analyzer from SAP HANA 1.0 is now called "workload analyzer based on thread samples". The new
version of the workload analyzer is called "workload analyzer based on engine instrumentation". The following
changed and new features are available for the workload analyzer tool:

● Workload analyzer based on thread samples (changed)


The chart visualizing the system resource usage displays both a real-time and a historical analysis.
It is possible to visualize the system load using a timeline view mapped to the load graph.
● Workload analyzer based on engine instrumentation (new)
This is a feature for analyzing captured workloads. Similar to the sampling-based workload analyzer it
includes load graph visualization, as well as a timeline view with application and statement hierarchy.

For more information, see Analyzing Workloads in the SAP HANA Administration Guide.

SQL Analyzer (New)

With SAP HANA 2.0 SPS 00, the SQL Analyzer is available in the SAP HANA cockpit and the SAP HANA
Database Explorer.

With this tool it is possible to analyze and understand query execution and performance aspects of the SAP
HANA database. It can be used to view detailed information on each query and can help evaluate potential
bottlenecks for these queries. The tool is similar to the Plan Visualizer tool in the SAP HANA studio.

The following features are available for the SQL Analyzer:

● Overview
● Operator list
● Tables used
● Statement statistics

For more information, see Analyzing Statement Performance in the SAP HANA Administration Guide.

Other Performance Management Tools (Changed)

The following performance management tools in the SAP HANA cockpit have been enhanced:

● Performance Monitor

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 333
For more information, see Monitor and Analyze Past Performance and Collecting Performance Monitor Data
for SAP Support in the SAP HANA Administration Guide.
● Monitor Statements
For more information, see Monitor and Analyze Critical Statements in the SAP HANA Administration Guide.
● Threads
For more information, see Monitor and Analyze Threads in the SAP HANA Administration Guide.
● Sessions
For more information, see Monitor and Analyze Sessions in the SAP HANA Administration Guide.
● Expensive Statements
For more information, see Monitoring and Analyzing Expensive Statements in the SAP HANA
Administration Guide.
● SQL Plan Cache
For more information, see Monitoring and Analyzing Statements with SQL Plan Cache in the SAP HANA
Administration Guide.

Related Information

Capturing and Replaying Workloads


Capture a Workload
Replay a Preprocessed Workload
Generate a Replay-Replay Comparison Report
Analyzing Workloads
Analyzing Statement Performance
Monitoring and Analyzing with the Performance Monitor
Collecting Performance Monitor Data for SAP Support
Threads
Sessions
Monitor and Analyze Active Statements
Monitor and Analyze Expensive Statements
Monitor and Analyze Statements with SQL Plan Cache

6.3.6 SAP HANA Smart Data Access (New and Changed)

SAP HANA Platform 2.0 SPS 00 introduces new and changed features for SAP HANA smart data access.

SELECT FOR UPDATE on Virtual Tables (New)

The FOR UPDATE clause on the SELECT statement is extended to include virtual tables.

What's New in the SAP HANA Platform 2.0


334 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
Refresh Virtual Tables Metadata (New)

When the metadata in a remote table is changed, use the ALTER VIRTUAL TABLE statement to refresh the
virtual table to reflect the change.

Support for SAP SDA Adapter for SAP MII (Deprecated)

As of SAP HANA 2.0, the SAP HANA Smart Data Access (SDA) adapter for SAP Manufacturing Integration and
Intelligence (MII) is no longer supported.

6.3.7 SAP HANA Hadoop Integration (New and Changed)

SAP HANA Platform 2.0 SPS 00 introduces new features for the SAP HANA and Hadoop integration.

Create Custom Virtual Procedures

Create custom Spark procedures in SAP HANA to perform compilation and execution on a Hadoop cluster. You
can easily access Spark libraries from SAP HANA, then compile and execute the procedures on Spark
Controller. The new CREATE VIRTUAL PROCEDURE syntax supports Scala, providing a method for simple, and
strongly typed code. Use these custom procedures to access Hadoop's distributed file system (HDFS) libraries,
such as the machine learning libraries, and return the data model to SAP HANA for prediction.

Enable Remote Caching Using Spark Controller

When using the Spark controller to connect SAP HANA and Hadoop, you can enable remote caches in Spark
for queries with complex calculations. This allows you to use materialized data for the repetitive execution of
the same query.

SAP HANA Vora ODBC Connectivity (Requires SAP HANA Vora 1.3)

A more direct connectivity method between Hadoop and Vora has been implemented. You can establish a
connection between SAP HANA and Hadoop using the SAP HANA Vora remote source adapter voraodbc and
Vora's Wire protocol. With this new implementation you can join data by creating a remote source, then use
virtual tables to represent the SAP HANA Vora remote source tables you want to access.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 335
Kerberos Authentication Support in Spark Controller

You can now set up a Hadoop cluster with Kerberos authentication for SparkSQL using Spark Controller.

Support for Spark Controller Installation and Configuration Through the


Cloudera Manager

Support for installing and configuring Spark Controller using Cloudera Manager has been added. Using the
Cloudera Manager Web UI you can:

● Install Spark Controller.


● Distribute the Spark Controller package to each hosts on your Cloudera cluster.
● Start and stop Spark Controller.
● Change or add Spark Controller configuration parameters.

6.4 Development

SAP HANA Platform 2.0 SPS 00 introduces new and changed features for development.

SAP HANA XS Advanced Development (New and Changed) [page 337]


For SAP HANA Platform 2.0 SPS 00 SAP HANA supports development and deployment of SAP HANA
extended application services (XS) advanced model applications.

SAP Enterprise Architecture Designer, Edition for SAP HANA, edition for SAP HANA (New) [page 342]
As of SAP HANA Platform 2.0 SP00, SAP Enterprise Architecture Designer, Edition for SAP HANA,
edition for SAP HANA is available.

SAP Web IDE for SAP HANA (New and Changed) [page 343]
As of SAP HANA Platform 2.0 SP00, the following new features and changes are available in SAP Web
IDE and integrated SAP HANA tools.

SAP HANA Spatial (New) [page 350]


As of SAP HANA Platform 2.0 SPS 00, new features are available in the SAP HANA Spatial.

SAP HANA Graph (New and Changed) [page 350]


As of SAP HANA Platform 2.0 SPS 00, new and changed features are available for the administration of
SAP HANA Graph:

Hierarchy Functions (New) [page 350]


Hierarchy functions are available as of SAP HANA Platform 2.0 SPS 00:

Search, Text Analysis, and Text Mining [page 351]


SAP HANA 2.0 SPS 00 introduces the following new and changed features for search, text analysis, and
text mining.

SAP HANA Interactive Education (SHINE) for XS Advanced (New and Changed) [page 355]
SHINE for XSA is a demo content that makes it easy to learn how to build applications on SAP HANA
Extended Application Services Advanced Model. This demo content is delivered as a package

What's New in the SAP HANA Platform 2.0


336 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
containing sample data and design-time developer objects for application database tables, views,
OData and user interfaces.

6.4.1 SAP HANA XS Advanced Development (New and


Changed)
For SAP HANA Platform 2.0 SPS 00 SAP HANA supports development and deployment of SAP HANA
extended application services (XS) advanced model applications.

Application Run-Time Environment

SAP HANA XS advanced provides the following run-time environments for your application:

● JavaScript/Node.js
JavaScript run time to which you can deploy your Node.js and XS JavaScript applications.

 Note

The XS JavaScript (XSJS) run time is a compatibility layer that runs on top of Node.js, which enables
you to execute your existing code base, for example, .xsjs and .xsjslib files.

● Java (Tomcat 8/TomEE)


SAP HANA XS advanced model provides a Java run time to which you can deploy your Java applications.
The Java run time for SAP HANA XS advanced provides a Tomcat or TomEE run time to deploy your Java
code.
● Custom run time
You can also create and run a custom run-time environment of your own in XS advanced, so that you can
deploy applications written using languages such as Python or PHP, which are not supported by any of the
default run-time environments included in the XS advanced run-time store.

 Restriction

SAP does not provide support for custom language, buildpack, or run-time scenarios.

Applications deployed to a custom run-time environment in XS advanced do not have automatic access to
(or use of) some important features that are built into and supported by the XS advanced framework,
including (but not limited to): authentication and security, logging and auditing, and connections to the
database. If you deploy an application to a custom run-time environment in XS advanced, you must
configure these components manually for the custom application

JavaScript Run Time


SAP HANA XS advanced provides the following updates and new features for the SAP HANA Platform 2.0 SPS
00 JavaScript run-time environment:

● sap-hdbext
sap-hdbext is included in the XS_JAVASCRIPT software component for XS advanced and extends the
functionality of the hdb package, which is a JavaScript client for SQLDBC. With this realease, sap-hdbext
supports SAP HANA DB connection pooling for Node.js applications.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 337
● XS JavaScript (XS classic compatibility layer in XS advanced)
○ Support for $.util.Zip (with limitations)
○ Support for $.util.SAXParser (with limitations)
○ Support for $.text.mining

Java Run Time


SAP HANA XS advanced provides the following updates and new features for the SAP HANA Platform 2.0 SPS
00 Java run-time environment:

● A central audit-log service


● A new Java API for the audit log
● A graphical user interface to manage the audit logs
● Support for Apache Tomcat 8.0.36
● Support for Apache TomEE 1.7.4
● A personalized database connection, for example, including: the application name, the organization, and
the space
● Configuration of the maximum header size for incoming HTTP requests

Application Router

For SAP HANA Platform 2.0 SPS 00, SAP HANA XS advanced provides the following updates and new features
for the Node.js application router (approuter.js):

● Routes are matched by both URL path and HTTP methods


● Use of the Content-Security-Policy header as a “best practice”
● CSRF token is generated once per session
● Route sources can be matched in a case-insensitive way
● Configure a maximum client-connection timeout
● The application router supports extensions, for example, custom middleware
● CSRFs tokens can be fetched with the HEAD request
● Support for configuring the Cache-Control header in the application-router descriptor (xs-app.json);
the header is used when serving static resources.

Deployment Service

For SAP HANA Platform 2.0 SPS 00, SAP HANA XS advanced provides the following updates and new features
for the deployment service (xs deploy):

● List the last “n” MTA operations


● Broaden support for the MTA specification:
○ Support for partial MTA specification version values
○ Support for metadata for properties and parameters
○ Support for “!sensitive” parameter (property tag)

What's New in the SAP HANA Platform 2.0


338 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
○ Support for MTA-Module multiple entries
○ Support for the proper merging of structured parameters
○ Support for context-path routing (new MTA module parameter)
○ Allow references from resources to “modules” or “resources”
● CTS+ Integration: Adaptation of deploy process
● Provide blue-green (bg-deploy) command in the XS CLI plug-in
● Enable the deployment of a Multi-Target Application (MTA) from a Git repository
● Provide support for the management of the XS advanced Service Broker

SAP HANA Deployment Infrastructure

For SAP HANA Platform 2.0 SPS 00, SAP HANA XS advanced provides the following updates and new features
for SAP HANA Deployment Infrastructure (HDI):

● HDI Configuration Parameter Reference


● HDI Parameter Reference
● HDI Build Plug-ins and File Formats Reference 2.0
● HDI Admin Documentation
● HDI Deployer
Support for many new features in the deployment service. For more information, see Deployment Service
above.
● New design-time artifacts:
○ Result Cache
● Updated design-time artifacts:
○ Synonym
Support for "database" field (Cross-Database Access)

Core Data Services

For SAP HANA Platform 2.0 SPS 00, SAP HANA XS advanced provides the following updates and new features
for Core Data Services (CDS):

● Support for subqueries


● Support for LIMIT/OFSET in queries
● Support for the clause GENERATED ALWAYS AS <expression clause> in an entity definition
● Support for the clause GENERATED [ALWAYS | BY DEFAULT] AS IDENTITY in an entity definition
● Java OData support for CDS
● The CDS text editor now includes a “beautify” (pretty-print) feature that formats code for easier scanning.

Gerrit-Git Service for XS Advanced

As of SPS12, SAP HANA includes a Gerrit server that is integrated with the XS advanced run time. Gerrit for XS
advanced is an optional component of the XS Advanced platform which can be used to store and manage

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 339
versions of the source code for XS Advanced applications, for example SAPUI5 and JavaScript or Java
applications, in Git repositories. Gerrit for XS Advanced is attached to the user account and authentication
(UAA) service in the XS Advanced platform.

XS Advanced Command-Line Interface

For SAP HANA Platform 2.0 SPS 00, SAP HANA XS advanced provides the following updates and new features
for the XS command-line interface:

● Numerous improvements and additions to the parameters and options already available with existing
commands

OData Services

For SAP HANA Platform 2.0 SPS 00, SAP HANA XS advanced provides the following updates and new features
for the OData services:

● Support for annotations in metadata


● Java OData support for CDS annotations (for example, @OData.publish : true)

Tools

For SAP HANA Platform 2.0 SPS 00, SAP HANA XS advanced provides the following new and updated
development tools:

● CDS:
○ Beautify (a.k.a. "pretty-print") feature for code formatting in the CDS text editor
○ Code completion for tables and views in same HDI container
○ Report syntax errors in the new Problems View in SAP Web IDE for SAP HANA
● Node.js:
○ Testing: the plain Node.js template now contains a sample Jasmine test
○ Testing: improvements to the design of the Test Result pane
○ Debugger: on-demand debugging of already running applications
○ Debugger: improvements to the design of the UI
○ New and improved run configuration for the Node.js run time
● Java:
○ Support for the building of Java Modules in the SAP Web IDE for SAP HANA
○ Support for the building of Java modules (Web ARchives) with Maven
○ Support for the running of Java modules (WARs) with TomEE buildpack on XS advanced, including:
○ Creation of Java Modules
○ Tighter integration with the SAP HANA Deployment Infrastructure (HDI)
○ Java OData support for CDS

What's New in the SAP HANA Platform 2.0


340 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
● Migration (XS classic to XS advanced)
New tool to help migrate legacy XS classic applications to run in the new XS advanced run-time
environment

 Note

The new SAP HANA XS Migration Guide is also available to guide you through the migration process.

Documentation

This section contains information about the following new or changed development-related documents:

● SAP HANA Developer Guide for SAP HANA XS advanced model


● SAP HANA XS Migration Guide
● SAP HANA Analytics Catalog (BIMC) Reference

SAP HANA Developer Guide for SAP HANA XS advanced model

The SAP HANA Developer Guide for SAP HANA XS advanced model describes the recommended process to
follow when building and deploy applications that run in the SAP HANA extended application services,
advanced model (XS advanced) run time; it also describes the required technical structure of applications that
can be deployed to the XS advanced run-time platform using either the SAP Web IDE for SAP HANA or the XS
command line tools.

The following areas in the SAP HANA Developer Guide for XS advanced model have been added, updated, or
improved :

● Getting Started
New and updated tutorials for the SAP HANA Run time Tools (a.k.a SAP HANA Database Explorer)
● Maintaining Application Development and Deployment Descriptors
Improved and more comprehensive descriptions of the configuration files used to define and describe the
build and deployment of a Multi-Target Application (MTA)
● Defining the Data Model in XS Advanced
○ Improved and more comprehensive explanations of how to create and deploy the database artifacts
used to store and provision data for your application's back end and user interface.
○ New section describing how to configure the HDI deployer
○ New section describing how to configure access policies in CDS, for example, with Data Control
Language (DCL) “aspects” and role definitions
○ New and updated sections describing how to use new CDS features, for example, support for
subqueries or element modifiers such as “GENERATED ALWAYS”
● Defining OData Services for XS Advanced Applications
Improved and more comprehensive explanations of how to create and deploy OData services in XS
advanced, for example: changes and additions to the service-definition syntax and many some examples of
working service definitions.
● Writing the XS Advanced Application Code
○ JavaScript/Node.js Run-Time Environment
Improved and more comprehensive explanations of how to make use of the features available in the
JavaScript/Node.js run-time environments, for example, which Node.js packages are available by

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 341
default and how you can consume them with your MTA. There is also some new information about the
unit-test framework, which you can use from within SAP Web IDE for SAP HANA.
○ Java Run-Time Environment
Improved and more comprehensive explanations of how to make use of the features available in the
Java run-time environments, for example, how to set up connections to the SAP HANA database, how
to configure logging and tracing, how to set up audit logs, how to configure authentication and
authorization, how to debug your Java application, and how to enable Java Data Services (a native
Java client for using Core Data Services functionality in the XS advanced Java run time).
● Maintaining XS Advanced Application Routes and Destinations
Improvements to and extension of existing information as well as new information about features and
functionality added with SAP HANA Platform 2.0 SPS 00.
● SAP Web IDE
A complete reference for SAP Web IDE for SAP HANA, a browser-based integrated development
environment (IDE) for the development of SAP-HANA-based applications comprised of web-based or
mobile UIs, business logic, and extensive SAP HANA data models. SAP Web IDE works in conjunction with
the SAP HANA Run-time Tools (HRTT), the SAP HANA deployment infrastructure (HDI), the Application
Lifecycle Management tools (ALM) and the XS advanced run-time platform
● XS Command-Line Interface
Numerous improvements and additions to the parameters and options already available with existing
commands as well as important additions to the installation and deployment functions including more
control of the application version deployed and the services bound to the deployed application.

SAP HANA XS Migration Guide


The SAP HANA XS Migration Guide describes the process of migrating legacy applications running in the XS
classic run-time environment to the new XS advanced run-time environment. The guide describes the tools
and provides an example migration using the SAP HANA Interactive Education (SHINE) demo application
available with SAP HANA XS classic model.

SAP HANA Analytics Catalog (BIMC) Reference


The SAP HANA Analytics Catalog (BIMC) Reference lists and describes the tables and views with the prefix
BIMC located in the schema _SYS_BI. It contains metadata required by analytic clients such as Analysis Office
and Business Cloud. The metadata is also required for access by Multi-Dimensional Expressions (MDX). The
SAP HANA Analytic Catalog is an analytic extension of the database catalog (schema SYS).

6.4.2 SAP Enterprise Architecture Designer, Edition for SAP


HANA, edition for SAP HANA (New)

As of SAP HANA Platform 2.0 SP00, SAP Enterprise Architecture Designer, Edition for SAP HANA, edition for
SAP HANA is available.

SAP Enterprise Architecture Designer, Edition for SAP HANA (SAP EA Designer) lets you capture, analyze, and
present your organization's landscapes, strategies, requirements, processes, data, and other artifacts in a
shared environment. Using industry-standard notations and techniques, organizations can leverage rich
metadata and use models and diagrams to drive understanding and promote shared outcomes in creating
innovative systems, information sets, and processes to support goals and capabilities.

SAP EA Designer supports consuming your content through:

What's New in the SAP HANA Platform 2.0


342 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
● Browsing diagrams and model objects online.
● Exporting diagrams as SVG images or printing them.
● Generating reports on your diagrams and model objects.
● Running an impact analysis.
● Posting comments to diagrams and model objects.

SAP EA Designer supports the creation and editing of the following kinds of diagrams:

● Business Process - Business process diagrams help you identify, describe, and decompose business
processes. SAP EA Designer supports:
○ BPMN 2.0 Descriptive, which provides a small subset of objects suitable for business process design
and analysis.
○ BPMN 2.0 Executable, which includes all the standard BPMN 2.0 objects, and is aimed at technical
modelers and those who are reverse-engineering from SAP BPM or Eclipse BPMN2 Modeler.
● Database - Physical data models help you analyze and optimize the structure of your database. You can
reverse-engineer any supported database to create a physical data model. Generation to SAP HANA,
directly to the catalog, or to Web IDE via HDI is also supported.
● Enterprise Architecture Diagram - Enterprise architecture diagrams help you analyze and document your
organization, its functions and processes, the applications and systems that support them, and the
physical architecture on which they are implemented.
● Process Map - A process map provides a graphical view of your business architecture, and helps you
identify your business functions and high-level processes, independent of the people and business units
who fulfill them.
● Requirements List - Requirements documents display a hierarchical list of written requirements.

6.4.3 SAP Web IDE for SAP HANA (New and Changed)

As of SAP HANA Platform 2.0 SP00, the following new features and changes are available in SAP Web IDE and
integrated SAP HANA tools.

SAP Web IDE for SAP HANA is a browser-based integrated development environment (IDE) for the
development of SAP HANA-based applications comprised of web-based or mobile UIs, business logic, and
extensive SAP HANA data models. SAP Web IDE works in conjunction with the SAP HANA deployment
infrastructure (HDI), the Application Lifecycle Management tools (ALM), the XS Advanced runtime platform,
and various SAP HANA tools.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 343
SAP Web IDE

Feature Description

Git Features (new) The Git tools have been enhanced with new capabilities. Now
you can:

● Set up Git
● Configure Git repositories
● Use multiple branches
● View the History pane

HTML5 Module Templates (new) Two new templates are now available for HTML5 modules:

● SAPUI5 application with a basic project structure


● SAP Fiori Master-Detail application

Layout Editor (new) A visual designer is now available for the development of SA­
PUI5-based HTML5 modules.

Problems View (new) A new pane is available to view and analyze information
about problems in the modules and projects in your work­
space.

Run Console (changed) The enhanced Run console provides a holistic view of all run­
ning modules in a project and a quick access to their logs.

Runtime Performance Improvements (changed) Performance improvements when building and running
HTML5 and Node.js modules.

Selective Build (changed) You can selectively build artifacts in an HDB module rather
than build the entire module. This supports incremental de­
velopment and shortens the processing time.

User-defined Schema Names (new) You can now define the name of the database schema that is
automatically created for an HDB module.

SAP HANA Tools (new and changed) Various SAP HANA tools are now available in SAP Web IDE.
For details, see below.

SAP HANA Tools

Calculation View Editor (Modeler)

Feature Description

Rank Node (enhanced) You can now generate an additional output column for rank
nodes to store rank values.

What's New in the SAP HANA Platform 2.0


344 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
Feature Description

Assigning Semantics (enhanced) In addition to the existing support for assigning semantics
to measures, you can now also assign semantics to attrib­
utes in a calculation view.

Column Lineage (enhanced) Column lineage support is now extended to trace source of
columns used in calculated column expressions, and also
for base measures used in restricted columns.

Cache Invalidation (enhanced) Transaction-based cache invalidation is performed when­


ever the underlying data is modified.

Restricted Columns (new) You can create restricted columns as an additional measure
based on attribute restrictions. For example, you can
choose to restrict the value for the REVENUE column only
for REGION = APJ, and YEAR = 2016.

Support to Convert Attribute Values to Required Formats You can assign conversion functions to attribute columns.
(new) These functions help maintain conversion from any internal
to external format and from any external to internal format.

Support for Debugging Calculation Views (new) You can execute debug queries on calculation views and an­
alyze the runtime performance of views. For example, based
on the query that you execute, you can identify pruned and
unpruned data sources in calculation views and at design-
time.

Handling Null Values in Columns (new) Define default values for columns (both attributes and
measures). The system uses these default values in the re­
porting tools to replace any null values in columns.

Support for Virtual Tables (new) In addition to the already supported data source types, you
can now also use virtual tables as a data source for model­
ing calculation views.

Hierarchies (new) You can use graphical modeling tools to create and define
hierarchies. The tool supports both level hierarchies and pa­
rent-child hierarchies.

Support for Generating Time Data and Creating Calculation You can generate time data into default time-related tables
Views with Time Dimension (new) present in the _SYS_BI schema and use these tables in cal­
culation views to add a time dimension.

Spatial Joins (new) You can create spatial joins to query data from database ta­
bles that contain spatial data.

Time Travel Queries (new) Calculation views now support time travel queries, which
help query the past state of data. You can use input parame­
ters to specify the timestamp in time travel queries.

Validation Rules to Validate Performance of Calculation Views The tool supports certain validation rules, which when exe­
(new) cuted, validate the calculation view and help identify
whether there are any design-time factors that could impact
the performance of calculation views at runtime.

Time-Dependent Hierarchies (new) You can create parent-child hierarchies with time depend­
ency. If elements in the hierarchy are changing elements
(time-dependent elements), then enabling the parent-child
hierarchy as a time-dependent hierarchy helps display dif­
ferent versions of that hierarchy at runtime.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 345
Feature Description

Currency Conversion and Unit Conversion (enhanced) You can reuse the currency conversion or unit conversion
definition of a selected measure in multiple other measures
at a time.

You can also now associate measures with currency code or


unit values in any aggregation node (not only the default ag­
gregation node) in the calculation view.

Additional Features for Calculation Views You can now do the following:

● Create input parameters derived from scalar functions.


● Use improved user interface for creating synonyms.
● Use improved user interface for creating analytic privi­
leges.
● Create dynamic analytic privileges and hierarchy ana­
lytic privileges.
● Generate calculation view documentation.
● Prune data in union nodes to optimize query execution.
● Preview data for intermediate nodes in calculation
views.
● Perform pattern matching and pattern matching with
Cypher query in graph nodes. (Cypher is a registered
trademark of Neo Technology, Inc.).
● Group related measures.

CDS Graphical Editor

Feature Description

Creating CDS Views (new) You can use the graphical modeling tools in SAP Web IDE for
SAP HANA to create a design time CDS view. A CDS view is a
virtual table based on the dynamic results returned in re­
sponse to a SQL statement.

Creating Calculated Columns (new) You can create additional columns in a CDS View. The values
of these columns are calculated at runtime based on the re­
sult of an expression.

Creating Associations Using Graphical Tools (new) You can create associations using graphical modeling tools
in SAP Web IDE for SAP HANA to define the relationship be­
tween entities.

Import Entity Definitions (new) You can import elements from other entities and use the def­
inition of imported elements to define the elements of a se­
lected entity.

What's New in the SAP HANA Platform 2.0


346 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
Feature Description

Support for additional types of data types (new) ● Scalar Types


You can create and use scalar types for defining the
data types of elements. Scalar types are user-defined
scalar data types that reference existing structured
types (for example, user-defined) or the individual types
(for example, field, type, or context) used in another
data-type definition.
● Entity Elements
For defining the data type of elements in an entity or
structure, you can use the data type of elements in
other entities.
● Structure Elements
For defining the data type of elements in an entity or
structure, you can use the data type of elements in
other structure.

Database Explorer

Feature Description

The SAP HANA Runtime Tools application is no longer a sep­ The database explorer contains the same functionality as
arate application. It has been integrated into SAP Web IDE the old runtime tools application, with the addition of several
for SAP HANA as a perspective that is named the database new features and enhancements. These additions include:
explorer.
● Connecting to SAP HANA databases in addition to HDI
containers. With this feature you can view tracing files
for your SAP HANA databases.
● Analyzing the performance of SQL queries with the SAP
HANA SQL analyzer. This new tool, available from the
SQL console, allows you to analyze and understand
query execution and performance aspects of your SAP
HANA database. It can be used to view detailed infor­
mation on each query and can help evaluate potential
bottlenecks for your queries.
● Importing and exporting catalog objects to and from
HDI containers and databases.
● Executing MDX queries using the new MDX console.
● Adding generated time data into default, time-related
tables to help test and model applications.

Also, improvements have been made to the navigation of


catalog objects in the database browser tree. A second pane
has been added, which lists the items for a chosen database
object.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 347
Flowgraph Editor

Feature Description

Flowgraph Editor (new) The Flowgraph Editor is now available in SAP Web IDE. It is a
modeling tool for assessing, transforming, cleansing, and
enriching data.

Available nodes The following nodes are available:

● Aggregation
● Cleanse
● Case
● Data Mask
● Data Source
● Data Target
● Date Generator
● Geocode
● History Preserving
● Join
● Lookup
● Map Operation
● Procedure (Stored)
● Projection (Filter)
● Row Generator
● Table Comparison
● Union

Additional features Additional features include:

● Quick View
● More intuitive prompts and messages
● License validation
● Improved navigation between views
● Separate input/output ports
● Better recovery from invalid state
● Better security based on user rights

Java and Node.js Development

Feature Description

CDS textual editor You can now:

● Beautify sources, also known as pretty-print.


● Use code completion for tables and views in the same
HDI container.
● Report syntax errors in Problems View (see SAP Web
IDE features above).

What's New in the SAP HANA Platform 2.0


348 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
Feature Description

Node.js development Includes the following improvements:

● The template for new plain node.js modules now con­


tains a sample Jasmine test.
● Slight redesign of the Test Results pane and Debugger
pane.
● On-demand debugging of already running applications
(no need to start in debug mode first).

Java Development (new) You can now create, build, and run Java (WAR) modules.

Text Analysis

Feature Description

Extensions for Text Analysis SAP Web IDE now supports developing custom text analysis
dictionaries and rules, including:

● Creating and maintaining custom text analysis diction­


aries and rule sets within SAP Web IDE.
● Snippets feature simplifies editing of text analysis dic­
tionaries.
● Interactively test custom text analysis dictionaries and
rules within SAP Web IDE using text analysis run config-
urations.

SAP HANA Smart Data Streaming Plugin

Feature Description

CCL editor Simplified CCL text editing with new smart data streaming-
specific features:

● Automatic code completion


● Case-insensitive syntax highlighting
● Error validation and syntax checking
● Code snippets

CCL graphical viewer You can now view CCL elements in a data flow diagram, and
see a list of all elements in your smart data streaming
project in an outline view.

Closer connection to the streaming runtime tool Smart data streaming projects from SAP Web IDE are de­
ployed to the streaming runtime tool for testing, manage­
ment, and monitoring. You can open the streaming runtime
tool directly from the Tools dropdown in the main menu.

For more information, see What's New in SAP HANA Smart Data Streaming (Release Notes).

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 349
6.4.4 SAP HANA Spatial (New)

As of SAP HANA Platform 2.0 SPS 00, new features are available in the SAP HANA Spatial.

The following method is new:

● ST_IntersectsRectPlanar

Related Information

ST_IntersectsRectPlanar Method

6.4.5 SAP HANA Graph (New and Changed)

As of SAP HANA Platform 2.0 SPS 00, new and changed features are available for the administration of SAP
HANA Graph:

● SAP HANA Graph provides two options for executing graph pattern queries. Besides using a graphical
pattern editor of the Graph Viewer tool, SAP HANA Graph also allows you to describe the pattern in Cypher
query language (Cypher is a registered trademark of Neo Technology, Inc.). The action for pattern
matching is MATCH_SUBGRAPHS. With SAP HANA Platform 1.0 SPS 12, the name of the action for pattern
matching is GET_ISOMORPHIC_SUBGRAPHS.
● GraphScript has been added to SQLScript. GraphScript is a high-level, domain-specific language.
GraphScript is specifically designed to ease the development and integration of complex graph algorithms
into the existing data management workflow. At the same time, GraphScript provides competitive
execution performance for manually written and tuned graph algorithm implementations in a low-level
programming language.

Related Information

SAP HANA Graph Reference

6.4.6 Hierarchy Functions (New)

Hierarchy functions are available as of SAP HANA Platform 2.0 SPS 00:

● SAP HANA provides a public hierarchy SQL interface.


● Core elements are table functions for hierarchy generation and navigation.
● Hierarchy enables ad hoc hierarchical queries accelerated by internal caching.

What's New in the SAP HANA Platform 2.0


350 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
SAP HANA provides the following table functions:

● HIERARCHY creates a (partial) hierarchy based on parent-child source data, an optional maximum
recursion depth input parameter and an orphan handling directive.
● The following functions are provided for navigation inside a hierarchy:
○ HIERARCHY_DESCENDANTS returns all descendants of a set of origin nodes, pre-filtered (optional) by
a distance window.
○ HIERARCHY_ANCESTORS returns all ancestors of a set of origin nodes, pre-filtered (optional) by a
distance window.
○ HIERARCHY_SIBLINGS returns all siblings of a set of origin nodes.

Related Information

SAP HANA SQL and System Views Reference

6.4.7 Search, Text Analysis, and Text Mining

SAP HANA 2.0 SPS 00 introduces the following new and changed features for search, text analysis, and text
mining.

Search (New) [page 351]

Text Analysis (New and Changed) [page 352]

Text Mining (New and Changed) [page 354]

SAP File Processing (New) [page 355]

File Loader (Changed) [page 355]

6.4.7.1 Search (New)

Batch Processing for Search Rules

Search rules support a batch processing mode. This batch mode allows to compare a set of records given in an
input table with a reference set of records with a single call to the search rule set procedure to find any
duplicates within these two sets of data. The batch mode is described in section Search Rule Sets in Batch
Mode.

The Search Rule Sets Batch mode is introduced to provide the possibility to do mass data processing based on
Search Rule Sets.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 351
Dynamic Search Rule Sets

With this feature, you can use the functionality of search rule sets without having the need to first activate the
search rule set via the SAP HANA repository or SAP HANA HDI. Within the XML-Tag <ruleset>, you can store a
complete rule set definition.

Filtering on Date Data Type

You can now filter on a date data type, be it partial (e.g. 2016/09), decimal or string in faceted navigation
applications.

New Similarity Calculation Modes

The fuzzy search option similarCalculationMode offers two more modes: typeAhead and
searchCompare. The mode typeAhead is used when the user enters the beginning of a string and all strings
starting with the user input will be returned. The mode searchCompare combines the strength of modes
compare and search while eliminating some of the shortcomings of search mode search.

New CDS Annotation

The new Semantics annotation contains a subset of the semantic annotations defined as CDS core
annotations. The annotations on element level define language codes and dates or time stamps.

Related Information

6.4.7.2 Text Analysis (New and Changed)

Web IDE Extensions for Text Analysis

SAP Web IDE now includes support for developing custom text analysis dictionaries and rules.

● Create and maintain custom text analysis dictionaries and rule sets within the Web IDE.

What's New in the SAP HANA Platform 2.0


352 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
● Snippets feature simplifies editing of text analysis dictionaries.
● Interactively test custom text analysis dictionaries and rules within the Web IDE using text analysis run
configurations.

See chapter Managing Custom Text Analysis Configurations with XS Advanced inside the SAP HANA Text
Analysis Developer Guide for details.

XS Advanced Integration

The standard Node.js packages for the SAP HANA XS Advanced Model now include an API for text analysis.
This API provides a convenient JavaScript interface to the text analysis functionality in SAP HANA, and also
allows you to perform text analysis on any data, not just data stored in the SAP HANA database for which a full-
text index is being created. In addition, the XSJS compatibility layer has been extended to include the XS
Classic API for text analysis, making it easier to migrate your existing applications to the XS Advanced Model.

Refer to the SAP HANA Developers Guide for SAP HANA XS Advanced Model for information on how to obtain
and deploy these optional Node.js packages.

Text Analysis SQL API

The new TA_ANALYZE SQL procedure allows text analysis functions to be performed on arbitrary inputs, not
just data stored in the SAP HANA database. The procedure accepts both plain text and binary document input,
and provides access to all of the text analysis capabilities in SAP HANA.

Voice of the Customer for Arabic

Voice of the customer (sentiment analysis) functionality is supported for text in Arabic.

Neutral Language Support

Text analysis can now be performed in a "language-neutral" manner on whitespace-delimited languages. This
allows text analysis and text mining to be used, at least in a limited manner, with whitespace-delimited
languages for which SAP does not currently provide full support (e.g., Chechen or Somali). The language-
neutral processing can be requested using the new "UD" language code. This code can be used with the
LANGUAGE, LANGUAGE COLUMN, and LANGUAGE DETECTION parameters on the CREATE FULLTEXT INDEX
SQL statement.

Refer to the SAP HANA Search Developer Guide for more information on how to use the neutral ("UD")
language code.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 353
Turkish Parts of Speech for Negated Verbs

The Turkish language modules now define unique part-of-speech tags to identify negated verbs. For example,
one form of the first person singular English verb to like is seviyorum in Turkish. The negated form (to not like) is
sevmiyorum. The new part of speech tag for sevmiyorum, which is unique to Turkish, is V-Sg1-Neg, first person
singular negated verb.

Expanded Part of Speech Tags in the $TA Table

Expanded part-of-speech information can now be requested from text analysis and accessed via the $TA table.
This expanded information is not generated by default; it must be explicitly requested using a custom text
analysis configuration. The expanded information is provided in a new $TA table column called
TA_TYPE_EXPANDED. (The TA_TYPE column continues to provide simplified part-of-speech names for
backward-compatibility.)

For example, the English words run, runs, running, and ran have the same value in TA_TYPE: verb. In the
TA_TYPE_EXPANDED column however, the respective values are V-Pres, V-Pres-3-Sg, V-PrPart, and V-Past.

6.4.7.3 Text Mining (New and Changed)

XS Advanced Integration

The standard Node.js packages for the SAP HANA XS Advanced Model now include an API for text mining. This
API provides a convenient JavaScript interface to the text mining functionality in SAP HANA. In addition, the
XSJS compatibility layer has been extended to include the XS Classic API for text mining, making it easier to
migrate your existing applications to the XS Advanced Model.

Refer to the SAP HANA Developer Guide for XS Advanced Model for information on how to obtain and deploy
these optional Node.js packages.

New DEFAULT Keyword for Text Mining SQL functions

The NEAREST NEIGHBORS and TOP parameters in the SQL functions for text mining can specify the value as
DEFAULT, instead of a numeric value. Using DEFAULT causes the function to use the same value that was used
at text mining initialization (either the original value from the text mining configuration, or an override value
specified using the TEXT MINING CONFIGURATION OVERLAY parameter or the initialize function in the
text mining XS classic or advanced APIs).

What's New in the SAP HANA Platform 2.0


354 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
6.4.7.4 SAP File Processing (New)

SAP File Processing is an optional capability of SAP HANA 2.0 that provides a set of HTTP services to extract
structured information (text and metadata) from unstructured files.

The rich set of HTTP APIs enables application programmers to integrate SAP File Processing features in client
applications.

Before you can start, you have to deploy SAP File Processing with the SAP HANA Database Lifecycle Manager
hdblcm to your SAP HANA system that is running XS Advanced.

6.4.7.5 File Loader (Changed)

The File Loader component was introduced with SAP HANA 1.0 SPS 09. It can be used with SAP HANA 2.0 as
well.

 Note

However, if you start the development of new projects on SAP HANA 2.0, we recommend the use of the new
HTTP services that are delivered with SAP File Processing for SAP HANA.

6.4.8 SAP HANA Interactive Education (SHINE) for XS


Advanced (New and Changed)

SHINE for XSA is a demo content that makes it easy to learn how to build applications on SAP HANA Extended
Application Services Advanced Model. This demo content is delivered as a package containing sample data
and design-time developer objects for application database tables, views, OData and user interfaces.

As of SAP HANA Platform HANA 2.0 SPS00, the following new features are available in SAP HANA Interactive
Education (SHINE) for XS Advanced:

● Java Runtime: the Java implementation has been added to SHINE to showcase Create Read Update Delete
(CRUD) operations on oData V4 services implemented by using the new Java OData support for CDS
annotations in XS Advanced . This scenario is a part of the new User CRUD tile.
● Automated Role Collection Creation: a role collection needs to be created via XS Advanced Administration
tool to access SHINE Data Generator. This procedure now be performed automatically within the SHINE
application.
● Cross-Container Access: cross-container access is required to access database artifacts in another HANA
Deployment Infrastructure (HDI) container or in a foreign schema(for example, SYS or _SYS_BI). SHINE
now has two HDI containers (core-db and user-db) and it showcases how to access user-db artifacts in
core-db by defining and granting roles . SHINE also showcases how to access foreign schema objects (for
example, view within a SYS schema) via a User-Provided Service (CUPS) in the core-db container.
● Service Replacement: service replacements in the MTA deployment descriptor (mtad.yaml) are required to
map real services to logical services. This feature is used in SHINE to map the User-Provided Service
(CUPS) to logical service names.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 355
● Schema Config: the Schema Config MTA Deployment Descriptor in allows you to provide an actual schema
name for a container instead of the default guid assigned by HDI. This feature is used in SHINE to provide a
schema name for the user-db HDI container.
● MTA Deployment Extension Descriptor: it allows you to provide system-specific information only known to
the system administrator. MTA Deployment Extension Descriptor (mtaext) is used in SHINE to pass the
parameters required for CUPS creation.
● oData Batch: batch requests allow grouping of multiple operations. This implementation in nodejs oData
v2 is used in SHINE for creation of multiple users with one request.
● oData Metadata Caching: allows the caching of a metadata document in the browser for a defined time
period and the browser no longer needs to make repeated requests to the $metadata document.

6.5 Reference

SAP HANA Platform 2.0 SPS 00 introduces new and changed features which are described in the reference
documentation.

SAP HANA SQL and System Views Reference (New and Changed) [page 357]
As of SAP HANA Platform 2.0 SPS 00, the following new features and changes are available in the SAP
HANA SQL syntax and are documented in the SAP HANA SQL and System Views Reference.

SAP HANA Client Interfaces (New and Changed) [page 364]


As of SAP HANA Platform 2.0 SPS 00, the SAP HANA Client Interface Programming Reference Guide
contains documentation for the following new and changed features.

SAP HANA Predictive Analysis Library (New and Changed) [page 366]
As of SAP HANA Platform 2.0, new and changed features for the Predictive Analysis Library (PAL) are
available.

SAP HANA SQLScript Reference (New and Changed) [page 371]


As of SAP HANA Platform 2.0 SP00, the following new features and changes are available in SAP HANA
SQLScript and are documented in the SAP HANA SQLScript Reference.

SAP HANA Core Data Services (CDS) Reference (New and Changed) [page 371]
As of SAP HANA Platform 2.0 SP00, the following new features and changes are documented in the
SAP HANA Core Data Services (CDS) Reference.

SAP HANA Analytics Catalog (BIMC Views) Reference (New) [page 372]
As of SAP HANA Platform 2.0 SP00, the new SAP HANA Analytics Catalog (BIMC Views) Reference is
available in the reference library.

What's New in the SAP HANA Platform 2.0


356 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
6.5.1 SAP HANA SQL and System Views Reference (New and
Changed)

As of SAP HANA Platform 2.0 SPS 00, the following new features and changes are available in the SAP HANA
SQL syntax and are documented in the SAP HANA SQL and System Views Reference.

SQL Statements (New and Changed)

ALTER DATABASE Statement You can now cancel a replica to clean up the system.
(changed)

ALTER ROLE Statement (new) Adds or drops the mapping of LDAP groups for a role.

ALTER STATISTICS Statement Alters existing data statistics objects.


(new)

ALTER SYSTEM APPLICATION Manages encryption keys for applications by using the internal data
ENCRYPTION Statement encryption service.
(new)

ALTER SYSTEM CLEAR Removes cached timezone definitions.


TIMEZONE CACHE Statement
(new)

ALTER SYSTEM CLEAR Clears the result cache.


RESULT CACHE Statement
(changed)

ALTER SYSTEM LOG Manages encryption keys for logs by using the internal data encryption
ENCRYPTION Statement service.
(new)

ALTER SYSTEM PERSISTENCE Controls whether persistent data is stored on disk in an encrypted or non-
ENCRYPTION Statement encrypted format.
(new)

ALTER SYSTEM REFRESH You can now specify static or dynamic caching.
RESULT CACHE Statement
(changed)

ALTER SYSTEM REFRESH You can now refresh the result cache entry.
RESULT CACHE ENTRY
Statement (changed)

ALTER SYSTEM REMOVE You can now remove the result cache entry.
RESULT CACHE ENTRY
Statement (changed)

Removes any user-defined hints from the system that are associated with
the specified statement.ALTER SYSTEM REMOVE STATEMENT HINT
Statement (new)

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 357
ALTER SYSTEM SET Creates a password for root key backups.
ENCRYPTION ROOT KEYS
BACKUP PASSWORD
Statement (new)

ALTER SYSTEM STOP Stops all of the services that belong to a database on all hosts.
DATABASE Statement (new)

ALTER TABLE Statement You can now apply the midsizelob_threshold system property to a specified
(changed) column or to all columns of a specified table.

ALTER VIEW Statement ● You can now specify static or dynamic caching.
(changed) ● ALTER SYSTEM REMOVE STATEMENT HINT Statement (new)The
existing ADD CACHE RETENTION clause now supports virtual tables.

ALTER VIRTUAL TABLE You can now update a virtual table to reflect metadata changes in the
Statement (changed) corresponding remote table.

BACKUP DATA Statement You can now add a comment to a backup using the COMMENT clause.
(changed)

CREATE | ALTER FUNCTION You can now specify static or dynamic caching.
Statement (changed)

CREATE | ALTER | VALIDATE | Create, alter, validate, and drop LDAP providers.
DROP LDAP PROVIDER
Statements (new)

CREATE AUDIT POLICY The following new audit actions have been added:
Statement (changed)
● ALTER APPLICATION ENCRYPTION
● ALTER APPLICATION ENCRYPTION ROOT KEY
● ALTER LOG ENCRYPTION
● ALTER LOG ENCRYPTION ROOT KEY
● ALTER ROOT KEYS BACKUP PASSWORD
● CREATE GRAPH WORKSPACE
● DROP GRAPH WORKSPACE

CREATE FUNCTION For scalar functions, you can now specify the DETERMINISTIC keyword to
Statement (changed) indicate that the function always returns the same value (when using the
same input parameters). Deterministic functions are advantageous because
they only need to be calculated once; the cached value can be used for
subsequent calls to the function.

CREATE PROCEDURE ● The new MAP_MERGE operator allows you to use the mapper function
Statement (changed) to unite intermediate result tables.
● You can now use the graph script programming language in procedures
by specifying the GRAPH option of the LANGUAGE clause.

CREATE ROLE Statement You can now create a role and associate it with an LDAP DN.
(changed)

CREATE STATISTICS The enhancements listed below are also available in the new ALTER
Statement (changed) STATISTICS Statement as well.

What's New in the SAP HANA Platform 2.0


358 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
● New REFRESH TYPE clause allows you to control the refresh behavior for
a data statistics object.
● New ENABLE clause allows you to control whether the data statistics
object is used by the optimizer.
● New TOPK data statistics object type.
● New ACCURACY and PREFIXBITS properties for data statistics objects.

CREATE | ALTER USER ● You can now configure LDAP group authorization for a user.
Statement (changed) ● ALTER USER statement only: a new GRANT | REVOKE CREATE ANY ON
OWN SCHEMA clause allows a user with USER ADMIN to control another
user's ability to create objects in their own schema.
● ALTER USER statement only: a new GRANT | REVOKE ROLE PUBLIC
clause allows a user with USER ADMIN to control whether another user
has PUBLIC role.

CREATE VIEW Statement ● You can now specify static or dynamic caching.
(changed) ● Use association propagation by specifying the WITH ASSOCIATIONS
clause.

CREATE VIRTUAL You can now create virtual procedures.


PROCEDURE Statement (new)

EXPORT Statement (changed) Two new export options, STATISTICS ONLY and NO STATISTICS, allow you to
control the export of data statistics objects.

GRANT Statement (changed) ● The new CREATE VIRTUAL PROCEDURE object privilege authorizes
access to create custom virtual procedures.
● The new ENCRYPTION ROOT KEY ADMIN system privilege authorizes all
commands related to management of root keys.

IMPORT Statement (changed) Two new import options, STATISTICS ONLY and NO STATISTICS, allow you to
control the import of data statistics objects.

IMPORT FROM Statement Two new import options, STATISTICS ONLY and NO STATISTICS, allow you to
(changed) control the import of data statistics objects.

MERGE INTO Statement (new) Merges data into an existing column store table.

RECOVER DATABASE You can now specify a distinct destination for backups of the backup catalog.
Statement (changed)

SELECT Statement (changed) The FOR UPDATE clause now supports virtual tables.

UNLOAD Statement (changed) A new PARTITION clause unloads the specified partition(s) from memory.

SQL Functions (New and Changed)

ADD_MONTHS_LAST Function (new) Computes the specified date plus the specified
number of months, with the output date being the

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 359
last day of the month if the input date is the last day
of the month, even if those two dates differ.

ENCRYPTION_ROOT_KEYS_EXTRACT_KEYS Function Extracts root keys and sends them to a client session
(new) as a CLOB.

GRANT Statement (changed) Support has been added for the new ENCRYPTION
ROOT KEY ADMIN system privilege.

HIERARCHY Function (new) Generates a hierarchy.

HIERARCHY_ANCESTORS Function (new) Returns all ancestors of a set of start nodes from a
hierarchy.

HIERARCHY_DESCENDANTS Function (new) Returns all descendants of a set of start nodes from
a hierarchy.

HIERARCHY_SIBLINGS Function (new) Returns all siblings of a set of start nodes, including
the start nodes, from a hierarchy.

JSON_QUERY Function (new) Extracts a JSON text from a JSON text using a SQL/
JSON path expression.

JSON_TABLE Function (new) Queries a JSON text and presents it as a relational


table.

JSON_VALUE Function (new) Extracts an SQL value of a predefined type from a


JSON value.

NEWUID Function (new) Creates a unique identifier within the database.

XMLEXTRACT Function (new) Returns an XML element matching the specified


XPath query.

XMLEXTRACTVALUE Function (new) Returns an XML value matching the specified XPath
query.

System Views (New and Changed)

APPLICATION_ENCRYPTION_KEYS System View Provides information about encryption keys used by


(new) applications.

AUDIT_LOG System View (changed) ● The new XS_APPLICATION_USER_NAME column


specifies the name of the XS application user.
● Previously, the AUDIT_ACTION column was
VARCHAR(40). Now, it is VARCHAR(64).

AUDIT_POLICIES System View (changed) Previously, the EVENT_ACTION column was


VARCHAR(32). Now, it is VARCHAR(64).

What's New in the SAP HANA Platform 2.0


360 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
DATA_STATISTICS System View (changed) New DATA_SOURCE_STORAGE_TYPE, REFRESH_TYPE,
IS_ENABLED, and LAST_REFRESH_REASON columns to
support additional data statistics functionality.

ENCRYPTION_ROOT_KEYS System View New ROOT_KEY_STATUS column specifies the key state.
(changed)

FUNCTIONS System View (changed) The new CREATE_TIME column specifies the creation
time of the function.

GRANTED_ROLES System View (changed) New IS_GRANTED_BY_LDAP column specifies whether


the role is granted by LDAP.

HINT Details (changed) The new RESULT_LAG hint for Active/Active (read-
enabled) routes a statement to a secondary system on an
Active/Active (read-enabled) system.

LDAP_PROVIDER_URLS System View (new) Lists all LDAP provider URLs.

LDAP_PROVIDERS System View (new) Lists all LDAP providers.

LDAP_USERS System View (new) Lists all LDAP users.

M_ASYNCHRONOUS_TABLE_REPLICAS This view is now deprecated.


(deprecated)

M_BACKUP_CATALOG_FILES System View In the case of a log backup, the new


(changed) LOG_SEGMENT_COUNT column specifies the number of
log segments contained in the backup.

M_BACKUP_CONFIGURATION System View ● The new BACKINT_CATALOG_BACKUP_PATH column


(changed) specifies the directory for backint-based catalog
backups.
● The new FILE_CATALOG_BACKUP_PATH column
specifies the directory for file-based catalog backups.
● The new LOG_BACKUP_TIMEOUT column specifies
the log backup timeout.
● The new LOG_BACKUP_INTERVAL_MODE column
specifies the log backup interval mode.

M_CONNECTIONS System View (changed) There is a new


SOURCE_SITE_LOGICAL_CONNECTION_ID column,
which is the logical connection ID of the origin site.
Additionally, the IS_HISTORY_SAVED column is
deprecated. Do not use this value.

M_CS_LOB_SPACE_RECLAIMS System View Provides information regarding executed LOB garbage


(new) collection runs.

M_DELTA_MERGE_STATISTICS System View There is a new CRITICAL value, which is triggered based
(changed) on a critical decision function, has been added to the
MOTIVATION column.

M_DISKS System View (changed) The data type for the USAGE_TYPE column has changed
from VARCHAR(32) to VARCHAR(64) and a new usage
type, CATALOG_BACKUP, has been added.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 361
M_DYNAMIC_RESULT_CACHE System View Lists statistics for the dynamic result cache.
(new)

M_DYNAMIC_RESULT_CACHE_EXCLUSIONS Lists cache exclusions of the dynamic result cache.


System View (new)

M_ENCRYPTION_OVERVIEW System View (new) Reports the encryption status for all data at rest where
encryption is supported.

M_EXECUTED_STATEMENTS System View The new SCHEMA_NAME column shows the name of the
(changed) schema in whose context the statement is executed.

M_EXPENSIVE_STATEMENTS System View The new SCHEMA_NAME column shows the name of the
(changed) schema in whose context the statement is executed.

M_LANDSCAPE_HOST_CONFIGURATION The new WORKER_CONFIG_GROUPS and


System View (changed) WORKER_ACTUAL_GROUPS columns assign hosts to
logical worker groups.

M_LOAD_HISTORY_SERVICE System View The new MUTEX_COLLISION_COUNT column displays


(changed) the number of collisions on mutexes while the new
READ_WRITE_LOCK_COLLISION_COUNT column
displays the number of collisions on read/write locks.
Additionally, the TRANSACTION_ID_RANGE column has
been removed.

M_MEMORY_OBJECTS System View (changed) The following new columns have been added:

● MOVE_IN_COUNT - The total number of objects


moved in from a different statistic.
● MOVE_IN_SIZE - The total size of objects moved in
from a different statistic.
● MOVE_OUT_COUNT - The total number of objects
moved out to a different statistic.
● MOVE_OUT_SIZE - The total size of objects moved
out to a different statistic.

M_REMOTE_STATEMENTS System View The new REMOTE_STATEMENT_DETAILS column


(changed) specifies the statement details.

M_SECURESTORE System View (deprecated) The M_SECURESTORE System View is now deprecated.

M_SQL_PLAN_STATISTICS System View (new) Provides statistics of a live or evicted individual execution
plan.

M_SYSTEM_REPLICATION_MVCC_HISTORY Displays the global MVCC timestamp history in the


System View (new) secondary site for system replication.

M_TABLE_LOB_STATISTICS System View The new LOB_STORAGE_TYPE column returns a packed


(changed) LOB container or file LOB.

M_TABLE_STATISTICS System View (changed) The new MERGE_COUNT column returns the count of
merge into statements for the table.

M_WORKLOAD_CAPTURES System View The new PROGRESS column displays the progress of the
(changed) load process used for Workload Analyzer based on engine
instrumentation.

What's New in the SAP HANA Platform 2.0


362 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
M_WORKLOAD_REPLAYS System View The new REPLAY_NAME and REPLAY_DESCRIPTION
(changed) columns display the user-specified name and description
of the replayed workload.

PROCEDURES System View (changed) The new CREATE_TIME column specifies the creation
time of the procedure.

ROLE_LDAP_GROUPS System View (new) Lists all of the LDAP group roles.

SCHEMAS System View (changed) The new CREATE_TIME column specifies the creation
time of the schema.

SEQUENCES System View (changed) The new CREATE_TIME column specifies the creation
time of the sequence.

STATEMENT_HINTS System View (changed) New SYSTEM_HINT_STRING column displays when a


system hint conflicts with an existing hint.

SYNONYMS System View (changed) The new CREATE_TIME column specifies the creation
time of the synonym.

TABLES System View (changed) The new CREATE_TIME column specifies the creation
time of the table.

USERS System View (changed) New AUTHORIZATION_MODE column specifies the


authorization mode of a user, which can be either local or
LDAP.

VIEWS System View (changed) ● New cache types for HAS_CACHE column.
● New CREATE_TIME column specifies the creation
time of the view.

Privileges (New and Changed)

LDAP ADMIN privilege (new) Authorizes administration of LDAP providers.

ENCRYPTION ROOT KEY ADMIN Authorizes administration of encryption root keys.

CREATE VIRTUAL PACKAGE Allows creation of virtual packages for objects such as functions and
privilege (new) procedures.

The CREATE VIRTUAL PACKAGE privilege replaces the CREATE VIRTUAL


FUNCTION PACKAGE privilege, which is now deprecated.

CREATE VIRTUAL FUNCTION The CREATE VIRTUAL FUNCTION PACKAGE privilege is deprecated. Use
PACKAGE privilege (deprecated) its replacement, CREATE VIRTUAL PACKAGE, instead.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 363
6.5.2 SAP HANA Client Interfaces (New and Changed)

As of SAP HANA Platform 2.0 SPS 00, the SAP HANA Client Interface Programming Reference Guide contains
documentation for the following new and changed features.

BINTEXT_IS_NCLOB ODBC Connection Property (New)

Determines which SQL type is used to describe BINTEXT columns.

Client Support for Additional Operating Systems (New)

The SAP HANA client is now supported on Linux on PowerPC (Little Endian) and Windows Server 2016.

Client-Side Support for Active/Active (Read Enabled) (New)

Active/Active (read enabled) allows SAP HANA system replication to support read-only access to the
secondary system. The SQL Console in the SAP HANA Database Explorer is unable to use Active/Active (read
enabled).

Node.js Client (New)

A Node.js driver is available for download. See 2391549 for the download location. The Node.js JavaScript
API can be used to connect to SAP HANA databases, issue SQL queries, and obtain result sets.

sessionVariable Option (New)

Use the new sessionVariable option to set session variables when connecting to your database via JDBC or
ODBC.

API Support for Query Timeout (New)

You can set SQL_ATTR_QUERY_TIMEOUT on an ODBC Statement Handle via SQLSetStmtAttr(). The client
now supports the Microsoft ADO.NET Command.CommandTimeout property. Additionally, SAP HANA
HDBSQL now supports the -qto (/querytimeout) option to set a server-side timeout for all SQL operations.

What's New in the SAP HANA Platform 2.0


364 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
New Default Value for SPATIALTYPES (Changed)

The SPATIALTYPES connection property has a new default value of 2.

New Default Value for emptyTimestampIsNull (Changed)

The emptyTimestampIsNull JDBC connection property now defaults to TRUE rather than FALSE.

Empty Timestamp Is Null Connection Property Supported for ODBC and


ADO.NET

Support has been added for the Empty timestamp is null ADO.NET connection parameter, and the
EMPTYTIMESTAMPISNULL ODBC connection property. When enabled, both these connection options specify
that DAYDATE, SECONDTIME, SECONDDATE, and LONGDATE values inserted as empty strings are returned as
NULLs.

SAP HANA Clients Only Support SPS 10 and Higher (Changed)

SAP HANA clients support connecting to SAP HANA 1.0 SPS 10 and higher servers. Connecting to SAP HANA
1.0 SPS 9 and earlier servers results in an error.

JDBC Driver Uses JDK 1.8 (Changed)

The SAP HANA JDBC driver now includes support for the Java Development Kit (JDK) 1.7 (JDBC 4.1) and JDK
1.8 (JDBC 4.2) APIs. Previously, support was limited to the JDK 1.6 (JDBC 4.0) APIs. The minimum JDK version
supported by the SAP HANA JDBC driver is now JDK 1.6 (JDBC 4.0). Previously, it was JDK 1.4 (JDBC 3.0).

New ODBC Data Type SQL_TYPE_DST_GEOMETRY for SPATIALTYPES ODBC


Connection Property

Both ST_POINT and ST_GEOMETRY columns are described with this type, by default.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 365
6.5.3 SAP HANA Predictive Analysis Library (New and
Changed)

As of SAP HANA Platform 2.0, new and changed features for the Predictive Analysis Library (PAL) are available.

General

In the new release of PAL, it is possible to run parallel execution of selected PAL functions with partition table as
input from SAP HANA SQLScript using the “WITH HINT (PARALLEL_BY_PARAMETER_PARTITIONS ())”
clause. The main scenario is to run scoring function with a trained model from PAL supervised learning
algorithms, such as decision trees and random forest. Given a partitioned data table, the parallel execution of
the scoring function will be initiated on each data partition, sharing the same trained model and other function
parameters from the other unpartitioned tables. This feature works on both single-node and multiple-node
SAP HANA environment. An example is illustrated below:

CREATE COLUMN TABLE PAL_C45_DATA_TBL (


...
)
GROUP TYPE "MULTI_NODE"
GROUP NAME "NODE_ALL"
PARTITION BY 'ROUNDROBIN 8';
...
CALL PAL_DT_SCORING_PROC(PAL_C45_DATA_TBL, PAL_C45_CONTROL_TBL,
PAL_C45_TREEMODEL_TBL, ?) WITH HINT (PARALLEL_BY_PARAMETER_PARTITIONS(p1));

New Algorithms

Generalized Linear Models

Generalized linear models (GLM) is used to regress responses satisfying exponential distributions, for example,
Normal, Poisson, Binomial, Gamma, inverse Gaussian, etc. Compared with the classical linear regression, GLM
regresses a linear predictor η instead of the response itself. The linear predictor and the expected response μ is
connected via link function, η=g(μ) or μ=g-1(η), which guarantees that the regressed responses are in the
valid range. Possible link functions are identity, log, reciprocal, logit, probit, complementary log-log, and inverse
square.

Given observations yi, i=1,2,⋯,n of response, and covariates xi, i=1, 2,⋯, n, where xi is a p-dimensional
vector, the coefficients are to estimated,

where β0 is the intercept, and β is a p-dimensional vector, corresponding to the coefficients with respect to the
covariates.

What's New in the SAP HANA Platform 2.0


366 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
Cox Proportional Hazard Model
Cox proportional hazard model (CoxPHM), a special generalized linear model, is a well-known realization of
survival model demonstrating the failure/death at some time. It has the following generalization:

h(t,x)=h0(t,α)exp(xTβ)

where h0 is called baseline hazard function, and α is a parameter influencing the baseline hazard function. In
contrast to standard generalized linear models, CoxPHM does not have an intercept, as it is eliminated by
division.

Sequential Pattern Mining


Given a database of sequences each of which consists of a list of transactions ordered by timestamp,
sequential pattern mining problem is to discover all frequent sequential patterns with a user-defined threshold
(i.e. support). For example, 7% of customers buy travel insurance two days after they buy international flight
ticket. In PAL, state-of-the-art algorithm is implemented which is efficient for large search space and long
pattern dense dataset.

Gradient Boosting Decision Tree


Gradient boosting and decision tree (GBDT) is an ensemble machine learning technique for regression and
classification problems. GBDT builds the model in a stage-wise fashion and allows optimization of some loss
functions. For each iteration/week model, negative gradient (e.g. residual) is the training sample for new
classification/regression tree to fit and sum up the output values of all trees to get the final score. In the first
version, PAL GBDT supports mixed feature types, both classification and regression, square loss and logistic
loss, L1 and L2 regularization, and model evaluation and cross-validation.

Linear Discriminant Analysis


Suppose that you are given an N×D (dataset) matrix X with an N×1 (label) vector Y, each row x(i) of X is a D-
dimensional sample belonging to class yi and the total number of classes is C. Linear discriminant analysis
(LDA) assumes that the samples within each class k obey normal distribution with different means μk but same
covariance matrix Σ:

P(x│y=k)~N(μ_k,Σ),

i.e.

Under this modeling assumption, you can fit the model parameters μ1,…,μC and Σ by estimating the training
dataset.

The implementation of LDA in PAL includes three functions: LDAFIT, LDACLASSIFY and LDAPROJECT, where
the main function is LDAFIT. It performs LDA of a given dataset X with label Y and returns:

● A classifier which can be used in LDACLASSIFY to classify further unlabeled data;


● A projection model which can be used in LDAPROJECT to reduce the dimension of dataset X by projection.
The projected data can be used for visualization or further classification.
● Empirical prior of each class and some other basic information.

Fast Fourier Transform


This function realized discrete Fourier transform (DFT). Consider that a sequence of N complex elements
x0,x1,⋯,xN-1, can be transformed into an N-periodic sequence of complex numbers,

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 367
which is the so-called discrete Fourier transform (DFT). For simplicity, as it is N-periodic, k=0,1,⋯,N-1 is
often adopted.

Likewise, xn can be transformed back from Xk via inverse discrete Fourier transform (IDFT),

Also, the inverse transform is N-periodic, and generally n=0,1,⋯,N-1 is used.

Executing DFT straightforwardly will take a time complexity of O(N2). Danielson-Lanczos formula shows that
the discrete Fourier transform can be computed in O(Nlog2N), which is the so-called fast Fourier transform
(FFT).

However, this formula requires that the length of sequence is of order of 2, which is not satisfied generally. In
PAL, chirp z-transform algorithm is employed to deal with the situation that length of sequence is not exactly
power of 2, taking advantage of convolution, which assures O(Nlog2N) time complexity.

Data Summary
Data summary provides an overview of the data set, which reveals the most important information of each
variable. It is able to handle both continuous and categorical variables even with null value in the data set.

For any continuous variable, if one denotes the data in one column as xi(i=1,…,n), data summary returns the
following statistical quantities of xi. It is worth noting that these statistical quantities are calculated assuming
that the data is a sample instead of a population.

For a categorical variable, this algorithm returns the occurrence and the percentage of each category. Note that
null is also treated as a category for the categorical variable.

Correlation Function for Time Series


A correlation function gives the statistical correlation between random variables. If one considers the
correlation function between random variables and itself at different time points, then this is often referred to
as an auto-correlation function (ACF). Correlation functions of different random variables are sometimes called
cross-correlation functions (CCF). Correlation functions used in astronomy, financial analysis, econometrics,
and statistical mechanics differ only in the particular stochastic processes they are applied to.

PAL considers the sample correlation function only. Given a variable with observations x1,x2,⋯,xn, the
sample auto-covariance function (ACVF) at lag h is

And its corresponding auto-correlation function is

Evidently, and .

What's New in the SAP HANA Platform 2.0


368 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
In contrast with auto-correlation function, partial auto-correlation function (PACF) measures the relationship
between xt and xt-k after removing the effects of other time lags 1,2,⋯,k-1, which is very useful in time series
forecast. PACF can be solved iteratively with Durbin-Levinson algorithm.

The cross-covariance function and cross-correlation function between series x and y, likewise, has definitions

γXY(h)=E[(xt-μX)(yt+h-μY)]

ρXY(h)=E[(xt-μX)(yt+h-μY)]/(σXσY)=γXY(h)/(σXσY)

where μX and σX are the mean and the standard deviation of the process xt, which are constant over time due
to stationary; and similarly for yt, respectively.

Condition Index
Condition index is used to detect collinearity problem between independent variables which are later used as
predictors in a multiple linear regression model. This method firstly employs the principle component analysis
(PCA) to find out the eigenvalues and the corresponding eigenvectors of the matrix formed by independent
variables, then calculates the condition index and variance decomposition proportion. For example, if you feed
in a data matrix(Xij )n×p, this function gets singular values σi (i=1,…,p) and the V matrix(Vkj)p×p from the
singular value decomposition, then proceeds to calculate condition index

CIi=σmax/σi,

and the condition number

CN=σmax/σmin,

which is the largest value of condition indices. Note that a diagonal matrix D=diag(σ1,…,σp), you can
calculate variance decomposition proportions πjk=ϕjk /ϕk, where and . This quantity
illustrates how much variance of the estimated coefficient for a variable can be explained by the k-th principle
component.

Generally speaking, a dataset with condition number larger than 30 indicates the existence of a possible
collinearity. Variables which are involved in collinearity have variance decomposition proportions greater than
0.5.

Enhanced Algorithms

Multiple Linear Regression


● Added Cholesky decomposition as the new algorithm to solve the linear equation.
● Added ADMM (alternating direction method of multipliers) as the new algorithm to solve elastic net
regularization problem.
● Enabled categorical variable support.
● Added optional statistical tests: Durbin-Watson test, Ramsey RESET test, Breusch-Pagan test, and
Kolmogorov-Smirnov normality test.
● Enhanced multi-thread strategy when using QR decomposition.

Principal Component Analysis (PCA)


● Significant performance enhancement

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 369
Latent Dirichlet Allocation (LDA)

● Significant performance enhancement

Random Distribution Sampling

● Added Poisson distribution.

Random Forest

● Added parameter NODE_SIZE to control the minimum number of records in leaf node.
● Added parameter CALCULATE_OOB to control if OOB error is calculated.
● Added parameter SPLIT_THRESHOLD to set the threshold for Gini index to control tree growing.
● Exposed parameter THREAD_NUMBER to allow explicit control over the multi-threading setting.
● Exposed parameter SEED to set the seed for random number generator.

Forecast Smoothing

● Enhanced model selection logic.


● Added range limit of tuning parameters (e.g. ALPHA, BETA, GAMMA).
● Added prediction interval of forecast.

C4.5 Decision Tree

● Default value of parameter SPLIT_THRESHOLD changed to 1e-5.

CART Decision Tree

● Default value of parameter SPLIT_THRESHOLD changed to 1e-5.

Seasonality Test

● Outputs seasonal and trend components in additional to random component for seasonality test.
● Enabled multi-threading.

Trend Test

● Added additional statistics as output.

K-means, K-medians, K-medoids

● Default value of parameter EXIT_THRESHOLD changed to 1.e-6.

Auto ARIMA

● Enabled multi-threading for exhaustive parameter search.

Support Vector Machine (SVM)

● Default value of parameter RBF_GAMMA changed to 1.0 / number of features.

What's New in the SAP HANA Platform 2.0


370 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
6.5.4 SAP HANA SQLScript Reference (New and Changed)

As of SAP HANA Platform 2.0 SP00, the following new features and changes are available in SAP HANA
SQLScript and are documented in the SAP HANA SQLScript Reference.

● Enhancement of SQLScript Query Export: nested calls, DMLs, DDLs and dynamic SQL can be now
exported as well
● Support of explicit parallelization of read-write procedure calls
● Size operator for tabular arguments
● Initialization of declared table variables
● Scalar UDF result cache
● Support for synonyms in HEADER ONLY-artifacts
● MAP_MERGE operator for evaluating each input in parallel and union all intermediate results
● BIND_AS functions for parameterization control.

6.5.5 SAP HANA Core Data Services (CDS) Reference (New


and Changed)

As of SAP HANA Platform 2.0 SP00, the following new features and changes are documented in the SAP HANA
Core Data Services (CDS) Reference.

The SAP HANA Core Data Services (CDS) Reference for SAP HANA 2.0 SPS 00 includes information for CDS
support in both the XS classic and the XS advanced run-time environments.

For SAP HANA Platform 2.0 SPS 00, SAP HANA XS advanced provides the following updates and new features
for Core Data Services (CDS), which are documented in the SAP HANA Core Data Services (CDS) Reference:

● Support for subqueries


● Support for LIMIT/OFSET in queries
● Support for the clause GENERATED ALWAYS AS <expression clause> in an entity definition
● Support for the clause GENERATED [ALWAYS | BY DEFAULT] AS IDENTITY in an entity definition
● Java OData support for CDS
● Support for DCL-based access policies in CDS
CDS access-policy documents are coded in the Data Control Language (DCL). In a CDS access-policy
document, you can create CDS roles and CDS aspects for instance-based authorizations.
● Support for CDS aspects
CDS aspects associate an attribute with permitted values of a user.
● Support for CDS roles
CDS access-policy documents contain a set of CDS role definitions coded in the Data Control Language
(DCL). You can use CDS roles to create instance-based authorizations.

What's New in the SAP HANA Platform 2.0


SAP HANA Platform 2.0 SPS 00 Features PUBLIC 371
6.5.6 SAP HANA Analytics Catalog (BIMC Views) Reference
(New)

As of SAP HANA Platform 2.0 SP00, the new SAP HANA Analytics Catalog (BIMC Views) Reference is available
in the reference library.

The SAP HANA Analytics Catalog (BIMC Views) Reference describes the SAP HANA Analytics Catalog, which
consists of tables and views with the prefix “BIMC” located in the schema _SYS_BI. The catalog contains
metadata required by analytic clients such as Analysis Office and Business Objects Cloud. The metadata is also
required for access via Multi-Dimensional Expressions (MDX).

The SAP HANA Analytics Catalog is populated with metadata when the following analytic models are deployed:

● Calculation views
● Analytic views
● Attribute views (the column CUBE_NAME is filled in with the '$ATTRIBUTE' value for these models)

What's New in the SAP HANA Platform 2.0


372 PUBLIC SAP HANA Platform 2.0 SPS 00 Features
7 Deprecated Features

A deprecated feature in the SAP HANA platform is a feature that will be removed in a future support package
stack, at the earliest one support package stack after the start of deprecation.

Certain features are deprecated in specific support package stacks of the SAP HANA platform, starting with
SAP HANA 2.0 SPS 01.

SAP HANA Extended Application Services classic model (XS classic) and SAP HANA Repository are
deprecated as of SAP HANA 2.0 SPS 02.

Related Information

SAP HANA 2.0: Deprecations reported by the HANA statistics server (SAP Note 2425002)
Deprecation of SAP HANA extended application services, classic model and SAP HANA Repository (SAP Note
2465027)
Central Note for Behavioral Changes in SAP HANA (SAP Note 2679360)

What's New in the SAP HANA Platform 2.0


Deprecated Features PUBLIC 373
8 Important Disclaimer for Features in SAP
HANA

For information about the capabilities available for your license and installation scenario, refer to the Feature
Scope Description for SAP HANA.

What's New in the SAP HANA Platform 2.0


374 PUBLIC Important Disclaimer for Features in SAP HANA
Important Disclaimers and Legal Information

Hyperlinks
Some links are classified by an icon and/or a mouseover text. These links provide additional information.
About the icons:

● Links with the icon : You are entering a Web site that is not hosted by SAP. By using such links, you agree (unless expressly stated otherwise in your
agreements with SAP) to this:

● The content of the linked-to site is not SAP documentation. You may not infer any product claims against SAP based on this information.
● SAP does not agree or disagree with the content on the linked-to site, nor does SAP warrant the availability and correctness. SAP shall not be liable for any
damages caused by the use of such content unless damages have been caused by SAP's gross negligence or willful misconduct.

● Links with the icon : You are leaving the documentation for that particular SAP product or service and are entering a SAP-hosted Web site. By using such
links, you agree that (unless expressly stated otherwise in your agreements with SAP) you may not infer any product claims against SAP based on this
information.

Beta and Other Experimental Features


Experimental features are not part of the officially delivered scope that SAP guarantees for future releases. This means that experimental features may be changed by
SAP at any time for any reason without notice. Experimental features are not for productive use. You may not demonstrate, test, examine, evaluate or otherwise use
the experimental features in a live operating environment or with data that has not been sufficiently backed up.
The purpose of experimental features is to get feedback early on, allowing customers and partners to influence the future product accordingly. By providing your
feedback (e.g. in the SAP Community), you accept that intellectual property rights of the contributions or derivative works shall remain the exclusive property of SAP.

Example Code
Any software coding and/or code snippets are examples. They are not for productive use. The example code is only intended to better explain and visualize the syntax
and phrasing rules. SAP does not warrant the correctness and completeness of the example code. SAP shall not be liable for errors or damages caused by the use of
example code unless damages have been caused by SAP's gross negligence or willful misconduct.

Gender-Related Language
We try not to use gender-specific word forms and formulations. As appropriate for context and readability, SAP may use masculine word forms to refer to all genders.

What's New in the SAP HANA Platform 2.0


Important Disclaimers and Legal Information PUBLIC 375
www.sap.com/contactsap

© 2019 SAP SE or an SAP affiliate company. All rights reserved.

No part of this publication may be reproduced or transmitted in any form


or for any purpose without the express permission of SAP SE or an SAP
affiliate company. The information contained herein may be changed
without prior notice.

Some software products marketed by SAP SE and its distributors


contain proprietary software components of other software vendors.
National product specifications may vary.

These materials are provided by SAP SE or an SAP affiliate company for


informational purposes only, without representation or warranty of any
kind, and SAP or its affiliated companies shall not be liable for errors or
omissions with respect to the materials. The only warranties for SAP or
SAP affiliate company products and services are those that are set forth
in the express warranty statements accompanying such products and
services, if any. Nothing herein should be construed as constituting an
additional warranty.

SAP and other SAP products and services mentioned herein as well as
their respective logos are trademarks or registered trademarks of SAP
SE (or an SAP affiliate company) in Germany and other countries. All
other product and service names mentioned are the trademarks of their
respective companies.

Please see https://www.sap.com/about/legal/trademark.html for


additional trademark information and notices.

THE BEST RUN

You might also like