Professional Documents
Culture Documents
1 Getting Started. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.1 Open a Support Connection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
2 PUBLIC Content
5 Update the Data Provisioning Agent. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
5.1 Update the SAP ASE Adapter Preferences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Content PUBLIC 3
Troubleshoot Data Profiling Issues. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Troubleshoot Search Issues. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
API Error Messages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Troubleshooting Tips. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .122
7 Administer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
7.1 Assign Roles and Privileges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
7.2 Create Remote Sources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Add a Remote Source in the Web-based Development Workbench. . . . . . . . . . . . . . . . . . . . . . . . 130
Adapter Remote Source User Credentials. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
7.3 Activate and Execute a Replication Task. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
7.4 Activate and Execute a Flowgraph. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
7.5 Administering Agent Groups. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Create or Remove an Agent Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Configure Agents in an Agent Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Configure Remote Sources in an Agent Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
7.6 Uninstall the Data Provisioning Agent. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .138
Uninstall from the Command Line. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .139
7.7 Back Up the Data Provisioning Agent Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .139
7.8 Troubleshooting the Data Provisioning Agent. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Data Provisioning Agent Log Files and Scripts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Agent Was Started by the Root User. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Agent JVM Out of Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Adapter Prefetch Times Out. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .142
Agent Reports Errors when Stopping or Starting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Uninstalled Agent Reports Alerts or Exceptions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
7.9 Configuring the Operation Cache. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .144
7.10 Ensure Workload Management and Resource Consumption. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .145
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
4 PUBLIC Content
8.5 Apache Camel Microsoft Access. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Set Up the Camel MS Access Adapter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .160
MS Access Remote Source Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Camel MS Access Adapter Remote Source SQL Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . 161
MS Access to SAP HANA Data Type Mapping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .161
8.6 IBM DB2 for z/OS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Setting DB2 UDB Environment Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
IBM DB2 z/OS Permissions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Bind the DB2 SYSHL Package. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Preparing JDBC Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
IBM DB2 z/OS Remote Source Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
IBM DB2 z/OS to SAP HANA Data Type Mapping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .166
8.7 File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Configure the File Adapter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
File Adapter Remote Source Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
Generate the Configuration File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
File Format Configuration Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
Remote Source Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .179
HDFS Target Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
XML Source and Target Setup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
8.8 Google+. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
Google+ Remote Source Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
Google+ Remote Source SQL Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .181
Google+ Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
8.9 Hive. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
Hive Remote Source Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Hive to SAP HANA Data Type Mapping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
8.10 IBM DB2 Log Reader. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .191
Remote Database Setup for DB2 Realtime. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .192
DB2LogReaderAdapter Preferences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
DB2 Log Reader Remote Source Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
DB2 to SAP HANA Data Type Mapping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
DB2 Database Cleanup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Log Reader Adapter Log Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
8.11 Oracle Log Reader. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
Remote Database Setup for Oracle Realtime. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .209
OracleLogReaderAdapter Preferences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
Oracle Log Reader Remote Source Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .216
Oracle RAC Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Oracle to SAP HANA Data Type Mapping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
Database Cleanup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Content PUBLIC 5
Log Reader Adapter Log Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
Synchronize the Oracle and DP Agent Timestamp. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
8.12 Microsoft SQL Server Log Reader. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
Remote Database Setup for SQL Server Realtime. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
MssqlLogReaderAdapter Preferences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
Microsoft SQL Server Log Reader Remote Source Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . 241
Using a Schema Alias . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
Microsoft SQL Server to SAP HANA Data Type Mapping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .247
Microsoft SQL Server Database Cleanup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Log Reader Adapter Log Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
8.13 Microsoft Excel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
MS Excel Adapter Preferences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .249
MS Excel Remote Source Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
MS Excel to SAP HANA Data Type Mapping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .252
8.14 OData. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
OData Adapter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
Installation and Deployment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
OData to SAP HANA Data Type Mapping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .257
Consume HTTPS OData Services. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
8.15 Microsoft Outlook. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
Outlook Adapter Preferences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .259
Outlook Remote Source Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Outlook Remote Source SQL Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .259
PST File Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .260
8.16 SAP ABAP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Authorizations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Using RFC Streaming or Non-RFC Streaming. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
ABAP Adapter Remote Source Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
Initial Load. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
Change Data Capture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
Delta Modes Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
Data Type Mapping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
8.17 SAP ASE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Set Up Your SAP ASE Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
SAP ASE Remote Source Configuration Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
SAP ASE Adapter Preferences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
SAP ASE to SAP HANA Data Type Mapping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .279
8.18 SAP ECC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
Terminology. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .282
Installation and Setup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
Permissions for ECC Dictionary Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
6 PUBLIC Content
Create an ECC Remote Source. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
SAP HANA (Remote) to SAP HANA (Target) Data Type Mapping. . . . . . . . . . . . . . . . . . . . . . . . . 300
9 Security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
9.4 Auditing Activity on SAP HANA Smart Data Integration Objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Content PUBLIC 7
1 Getting Started
This guide describes the main tasks and concepts necessary for the ongoing operation and administration of SAP
HANA smart data integration and SAP HANA smart data quality.
Architecture
Administrator tasks to enable functionality
Data Provisioning Agent installation and configuration
Security
Data Provisioning adapters
Monitoring
For information about administration of the overall SAP HANA system, refer to the SAP HANA Administration
Guide.
Related Information
In some support situations, it may be necessary to allow an SAP support engineer to log into your system to
analyze the situation.
Procedure
1. To enable a support user to log on to your system, complete the following tasks:
a. Install the SAProuter as described on SAP Support Portal.
b. Set up a support connection as described in SAP Note 1634848 (SAP HANA database service
connections).
c. Configure a Telnet connection as described in SAP Note 37001 (Telnet link to customer systems)
d. Configure an SAP HANA database connection as described in SAP Note 1592925 (SAP HANA studio
service connection).
e. Configure a TREX/BIA/HANA service connection as described in SAP Note 1058533 (TREX/BIA/HANA
service connection to customer systems).
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
8 PUBLIC Getting Started
2. Create a database user and grant the MONITORING role.
The MONITORING role allows a database user to open the SAP HANA Administration Console perspective
with read-only access to the system, system views, statistics views, trace files, and so on. However, this role
does not provide any privileges for accessing application data. With the MONITORING role, it is also not
possible to change the configuration of or start and stop a system. You can grant the MONITORING role to a
support engineer if SAP support needs to connect to the system. Depending on the issue to be analyzed,
further privileges may be needed to allow sufficient analysis (for example, to access application data or data
models).
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Getting Started PUBLIC 9
2 Overview of the Architecture
2.1 Architecture
These diagrams represent common deployment architectures for using smart data integration and smart data
quality with SAP HANA.
In all deployments, the basic components are the same. However, the connections between the components may
differ depending on whether SAP HANA is deployed on premise, in the cloud, or behind a firewall.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
10 PUBLIC Overview of the Architecture
Figure 2: SAP HANA deployed in the cloud or behind a firewall
The following tables explain the diagram and the network connections in more detail.
Outbound Connections
Data Provisioning Agent When SAP HANA is deployed on premise, the 5050
Data Provisioning Server within SAP HANA con
nects to the agent using the TCP/IP protocol.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Overview of the Architecture PUBLIC 11
Inbound Connections
Data Provisioning Agent When SAP HANA is deployed in the cloud or be 80xx
hind a firewall, the Data Provisioning Agent con
nects to the SAP HANA XS engine using the 43xx
HTTP/S protocol.
Note
When the agent connects to SAP HANA in the
cloud over HTTP/S, data is automatically gzip
compressed to minimize the required network
bandwidth.
Related Information
Several tools are available for the administration of SAP HANA smart data integration and SAP HANA smart data
quality.
Tool Description
SAP HANA studio The SAP HANA Administration Console perspective of the SAP HANA stu
dio is the main tool for general system administration and monitoring
tasks.
Data Provisioning Agent Configuration tool This tool manages Data Provisioning Agents and adapters, and connec
tions to SAP HANA.
SAP HANA cockpit The SAP HANA cockpit is an SAP Fiori Launchpad site that provides you
with a single point-of-access to a range of Web-based applications for the
administration of SAP HANA. You access the SAP HANA cockpit through a
Web browser.
Through the SAP HANA cockpit, you can monitor Data Provisioning
Agents, tasks, and remote subscriptions.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
12 PUBLIC Overview of the Architecture
Tool Description
SAP HANA Enterprise Semantic Services Admin The SAP HANA Enterprise Semantic Services Administration user inter
istration tool face is a browser-based application that lets you manage artifacts for se
mantic services. To launch the SAP HANA Enterprise Semantic Services
Administration tool, enter the following URL in a web browser:http://
<your_HANA_instance:port>/sap/hana/im/ess/ui
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Overview of the Architecture PUBLIC 13
3 Configure Smart Data Integration
Below is a list of high level tasks needed to set up SAP HANA smart data integration.
When SAP HANA is first installed, the Data Provisioning Server is disabled. Enabling the Data Provisioning Server
gives you the ability to use SAP HANA smart data integration.
Context
In a single-container SAP HANA database, you can enable the Data Provisioning Server by setting the dpserver
instances to 1.
Procedure
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
14 PUBLIC Configure Smart Data Integration
2. Expand the daemon.ini configuration file.
3. Select and expand dpserver, select Instances, right click, and choose Change.
4. Set Instances to 1.
Results
Next: Download and Deploy the Data Provisioning Delivery Unit [page 16]
Related Information
To enable the Data Provisioning Server on tenants in a multi-database container environment, use the ALTER
DATABASE SQL command.
In a scale-out SAP HANA database scenario, you should enable the Data Provisioning Server only on the host that
runs the master index server. Slave nodes should not have enabled Data Provisioning Server instances.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 15
3.2 Download and Deploy the Data Provisioning Delivery Unit
Download and import the Data Provisioning delivery unit using SAP HANA studio or SAP HANA Application
Lifecycle Management.
You will need to download the Data Provisioning delivery unit. Then, using SAP HANA studio or SAP HANA
Application Lifecycle Management tools, deploy the delivery unit to obtain the following functionality:
Functionality Description
Monitoring The monitoring application provides a browser based interface to monitor agents, tasks and remote sub
scriptions created in the SAP HANA system. The monitor application needs to be configured in the SAP
HANA Cockpit.
Proxy The Proxy application provides a way for the Data Provisioning Agent to communicate with the Data Provi
sioning Server. It is required when SAP HANA is running in the cloud or when the remote sources are be
hind a firewall. In this case the Data Provisioning Agent stays behind the firewall (that is, close to the re
mote source) and communicates with SAP HANA (specifically the dpserver) via the Proxy application run
ning in the XS engine.
Admin The Admin application provides a way for the Data Provisioning Agent Configuration tool to issue SQL com
mands necessary to register the agent and the adapters in the SAP HANA system. This application is used
when SAP HANA is in the cloud and the Data Provisioning Agent is behind a firewall.
Next: Install and Configure the Data Provisioning Agent [page 18]
Download the data provisioning delivery unit from the SAP Software Download Center.
Context
The data provisioning delivery unit is available in the same download area as the data provisioning agent.
Procedure
1. Go to the SAP Software Download Center, and navigate to the following location: SAP Software Download
Center Software Downloads Installations & Upgrades By Alphabetical Index (A-Z) H SAP HANA SDI
SAP HANA SDI 1.0
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
16 PUBLIC Configure Smart Data Integration
2. In the Downloads tab, choose Installation.
3. Select the ZIP file to download, and choose Download from the action menu.
4. In the downloaded ZIP file, navigate to DATA_UNIT/HANA_DP_10, and extract the HANAIMDP<##>_0.ZIP
file.
5. In the HANAIMDP<##>_0.ZIP file, find and extract the HANAIMDP.tgz file.
This is the delivery unit file that needs to be imported into SAP HANA.
Related Information
You can import the Data Provisioning delivery unit from SAP HANA studio.
Note
When SAP HANA is deployed in a multitenant database container configuration, you must import the delivery
unit into the tenant database.
Prerequisites
Ensure that you have been granted the SYSTEM privilege REPO.IMPORT to be able to import the DU.
Procedure
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 17
7. Click Finish.
You can import the Data Provisioning delivery unit through SAP HANA Application Lifecycle Management.
Note
When SAP HANA is deployed in a multitenant database container configuration, you must import the delivery
unit into the tenant database.
Procedure
1. If not already granted, grant the role sap.hana.xs.lm.roles::Administrator to the user name you will use to login
to ALM.
a. In SAP HANA studio Systems view, expand the name of your SAP HANA server and choose Security
Users System .
b. On the Granted Roles tab, click the green + icon in the upper left corner.
c. On the Select Roles dialog, type lm in the search string box.
d. Select role sap.hana.xs.lm.roles::Administrator and click OK.
2. Access ALM by typing the following URL in a web browser:
<host name>:80<2-digit instance number>/sap/hana/xs/lm
3. Log in to ALM as the user name you authorized in step 1.
The first time you log in, a pop-up window appears to enter a name for this server.
4. On the ALM Home tab, click the Delivery Units tile.
5. Click the Import tab.
6. Click Browse and navigate to the location where you downloaded the delivery unit, select HANAIMDP.tgz and
click Open.
7. Click Import.
After successful import, the name HANA_IM_DP (sap.com) appears in the list of delivery units on the left.
The Data Provisioning Agent provides secure connectivity between the SAP HANA database and your on-premise,
adapter-based sources.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
18 PUBLIC Configure Smart Data Integration
1. Planning and Preparation [page 19]
Before you install the Data Provisioning Agent, plan your installation to ensure that it meets your system
landscape's needs.
2. Install the Data Provisioning Agent [page 26]
You can install the Data Provisioning Agent as a standalone installation on a Windows or Linux machine.
3. Configuring the Data Provisioning Agent [page 29]
Use the SAP Data Provisioning Agent Configuration Tool to connect to the SAP HANA server and
configure the agent and adapters.
4. Register Adapters with SAP HANA [page 42]
Before you can connect to remote sources using adapters, you must register them with SAP HANA.
Previous: Download and Deploy the Data Provisioning Delivery Unit [page 16]
Before you install the Data Provisioning Agent, plan your installation to ensure that it meets your system
landscape's needs.
Restriction
We do not recommend installing the Data Provisioning Agent directly on the SAP HANA system.
Note
For information about Data Provisioning Agent, operating system, and DBMS compatibility, refer to the
Product Availability Matrix.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 19
Note
On Linux, you can install multiple agents on a single host machine. On Windows, only a single Data
Provisioning Agent installation is supported per host.
Parent topic: Install and Configure the Data Provisioning Agent [page 18]
Related Information
Install the Data Provisioning Agent on a supported platform that meets the minimum system requirements.
Note
You can find a complete list of all SAP HANA components and the respective SAP HANA hardware and
software requirements in the Product Availability Matrix (PAM) on the Support Portal and in the SAP
Community Network.
For the Data Provisioning Agent host system, the following 64-bit platforms are supported:
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
20 PUBLIC Configure Smart Data Integration
SUSE Linux Enterprise Server (SLES)
Red Hat Enterprise Linux (RHEL)
Software Requirements
The host system must have the 64-bit Java JDK installed.
For more information about supported Java versions, see the Product Availability Matrix (PAM).
In order to install or uninstall the agent, you must use a user that has root privileges.
The system must have gcc 4.7 to run the Data Provisioning Agent service.
For more information see SAP Note 2001528.
Related Information
The Data Provisioning Agent installation package is available as optional component SAP HANA SDI 1.0 on the
SAP Software Download Center.
Note
Installation of the Data Provisioning Agent requires the correct version of SAP HANA. Subsequent support
packages or revisions of SAP HANA may require an equivalent update to the Data Provisioning Agent. For
details, see the Product Availability Matrix .
On the SAP Software Download Center , you can find the installation packages in the following locations:
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 21
To verify the agent version, see the Product Availability Matrix .
SAP JVM
The SAP JVM is the default Java runtime supported by the Data Provisioning Agent, and is bundled with the Data
Provisioning Agent installation package. However, to obtain any security patches, you can independently
download the latest releases of the SAP JVM from the same location and update your agent installation.
SAP Software Download Center Software Downloads Installations & Upgrades By Alphabetical Index (A-Z)
H SAP HANA SDI SAP HANA SDI 1.0 Comprised Software Versions
For more information about changing the Java runtime, see Reconfigure the Java Runtime Environment.
Related Information
Before you can install the Data Provisioning Agent on AWS, you must prepare the environment.
Procedure
Note
You may need to create the /download directory if it does not exist.
3. Log in to the AWS host as ec2-user and start a sudo bash command line.
sudo bash
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
22 PUBLIC Configure Smart Data Integration
4. Install the Java Development Kit.
5. Change to the ec2-user user and extract the Data Provisioning Agent installation program.
su ec2-user
./SAPCAR xvf IMDB_DPAGENT100_00_2-70000174.SAR
Results
The Java Development Kit is installed and the Data Provisioning Agent installation program is available on the
AWS host. You can continue to install the Data Provisioning Agent from the command line.
Related Information
When SAP HANA is installed on premise, you must obtain a certificate for the agent and import certificates on
both the agent host machine and the SAP HANA system.
Prerequisites
Before configuring the agent, ensure that the SAP HANA system is already configured for SSL. For more
information, see the SAP HANA Security Guide.
Note
You need the password for the keytool Java program to generate a keystore and import a HANA certificate.
You can find the password, commands and the instructions in the keytool.txt file at <DPAgent_root>\ssl
\keytool.txt.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 23
Procedure
<agent_hostname> must be the fully qualified hostname of the machine where the agent is installed.
2. Obtain a signed certificate for the agent and import it into the keystore.
a. Generate the certificate request.
3. Import the SAP HANA server root certificate into the agent keystore.
You can obtain the certificate by exporting it with the SAP Web Dispatcher. For more information, see SAP
Note 2009483 .
4. On SAP HANA, add the signed agent certificate to the sapcli Personal Security Environment (PSE).
You can add the certificate with the SAP Web Dispatcher. For more information, see SAP Note 2009483 .
5. Configure the data provisioning agent for SSL.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
24 PUBLIC Configure Smart Data Integration
3.3.1.5 Download the SAP HANA Server Certificate
When SAP HANA is configured for HTTPS, you need a copy of the server certificate to configure the SAP HANA
Data Provisioning Agent.
Tip
To verify whether the SAP HANA server is configured for HTTPS, examine the port number being used. If the
port number is 80<xx>, the server is using standard HTTP. If the port number is 43<xx>, the server is using
HTTPS.
When SAP HANA is located in the cloud, it is always configured for HTTPS communication.
Context
The SAP HANA server certificate can be downloaded from a web browser.
Tip
If the agent keystore does not have the server certificate required for HTTPS communication, the Data
Provisioning Agent Configuration tool allows you to directly import the server certificate into the agent
keystore. This procedure is required only if you do not want the configuration tool to directly import the
certificate, and want to manually import it separately.
Procedure
The exact steps to open the certificate information depend on your browser.
For Internet Explorer, click on the lock icon in the address bar, and click View Certificates.
For Chrome, click on the lock icon in the address bar, and click Connection Certificate Information .
3. In the Details tab, click Copy to file.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 25
3.3.2 Install the Data Provisioning Agent
You can install the Data Provisioning Agent as a standalone installation on a Windows or Linux machine.
Prerequisites
To install the Data Provisioning Agent, you must be logged on as a user with root privileges.
On Windows, you must use the Administrator user or a user in the administrators group.
On Linux, you must use a user in the root group, or a user with sudo permission.
Note
We recommend that you do not start the Data Provisioning Agent while logged in as the root user.
If you are logged in as the root user for installation, do not start the Data Provisioning Agent as the root
user after the installation is complete. Instead, log in with the service user specified during installation, and
then start the Data Provisioning Agent.
If you accidentally start the agent as the root user, see Agent Was Started by the Root User [page 141].
When you install the Data Provisioning Agent on Linux, there are additional prerequisites:
GTK 2 is installed so that you can run the graphical installation tool.
This user is authorized to open a display.
The Java runtime is accessible either via the PATH or JAVA_HOME variables or by specifying the --vm option.
Tip
To set the -vm option, open the dpagent.ini configuration file located by default at /usr/sap/
dataprovagent, and add -vm <path_to_java_installation>/<java_executable>.
A local X11 graphical environment and an X server must be available on the machine where you perform the
installation.
Context
Caution
When you install the Data Provisioning Agent, the agent will use, by default, a non-secure channel when
communicating with the SAP HANA server. To enable secure communication, you must configure SSL with the
Data Provisioning Agent Configuration tool after installation. For more information, see Connect to SAP HANA
on-premise with SSL and Connect to SAP HANA in the cloud.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
26 PUBLIC Configure Smart Data Integration
Procedure
Caution
Do not specify the ) and password of the user that should run the agent service. root user as the
installation owner. The installation owner must be a user other than the root user and outside the root
group.
6. If you want to use agent clustering, specify the shared directory for the agent group.
7. If you want to use a custom Java Runtime Environment instead of the bundled SAP JVM, specify the path to
the JRE installation.
For example:
On Windows, C:\Program Files\Java\jre7
On Linux, /usr/java/jdk1.7.0_71/jre
Note
) andThe Data Provisioning Agent supports only 64-bit Java Runtime Environments.
Results
Next Steps
After installing the Data Provisioning Agent, we recommend that you review the installation log file for any errors,
and take any necessary corrective actions.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 27
Task overview: Install and Configure the Data Provisioning Agent [page 18]
Related Information
If you cannot use or do not want to use the graphical installation manager, you can install the Data Provisioning
Agent using the command line tool.
Procedure
Results
The Data Provisioning Agent is installed without displaying the graphical installation manager.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
28 PUBLIC Configure Smart Data Integration
Next Steps
Caution
If you created a password XML file for the installation, be sure to delete it after the installation process has
completed. If you leave the password XML file on the server, it is a potential security risk.
The Data Provisioning Agent installation is logged by the system. There are two files written during installation.
On Windows, %TEMP%\hdb_dataprovagent_<timestamp>
On Linux, /var/tmp/hdb_dataprovagent_<timestamp>
The default installation paths are specific to the operating system on which the Data Provisioning Agent is
installed.
In this documentation, these root installation paths are represented by the variable <DPAgent_root>.
Use the SAP Data Provisioning Agent Configuration Tool to connect to the SAP HANA server and configure the
agent and adapters.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 29
Parent topic: Install and Configure the Data Provisioning Agent [page 18]
Before you can use the configuration tool to register the agent or deploy and register adapters, you must connect
to the SAP HANA server.
The steps required to connect the Data Provisioning Agent to the SAP HANA server vary depending on whether
the SAP HANA server is installed on-premise or in the cloud, and whether it is configured for secure SSL
connections.
Specify connection information and administrator credentials when the SAP HANA system is located on-premise
and does not require a secure SSL connection.
Procedure
Note
Start the configuration tool using the Data Provisioning Agent installation owner. The installation owner is
the same user that is used to start the agent service.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
30 PUBLIC Configure Smart Data Integration
3. Connect to the SAP HANA server.
a. Click Connect to HANA.
b. Specify the hostname, port, and HANA administrator credentials for the SAP HANA server.
Note
The administrator user that you use to connect to the SAP HANA system must have been granted the
AGENT ADMIN and ADAPTER ADMIN system privileges. If the user that you want to use does not
already have these privileges, you must grant them before you can connect to the SAP HANA system.
Tip
To determine the correct port number when SAP HANA is deployed in a multi-database configuration,
execute the following SQL statement:
Related Information
Specify connection information, administrator credentials, and SSL configuration information when the SAP
HANA system is located on-premise and requires a secure SSL connection.
Prerequisites
Before you can configure the Data Provisioning Agent to use SSL with SAP HANA on premise, you must obtain the
SSL certificates and import them to both the agent host machine and the SAP HANA system.
For more information, see Prepare SSL when SAP HANA is on premise.
Procedure
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 31
2. Start the configuration tool.
Note
Start the configuration tool using the Data Provisioning Agent installation owner. The installation owner is
the same user that is used to start the agent service.
3. In the configuration tool, choose Configure SSL, enter the SSL configuration information, and select Enable
SSL for Agent to HANA communication on TCP.
4. Connect to the SAP HANA server.
a. Return to the configuration tool, or restart it if needed.
b. Click Connect to HANA.
c. Specify the hostname, port, and HANA administrator credentials for the SAP HANA server.
Note
The administrator user that you use to connect to the SAP HANA system must have been granted the
AGENT ADMIN and ADAPTER ADMIN system privileges. If the user that you want to use does not
already have these privileges, you must grant them before you can connect to the SAP HANA system.
Tip
To determine the correct port number when SAP HANA is deployed in a multi-database configuration,
execute the following SQL statement:
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
32 PUBLIC Configure Smart Data Integration
3.3.3.1.3 Connect to SAP HANA on Cloud
Configure SAP HANA users and specify connection information, user credentials, and SSL configuration
information when the SAP HANA system is located in the cloud.
Context
When SAP HANA is in the cloud, all communication is initiated by the agent. The agent polls the server to see if
there are any messages for the agent to act upon.
Procedure
For complete information, see Download and Deploy the Data Provisioning Delivery Unit.
2. Create or grant privileges to the HANA administration and HANA XS Agent users.
a. Configure the HANA administration user.
This user connects to the SAP HANA system via the configuration tool to perform administrative tasks
such as registering agents, registering adapters, and so on.
The HANA XS Agent user is used only for messaging between the Data Provisioning Agent and SAP HANA
on Cloud. The credentials for this user are saved in the Data Provisioning Agent's secure store for use at
runtime.
Caution
It is strongly recommended that this user has only the minimally required application privilege, and no
additional administrative privileges.
Tip
The Data Provisioning Agent Configuration tool can create the HANA XS Agent user during the agent
configuration process. If you want the configuration tool to create the user, the administration user
that you use to connect to the SAP HANA system must have the USER ADMIN system privilege, as well
as the EXECUTE object privilege on the procedure GRANT_APPLICATION_PRIVILEGE.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 33
For complete information about creating new users and granting permissions, see the SAP HANA
Administration Guide.
3. Connect to the SAP HANA server.
a. Click Connect to HANA.
b. Select HANA On Cloud.
c. Select Use HTTPS.
When you attempt to connect to HANA on Cloud with HTTPS for the first time, the configuration tool
allows you to automatically download and import the SAP HANA server certificates into the Data
Provisioning Agent keystore.
Note
If you prefer not to import the server certificates by this method, you must manually download and
import the certificates. For more information, see Manually Configure SSL for HANA on Cloud.
d. Specify the hostname, HTTP(s) port, and HANA administrator user credentials for the SAP HANA server.
The HANA XS Agent user is used only for messaging between the Data Provisioning Agent and the SAP
HANA server, and must be different from the HANA administration user that you used to connect to the
SAP HANA server.
Choose Create User if you want the configuration tool to create a new user.
Tip
To create a new user from the configuration tool, the administration user that you use to connect
to the SAP HANA system must be granted the USER ADMIN system privilege, as well as the
EXECUTE object privilege on the procedure GRANT_APPLICATION_PRIVILEGE.
Choose Update User Credentials if you already specified a HANA XS Agent user and want to change
the user's credentials.
4. Register the Data Provisioning Agent with SAP HANA.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
34 PUBLIC Configure Smart Data Integration
(Optional) Manually Configure SSL for HANA on Cloud
If you do not want to automatically download the SAP HANA server certificates the first time you attempt to
connect to HANA on Cloud, you must manually download and import the certificates.
Procedure
For complete information, see Download the SAP HANA Server Certificate.
b. Import the SAP HANA server root certificate into the agent keystore.
Note
You need the password for the Java keytool program to generate a keystore and import the SAP
HANA server certificate. For the password, commands, and additional information, see the
keytool.txt file located at <DPAgent_root>\ssl\keytool.txt.
Tip
Change the default password for the keystore to safeguard your certificates.
For the password, if you explicitly changed the keystore password, specify the new password here.
Otherwise, leave the default password as-is.
e. Select Use SSL to communicate with HANA on Cloud and click Save.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 35
3.3.3.2 Start and Connect from the Command Line
If you cannot use or do not want to use the graphical configuration tool, you can start the Data Provisioning Agent
and connect to SAP HANA using command line tools.
Procedure
agent.name=CLOUD_AGENT
cloud.deployment=AWS_
cloud.useSSL=true
hana.port=443
hana.server=<server_name>
Note
The cloud.deployment should always be left blank unless SAP HANA is deployed on AWS.
3. If there is a firewall between the agent host and the SAP HANA server, specify additional proxy configuration
parameters.
cloud.useProxy=true
proxyHost=<hostname>
proxyPort=<port_number>
./dpagent
5. Navigate to <DPAgent_root>/agentutils and configure the SAP HANA XS username and password.
a. Set the SAP HANA XS username.
Note
The version of DPAgentInstallerUtils-<version>.jar depends on the version of the Data
Provisioning Agent. Ensure that you specify the filename for the version included with your agent
installation.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
36 PUBLIC Configure Smart Data Integration
The success message SUCCESS for key hana.xs.password is displayed.
6. If the SAP HANA server is configured to use HTTPS, import the server certificate into the agent keystore.
a. Download the SAP HANA server certificate and transfer it to the agent host machine.
b. Use the keytool command to import the certificate.
hanaOnCloud=true
hana.useSSL=true
Related Information
Procedure
Results
The configuration tool indicates whether the agent service is running and the listening port in use by the agent.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 37
Next Steps
On Windows, you can also manage the agent service from the standard Windows Services tool.
On Linux, you can also manage the agent with a shell script. The shell script is located at <DPAgent_root>/bin/
dpagent_service.sh and supports the following commands:
./dpagent_service.sh start
./dpagent_service.sh stop
./dpagent_service.sh restart
./dpagent_service.sh ping
Related Information
Before you can use adapters deployed on the Data Provisioning Agent, you must register the agent with SAP
HANA.
Prerequisites
For HANA on Cloud, the HANA XS Agent user in this procedure has to be different than the one used to connect to
HANA in the Data Provisioning Agent Configuration tool. The HANA XS Agent user must be granted the AGENT
ADMIN system privilege as well as the sap.hana.im.dp.proxy::AgentMessaging application privilege.
Procedure
1. Start the agent configuration tool and connect to the SAP HANA server.
2. Click Register Agent.
3. Specify the agent connection information.
If SAP HANA is not in the cloud, specify the agent name and hostname.
Ensure that the SAP HANA server can communicate with the agent host. Depending on the network
configuration, you may need to fully qualify the agent hostname.
Ensure that your firewall settings allow the connection from the SAP HANA server to the agent host on
the listener port. By default, port 5050.
If SAP HANA is in the cloud, specify the agent name.
When SAP HANA is in the cloud, the agent service will be restarted to complete the registration process.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
38 PUBLIC Configure Smart Data Integration
4. Click Register.
Results
The agent is registered with SAP HANA. If SAP HANA is in the cloud, the agent service is automatically restarted.
Next Steps
Caution
Unregistering the agent from the SAP HANA server performs a cascade drop of the agent. As a result, any
remote subscriptions that use the agent will also be deleted, even if they are active.
Related Information
When you create and register a Data Provisioning Agent, you can choose to use SSL communication. If you do not
configure SSL during agent creation, you can enable it later.
Prerequisites
Before configuring the agent for SSL, ensure that the SAP HANA system is already configured for SSL. For more
information, see the SAP HANA Security Guide.
Note
You need the password for the keytool Java program to generate a keystore and import a HANA certificate.
You can find the password, commands and the instructions in the keytool.txt file at <DPAgent_root>\ssl
\keytool.txt.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 39
Procedure
You can suspend remote source subscriptions from the Data Provisioning Remote Subscription Monitor.
You can alter the agent registration from the Data Provisioning Agent Monitor.
You can resume remote source subscriptions from the Data Provisioning Remote Subscription Monitor.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
40 PUBLIC Configure Smart Data Integration
3.3.3.6 Reconfigure the Java Runtime Environment
The SAP JVM is bundled with the Data Provisioning Agent and used as the default Java Runtime Environment. You
can choose to update the version of the SAP JVM used by an installed agent, or replace it with a custom Java
Runtime Environment.
Prerequisites
If you want to update the version of the SAP JVM, you must download the version of the SAP JVM that matches
the operating system and processor architecture used by the Data Provisioning Agent host.
Procedure
Note
The -vm setting must be specified before the -vmargs setting in the dpagent.ini file, and -vm and its
setting must be entered on different lines. Additionally, do not use quotes around the path, even if it
contains spaces.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 41
c. Restart the Data Provisioning Agent service.
Related Information
Before you can connect to remote sources using adapters, you must register them with SAP HANA.
Prerequisites
Before you register your adapters, be sure that you have downloaded and installed the required JDBC drivers (if
necessary).
Procedure
1. Start the Data Provisioning Agent Configuration tool and connect to SAP HANA.
2. For custom adapters, click Deploy Adapter and point to the adapter JAR files.
Note
SAP-delivered data provisioning adapters are automatically deployed on the agent during agent
installation.
Results
The selected adapters are registered with SAP HANA and become available for use with remote sources.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
42 PUBLIC Configure Smart Data Integration
Next Steps
Note
For SAP HANA in the cloud, you must restart the agent service to complete the registration of adapters. If the
registration succeeds and the restart of the service fails, or the registration of all adapters fails, then the
registration is rolled back.
Task overview: Install and Configure the Data Provisioning Agent [page 18]
Related Information
The adapter framework preferences provide advanced configuration options for the data provisioning agent.To
modify the adapter framework preferences, choose Config Preferences in the Data Provisioning Agent
Configuration tool, and then select Adapter Framework.
By default, the agent is configured to start in TCP mode and monitor port 5050 for requests from SAP HANA.
Framework listener port The port the agent monitors for requests from the SAP 5050
HANA server.
Note
The Framework listener port should be SSL enabled
for security.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 43
Key Description Default Value
Admin port The local port used for internal communication between 5051
the agent and the agent configuration tool.
Note
The admin port should not be enabled within a fire
wall (that is, it should be blocked from outside ac
cess), in order to prevent unauthorized changes on
the agent.
Polling timeout unit The unit used by the polling timeout. SECONDS
Max data size in bytes The maximum amount of data to fetch. 100000000
Row fetch size (max) The maximum number of items (browse nodes or rows) 1000
to fetch from an adapter.
Row fetch size (min) The minimum number of rows to fetch from an adapter. 10
Max number of retries The maximum number of times the agent tries to con 10
nect after a registration or ping failure.
Time to wait before retry The amount of time to wait before retrying. 30
Shared Directory for The shared directory for the agent group to which this None
Agent Group agent instance belongs, if any.
Logging level The type of logging to perform for the agent: TRACE
TRACE
DEBUG
ERROR
ALL
Log file max file size The maximum file size, in MB or KB, that the log file 10MB
should use.
Trace message max size Truncates after printing the specified number of charac 1024
ters when tracing is enabled.
Trace ping message Enables printing the ping message. Valid only when trac false
ing is enabled.
Trace all data Enables printing the content of the data (rows) being false
sent to server.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
44 PUBLIC Configure Smart Data Integration
3.4 Set up Data Provisioning monitoring
After you install the SAP HANA smart data integration option for SAP HANA, you must take several actions to
enable and access the monitoring user interfaces for Data Provisioning agents, remote subscriptions, and tasks.
These actions will allow you to access the Data Provisioning monitors by either typing the URL directly in your
browser or through tiles in SAP HANA Cockpit.
Previous: Install and Configure the Data Provisioning Agent [page 18]
Related Information
Download and Deploy the Data Provisioning Delivery Unit [page 16]
Grant Roles to Users [page 45]
Assign Catalog to Data Provisioning Monitoring Role [page 46]
Add Data Provisioning Tiles to the SAP HANA Cockpit [page 47]
Monitor and Operate [page 66]
You must grant the appropriate roles to users who will perform the various tasks to set up Data Provisioning
monitoring in SAP HANA Cockpit.
Prerequisites
Ensure that you have been granted the SYSTEM privilege USER ADMIN to be able to create, alter, or delete users.
Procedure
1. Log in to SAP HANA studio with a user name that has been granted the USER ADMIN system privilege.
2. Grant the role sap.hana.uis.db::SITE_DESIGNER to the user who will do the RBA (Role-Based Authorization) UI
configuration.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 45
3. Grant the role sap.hana.im.dp.monitor.roles::Monitoring to the user who will add the Data Provisioning tiles to
SAP HANA Cockpit and will also perform monitoring tasks.
a. In the Systems view, expand your SAP HANA server name and expand Security.
b. Double click the user name.
c. On the Granted Roles tab, click the + icon in the upper left corner.
d. On the Select Roles dialog, type dp in the search string box.
e. Select role sap.hana.im.dp.monitor.roles::Monitoring and click OK.
This role sap.hana.im.dp.monitor.roles::Monitoring will allow the user to access the SAP HANA Data
Provisioning monitoring user interfaces.
Next Steps
To use the Data Provisioning Monitoring user interface through the SAP HANA Cockpit you must also assign the
appropriate catalog to this monitoring role (Assign Catalog to Data Provisioning Monitoring Role [page 46]).
However, users can also view the monitors directly by entering the following URLs in a web browser:
This procedure uses the Role-Based Authorization (RBA) user interface to assign the SAP HANA Data
Provisioning Monitoring catalog to the role sap.hana.im.dp.roles::Monitoring).
Prerequisites
You have the role sap.hana.uis.db::SITE_DESIGNER. For information about how to grant this role, see Grant Roles
to Users [page 45].
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
46 PUBLIC Configure Smart Data Integration
Context
To configure the RBA for the SAP HANA Data Provisioning catalog in SAP HANA Cockpit:
Procedure
1. To launch the RBA user interface, type the following URL address into a web browser:
http://<host>:80<2-digit instance>/sap/hana/uis/clients/role-editor/
RoleEditor.html?scenario=onPremise
2. Log in with a user name that has the role sap.hana.uis.db::SITE_DESIGNER.
3. In the Roles pane on the left, go to the role sap.hana.im.dp.monitoring.roles::Monitoring and select it. You can
search for this role using the search text box in the Roles pane.
4. To assign the catalogs to this role, click on the + button next to Assigned Catalogs.
A list of catalogs appears.
5. Select HANA Enterprise Information Management Data Provisioning Monitoring from the list of catalogs.
You may select other catalogs if you wish to use their tiles in the SAP HANA Cockpit.
6. When you are done selecting catalogs, click OK.
Create a Data Provisioning group in the SAP HANA Cockpit and add the Data Provisioning tiles to the group to
enable monitoring of Data Provisioning agents, remote subscriptions, and tasks.
Prerequisites
Procedure
In the Systems view of SAP HANA studio, right-click the name of your SAP HANA server and choose
Configuration and Monitoring Open SAP HANA Cockpit .
In a web browser, type the following URL address:
http://<<host name>:80<2 digit instance number>/sap/hana/admin/cockpit
2. Log in to SAP HANA Cockpit with a user name that has the role sap.hana.im.dp.roles::Monitoring.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 47
Note
If you cannot launch SAP HANA Cockpit, then ask your administrator to grant you either the application
privilege sap.hana.admin::Monitoring or the role sap.hana.admin.roles::Monitoring.
3. Click on the Show/hide group panel icon in the upper left corner to display options New Group and Tile
Catalog.
4. Click New Group and enter a name.
5. Click Tile Catalog to display the tiles in the catalog HANA Data Provisioning Monitoring.
6. To add each tile (Agent Monitor, Remote Subscription Monitor, Task Monitor, and Smart Data Integration for
Documentation):
a. Click the + icon at the bottom of the tile.
b. On the Add Tile To Groups window, select the name of your group and click OK.
As you add each tile, the + icon turns into a checkmark.
7. Click Home to access your group and tiles.
Enterprise Semantic Services provides an API to enable searching for publication artifacts or run-time objects
based on their metadata and contents.
Note
Enterprise Semantic Services (ESS) is required for SAP HANA Agile Data Preparation. However, ESS is optional
for smart data integration (SDI); therefore, you are not required to download and install ESS for SDI.
Next: Enable SAP HANA Smart Data Integration REST API [page 58]
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
48 PUBLIC Configure Smart Data Integration
3.5.1 Setting Up the SAP HANA Instance for Enterprise
Semantic Services
The Enterprise Semantic Services component supports both on-premise (single database and multitenant), and
SAP HANA cloud platform deployments.
For details on supported versions, see the Product Availability Matrix at https://apps.support.sap.com/
sap(bD1lbiZjPTAwMQ==)/support/pam/pam.html?smpsrv=https%3A%2F%2Fwebsmp202.sap-
ag.de&pvnr=73554900100900000125&pt=g%7Cd#pvnr=73554900100900000125&ts=0&pt=g%7Cd
For a single database deployment, Enterprise Semantic Services requires the SAP HANA job scheduler and script
server.
Context
Perform the following procedures to set up the SAP HANA instance for Enterprise Semantic Services in an on
premise single database deployment.
Procedure
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 49
3.5.1.1.1 Enable the XS Job Scheduler
Context
Procedure
1. Log in to SAP HANA studio as the SYSTEM user or user name with the equivalent SYSTEM privileges.
2. Navigate to the appropriate .ini element and set the parameters as follows.
a. Double-click your system in the Systems view.
b. Choose the Configuration tab.
c. Expand the xsengine.ini element, and go to the scheduler section.
d. Set the Enabled parameter to true.
e. Set the sessiontimeout parameter to 36000.
Note
If the scheduler section does not exist, create it and set its parameters with the following steps:
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
50 PUBLIC Configure Smart Data Integration
3.5.1.1.2 Enable the Script Server
Enable the Script Server if you will be using smart data quality.
Context
If the smart data quality component of SAP HANA Enterprise Information Management is already installed, you do
not need to enable the Script Server.
Procedure
1. Log in to SAP HANA studio as the SYSTEM user or user name with the equivalent SYSTEM privileges.
2. Double-click your system in the Systems view.
3. In the Administration editor, choose the Configuration tab.
4. Expand the daemon.ini configuration file, and expand the scriptserver section.
5. Select Instances, right click, and choose Change.
6. Set the Instances parameter to 1.
Related Information
For a multitenant deployment, Enterprise Semantic Services requires the SAP HANA script server and access to
multitenant database containers.
Prerequisites
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 51
Procedure
For example, in the Web-based Development Workbench or SAP HANA studio, enter the following SQL
statement:
Note
If the Smart Data Quality component is already installed, then the scriptserver service is already added.
Use the information in the topic "Configure HTTP Access to Multitenant Database Containers" in SAP HANA
Administration Guide.
Note
To determine the port of the XS engine service used by a particular tenant database, use the following SQL
query:
SELECT
DATABASE_NAME,
SERVICE_NAME,
PORT,
SQL_PORT,
(PORT + 2) HTTP_PORT
FROM
SYS_DATABASES.M_SERVICES
WHERE
DATABASE_NAME='<DBNAME>'
and ((SERVICE_NAME='indexserver' and COORDINATOR_TYPE= 'MASTER') or
(SERVICE_NAME='xsengine'))
3. Add the tenant database alias names that you configured in step 2 using the parameter SRCVHOST to your
Domain Name System (DNS).
Download the Enterprise Semantic Services delivery unit and deploy it to enable semantic searches of data
sources.
Context
The HANA_IM_ESS delivery unit is included with the smart data integration (SDI) download package.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
52 PUBLIC Configure Smart Data Integration
Procedure
4. Scroll down and select SAP HANA SDI SAP HANA SDI 1.0 .
5. Select Comprised Software Component Versions HANA ESS 1.0 # OS independent SAP HANA
database .
6. From the list of downloads, select the desired version. See the Product Availablity Matrix > Product
Infrastructure Dependency pages for a version of Enterprise Semantic Services that is compatible with your
product version.
7. Click the Add Selected Items to Download Basket icon.
8. Select Download Basket and select Download Manager to start the download process.
9. In the downloaded ZIP file, locate the HANAIMESS.tgz file and extract it.
Related Information
To install Enterprise Semantic Services (ESS), after downloading the ESS delivery unit, you then import it.
How to import the Enterprise Semantic Services (ESS) delivery unit using SAP HANA studio.
Prerequisites
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 53
Procedure
How to import the Enterprise Semantic Services (ESS) delivery unit using SAP HANA Application Lifecycle
Management.
Prerequisites
Procedure
1. If not already granted, grant the role sap.hana.xs.lm.roles::Administrator to the user name you will use to log in
to SAP HANA Application Lifecycle Management:
a. In SAP HANA studio Systems view, expand the name of your SAP HANA server and choose Security
Users System .
b. On the Granted Roles tab, click the green + icon in the upper-left corner.
c. On the Select Roles dialog, type lm in the search string box.
d. Select role sap.hana.xs.lm.roles::Administrator and click OK.
2. Open SAP HANA Application Lifecycle Management by entering the following URL in a web browser:
<host name>:80<2-digit instance number>/sap/hana/xs/lm
3. Log in with the user name you authorized in step 1.
The first time you log in, a pop-up window appears to enter a name for this server.
4. On the Home tab, click the Delivery Units tile.
5. Click Import.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
54 PUBLIC Configure Smart Data Integration
6. Click Browse, navigate to where you downloaded the delivery unit, select the .tgz file, and click Open.
7. Click Import.
Results
After successful import, the name of the delivery unit displays in the list on the left.
After downloading and importing the Enterprise Semantic Services (ESS) delivery unit, install this component to
enable semantic searches of data sources.
Prerequisites
Upgrade your SAP HANA instance if you need to upgrade to a new SPS revision.
If installed, uninstall the DEMO delivery unit.
Uninstall Enterprise Semantic Services.
Context
If you have ESS version SPS01 Patch 1 (also known as 1.0 SP00 Rev1) or earlier, then follow the procedure
that requires the installation script install.xsjs.
If you have ESS version SPS01 Patch 2 (also known as 1.0 SP01 Rev2) or later, then follow this procedure,
which requires the installation script install.html.
Procedure
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 55
4. You are prompted to set the password for ESS technical users. Enter a password and click Submit.
5. Ensure the _HANA_IM_ESS, _HANA_IM_ESS_CTID, and _HANA_IM_ESS_PROFILING technical users have
been created by the installation script in SAP HANA.
Results
Successful installation is indicated with the message Setup completed including a Status table that lists each
setting.
At any point you can monitor the installation status by accessing the install.html URL. Any errors will display with
messages for corrective actions.
Related Information
After installing Enterprise Semantic Services, grant the necessary roles to the SAP HANA users who will interact
directly or indirectly with Enterprise Semantic Services.
Procedure
1. Log in to SAP HANA with a user that has the EXECUTE privilege on the GRANT_ACTIVATED_ROLE procedure.
2. In the Systems view, expand your SAP HANA server name and expand Security.
3. For each user, do the following steps to grant the roles described in the table.
a. Double-click the user name.
b. On the Granted Roles tab, click the + icon in the upper left corner.
c. On the Select Roles dialog, type ess in the search string box.
d. Select the appropriate role for this user and click OK.
Option Description
sap.hana.im.ess.roles::Administrator For users who will access the Enterprise Semantic Services Adminis
tration user interface
sap.hana.im.ess.roles::Publisher For users who will access the Enterprise Semantic Services publica
tion API to define content to be published in the Entity Grid
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
56 PUBLIC Configure Smart Data Integration
Option Description
sap.hana.im.ess.roles::User For users who will access the Enterprise Semantic Services consump
tion (read-only) APIs such as Search, Autocomplete, and content-type
identification (CTID)
These instructions describe the process to permanently uninstall Enterprise Semantic Services, for example in
the case of an upgrade.
Prerequisites
Procedure
http://<<your_HANA_instance:port>>/sap/hana/xs/lm
b. Choose Products Delivery Units .
c. Select HANA_IM_ESS.
d. Click Delete.
e. Click the checkbox including objects and packages.
f. Confirm deletion.
2. Remove users.
In the Web-based Development Workbench or SAP HANA studio, drop the Enterprise Semantic Services
users. For example, in SAP HANA studio, enter the following SQL statements:
In the Web-based Development Workbench or SAP HANA studio, drop the HANA_IM_ESS schema. For
example, in SAP HANA studio, enter the following SQL statement:
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Integration PUBLIC 57
3.6 Enable SAP HANA Smart Data Integration REST API
Use the SAP HANA smart data integration REST API to programmatically execute and monitor flowgraphs and to
process data for interactive data transformation within your application.
For more information, see the SAP HANA Smart Data Integration REST API Developer Guide.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
58 PUBLIC Configure Smart Data Integration
4 Configure Smart Data Quality
To take advantage of smart data quality functionality, you will need to perform a few tasks.
Related Information
Enable the Script Server if you will be using smart data quality.
Context
If the smart data quality component of SAP HANA Enterprise Information Management is already installed, you do
not need to enable the Script Server.
Procedure
1. Log in to SAP HANA studio as the SYSTEM user or user name with the equivalent SYSTEM privileges.
2. Double-click your system in the Systems view.
3. In the Administration editor, choose the Configuration tab.
4. Expand the daemon.ini configuration file, and expand the scriptserver section.
5. Select Instances, right click, and choose Change.
6. Set the Instances parameter to 1.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Quality PUBLIC 59
Related Information
Download and deploy optional directories to take advantage of smart data quality functionality.
Context
The Cleanse and Geocode nodes rely on reference data found in directories you download and deploy to the SAP
HANA server.
If reference data is not provided, the Cleanse node will perform parsing, but it will not do assignment. Additionally,
you will be able to create and activate flowgraphs that include the Geocode node, but their execution will fail.
You may need to download multiple directories, depending on your license agreement. You need to follow steps
4-8 for each of the directories that you need to download.
Note
We recommend that, before you install your directories, you stop the Script server, and then restart it once the
installation is complete. We also recommend restarting the SAP HANA database after installing and making
sure that you do not have any running flowgraph tasks.
Procedure
3. Click the Installation and Upgrades tab, expand By Alphabetical Index (A-Z), and click A ADDRESS
DIRECTORIES & REFERENCE DATA .
4. Click <directory_name>. (For example, SAP ADDR DIR ALL WORLD 4.X)
5. Click <directory_name> again to display the list of download files.
6. Click the check box to the left of the item or items that you want to install, and choose Download from the
action menu.
7. To download directories, click the Address Directories & Reference Data link above the Downloads section.
8. Follow steps 4-8 for each directory as needed.
9. Run the Download Manager to start the download process.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
60 PUBLIC Configure Smart Data Quality
10. Once they have been downloaded, extract the directory files, and then copy and paste all of the files (some
examples these file extensions include .dir, .shs, .dpv and so on) into the following SAP HANA Server
installation location:
/usr/sap/<SID>/SYS/global/hdb/IM/reference_data
Next Steps
Note
If you need to change the directory location, you can do so by running the following:
Related Information
To update, remove, or add reference data to the existing directories, create a new directory location. Copy and
paste any unchanged data to the new directory location, and add any new or updated directories. Then make sure
to update the directory location of the dq_reference_data in your SAP HANA applications to reference the new
location.
Changing the reference data path will drop all cached operations (if cache is enabled), and recreate the cache. We
recommend that you update the dq_reference_data path when flowgraph task plans are not running, or when
the server is not busy.
You can also set alerts to inform you when the directories will expire.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Configure Smart Data Quality PUBLIC 61
5 Update the Data Provisioning Agent
You can update the Data Provisioning Agent by running the installation program in update mode.
Prerequisites
Before you update the Data Provisioning Agent, ensure that your SAP HANA server has already been updated to
the same revision.
If your agent has remote subscriptions for real-time data capture, you must also suspend capture before
upgrading the agent. To suspend active remote source subscriptions, use the SQL console in the SAP HANA
Studio or Web-based Development Workbench:
Note
To verify the success of the upgrade for log reader adapters, you should also set the adapter framework
logging level to INFO. To change the adapter framework logging level, choose Preferences Adapter
Framework Logging Level in the SAP HANA Data Provisioning Agent Configuration tool.
Procedure
Note
Stop the service using the Data Provisioning Agent installation owner. The installation owner is the
same user that is used to start the agent service.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
62 PUBLIC Update the Data Provisioning Agent
Tip
To upgrade the agent in command-line mode, use hdbinst.exe on Windows or ./hdbinst on Linux.
5. Choose Update SAP HANA Data Provisioning Agent and select the path of the existing agent that you want to
update.
In command-line mode, enter the number of the existing agent as listed by the installation program.
6. On Linux, start the Agent service.
Note
Start the service using the Data Provisioning Agent installation owner. The installation owner is the same
user that is normally used to start the agent service.
To allow SAP HANA to detect any new adapter capabilities, use the SQL console in the SAP HANA Studio or
Web-based Development Workbench.
a. Retrieve a list of the adapters configured in your environment.
Note
If you have multiple agents in your SAP HANA environment, you only need to refresh each adapter a single
time with an upgraded agent. Refreshing the adapters with each agent is not necessary.
Results
Next Steps
Tip
After updating the Data Provisioning Agent, we recommend that you review the update log file for any errors,
and take any necessary corrective actions.
If you suspended capture for remote source subscriptions on the agent, you can now resume capture.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Update the Data Provisioning Agent PUBLIC 63
Caution
Before resuming capture, you must first upgrade all agents in your SAP HANA environment. If you have not
upgraded all agents, do that first and then return to this section.
After all agents have been upgraded, use the SQL console in the SAP HANA Studio or Web-based Development
Workbench to resume capture:
Repeat the command for each remote source subscription in your environment.
Tip
After you resume a remote source subscription, additional automatic upgrade steps take approximately 10
minutes to complete. To verify that the process has completed successfully, view the Data Provisioning Agent
framework log:
When the adapter upgrade has been completed, you should see the message <instance_name> has
been upgraded successfully.
When the real-time replication has been resumed, you should see the message <instance_name> is
resumed successfully.
After updating the Data Provisioning Agent, you must update the SAP ASE Adapter Preferences before you can
use it in SAP HANA smart data integration processes.
Procedure
ASEAdapter.ld_library_path=<installpath>/Sybase/ci/64bit,<installpath>/Sybase/
OCS-16_0/lib,<installpath>/Sybase/OCS-16_0/lib3p64
Replace <installpath> with the actual path to the Data Provisioning Agent installation.
2. Add the following lines to <DPAgent_root>/bin/dpagent_env.sh:
SYBASE=<installpath>/Sybase
export SYBASE
SYBASE_OCS=OCS-16_0
export SYBASE_OCS
Replace <installpath> with the actual path to the Data Provisioning Agent installation.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
64 PUBLIC Update the Data Provisioning Agent
3. Add the following lines to <DPAgent_root>/Sybase/interfaces:
ASEAdapterOCSServer
master tcp ether <hostname> <adapterAgentPort
>
query tcp ether <hostname> <adapterAgentPort>
Replace <hostname> with the host name or IP address of the Data Provisioning Agent host machine, and
<adapterAgentPort> with the port number configured for the Data Provisioning Agent.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Update the Data Provisioning Agent PUBLIC 65
6 Monitor and Operate
Monitor the Data Provisioning Server availability and key performance indicators regularly.
The Data Provisioning Monitor provides a browser based interface to monitor agents, tasks, design time
objects (flowgraphs and replication tasks), and remote subscriptions created in the SAP HANA system. After
you take steps to set up this Data Provisioning Monitor, you can view the monitors in the following ways:
Enter the URL address of each monitor directly into a web browser.
Access Data Provisioning tiles in SAP HANA Cockpit.
The SAP HANA Administration and Monitoring group of tiles in SAP HANA Cockpit provides a Database
Status application in which you monitor the Data Provisioning Server. For more information, see the SAP
HANA Administration Guide, section Analyze Status and Resource Usage of Services.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
66 PUBLIC Monitor and Operate
6.1.1 SAP HANA Data Provisioning Monitoring
The Data Provisioning monitor user interface is delivered through the Data Provisioning delivery unit. A catalog is
also delivered with this delivery unit for integration of these monitors into the SAP HANA Cockpit.
Related Information
The tile catalog defines the set of all tiles available in the SAP HANA cockpit. Within the main tile catalog, tiles are
grouped into sub-catalogs according to functional area. The tile group SAP HANA Data Provisioning contains the
tiles for monitoring agents, remote subscriptions, tasks, and design time objects, as well as a tile to reference the
documentation on the SAP Help Portal. The tiles are dynamic and update automatically with information from
each monitor.
You can access the Data Provisioning Monitors through either the SAP HANA Cockpit or by typing the URLs
directly into your web browsers.
Prerequisites
You have the role sap.hana.im.dp.roles::Monitoring which allows you to access the SAP HANA Data
Provisioning monitoring user interfaces. For information about how to grant this role, see Grant Roles to
Users [page 45].
You have the role sap.hana.im.dp.roles::Operations, which allows you to perform all actions, such a START
TASK, STOP TASK, SCHEDULE TASK, and PROCESS REMOTE EXCEPTIONS.
Your Web browser supports the SAPUI5 library sap.m (for example, Internet Explorer 9).
For more information about SAPUI5 browser support, see SAP Note 1716423 and the Product Availability
Matrix (PAM) for SAPUI5.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 67
Procedure
1. To open the Data Provisioning monitors through the SAP HANA Cockpit:
a. Enter the SAP HANA cockpit URL in your browser.
http://<host>:<port>/sap/hana/admin/cockpit
b. If required, enter your database user name and password.
c. Go to the group of tiles that contain the Data Provisioning monitors.
2. To open the Data Provisioning monitors directly, enter the following URLs in your browser.
Option Description
By creating user settings profiles, you can quickly switch between different monitor layouts.Settings profiles
contain information about visible columns, column order, column width, column filters, table visibility, and slider
positions.
Context
You can create, modify, or remove settings profiles in each Data Provisioning Monitor by clicking the Settings
button.
Procedure
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
68 PUBLIC Monitor and Operate
To modify an existing settings profile, select the profile and click Update.
a. If you want to make the profile the default profile, select Default.
b. Click Update.
The selected profile is updated with the current layout and column display settings.
To remove an existing settings profile, select the profile and click Delete.
The selected profile is removed from the Profiles table.
You can monitor basic system information of an agent (such as CPU, memory, timestamps) and the time it last
connected with the Data Provisioning Server.
When you first open the Data Provisioning Agent Monitor, it displays information for all agents and all adapters.
You can select an agent to show information only for that agent.
The Data Provisioning Agent Monitor displays information in two tables Agent Monitor and Adapter Agent
Mapping. If you select an agent in the first table, the second table shows only the adapters registered to that
agent.
Errors, warnings, and action execution information are displayed in the Status Console.
Agent Port Port that the agent uses to communicate with the Data Provisioning Server.
CONNECTING
DISCONNECTED
CONNECTED
Last Connect Elapsed time since the last connection from the Data Provisioning Server to the Data Provi
sioning Agent.
Last Connect Time The last connect time from the Data Provisioning Server to the Data Provisioning Agent.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 69
Column Description
Protocol Type of network protocol used between the Data Provisioning Agent and the Data Provisioning
Server.
TCP
HTTP
Used Swap Space Amount of swap space currently used by the agent.
Free Swap Space Amount of free swap space on the agent host.
Adapter Name Name of the adapter registered to the Data Provisioning agent.
You can use the Data Provisioning Agent Monitor to perform basic administration tasks such as registering,
altering, or dropping Data Provisioning Agents.
Prerequisites
The user must have the following roles or privileges to manage agents.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
70 PUBLIC Monitor and Operate
Context
Use the buttons in the Agent Monitor table to perform the action.
Procedure
1. Click Create Agent to register a new agent with the SAP HANA system.
a. Specify the name of the agent and relevant connection information.
b. If the agent uses a secure SSL connection, check Enable SSL.
c. Click Create Agent.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 71
6.2.2 Manage Adapters from the Data Provisioning Agent
Monitor
You can use the Data Provisioning Agent Monitor to perform basic administration tasks such as adding adapters
to or removing adapters from a Data Provisioning Agent instance.
Prerequisites
The user must have the following roles or privileges to manage adapters.
Context
Use the buttons in the Agent Monitor and Agent Adapter Mapping tables to perform the action.
Procedure
1. To add adapters to an agent instance, select the agent and click Add Adapters in the Agent Monitor table.
a. Select the desired adapters from the list of adapters deployed on the agent instance.
b. Click Add Adapters.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
72 PUBLIC Monitor and Operate
Related Information
The Data Provisioning Remote Subscription Monitor tile in the SAP HANA Cockpit provides you with information
about how well data is being replicated to the Data Provisioning Server.
When you first open the Data Provisioning Remote Subscription Monitor, it displays information for all remote
sources, all remote subscriptions, and all remote subscription statistics. You can select a remote source to view
its corresponding remote subscriptions and remote subscription statistics.
You create remote subscriptions when you want to listen for real-time changes to data that you replicated into the
Data Provisioning Server. A remote subscription can have seven different states.
The following diagram shows where the states occur during the initial load and subsequent updates. The state
names and their descriptions are in the table below.
MAT_START_BEG_MARKER The receiver is waiting for the begin marker that indicates the first changed data to
queue while the initial load is running.
MAT_START_END_MARKER The receiver queues the rows and is waiting for the end marker that indicates the last
row of the initial load.
MAT_COMP_BEG_MARKER The receiver is waiting for the begin marker that indicates the first row to queue after
the initial load has completed.
MAT_COMP_END_MARKER The receiver queues the changed rows and is waiting for the end marker that indi
cates the last row of the initial load. The initial load has completed and the end marker
is sent to the adapter. If the state does not change to AUTO_COR
RECT_CHANGE_DATA, the adapter or source system is slow in capturing the
changes.
AUTO_CORRECT_CHANGE_DATA When the end marker is received for the initial load, the applier loads the changed
data captured (and queued during the initial load) to the target.
If a lot of changes occurred after the initial load started, this state might take a long
time to change to APPLY_CHANGE_DATA.
APPLY_CHANGE_DATA All of the changes captured while the initial load was running have completed and are
now loaded to the target.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 73
6.3.2 Information Available on the Data Provisioning Remote
Subscription Monitor
The Data Provisioning Remote Subscription Monitor displays information in three tables Remote Source Monitor,
Remote Subscription Monitor (for all sources or one source), and Remote Subscription Statistics (for all sources or
one source). If you select a remote source in the first table, the second and third tables show only information for
that remote source.
Errors, warnings, and action execution information are displayed in the Status Console.
Location Port that the agent uses to communicate with the Data Provisioning Server.
OK
ERROR
SUSPENDED
Schema Name Name of the schema (user name) in the remote source.
Remote Source Name Name of the remote source for which this subscription is defined.
Tip
You can click the name of a design time object to open that object in the Data Provisioning
Design Time Object Monitor.
Design Time Type Type of corresponding Design Time Object. Values would be hdbflowgraph, hdbreptask, or
empty.
State Name of the state of the remote subscription. For more information, see Remote Subscription
States for Data Provisioning [page 73].
Last Processed Elapsed time since the last changed data was processed.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
74 PUBLIC Monitor and Operate
Column Description
Last Processed Transaction Time the last changed data was processed.
Time
TABLE
VIRTUAL TABLE
TABLE
VIRTUAL TABLE
Schema Name Name of the schema (user name) in the remote source.
Received Count Total number of messages received by the Data Provisioning server.
Received Size Total size of messages received by the Data Provisioning server.
You can suspend and resume capture and distribution for remote sources within the Data Provisioning Remote
Subscription Monitor.
Prerequisites
The user must have the following roles or privileges to suspend and resume capture and distribution:
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 75
Table 10: Roles and Privileges
Context
Use the Alter Remote Source button in the monitor to perform the action.
Procedure
1. Select the remote source in the Remote Source Monitor table and click Alter Remote Source.
2. Click Suspend or Resume for CAPTURE or DISTRIBUTION.
Confirmation of the action is displayed in the status console.
3. Close the Alter Remote Source dialog.
Results
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
76 PUBLIC Monitor and Operate
6.3.4 Manage Remote Subscriptions
You can drop, queue, distribute, and reset remote subscriptions within the Data Provisioning Remote Subscription
Monitor.
Prerequisites
The user must have the following roles or privileges to manage remote subscriptions:
Context
Use the buttons in the Remote Subscription Monitor table to perform the action.
Procedure
Note
A warning appears if you attempt to drop a remote subscription that is used by any flowgraphs or
replication tasks. Click Drop if you want to continue and drop the remote subscription anyway.
Results
The remote subscription is queued, distributed, or reset. If you drop a remote subscription, the subscription is
removed from the Remote Subscription Monitor table.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 77
Related Information
In the case of an error or if the row count on the target table does not match, for example, you will need to look at
the Exceptions table and process the entries.
To process a remote source or remote subscription exception using the monitoring UI:
The Data Provisioning Design Time Object Monitor tile in the SAP HANA cockpit provides you with information
about your design time objects, including flowgraphs and replication tasks.For example, you can see the duration
of a task execution for a flowgraph and how many records have been processed.
When you first open the Data Provisioning Design Time Object Monitor, it displays information for all design time
objects. You can select a flowgraph or replication task to show information for only that object.
You can also sort and hide individual columns by right-clicking a row and selecting your display preferences.
The Data Provisioning Task Monitor displays information in three tables: Design Time Objects, Task Monitor, and
Remote Subscription Monitor. If you select a design time object in the first table, the other tables show information
for only that object.
Errors, warnings, and action execution information are displayed in the Status Console.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
78 PUBLIC Monitor and Operate
Table 12: Information Available in Design Time Objects Table
Column Description
Package Name of the package to which the design time object belongs.
Schema Name Name of the schema in which the object was created.
Has Table Type Input 'TRUE' if the object is modeled with a table type as input. This means data would need to
be passed (pushed) at execution time.
Column Description
Tip
You can click the name of a task to open that task in the Data Provisioning Task
Monitor.
Last Start Time Day, date, and time when the last execution of the task started.
Last Duration Total elapsed time from start to end for COMPLETED or FAILED tasks.
STARTING
RUNNING
COMPLETED
FAILED
CANCELLED (or, CANCELLING)
Tip
You can click the status to display additional information about the task execution.
Last Processed Records Number of records that the last execution of the task has processed.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 79
Table 14: Information Available in Remote Subscription Monitor Table
Column Description
Tip
You can click the name of a remote subscription to open that subscription in the Data
Provisioning Remote Subscription Monitor.
State Name of the state of the remote subscription. For more information, see Remote Sub
scription States for Data Provisioning [page 73].
Tip
You can click on the status of a remote subscription to process any exceptions for the
subscription. For more information, see Processing Remote Source or Remote Sub
scription Exceptions [page 78].
Received Count Total number of messages received by the Data Provisioning server.
Last Message Received Time Time the last message was received.
You can execute design time objects including flowgraphs and replication tasks from the Data Provisioning Design
Time Object Monitor.
Restriction
Realtime flowgraphs and replication tasks cannot be executed from the Data Provisioning Design Time Object
Monitor.
Prerequisites
The user must have the following roles or privileges to schedule flowgraphs and replication tasks.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
80 PUBLIC Monitor and Operate
Table 15: Roles and Privileges
Procedure
1. Select the flowgraph or replication task in the Design Time Objects table.
2. Click Execute.
a. If the object uses table type parameters, select the tables to use when executing the object.
b. If the object uses variable parameters, specify the values to use when executing the object.
c. Click Execute.
Results
The object execution begins and the task appears in the Task Monitor table.
Related Information
You can schedule design time objects including flowgraphs and replication tasks within the Data Provisioning
Design Time Object Monitor.
Restriction
Realtime flowgraphs and replication tasks cannot be scheduled from the Data Provisioning Design Time Object
Monitor.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 81
Prerequisites
The user must have the following roles or privileges to schedule flowgraphs and replication tasks.
Scheduling needs to be enabled via XS Job Admin Dashboard /sap/hana/xs/admin/jobs/ (The user that
enables other users to schedule needs the role sap.hana.xs.admin.roles::JobSchedulerAdministrator).
To schedule design time objects, the Job sap.hana.im.dp.monitor.jobs::scheduleTask needs to be enabled in
the XS Job Details page: /sap/hana/xs/admin/jobs/#/package/sap.hana.im.dp.monitor.jobs/job/
scheduleTask.
Procedure
1. Select the flowgraph or replication task in the Design Time Objects table.
2. Click the Schedules button.
The Schedules dialog appears.
3. To create a new schedule for the task, click Add.
a. Select the frequency (once or recurring), interval if recurring (year, month, week, day, hour, minute,
second), and the time (local, not server time or UTC) for the object execution.
b. If the object uses table type parameters, select the tables to use when executing the object.
c. If the object uses variable parameters, specify the values to use when executing the object.
d. Click Schedule.
The new schedule is added to the list of schedules for the object.
4. To remove an existing schedule, select the schedule and click Delete.
The schedule is removed from the list of schedules for the object.
5. Close the Schedules dialog.
Results
Your object executes as scheduled and you can monitor the results of each execution of the object.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
82 PUBLIC Monitor and Operate
Related Information
You can stop the execution of non-realtime flowgraphs within the Data Provisioning Design Time Object Monitor.
Prerequisites
The user must have the following roles or privileges to stop flowgraph execution.
Procedure
1. Select the task for the flowgraph in the Task Monitor table.
2. Click Stop.
Results
The Data Provisioning Task Monitor tile in the SAP HANA cockpit provides you with information about your
replication tasks and transformation tasks.For example, you can see the duration of a task and how many records
have been processed.
When you first open the Data Provisioning Task Monitor, it displays information for all tasks. You can select a task
to show information for only that task.
You can also sort and hide individual columns by right-clicking a row and selecting your display preferences.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 83
Information Available on the Data Provisioning Task Monitor
The Data Provisioning Task Monitor displays information in three tables: Task Overview, Task Execution Monitor
and Task Operation Execution Monitor. If you select a task in the first table, the other tables show information for
only that task.
Note
By default, the Task Execution Monitor and Task Operation Execution Monitor tables are limited to 500 entries,
and the limit for each table can be controlled individually. After selecting a different task, you may need to
refresh the tables to see all corresponding information.
Errors, warnings, and action execution information are displayed in the Status Console.
SQL Security Security model for the task, either 'DEFINER' or 'INVOKER'
Schema Name Name of the schema in which the task was created.
Procedure Schema If the task was created with a procedure instead of a plan, this attribute will contain the
schema name of the stored procedure
Procedure Name If the task was created with a procedure instead of a plan, this attribute will contain the name
of the stored procedure
Is Valid 'TRUE' if the task is in a valid state, 'FALSE' if it has been invalidated by a dependency
Is Read-Only 'TRUE' if the task is read only (has only table type outputs), 'FALSE' if it writes to non-table-
type outputs
Has Table Type Input 'TRUE' if the task is modeled with a table type as input. This means data would need to be
passed (pushed) at execution time
Has SDQ 'TRUE' if the task contains SDQ (Smart Data Quality) functionality
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
84 PUBLIC Monitor and Operate
Column Description
Design Time Type Type of corresponding Design Time Object. Values would be hdbflowgraph, hdbreptask, or
empty.
Tip
You can click the name of a design time oject to open that object in the Data Provisioning
Design Time Object Monitor.
Schema Name Name of the schema in which the task was created.
Port Port number that the task uses to communicate with the Data Provisioning Server.
Partition Count Number of logical partitions used for parallel processing in the task.
Tip
You can click the partition count to display additional information about the partitions used
in the task execution.
Start Time Day, date, and time when the task started.
End Time Day, date, and time when the task ended.
Duration Total elapsed time from start to end for COMPLETED or FAILED tasks.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 85
Column Description
STARTING
RUNNING
COMPLETED
FAILED
CANCELLED (or, CANCELLING)
Tip
You can click the status to display additional information about the task execution.
TRUE
FALSE
Hana User Name of the user that started the execution of this task.
Tip
Use the Number of rows menu to limit the number of task executions displayed at one time in the Task
Execution Monitor table.
For a transformation task, the name of the operation is the name of the node that appears in
the flowgraph.
Schema Name Name of the schema (user name) in the remote source.
Partition ID Identification number of the logical partition used for parallel processing within the task.
Partition Name Name of the logical partition used for parallel processing within the task.
Port Port number that the task uses to communicate with the Data Provisioning Server.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
86 PUBLIC Monitor and Operate
Column Description
Operation Type Current type of operation. For example, the operation type can be Table Writer, Adapter, Pro
jection, and so forth.
Start Time Day, date, and time when the task started.
End Time Day, date, and time when the task ended.
STARTING
RUNNING
COMPLETED
FAILED
Side Effects Indicates whether or not this operation generates side effect statistics.
TRUE
FALSE
Tip
Use the Number of rows menu to limit the number of operations displayed at one time in the Task Execution
Operations Monitor table.
You can start and stop tasks within the Data Provisioning Task Monitor.
Prerequisites
The user must have the following privileges to start or stop tasks:
Action Privilege
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 87
Procedure
Note
Tasks that belong to realtime design time objects cannot be started or scheduled from the Data
Provisioning Task Monitor.
To stop a task, select the running task in the Task Execution Monitor table and click Stop.
Related Information
You can schedule tasks within the Data Provisioning Task Monitor.
Prerequisites
The user must have the following roles or privileges to schedule tasks.
Scheduling needs to be enabled via XS Job Admin Dashboard /sap/hana/xs/admin/jobs/ (The user that
enables other users to schedule needs the role sap.hana.xs.admin.roles::JobSchedulerAdministrator).
To schedule tasks, the Job sap.hana.im.dp.monitor.jobs::scheduleTask needs to be enabled in the XS Job
Details page: /sap/hana/xs/admin/jobs/#/package/sap.hana.im.dp.monitor.jobs/job/scheduleTask.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
88 PUBLIC Monitor and Operate
Procedure
Results
Your task executes as scheduled and you can monitor the results of each execution of the task.
Related Information
Change the retention period for Data Provisioning statistics tables if you want to retain the data in the Task
Execution Monitor and Task Operation Execution Monitor for longer than five minutes.
Context
The following parameters specify how long to keep the statistics data and when to delete them:
The task_data_retention_period parameter specifies the period of time the data is kept in the statistics
tables. This period is calculated from the time the task reached the COMPLETED, FAILED, or CANCELLED
status. The default value is -1. A value of -1, means never delete the data.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 89
The task_data_retention_period_check_interval parameter specifies how often the data is actually
deleted by the garbage collection thread. The default value is 300 seconds (five minutes).
To change the default values of these parameters, you must add a new section named task_framework to each of
the indexserver.ini, scriptserver.ini, and the xsengin.ini files.
Note
If you need to change these options you can do so by running the following:
Procedure
2. In the Systems view, right-click the name of your SAP HANA server and choose Configuration and
Monitoring Open Administration .
3. Click the Configuration tab.
4. Select indexserver.ini, right-click and choose Add Section.
5. On the Section Name screen of the Add Section Wizard, enter task_framework for the section name, and
click Next.
6. On the Scope Selection screen, select System from the drop-down list of Assign Values to, and click Next.
7. On the Key Value Pairs screen, enter task_data_retention_period in the Key field, and enter the number
of seconds you want the statistics data to be kept in the statistics tables.
Note
If you set the retention period to 0 (zero) or less than zero, statistics data will not be deleted.
If you set the retention period to a negative number, the default value (-1) will be used.
8. Click Finish.
9. Select indexserver.ini, right-click and choose Add Parameter.
10. On the Add New Parameter screen, enter task_data_retention_period_check_interval in the Key
field, and enter the time interval for the Task Data Cleanup Process to run.
Note
If you set the task_data_retention_period_check_interval to less than 60 seconds, the default value (five
minutes) will be used.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
90 PUBLIC Monitor and Operate
b. Repeat steps 5 through 10 for scriptserver.ini.
12. If your tasks will be called by the XS application, select xsengine.ini and do the following substeps.
a. Right-click and choose Add Section.
b. Repeat steps 5 through 10 for xsengine.ini.
This section describes error situations related to replication tasks and transformation tasks and their solutions.
The trace logs contain detailed information about actions in the Data Provisioning server.When you are
troubleshooting issues, you can gain additional insight about the root cause by increasing the level of detail in the
logs.
Prerequisites
To configure traces, you must have the system privilege TRACE ADMIN.
Procedure
1. Log on to SAP HANA studio with a user that has system privilege TRACE ADMIN.
2. In the Administration editor, choose the Trace Configuration tab.
3. Choose Edit Configuration under Database Trace.
4. Filter the component list for dp*.
5. Set the System Trace Level to DEBUG or for any relevant components under the DPSERVER and
INDEXSERVER nodes.
Scenario Traces
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 91
Scenario Traces
dpframeworkmessagebody
Trace information useful for diagnosing incorrect numbers of rows or sus
pected data corruption.
Note
This option can generate a large amount of data in the trace log.
INDEXSERVER
dpadaptermanager
Trace information for initial smart data access requests.
XSENGINE
dpadaptermanager
Trace information for initial smart data access requests from the SAP
HANA Web-based Development Workbench.
Note
This option can generate a large amount of data in the trace log.
INDEXSERVER
dpdistributor
Trace information for the message distributor.
dpapplier
Trace information for the message applier.
dpremotesubscriptionmanager
Trace information for remote subscription runtime details on the index
server side.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
92 PUBLIC Monitor and Operate
Tip
To ensure that applicable trace information is captured at the time of the error and not overwritten by log
wrapping, you can increase the maximum log size while capturing the traces. In the GLOBAL node, increase
the value of the maxfilesize parameter.
6. Click Finish.
Results
Additional debug information for the modified components is added to the trace log.
Tip
You can also modify the trace log levels by issuing commands from a SQL console and manually specifying the
component to adjust.
For example, to set the Data Provisioning Server dpframework trace to DEBUG:
Generally, you can start to resolve the issue and resume replication by resetting the remote subscription.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 93
6.5.4.2.1 Reset the Remote Subscription
When log reader-based real-time replication has stopped, you can try resetting the remote subscription.
Procedure
Tip
If you have the required privileges, you can also reset remote subscriptions from the Data Provisioning
Remote Subscription Monitor. For more information, see Manage Remote Subscriptions.
Note
Execute the script using the same user that is configured for replication.
Increasing the log level generates additional information useful for further debugging, if necessary. You can
safely revert the log level after resolving the issue.
6. Restart the SAP HANA Data Provisioning Agent service.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
94 PUBLIC Monitor and Operate
Tip
If you have the required privileges, you can also queue and distribute remote subscriptions from the Data
Provisioning Remote Subscription Monitor. For more information, see Manage Remote Subscriptions.
Next Steps
If you are unable to reset the remote subscription, you may need to clear any outstanding remote subscription
exceptions first.
Related Information
Replication may be stopped due to remote subscription exceptions. For example, a remote subscription exception
may be generated when a primary key violation, constraint violation, or null primary key occurs.
After correcting the root cause of the remote subscription exception, you can clear the exceptions with a SQL
statement:
For more information about log reader errors, check the trace file located in the log folder of your Data
Provisioning Agent instance. You may also choose to increase the trace log levels for the Data Provisioning Server.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 95
Related Information
Activate Additional Trace Logging for the Data Provisioning Server [page 91]
Replication may stop when the source database cannot be reached due to a network or hardware issue.
An unreachable source database can be detected by multiple error types in the logs.
For example:
When the source database cannot be reached, you should suspend capture for any affected remote source
subscriptions. After the issue has been resolved, resume capture for the remote source subscriptions.
If replication from an Oracle source system is stopped or delayed, or you notice poor performance, check the
instance log for reports of unsupported transactions.
Context
When the Oracle LogMiner starts scanning from the middle of a transaction and fails to translate the raw record, it
reports an unsupported operation. This may occur most often on UPDATE operations involving wide tables.
The Oracle Log Reader adapter can manage these records by using a standby scanner, but frequent occurrence
of unsupported operations can slow scan performance.
Procedure
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
96 PUBLIC Monitor and Operate
Related Information
The steps required to correct the issue depend on the nature of the error message reported, as well as the type of
the source database involved.
When the DB2 native connection fails, the replication agent may fail to be initialized.
When the native connection fails, you may see the following error in the log:
Verify that the connection details for your DB2 database are configured correctly:
Host
Port
Database Name
Database Source Name
The replication agent may fail to initialize when the Microsoft SQL Server log cannot be accessed.
When the Microsoft SQL Server log file cannot be accessed, the following error is reported:
Verify that the auto-extend option for the Microsoft SQL Server log file is enabled, and that the disk where the log
file is located has available free space.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 97
6.5.4.3.3 Microsoft SQL Server Version is Unsupported
The replication agent cannot be initialized with unsupported versions of Microsoft SQL Server.
When the replication agent attempts to initialize on an unsupported version, the following error is reported in the
framework log:
Work is being rolled back because of problems executing script: This edition of SQL
Server does not support publications.
To correct the error, use a supported Enterprise Edition of Microsoft SQL Server. Other versions such as
Microsoft SQL Server Express do not support transaction replication.
An incorrect version of the Oracle JDBC driver for the Data Provisioning Agent may cause invalid remote object
names with the Oracle Log Reader adapter.
This may generate an error similar to the following:
JDBC [476]: invalid remote object name: Failed to import metadata due to
exception.: line 0 col 0 (at pos 0)
With an incorrect version of the Oracle JDBC driver, an invalid object name error can occur in the following
scenarios:
Solution
The version of the Oracle JDBC driver in the <DPAgent_root>/lib directory should match the version of the
Oracle source database.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
98 PUBLIC Monitor and Operate
6.6 Create Status Notifications
Create email notifications for various task, remote subscription, and design time object statuses.
Prerequisites
The user must have the following roles or privileges to create status notifications:
Context
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 99
Table 24: Supported Statuses
Object Type Supported Statuses
Procedure
1. In the Task Overview, Remote Subscription Monitor, or Design Time Objects table, select the object for which
you want to create a notification.
2. Click the Notifications button.
The list of notifications for the object is displayed.
3. Click the Add button to create a new notification.
4. Specify a name, status conditions, and recipient email addresses for the notification.
5. If you want to enable the notification immediately, select Is active.
6. Click Create Notification.
The new notification is added to the list of notifications for the object. When the conditions for the notification
are met, users in the recipient list are sent an email containing details about the event that triggered the
notification.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
100 PUBLIC Monitor and Operate
6.7 Create Monitoring Alerts
Context
Agent availability
Agent memory usage
Remote subscription exception
Data Quality reference data
Long-running tasks
The process for creating alerts is the same for each of these alerts in HANA studio.
Note
You can also configure alerts in the SAP HANA Cockpit by adding and clicking the Configure Alerts tile.
Procedure
1. In HANA studio, click the Alerts tab, and click the Configure button.
2. Configure the sender and recipient information.
3. Select the Alerts for which you want to receive email notifications.
4. Click OK.
Monitor Enterprise Semantic Services publications and the Entity Grid to ensure that the semantic search for
publication artifacts or run-time objects works smoothly. Troubleshooting actions are available on the Enterprise
Semantic Services monitors.
The SAP HANA Enterprise Semantic Services Administration user interface is a browser-based application that
lets you manage artifacts for semantic services.
To launch the SAP HANA Enterprise Semantic Services Administration tool, enter the following URL in a web
browser:
http://<<your_HANA_instance:port>>/sap/hana/im/ess/ui
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 101
The interface includes the following components (tiles):
Once you have drilled into a component, you can click the navigation menu in the upper-left corner to open other
components or return to the Home page.
Verify application access, roles, and privileges for Enterprise Semantic Services (ESS) before contacting
customer support.
Ensure you have access to the SAP HANA XS Administration console and the SAP HANA studio.
sap.hana.xs.admin.role::JobSchedulerAdministrator
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
102 PUBLIC Monitor and Operate
Description Required privileges
_SYS_REPO.GRANT_SCHEMA_PRIVILEGE_ON_ACTIVATED_CONTENT
_SYS_REPO.REVOKE_SCHEMA_PRIVILEGE_ON_ACTIVATED_CONTENT
_SYS_REPO.GRANT_ACTIVATED_ROLE
_SYS_REPO.REVOKE_ACTIVATED_ROLE
An Enterprise Semantic Services publication request extracts information from a publication artifact (which is
either a catalog object or a remote object) and stores it in an Entity Grid that is later searched when a user tries to
find catalog or remote objects based on their metadata and contents.
Related Information
The SAP Enterprise Semantic Services (ESS) Administration tool lets you publish (or unpublish) artifacts.
You can publish or unpublish an artifact programmatically using the on-demand Enterprise Semantic Services
API, which requires a loose coupling of an application with Enterprise Semantic Services. This mode is well suited
for applications that manage the life cycle of their artifacts, that is, applications that create, delete, and update
SAP HANA artifacts. This way, the application determines which artifacts must be published, republished, or
unpublished to Enterprise Semantic Services. A typical example is the SAP Agile Data Preparation application for
artifacts that are created by business users.
Administrators can also use the SAP HANA ESS Administration tool to publish or unpublish artifacts. This is well
suited for applications that manage the life cycle of SAP HANA artifacts but do not want (or cannot easily) couple
their management of artifacts with Enterprise Semantic Services. A typical example is the SAP ERP application. In
those cases, it is easier to delegate to an administrator the task of determining which artifacts should be
published to Enterprise Semantic Services depending on the needs of applications that require access to
semantic services like search.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 103
A best practice is to separate the artifacts published by applications using the on-demand ESS API from those
published by an administrator using the SAP ESS Administration tool. These artifacts thereby belong to different
publisher groups, as depicted in the SAP ESS Administration tool Entity Grid Monitor.
Related Information
How to use the SAP HANA ESS Administration tool to publish artifacts in the Entity Grid.
Procedure
Children of the artifact inherit the INCLUDED configuration of the parent unless specifically excluded.
4. Configure the publication schedule as follows.
a. For Next Scheduled Date, click in the box to select a date and time to next publish the artifact.
If you do not enter a date-time, it is set to the current day and time.
b. Enter a frequency Period.
5. Configure Profiling Options.
a. Select Discover content type to include content types in the publication; however, this can impact
performance and is suggested for production scenarios.
b. Select Extract searchable values to extract values; however, this can impact performance and is
suggested for production scenarios.
6. Select Active to enable the schedule.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
104 PUBLIC Monitor and Operate
Results
The objects display in the browser tree marked with a solid green plus symbol (for included objects) or a solid red
minus symbol (for excluded objects). Inherited objects display an outlined green or red symbol. These markers
indicate that a request action has been initiated but is independent of the actual status of the request. To view the
status of the request, open the Request Monitor. To view the results of requests, view the Entity Grid Monitor.
The Publish and Scheduling Monitor displays a table that describes all of the scheduled publication and data
profiling requests.
Publication The mode selected for the schedule (INCLUDE, EXCLUDE, INHERIT) Yes
Next Scheduled Date The timestamp for when the schedule will next execute Yes
Discover Whether or not the option for Discover content type was selected Yes
Extracted Searchable Val Whether or not the option for Extract searchable values was selected Yes
ues
Warning A warning indicates that a scheduled artifact has been deleted. The Yes
Delete option will be enabled on the schedule.
Delete To delete a schedule for an artifact that has been deleted, select the No
check box and click Delete.
Context
When an artifact is configured as included for publication, a publication schedule displays in the table of
schedules. If the artifact gets deleted, the publication schedule will remain until the crawler cannot detect it. A
warning will then display for that schedule.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 105
Procedure
Use the Request Monitor to view and monitor publishing and profiling requests.
Context
A user can only search for catalog or remote objects that are described in the Entity Grid as a result of successful
publication requests. However, if the name of an artifact unexpectedly does not appear in the search results, the
publication of the corresponding artifact might have failed.
To monitor the status of all requests, Select the Request Monitor tile.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
106 PUBLIC Monitor and Operate
6.8.4.1 Information Available on the Request Monitor
The Enterprise Semantic Services Request Monitor displays the status and any error messages for each request.
Detail Click the magnifying glass icon to drill into the request for more de No
tails. The Detail page displays the following information and statistics:
For the latter three statistics, you can see the associated number of
requests that are Successful, Failed, In progress, or Not started.
The table displays each Publication Artifact and its Publication Status,
Data Profiling Status, Error Code, and Error Message if any.
Requests with a FAILED status include a Retry check box. To retry the
request, select the check box and click Retry at the top of the window.
To retry all FAILED requests, select the Retry check box in the column
heading.
ID A number that helps identify a request in the list of requests. Note Yes
that this number might not be unique in some cases.
Publication Artifact Fully qualified name of catalog object or repository object that was Yes
published
Publisher Group Indicates whether a publication was scheduled using the SAP HANA Yes
ESS Administration tool or using the REST API. In the former case,
the predefined publisher group is sap.hana.im.ess.AdminPublish
erGroup. In the latter case, a call to the publish() API must specify a
publisherGroup parameter that defines the ownership of the speci
fied publication in the Entity Grid.
Publisher Name of the SAP HANA user who submitted the request Yes
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 107
Column Name Description Filterable
Request Type Request types on the Request Monitor home page include: Yes
ON_DEMAND_PUBLISH
ON_DEMAND_UNPUBLISH
SCHEDULED_PUBLISH
MONITORING_UNPUBLISH
RETRY_ON_DEMAND_PUBLISH
RETRY_ON_DEMAND_UNPUBLISH
RETRY_SCHEDULED_PUBLISH
PUBLISH_NOT_STARTED
UNPUBLISH_NOT_STARTED
UNPUBLISH_IN_PROGRESS
PUBLISH_DONE
PUBLISH_FAILED
UNPUBLISH_FAILED
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
108 PUBLIC Monitor and Operate
Column Name Description Filterable
Status Status values on the Request Monitor home page include: Yes
REQUEST_PENDING
IN_PROGRESS
DONE
DONE_WITH_ERRORS
NOTHING_DONE
STOPPING
STOPPED
PROFILING_NOT_STARTED
PROFILING_IN_PROGRESS
PROFILING_DONE
PROFILING_FAILED
INACTIVATED
NOT PROFILABLE
BLACKLISTED
OBSOLETE
PUBLICATION_FAILED
STOPPED
Retry To retry one or more requests, select the Retry check box for each, or No
select the Retry check box in the column heading to select all failed
requests, and select the Retry button.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 109
Column Name Description Filterable
Stop To display requests that are currently in progress, select the Refresh No
icon to update the Status column. To move the latest publication re
quests to the top of the list, for Request Date select Sort Descending.
Use the Entity Grid to view the artifacts that have been published to the grid and to remove (unpublish) artifacts
from the grid.
Context
The Entity Grid is a knowledge graph that describes the semantics of published artifacts (datasets). Metadata
crawlers and data profiling requests let you publish artifacts to the Entity Grid. Thereby, applications such as SAP
Agile Data Preparation or SAP HANA smart data integration can search for and locate these objects and their
metadata.
There are two ways to publish artifacts to the Entity Grid: The HTTP REST API publish() method used by
applications such as SAP HANA ADP, and the SAP HANA Enterprise Semantic Services Administration tool. If the
same artifact gets published by both mechanisms, the artifact is identified in the Entity Grid Monitor as belonging
to a corresponding publisher group. Therefore, publisher groups define ownership of specific publications in the
Entity Grid.
When an artifact is published with a specific publisher group, it can only be unpublished by that group. If the same
artifact has been published with multiple publisher groups, it can only unpublished when all corresponding
publisher groups unpublish it. This control helps avoid conflicts between applications and an administrator using
the Administration tool. Otherwise, an application could publish an artifact and another application or
administrator could unpublish it.
In the case of the HTTP publish() API, the publisher group name is specific to the application; for example for
SAP HANA ADP, it could be com.sap.hana.im.adp. For the SAP HANA ESS Administration tool, the predefined
publisher group name is sap.hana.im.ess.AdminPublisherGroup.
To limit the size of both extracted metadata elements and extracted searchable attribute values in Entity Grid, you
can also select artifacts to unpublish.
Procedure
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
110 PUBLIC Monitor and Operate
2. Expand the nodes on the Entity Grid artifact browser to find the object to monitor and select it.
3. Select the Publisher Group as necessary.
4. The table displays all of the published artifacts, when they were last refreshed, and the number of metadata
elements in each.
5. To remove an artifact and its data profiling information, select its Unpublish check box and click Save. To
unpublish all displayed artifacts, select the Unpublish check box in the column heading and click Save.
View the Request Monitor to confirm that the object was removed. For example, the Request Type would
indicate MONITORING_UNPUBLISH.
Related Information
The Enterprise Semantic Services Entity Grid Monitor displays artifacts that have been published and also lets you
remove (unpublish) artifacts from the Entity Grid.
The Entity Grid Artifact browser displays all the published objects available in the Catalog, Content, and Remote
Source folders. The Entity Grid size of an artifact is measured as the total number of searchable metadata
elements and searchable attribute values extracted from that artifact.
Expand the nodes, select the object to view, and select the Application Scope. To view all published artifacts,
select the scope <All_SCOPE>.
Publisher Group Indicates whether a publication was scheduled using the SAP HANA
ESS Administration tool or using the REST HTTP publish() API.
When an artifact is published with a specific publisher group, the arti
fact can only be unpublished by the same group. If a same artifact
has been published with different publisher groups, the artifact will be
unpublished when all associated groups have unpublished it.
For the SAP HANA ESS Administration tool, the predefined publisher
group name is sap.hana.im.ess.AdminPublisherGroup. For the REST
HTTP publish() API, a call to the publish() API must specify a
publisherGroup parameter that determines the name of the
publisher group.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 111
Name Description Filterable
Number of published arti Number of basic artifacts recursively contained in the selected arti
facts fact when the selected artifact is a container. If the selected artifact is
a basic artifact, the number of published artifacts is equal to 1.
Number of metadata ele Total number of extracted metadata elements in the selected arti
ments fact.
Number of extracted values Total number of attribute values extracted in the selected artifact.
Publication Artifact Qualified name of an artifact that was published or contains pub Yes
lished artifacts. The fully qualified name is described by three attrib
Wildcards
utes:
Oldest Refresh Oldest date of updated basic artifacts in the corresponding container. Yes
This date is NULL in the case of a basic artifact.
Wildcards
Last Refresh Most recent date of updated basic artifacts in the corresponding con Yes
tainer. This date is the last update in the case of a basic artifact.
Basic Artifacts Number of published basic artifacts recursively contained in the cor Yes
responding container. This value is 1 in the case of a basic artifact.
Metadata Elements Number of non-shared metadata elements. It indicates the number of Yes
searchable metadata elements extracted from the corresponding
published artifacts that are not shared with other published artifacts.
This number gives an indication of how many metadata elements
would be removed if you unpublished the artifact.
Extracted Values Number of searchable attribute values extracted for the catalog ob Yes
ject represented by the published artifact. It indicates the number of
metadata elements that are not shared with other published artifacts.
This number gives an indication of how many profiled values would be
removed in the case of unpublishing.
Unpublish To unpublish the artifact, select the Unpublish check box and click No
Save. To unpublish all displayed artifacts, select the Unpublish check
box in the column heading and click Save.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
112 PUBLIC Monitor and Operate
6.8.6 Data Profiling
Enterprise Semantic Services can profile the contents of artifacts that have been published to the Entity Grid.
Data profiling is a process that analyzes the values contained in specific columns of a dataset (the columns to
analyze are specified internally using ESS logic). Analysis of the data in a column discovers business types, and
searchable values can then be extracted and indexed using SAP HANA full text index.
Enterprise Semantic Services can profile the contents of the following artifacts:
SQL tables
Column views issued from graphical Calculation views, Attribute, and Analytic views
Virtual tables created from remote objects of a remote source with the PASSWORD credential type (see the
topic CREATE REMOTE SOURCE in the SAP HANA SQL and System Views Reference).
Note
When requesting profiling of a catalog object that does not result from an activation, you must assign the role
SELECT with grant option to the technical user _HANA_IM_ESS. (For activated objects, there is nothing to do.)
You can prevent artifacts (limited to catalog objects) from being profiled.
Context
Limiting the artifacts to profile lets you control the volume of searchable attribute values or avoid extracting
searchable values from datasets that hold sensitive or personal data.
In order to prevent an artifact from being profiled, an administrator can blacklist artifacts. When a catalog object
that was previously profiled is blacklisted, all its extracted searchable attribute values are immediately removed
from Entity Grid. The catalog object will never be profiled again, even if there is still a data profiling schedule
associated with the object(s).
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 113
Procedure
To re-enable data profiling for an artifact, clear the check box and click Save.
The Enterprise Semantic Services Data Profiling Blacklist Monitor lets you view and choose which artifacts to
blacklist (remove data profiling values).
Extracted values The total number of extracted values for the selected object
Schema Name Name of the schema to which the artifact belongs Yes
Wildcards
Extracted Values Number of extracted searchable values for the object Yes
Blacklisted Select the check box to blacklist the object and click Save. Clear the No
check box to enable data profiling for the object and click Save.
As an Enterprise Semantic Services administrator, you can set configuration parameter values such as maximum
sizes of persistent queues, rolling policy of persistent queues, and so on.
To set configuration parameters, in the SAP HANA studio Administration Console, a system administrator sets
values in the reserved table sap.hana.im.ess.eg.configuration::CONFIGURATION. To do so, specific database
procedures and user privileges are required.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
114 PUBLIC Monitor and Operate
Example
To set the parameters for "'MAX_ESS_PROFILING_JOBS_SCHEDULE_TIME":
1. Re-enable _HANA_IM_ESS technical user: ALTER USER _HANA_IM_ESS ENABLE PASSWORD LIFETIME;
2. Connect with the _HANA_IM_ESS user with its password (the one used during installation).
3. Execute the procedure to increase configuration parameter
MAX_ESS_PROFILING_JOBS_SCHEDULE_TIME:
CALL
"SAP_HANA_IM_ESS"."sap.hana.im.ess.eg.configuration::SET_CONFIGURATION_VALUE"('
MAX_ESS_PROFILING_JOBS_SCHEDULE_TIME', value)
Symptom When importing the HANA_IM_ESS delivery unit (DU), an activation error occurs and displays in the SAP HANA
studio job log view.
Solution Check the job log details in SAP HANA studio. If the error message is not meaningful, then:
Access the diagnosis file for the index server.
From the bottom of the trace log, look for the first Check results message, which should indicate the
root cause of the activation failure and suggest how to solve it.
Symptom The ESS DU has been uninstalled using the uninstallation procedure. When you reimport the ESS DU, activation
errors occur, showing that dependent objects are not found.
Cause Activated objects may have dependent objects that do not yet exist and therefore cause an error.
Verify that all ESS DUs (including the DEMO DU) have been properly uninstalled through the SAP HANA
Application Lifecycle Management console.
Verify that all related packages have been deleted (those with a naming of sap.hana.im.ess...); otherwise
remove them as follows:
Create a workspace in the Repositories tab of SAP HANA studio.
Remove the packages from there.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 115
6.8.9 Troubleshoot Publishing Issues
Symptom The Request Monitor displays a message that includes the phrase If the failure repeats, contact
SAP support.
Solution If the transaction that failed was a publish request, on the Request Monitor for the artifact in question, select the
Retry check box and the Retry button.
Symptom Publishing request cannot be submitted to ESS. An internal server error message is returned to the application.
This means that the user who is publishing has not been granted the activated ESS role
sap.hana.im.ess.roles::Publisher or the application privilege sap.hana.im.ess::Publisher.
Solution Grant the Publisher role to the user who is publishing. Activated roles are granted through the execution of the
procedures GRANT_ACTIVATED_ROLE and GRANT_ APPLICATION_PRIVILEGE. Therefore, to be able to grant a
role, a user must have the SQL object privilege EXECUTE on these procedures.
Symptom Publishing requests appear as not processed in the SAP HANA ESS Administration tool's Publish and
Scheduling Monitor view. Request Status remains REQUEST PENDING or REQUESTED.
Symptom A publishing request failed (the Request Status is FAILED in the SAP HANA ESS Administration tool Publish and
Scheduling Monitor view).
Solution 1 The user can upgrade the format of the view by editing (make a small change such as adding a space) and
saving it.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
116 PUBLIC Monitor and Operate
6.8.10 Troubleshoot Data Profiling Issues
Symptom Publishing requests have been processed and all ESS background jobs are active, but data profiling requests
appear as not processed in the SAP HANA ESS Administration tool Data Profiling Monitor view. Profiling Status
remains as REQUEST PENDING.
Enable the trace level for xsa:sap.hana.im.ess to ERROR in the SAP HANA Administration Console
Inspect the latest diagnosis file xsengine_alert_xxx.trc.
Check for the following error message:
Verify whether the script server was created during installation. To do so, in the SAP HANA Administration
Console, view the Configuration tab, and in daemon.ini, expand scriptserver.
Symptom A run-time object has the Request Status of FAILED in SAP HANA ESS Administration tool Data Profiling Monitor
view. An error with message code ESS805 Insufficient privilege - user xxx must have
SELECT with GRANT option on xxx is returned.
Cause If the run-time object is not an activated object, then check that the SELECT right on the run-time object has
been granted WITH GRANT OPTION to the technical user _HANA_IM_ESS.
Symptom A data profiling request failed (the Request Status is FAILED in the SAP HANA ESS Administration tool Data
Profiling Monitor view).
Solution 2 Invalid arguments have been passed to the API. See API Error Messages [page 119].
Symptom The SAP HANA user 'User' cannot perform a search using the ESS API. An internal server error message is
returned to the application.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 117
In the SAP HANA Administration Console, set the trace level for xsa:sap.hana.im.ess to INFO.
See Activate Error Trace for Enterprise Semantic Services [page 123].
Inspect latest diagnosis file xsengine_alert_xxx.trc.
Check for the following error message:
This means that the 'User' who is publishing has not been granted the privilege Role: sap.hana.im.ess.roles::User.
CALL
"_SYS_REPO"."GRANT_ACTIVATED_ROLE"('sap.hana.im.ess.roles::User','user');
Symptom A search query does not return an expected catalog object that exists in the SAP HANA instance.
OR
Suggestions do not show an expected term, although that term is associated with a database object in the SAP
HANA instance.
Solution Verify the user who is posing the search query has sufficient privileges to access the searchable elements of the
expected catalog object as in the following table.
table, SQL view, virtual table, column metadata Owner, object privilege, READ
view CATALOG, DATA ADMIN
table, SQL view, virtual table Profiled data Owner, SELECT object privilege
Symptom A search query does not return an expected database object that exists in the SAP HANA instance.
Cause Assuming that the user has sufficient required authorizations, check the syntax of the search query.
Sales ATT Does not match value AT&T AT T will match AT&T, AT-T, AT/T
Sales_2007
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
118 PUBLIC Monitor and Operate
Search query Unexpected match Correction
Symptom Acronyms or abbreviations are not matched by a search query, which, as a result, does not return an expected
database object that exists in the SAP HANA instance.
Solution To modify the entries in the term mapping table, see "Search Term Mapping" in the Configuration Guide for SAP
HANA Smart Data Integration and SAP HANA Smart Data Quality.
Symptom A search query does not return an expected database object that exists in the SAP HANA instance.
Cause Assuming that the user has sufficient authorizations and the syntax of the search query is correct, then use the
SAP HANA ESS Administration tool Publish and Unpublish Monitor view to verify whether the database object
has been successfully published to ESS, that is, its Request Status is SUCCESSFUL.
Solution If the Request Status is FAILED, take the appropriate actions according to the error code and message.
ESS100=Error occurred Publish Not necessarily an API error. First check trace log file for details on the error.
when extracting metadata
from a publication artifact.
ESS153=Metadata Extrac Publish Check API artifact argument or SAP HANA view was concurrently deleted.
tion Internal Error: No view
definition.
ESS154=Metadata Extrac Publish Check API artifact argument or package was concurrently deleted.
tion Internal Error: No pack
age name.
ESS158=Package name Publish Check API artifact argument or artifact was concurrently deleted.
{0} does not exist.
ESS159=HANA view {0}/ Publish Check API artifact argument or artifact was concurrently deleted.
{1}.{2} does not exist.
ESS160=Publication arti Publish Check API arguments and list of supported types of publication artifacts.
fact of type {0} is not sup
ported.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 119
Error API Action
ESS161=Schema name {0} Publish Check API artifact argument or schema was concurrently deleted.
does not exist.
ESS162=Catalog object Publish Check API artifact argument or catalog object was concurrently deleted.
XXX does not exist or is not
supported.
ESS163=Invalid publication Publish Not necessarily an API error. Verify the artifact exists.
artifact qualified name {0}.
ESS164=Invalid container Publish Check API artifact argument or updates happened concurrently. Verify the
path {0}. Errors 180 186 path still exists.
ESS180=Expecting charac Publish Parsing error in artifact name. Check API artifact argument.
ter {0} but encountered
character {1} in the publi
cation artifact.
ESS181=Close quote with Publish Parsing error in artifact name. Check API artifact argument.
out a matching open quote
in string {0} of the publica
tion artifact.
ESS182=Invalid catalog Publish Parsing error in artifact name. Check API artifact argument.
publication artifact [{0}].
ESS183=Invalid publication Publish Parsing error in artifact name. Check API artifact argument.
artifact {0} [{1}].
ESS184=First identification Publish Parsing error in artifact name. Check API artifact argument.
element of the publication
artifact is not a catalog or
content {0}.
ESS185=Unmatched quote Publish Parsing error in artifact name. Check API artifact argument.
for identification element
{0} in publication artifact.
ESS186=Identification ele Publish Parsing error in artifact name. Check API artifact argument.
ment {0} should not be
empty.
Error containing string: Search Search syntax error. First check explanation given in error message. Then
Search query syntax er check search query in trace log with trace level DEBUG.
ror Errors 500 526
Error containing string: Search Request message error. First check explanation given in error message. Then
Request error message check request message in trace log with trace level DEBUG.
Errors 600 645
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
120 PUBLIC Monitor and Operate
Error API Action
ESS705=Invalid scope Publish Only roman letters (both lowercase and uppercase), digits, and underscore
name [{0}]. characters are valid.
ESS715=Invalid type filter Publish Invalid argument for typeFilter in API. Check explanation given in error mes
[{0}] for container [{1}]. sage in trace log.
Please use one of [table,vir
tualtable,view, columnview]
ESS720=External source Publish Check API parameter source. Can only be LOCAL.
[{0}] not supported.
ESS725=Mandatory argu Publish Mandatory API argument is missing. First check explanation given in error
ment [{0}] is missing in message. Then check search query in trace log with trace level DEBUG.
CT on-demand
function [{1}].
Search
ESS730=Invalid value [{0}] Publish Invalid argument in API. First check explanation given in error message. Then
for argument [{1}] in func check search query in trace log with trace level DEBUG.
CT on-demand
tion [{2}], expecting: [{3}].
Search
ESS735=Invalid value [{0}] Publish Invalid argument in API. First check explanation given in error message. Then
at position [{1}] for argu check search query in trace log with trace level DEBUG.
CT on-demand
ment [{2}] in function [{3}],
Search
expecting: [{4}].
ESS808=Profiling Error: In CT on-demand Request to profile an unknown type of run-time object. First check explanation
valid Runtime Object Type given in error message. Then check search query in trace log with trace level
{0}. Only the following input DEBUG.
values are supported: {1}
ESS810=Profiling Error: {0} CT on-demand Check API argument or artifact was concurrently deleted.
{1}.{2} does not exist.
Runtime object does not
exist
ESS812=Profiling Error: CT on-demand Check API argument or artifact has been updated concurrently.
{0} is not attribute of {1}
{2}.{3}
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 121
6.8.13 Troubleshooting Tips
Tips for troubleshooting and preparing disgnostic information for SAP support.
Procedure for error messages in HANA ESS Administration Monitor view that include If the failure
repeats.
Prerequisites
The error trace for Enterprise Semantic Services must be activated before you retry the operation.
Context
Procedure
1. Go to the Enterprise Semantic Services Administration Monitor by entering the following URL in a web
browser:
http://<<your_HANA_instance:port>>/sap/hana/im/ess/ui
2. If the transaction that failed was a publish request, click the Publish and Unpublish Monitor tile, find your run-
time object in the Published Artifact column, and click the Retry icon.
Next Steps
After you retry the operation and it still fails, collect diagnostic information.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
122 PUBLIC Monitor and Operate
6.8.13.2 Activate Error Trace for Enterprise Semantic Services
The error trace obtains detailed information about actions in Enterprise Semantic Services.
Prerequisites
To configure traces, you must have the system privilege TRACE ADMIN.
Context
To activate the error trace for Enterprise Semantic Services, follow these steps:
Procedure
1. Log on to SAP HANA studio with a user that has system privilege TRACE ADMIN.
2. In the Administration editor, choose the Trace Configuration tab.
3. Choose the Edit Configuration button for the trace that you want to configure.
4. Expand the XS ENGINE node.
Note
Ensure you select the checkbox Show All Components.
5. Locate xsa:sap.hana.im.ess and check that system trace level is INFO, ERROR, or DEBUG, because it is
usually set to DEFAULT.
6. Click Finish.
After the Enterprise Semantic Services error trace is activated, find the error message.
Procedure
1. Log on to SAP HANA studio with a user name that has system privilege CATALOG READ.
2. In the Administration editor, choose the Trace Configuration tab and go to Diagnosis Files tab.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Monitor and Operate PUBLIC 123
3. Look for one of the two most recent files xsengine_alert_xxx.trc or indexserver_alert_xxx.trc..
4. Go to the end of the file to see the error.
Procedure
1. Log on to SAP HANA studio with a user name that has the system privilege CATALOG READ.
2. In the Administration editor, choose the Trace Configuration tab and go to Diagnosis Files tab.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
124 PUBLIC Monitor and Operate
7 Administer
Administrators can manage roles and privileges, manage agent groups, create remote sources, and so on.
The following is a list of common tasks and roles or privileges that an administrator needs to assign to complete
those tasks.
Note
Permissions may also be required for accessing a particular database through a data provisioning adapter. See
the Data Provisioning Adapters section for more information.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Administer PUBLIC 125
Task Role Privileges Description
Import a delivery sap.hana.xs.lm.roles: This role is necessary if you are using SAP
unit using SAP :Administrator HANA Application Lifecycle Management to
HANA Application import the data provisioning delivery unit.
Lifecycle Manage
ment
START TASK
STOP TASK
SCHEDULE TASK
PROCESS REMOTE EXCEPTION (This in
cludes both remote source and remote
subscription exceptions)
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
126 PUBLIC Administer
Task Role Privileges Description
sap.hana.im.dp.moni
tor::StartTask
sap.hana.im.dp.moni
tor::StopTask
Create a remote System privilege: If a user can create a remote source (has
source CREATE REMOTE SOURCE system privilege),
CREATE REMOTE SOURCE
that user automatically has CREATE VIRTUAL
TABLE, DROP, CREATE REMOTE SUBSCRIP
TIONS and PROCESS REMOTE SUBSCRIP
TION EXCEPTION privileges; they dont need
to be assigned to the user. However, this only
applies to remote sources that the user cre
ates themselves. If a remote source is created
by someone else, then those privileges must
be assigned, for each remote source, in order
to perform those tasks.
Alter a remote Object privilege: In order to alter a remote source, the user
source must have the ALTER object privilege on the
ALTER
remote source. Examples of altering a remote
source include:
Drop a remote Object privilege: Must be explicitly granted for a remote source
source created by another user.
DROP
Search for an ob Object privilege: In order to search for remote objects (e.g. ta
ject in a remote bles) in a remote source, the user must have
ALTER on the remote source
source the ALTER object privilege on the remote
to be searched.
source, so that a dictionary can be created.
Add a virtual table Object privilege Must be explicitly granted for a remote source
created by another user.
CREATE VIRTUAL TABLE
Create a remote Object privilege: Must be explicitly granted for a remote source
subscription created by another user.
CREATE REMOTE SUB
SCRIPTION
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Administer PUBLIC 127
Task Role Privileges Description
Execute a stored Object privilege: Needed on the schema where the stored pro
procedure cedure is located.
EXECUTE
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
128 PUBLIC Administer
Task Role Privileges Description
Execute a task Object privilege: Needed on the schema where the task is lo
cated.
EXECUTE
INSERT
UPDATE
SELECT
DELETE
Process remote Object privilege: Must be explicitly granted for a remote source
subscription ex created by another user.
PROCESS REMOTE SUB
ceptions
SCRIPTION EXCEPTION
Use the JIT (just- Object privilege: Must be granted to _SYS_REPO user. Needed
in-time) Data Pre on the schema where the task or stored pro
view option SELECT and EXECUTE with cedure is located.
GRANT OPTION
Related Information
SAP HANA Security Guide: Developer Authorization for the Repository (HTML)
SAP HANA Security Guide: Developer Authorization for the Repository (PDF)
SAP HANA Developer Guide: SAP HANA Web-based Development Workbench: Editor (HTML)
SAP HANA Developer Guide: SAP HANA Web-based Development Workbench: Editor (PDF)
Grant Roles to Users [page 45]
Once everything has been installed, registered, configured, and so on, you can begin creating remote sources.
For more information about how to create remote sources, see the SAP HANA Administration Guide. Also, see the
Data Provisioning Adapters section in this guide for information about creating remote sources for these
adapters.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Administer PUBLIC 129
7.2.1 Add a Remote Source in the Web-based Development
Workbench
Procedure
1. In the Catalog editor, right-click the Provisioning Remote Sources folder, and choose New Remote
Source.
2. Enter the required information including the adapter and agent names.
3. Click Save.
Administrators must provide user credentials for those who need to access a remote source. They must also be
aware of the adapter-specific limitations involving user types and remote sources, as well as other functionality.
A remote source created with a secondary user can only be used for querying virtual tables.
If the remote source will be used for designing a .hdbreptask or .hdbflowgraph enabled for real time, use
technical user
If you create remote subscription using the CREATE REMOTE SUBSCRIPTION SQL statement, use
technical user.
The syntax for creating secondary user credentials for SDI data provisioning adapters is different than the syntax
for SAP HANA system adapters.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
130 PUBLIC Administer
7.3 Activate and Execute a Replication Task
Activation generates the run time objects necessary for data movement from one or many source tables to one or
more target tables.
Context
Virtual table(s): Generated in the specified virtual table schema. You can display the contents of the virtual
table in SAP HANA studio.
Remote subscription(s): Generated in the schema selected for the virtual table. This is only generated when
the Initial load only option is not selected.
Task(s): Generated in the same schema as the target table.
View(s): Generated in the same schema as the virtual table.
Target table(s): Populated with the content after execution.
Procedure: Generated in the schema of the target table, the procedure performs three functions.
1. Sets the remote subscription to the Queue status.
Note
The remote subscription is only created when Initial load only is unselected.
Note
The remote subscription is only created when Initial load only is unselected.
Procedure
Note
You can access the Catalog view on the SAP HANA XS Web server at the following URL http://
<WebServerHost>:80<SAPHanaInstance>/sap/hana/xs/ide/catalog. Choose one of the following
options to activate the replication task.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Administer PUBLIC 131
Right-click the stored procedure, and then select Invoke Procedure.
To call the stored procedure, use the following SQL script:
CALL "<schema_name>"."<package_name>::<target_table_name>".START_REPLICATION
The replication begins. You can right-click and select Open Contents to view the data in the target table in the
Catalog view.
Note
If the replication task takes longer than 300 seconds to process, you might receive an error about the
XMLHttpRequest failing. You can correct this issue by increasing the maximum run time option in the
xsengin.ini file. Follow these steps:
1. Login to SAP HANA studio as a SYSTEM user.
2. In the Systems view, right-click the name of your SAP HANA server, and then choose Configuration
and Monitoring Open Administration .
3. Click the Configuration tab.
4. Select xsengine.ini.
5. Expand httpserver.
6. Click Add parameter.
7. In the Assign Values to option, select System, and then Next.
8. In the Key option, enter max_request_runtime and then enter a value. For example, you might want
to enter 1200. The value is in seconds.
9. Click Finish and then close the Configuration tab and execute the replication task again.
Results
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
132 PUBLIC Administer
7.4 Activate and Execute a Flowgraph
After your flowgraph is created and configured, activate it to create the run-time objects.
Context
Activation creates the run-time objects based on the options set in the flowgraph.
Procedure
1. From the Project Explorer, right-click on the .hdbflowgraph that you created.
If you configured the flowgraph for initial load only, use the following SQL to run the generated task:
Note
You can also specify a variable when running Start Task. For example, if you have a Filter node set to
output records for a specific country, you can enter it in a similar way to the following.
If you configured the flowgraph for real time, use the following SQL script to execute the generated
initialization procedure:
CALL "<package_name>::<flowgraph_name>_SP"
If you configured the flowgraph for real time and want to pass a variable value, use the following script to
execute the generated initialization procedure:
CALL "<package_name>::<flowgraph_name>_SP"(""'Spain'"")
For more information about Start Task and calling a table type, see the Start Task topic.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Administer PUBLIC 133
7.5 Administering Agent Groups
Agent grouping provides fail-over and load balancing capabilities by combining individual Data Provisioning
Agents installed on separate host systems.
About fail-over
When an agent that is part of a group is inaccessible for a time longer than the configured heart beat time limit,
the Data Provisioning Server chooses a new active agent within the group and resumes replication for any remote
subscriptions active on the original agent.
Any remote subscriptions between the Queue and Distribute states at the time the agent became unavailable are
logged as exceptions, and must be manually reset with new Queue and Distribute commands.
Each smart data access request to a remote source configured on the group is routed to the first accessible agent
in the group.
Planning considerations
Before configuring agents in a group, review the following considerations and limitations:
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
134 PUBLIC Administer
7.5.1 Create or Remove an Agent Group
You can create a new agent group or remove an existing group in the SAP HANA studio or Web-based
Development Workbench.
Prerequisites
Note
You must have the AGENT_ADMIN privilege to create or remove agent groups.
Procedure
1. Open the SQL console in the SAP HANA studio or Web-based Development Workbench.
2. Execute the CREATE or DROP statement in the SQL console.
You can create and add agents to an agent group or remove agents from a group in the SAP HANA studio or Web-
based Development Workbench.
Prerequisites
Note
You must have the AGENT_ADMIN privilege to add or remove agents in an agent group.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Administer PUBLIC 135
Procedure
1. Open the SQL console in the SAP HANA studio or Web-based Development Workbench.
2. Execute the CREATE or ALTER AGENT statement in the SQL console.
To receive the benefits of fail over and load balancing from an agent group, you must configure your remote
sources on the agent group.
Procedure
1. Open the SQL console in the SAP HANA studio or Web-based Development Workbench.
2. Execute the CREATE or ALTER REMOTE SOURCE statement in the SQL console.
Note
If you are changing only the location for the remote source, you can omit the ADAPTER and
CONFIGURATION clauses:
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
136 PUBLIC Administer
Alter Remote Source Clauses
When you use ALTER REMOTE SOURCE to modify a remote source, you must specify the configuration and
credential details as XML strings.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Administer PUBLIC 137
<PropertyEntry name="lr_parallel_scan_queue_size"></PropertyEntry>
<PropertyEntry name="lr_parallel_scan_range"></PropertyEntry>
</PropertyGroup>
<PropertyGroup name="logreader">
<PropertyEntry name="skip_lr_errors">false</PropertyEntry>
<PropertyEntry name="lr_max_op_queue_size">1000</PropertyEntry>
<PropertyEntry name="lr_max_scan_queue_size">1000</PropertyEntry>
<PropertyEntry name="lr_max_session_cache_size">1000</PropertyEntry>
<PropertyEntry name="scan_fetch_size">10</PropertyEntry>
<PropertyEntry name="pdb_dflt_column_repl">true</PropertyEntry>
<PropertyEntry name="pdb_ignore_unsupported_anydata">false</
PropertyEntry>
<PropertyEntry name="pds_sql_connection_pool_size">15</
PropertyEntry>
<PropertyEntry name="pds_retry_count">5</PropertyEntry>
<PropertyEntry name="pds_retry_timeout">10</PropertyEntry>
</PropertyGroup>
</PropertyGroup>
</ConnectionProperties>'
You can uninstall the Data Provisioning Agent in graphical mode on Windows and Linux.
Procedure
Results
Next Steps
After uninstalling the agent, several files and directories generated by the agent during runtime may be left in
place. If you choose, you can safely remove these remaining files and directories manually.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
138 PUBLIC Administer
Remove the following files and directories from <DPAgent_root>:
configTool/
configuration/
install/
log/
LogReader/
workspace/
If you cannot use or do not want to use the graphical uninstallation mode, you can uninstall the Data Provisioning
Agent using the command line.
Procedure
Results
The Data Provisioning Agent is uninstalled from the system without displaying the graphical uninstallation
manager.
You can back up your Data Provisioning Agent configuration by copying key static configuration files to a secure
location. You can use this backup to restore communication between the SAP HANA server and the Data
Provisioning Agent.
Note
This backup can be restored only to an agent host with the same fully-qualified domain name as the original
agent. You cannot use the backup to transport configuration settings between agents with different fully-
qualified domain names.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Administer PUBLIC 139
For example, you cannot use a backup from an agent on host1.mydomain.com to restore settings to an agent
on host2.mydomain.com.
Restriction
CDC state information for Log Reader adapters cannot be backed up and restored.
Unless specified, all files and directories that you need to back up are located under <DPAgent_root>:
dpagent.ini
dpagentconfig.ini
sec
secure_storage
ssl/cacerts
configuration/com.sap.hana.dp.adapterframework
lib/
camel/
LogReader/config
LogReader/sybfilter/system/<platform>/LogPath.cfg
This section describes error situations related to the Data Provisioning Agent and their solutions.
Various log files are available to monitor and troubleshoot the Data Provisioning Agent.
<DPAgent_root>/log/framework_alert.trc Data Provisioning Agent adapter framework log. Use this file
to monitor data provisioning agent statistics.
<DPAgent_root>/log/framework.trc Data Provisioning Agent adapter framework trace log. Use this
file to trace and debug data provisioning agent issues
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
140 PUBLIC Administer
Log File Name and Location Description
Additionally, scripts for performing source database initialization and cleanup operations can be found at
<DPAgent_root>/LogReader/scripts.
If the Data Provisioning Agent is accidentally started by the root user, you should clean up the agent installation. In
a normal configuration, the Data Provisioning Agent should be started only by a user with the same rights and
permissions as the installation owner defined during the agent installation.
Context
If the agent is started by the root user, additional files are created in the installation location. The agent cannot
access these additional files because root is their owner, and they should be removed.
Note
This applies only if the agent was started by the user actually named root, and not other users that may belong
to the root group or have similar permissions.
Procedure
com.sap.hana.dp.adapterframework
org.eclipse.core.runtime
org.eclipse.osgi
Caution
Do not remove the config.ini file or org.eclipse.equinox.simpleconfigurator directory.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Administer PUBLIC 141
Note
Depending on the permissions, you may require sudo access to remove the secure_storage file.
If the Java Virtual Machine on the Data Provisioning Agent is running out of memory, you may need to adjust
configuration parameters on the Agent or your adapters.
For Oracle log reader adapters, there are multiple possible solutions.
For general memory issues, you can increase the JVM memory usage.
In dpconfig.ini, change the memory allocation parameter, and restart the Agent.
When task execution fails due to an adapter timeout, you may need to adjust the adapter prefetch timeout
parameter.
In the Index Server trace log, you may notice an error similar to the following:
When this type of error appears, you can adjust the value of the adapter prefetch timeout parameter.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
142 PUBLIC Administer
From a SQL console:
For example, you might change the value to 600 to set the timeout to 10 minutes.
If the Data Provisioning Agent reports error code 5 when stopping or starting on Windows, you may need to run
the configuration tool as an administrator.
To run the configuration tool once as an administrator, right-click on dpagentconfigtool.exe and choose Run
as administrator.
Alternatively, you can set the configuration tool to always run as an administrator. Right-click on
dpagentconfigtool.exe and choose Properties. From the Compatibility tab, choose Run this program as an
administrator and click OK.
After uninstalling the Data Provisioning Agent and installing a new version, alerts and exceptions may be reported
for the previous installation.
If the agent is uninstalled, but associated remote sources and the agent registration are not dropped, any
replication tasks still using remote sources on the previous agent may report alerts and exceptions.
Solution
Drop outdated remote sources and the agent registration referring to the old installation.
If you do not know the old agent name, you can find it using SELECT * FROM sys.m_agents.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Administer PUBLIC 143
7.9 Configuring the Operation Cache
You can improve performance by using an operation cache in some script servers.
The operation cache holds operation instances for Global Address Cleanse, Universal Data Cleanse, Geocode, and
Type Identifier (TID), which are initialized and ready for use during task plan execution. This improves
performance by avoiding the process of task plan operation initialization/create and deletion, and allows the re-
use of the cached instances both inside a single plan and across plans.
Having more instances cached improves performance, but those additional cached instances consume more
memory.
Operation cache instances are type specific and are set in the file scriptserver.ini.
You can use the following monitoring views to verify the cached operations, usage count, and so on.
The operation cache can be configured in SAP HANA studio by editing the file scriptserver.ini.
To start operation cache instances, you must set the enable_adapter_operation_cache parameter to yes. The
following sample SQL statement sets the parameter to yes.
You can turn off the cache for each node, or change the default number of instances. The following sample SQL
statement changes the number of instances.
By default, the operation cache is enabled for all the supported types of operations (which is recommended) and
has the following number of instances.
Geocode 10
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
144 PUBLIC Administer
Option Number of instances default setting
Type Identification 20
The operation cache is used for both batch jobs and real time jobs. Batch jobs can exhaust the operation cache,
leaving insufficient resources to optimize the running of real time jobs. If you run real time jobs, use these settings
to ensure that a dedicated number of operation cache instances are available for real time tasks. By default, the
number of instances made available to real time tasks is half the total number of instances for each option.
Geocode 5
Type Identification 0
Within the Cleanse node, you can configure two options that are relevant to Global Address Cleanse. When
caching is enabled, we recommend for better performance that these options are set as follows:
Ensure that in circumstances of limited memory or CPU resources that processes and system resources remain
responsive.
Information on the specifics and procedures of workload management is found in the SAP HANA Administration
Guide.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Administer PUBLIC 145
SAP HANA smart data integration takes advantage of this framework and allows you to better handle
circumstances of limited resources. Workload management in SAP HANA allows you to optimize for your system.
This framework also works within the limited memory or CPU resources, as you define them in the workload class
and mapping.
For example, if the workload class sets STATEMENT THREAD LIMIT = 5, then SAP HANA creates up to five
instances per node or operation in parallel during the task plan execution.
If the workload class sets STATEMENT MEMORY LIMIT = 2GB, but any of the nodes or operation in the task plan
require more than 2GB of memory, then the task would fail with an error [MEMORY_LIMIT_VIOLATION]
Information about current memory composite-limit violation.
You must consider these options and constraints to create the best possible performance.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
146 PUBLIC Administer
8 Data Provisioning Adapters
Use data provisioning adapters to connect to, and in some cases, write back to a data source.
The following adapters are delivered with the Data Provisioning Agent. A brief description of their functionality is
provided. For information about specific functionality for each adapter, see the individual adapter documentation
in this guide, where you can find out whether any of the following is supported:
See the SAP HANA SAP HANA Smart Data Integration and SAP HANA Smart Data Quality Configuration Guide for
information about those features.
DB2LogReaderAdapter This adapter retrieves data from DB2. It can also receive changes that occur to tables in real time.
You can also write back to a virtual table.
OracleLogReaderAdapter This adapter retrieves data from Oracle. It can also receive changes that occur to tables in real
time. You can also write back to a virtual table.
MssqlLogReaderAdapter This adapter retrieves data from SQL Server. It can also receive changes that occur to tables in
real time. You can also write back to a virtual table.
DB2ECCAdapter This adapter retrieves data from an SAP ERP system running on DB2. It can also receive changes
that occur to tables in real time. The only difference between this adapter and the DB2LogRea
derAdapter is that this adapter uses the data dictionary in the SAP ERP system when browsing
metadata.
OracleECCAdapter This adapter retrieves data from an SAP ERP system running on Oracle. It can also receive
changes that occur to tables in real time. The only difference between this adapter and the Ora
cleLogReaderAdapter is that this adapter uses the data dictionary in the SAP ERP system when
browsing metadata.
MssqlECCAdapter This adapter retrieves data from an SAP ERP system running on SQL Server. It can also receive
changes that occur to tables in real time. The only difference between this adapter and the
MssqlLogReaderAdapter is that this adapter uses the data dictionary in the SAP ERP system
when browsing metadata.
AseECCAdapter This adapter retrieves data from an SAP ERP system running on SAP ASE. It can also receive
changes that occur to tables in real time.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 147
Adapter Name Description
CamelAccessAdapter The Camel Access adapter is a pre-delivered component that is based upon Camel adapter. This
adapter retrieves data from a Microsoft Access source.
CamelFacebookAdapter The Camel Facebook adapter is a pre-delivered component that is based upon Camel adapter.
Use the Camel Facebook component to connect to and retrieve data from Facebook. In addition
to Facebook, many other components are available from the Apache Software Foundation web
site.
CamelInformixAdapter The Camel Informix adapter is a pre-delivered component that is based upon Camel adapter. This
adapter retrieves data from an Informix source. It can also write back to an Informix virtual table.
DB2MainframeAdapter This adapter retrieves data from a DB2 for z/OS system. You can also write back to a virtual ta
ble.
FileAdapter This adapter retrieves data from formatted text files. You can also write back to a virtual table.
You can also access SharePoint source data, as well as write to an HDFS target file.
HanaAdapter This adapter provides real-time change data capture capability in order to replicate data from a
remote SAP HANA database to a target SAP HANA database. You can also write back to a virtual
table.
ODataAdapter This adapter retrieves data from an OData service. You can also write to an OData target.
ASEAdapter This adapter retrieves data from SAP ASE. It can also receive changes that occur to tables in real
time. You can also write back to a virtual table.
ABAPAdapter This adapter retrieves data from virtual tables through RFC for ABAP tables and ODP extractors.
It also provides change data capture for ODP extractors.
SoapAdapter This adapter is a SOAP web services client that can talk to a web service using the HTTP protocol
to download the data. The SOAP adapter uses virtual functions instead of virtual tables to expose
server side operations as it closely relates to how the operation is invoked.
TwitterAdapter This adapter retrieves data from Twitter. It can also receive new data from Twitter in real time.
TeradataAdapter This adapter retrieves data from Teradata. It can also receive changes that occur to tables in real
time. You can also write back to a virtual table.
If the source you are using is not on the list, you can use the Adapter SDK to create custom adapters to suit your
needs. See the SAP HANA Smart Data Integration Adapter SDK Guide for more information.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
148 PUBLIC Data Provisioning Adapters
See the SAP HANA Smart Data Integration Product Availability Matrix for information about supported versions.
Related Information
Setting up your adapters consists of the following steps. These are the basic steps for configuring your adapters
for batch loads. If you plan to use realtime, your adapters (if realtime is supported) and source systems may
require additional configuration:
Depending on the adapter you are setting up, there may be other setup requirements.
Note
The OData adapter is not part of the Data Provisioning Agent installation. The OData adapter is installed with
SAP HANA Server, and requires configuration that cannot be done using the Data Provisioning Agent
Configuration tool.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 149
8.2 Custom Adapters
The adapters that are described in this document and that come installed with the Data Provisioning Agent were
created using the Adapter SDK. You can use the Adapter SDK to create your own custom adapters and to connect
to virtually any source you require.
Administrators will need to set up the remote sources to these custom adapters on the appropriate agent.
Related Information
SAP HANA SAP HANA Smart Data Integration Adapter SDK Guide (PDF)
Register Adapters with SAP HANA [page 42]
The Apache Camel Facebook adapter is created based on Camel Adapter. It makes use of the Facebook
Component (http://camel.apache.org/facebook.html) to access Facebook APIs. Facebook data of the configured
Facebook user, like friends, families, movies, etc., are exposed to SAP HANA server via virtual tables by Camel
Facebook Adapter.
Context
By default, Camel Facebook Adapter is not available in Data Provisioning Agent. To use it, you must do the
following:
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
150 PUBLIC Data Provisioning Adapters
Procedure
The Camel Facebook adapter has the following remote source configuration parameters. All these parameters are
used to configure Facebook component options (See <DPAgent_root>/camel/facebook.xml). If you need to
specify non-default values for Facebook component options (See http://camel.apache.org/facebook.html for a
complete list of these options), you can add more remote source parameters in the adapter configuration in
adapters.xml, and update the Facebook component bean in <DPAgent_root>/camel/facebook.xml
accordingly.
Facebook requires the use of OAuth for all client application authentication. In order to use the Camel Facebook
adapter with your account, you'll need to create a new application within Facebook at https://
developers.facebook.com/apps and grant the application access to your account. The Facebook application's ID
and secret will allow access to Facebook APIs which do not require a current user. A user access token is required
for APIs that require a logged in user. More information about obtaining a user access token can be found at
https://developers.facebook.com/docs/facebook-login/access-tokens/.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 151
Category Option Description
Facebook data for the configured Facebook user, such as friends, families, movies, news, and so on, are exposed
in SAP HANA server via virtual tables by the Camel Facebook adapter. The exposed table names and their
definitions are below.
id VARCHAR
name VARCHAR
category VARCHAR
accessToken VARCHAR
id VARCHAR
name VARCHAR
category VARCHAR
createdTime TIMESTAMP
id VARCHAR
name VARCHAR
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
152 PUBLIC Data Provisioning Adapters
Column Name SQL Data Type
category VARCHAR
id VARCHAR
name VARCHAR
gender VARCHAR
email VARCHAR
firstName VARCHAR
middleName VARCHAR
lastName VARCHAR
locale VARCHAR
link VARCHAR
username VARCHAR
thirdPartyId VARCHAR
timezone DOUBLE
updatedTime TIMESTAMP
verified TINYINT
bio VARCHAR
birthday VARCHAR
political VARCHAR
quotes VARCHAR
relationnshipStatus VARCHAR
religion VARCHAR
website VARCHAR
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 153
Table 32: ME
id VARCHAR
name VARCHAR
firstName VARCHAR
middleName VARCHAR
lastName VARCHAR
gender VARCHAR
locale VARCHAR
link VARCHAR
username VARCHAR
thirdPartyId VARCHAR
timezone DOUBLE
updatedTime TIMESTAMP
bio VARCHAR
birthday VARCHAR
cover VARCHAR
education VARCHAR
email VARCHAR
id VARCHAR
name VARCHAR
category VARCHAR
createdTime TIMESTAMP
id VARCHAR
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
154 PUBLIC Data Provisioning Adapters
Column Name SQL Data Type
name VARCHAR
category VARCHAR
createdTime TIMESTAMP
id VARCHAR
name VARCHAR
category VARCHAR
createdTime TIMESTAMP
Use the Camel Informix adapter to connect to an IBM Informix remote source.
You can connect to an Informix source using the Camel Informix adapter.
Note
Before registering your adapter with the SAP HANA system, be sure that you have downloaded and installed
the correct JDBC libraries.
Context
By default, Camel Informix Adapter is not available in Data Provisioning Agent. To use it, you must do the
following:
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 155
Procedure
Configure the following options in smart data access to configure your connection to an Informix remote source.
Port Port
Delimident If set to True, the Informix database object name will be enclosed
with double quotation marks.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
156 PUBLIC Data Provisioning Adapters
Category Option Description
The following is an example of SQL code used to configure an Informix remote source.
BIGINT BIGINT
BIGSERIAL BIGINT
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 157
Camel Informix SAP HANA
BOOLEAN TINYINT
BYTE The BYTE data type has no maximum size. A BYTE col BLOB (2G)
umn has a theoretical limit of 231
DATE DATE
DEC DECIMAL
DECIMAL DECIMAL
DOUBLE PRECISION
IDSSECURITYLABEL VARCHAR(128)
INT INTEGER
INT8 BIGINT
INTEGER INTEGER
REAL REAL
SMALLFLOAT REAL
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
158 PUBLIC Data Provisioning Adapters
Camel Informix SAP HANA
SMALLINT SMALLINT
TEXT TEXT
In some cases, Informix SQL and SAP HANA SQL are not compatible. The following table lists the conversions that
may take place:
$1::DECIMAL TO_DECIMAL($1)
$1::DECIMAL($2) TO_DECIMAL($1,$2)
$1::REAL TO_REAL($1)
$1::INT TO_INT($1)
$1::BIGINT TO_BIGINT($1)
$1::SMALLINT TO_SMALLINT($1)
$1::INTEGER TO_INTEGER($1)
The Apache Camel Microsoft Access adapter is created based on Camel Adapter. Using the adapter, you can
access Microsoft Access database data via virtual tables.
Note
The Camel Access adapter can only be used when the Data Provisioning Agent is installed on Microsoft
Windows.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 159
8.5.1 Set Up the Camel MS Access Adapter
Context
By default, Camel MS Access adapter is not available in Data Provisioning Agent. To use it, you must do the
following:
Procedure
1. Verify that you have the proper ODBC driver installed by going to Control Panel Administrative Tools
ODBC Data Sources . Only the 64-bit driver is supported by the DP Agent.
a. If you don't have the necessary driver installed, download and install the MS Access ODBC (64-bit) driver.
(http://download.microsoft.com/download/2/4/3/24375141-E08D-4803-AB0E-10F2E3A07AAA/
AccessDatabaseEngine_x64.exe )
2. In MS Access, if the file version is 2003, in the Tables window, right-click MSysObjects, and select Navigation
Options to show system objects.
3. In the Info window of MS Access, right-click the Users and Permissions button, and select User and Group
Permissions to give an admin user all permissions on MSysObjects.
4. Enable macros in the MS Access Trust Center.
5. Run the following command:
Sub currentuser()
strDdl = "GRANT SELECT ON MSysObjects TO Admin;"
CurrentProject.Connection.Execute strDdl
End Sub
Configure the following options in smart data access to configure your connection to an Access remote source.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
160 PUBLIC Data Provisioning Adapters
Category Option Description
Configuration Access File Path Specifies the path to the Access database file.
Access File Name Specifies the name of the Access database file.
Sample Code
Learn how MS Access data types convert to SAP HANA data types.
The following table shows the conversion between MS Access data types and SAP HANA data types.
MS Access data type JDBC data type SAP HANA Data type
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 161
MS Access data type JDBC data type SAP HANA Data type
The IBM DB2 for z/OS adapter is a data provisioning adapter that provides DB2 client access to the database
deployed on IBM DB2 for z/OS system with its service provider and data/metadata. The z/OS DB2 service
provider is created as a data provisioning remote source. DB2 database resources are exposed as remote objects
of the remote source. These remote objects can be added as data provisioning virtual tables. The collection of
DB2 data entries are represented as rows of the virtual table.
Adapter Functionality
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
162 PUBLIC Data Provisioning Adapters
In addition, this adapter supports the following capabilities:
Functionality Supported?
Realtime No
Functionality Supported?
ORDER BY Yes
GROUP BY Yes
The method to set DB2 UDB environment variables depends on the operating system.
For Linux, the DB2 UDB installation provides two scripts for setting up the DB2 UDB environment variables:
db2cshrc for C shell and db2profile for Bourne or Korn shell. These scripts set the library path environment
variable based on the bit size of the installed server or client.
For Linux platforms, the 32-bit and 64-bit versions of the driver and API libraries are located in <$HOME/sqllib/
lib32> and <$HOME/sqllib/lib64>, respectively, where <$HOME> is the home directory of the DB2 UDB
instance owner.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 163
Note
If the Data Provisioning Agent is installed on Linux, the library path environment variable must point to the 64-
bit libraries. For Windows, the library path environment variable must point to the 32-bit libraries.
Note
We recommend that you add a line to the <DPAgent_root>/bin/dpagent_env.sh file to source the
db2profile. This will ensure that when you use dpagent_service.sh to start and stop the DPAgent service,
the DB2 UDB environment variables will be sourced automatically. For example, you could add a line such as
source /home/db2inst1/sqllib/db2profile.
The IBM DB2 for z/OS adapter requires a user with read privileges to the SYSIBM.SYSCOLUMNS system table.
Context
If you receive the following error from the adapter, follow these steps to bind the DB2 SYSHL package:
Procedure
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
164 PUBLIC Data Provisioning Adapters
8.6.4 Preparing JDBC Files
Prepare the IBM DB2 JDBC JAR files to use the IBM DB2 for z/OS adapter.
In order to use the IBM z/OS DB2 adapter, you are required to copy the following IBM DB2 JDBC JAR files to
the /lib folder of the Data Provisioning Agent installation directory (<DPAgent_root>\lib).
db2jcc4.jar (Required)
You can download this file here: http://www-01.ibm.com/support/docview.wss?uid=swg21363866 . Be
sure to download the JDBC JAR file according to your DB2 database version.
db2jcc_license_cisuz.jar (Required)
You can find information about this file here: http://www-01.ibm.com/support/docview.wss?
uid=swg21191319
These JAR files will be available in the installation directory after you have installed the IBM DB2 client. For
example, on a Windows System, the JAR files will be located in C:\Program Files\IBM\SQLLIB\java
Download them from the IBM Support and Download Center.
Note
If the source z/OS DB2 system contains a non-English CCSID table space, you are required to update the JVM
to an internationalized version. At a minimum, the charsets.jar file within the current JVM should contain
the required CharToByteCP<XXX>.class, where <XXX> corresponds to the source systems language locale.
Database Host Host name or IP address on which the remote DB2 data
server is running.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 165
Category Option Description
z/OS DB2 Additional Info Bind Packages When this option is set to Yes, the DB2 z/OS adapter auto
matically checks and binds all of the required missing JAR
files.
Note
If any necessary packages are missing, an error occurs.
User Name The DB2 user that has access to the tables that will be
added as virtual tables in HANA.
BIGINT BIGINT
BINARY VARBINARY
BLOB BLOB
CHAR VARCHAR
CLOB CLOB
DATE DATE
DBCLOB CLOB
DECIMAL DECIMAL
DECFLOAT DOUBLE
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
166 PUBLIC Data Provisioning Adapters
DB2 z/OS Data Type SAP HANA Data Type
DOUBLE DOUBLE
GRAPHIC NVARCHAR
INTEGER INTEGER
LONGVARBINARY BLOB
LONGVARCHAR CLOB
LONGVARGRAPHIC NCLOB
NCLOB NCLOB
REAL REAL
ROWID INTEGER
SMALLINT SMALLINT
TIME TIME
TIMESTAMP TIMESTAMP
VARBINARY VARBINARY
VARCHAR VARCHAR
VARGRAPHIC NVARCHAR
8.7 File
Use the File adapter to read formatted and free form text files.
The File adapter enables SAP HANA users to read formatted and free form text files which are accessible on the
computer running the adapter with the operating user permissions the adapter/agent had been started under. In
order to specify the file format (for example, delimited character), a configuration file (.cfg) has to be created
containing this information. Then each file can be read and parsed through this format, returning the data in
columns of a virtual table.
For free form text (unstructured) files, you do not need to designate a file format definition, and you can use the
FILECONTENT virtual table to view the data.
Adapter Functionality
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 167
Virtual table as a target using a Data Sink in a flowgraph (Only INSERT is supported)
SharePoint source support
HDFS target file support (except from SharePoint)
XML source and target support
JSON source and target support
Parallel readers (Partitioning)
Functionality Supported?
Realtime No
Functionality Supported?
ORDER BY No
GROUP BY No
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
168 PUBLIC Data Provisioning Adapters
8.7.1 Configure the File Adapter
Context
The File adapter is already deployed with the Data Provisioning Agent that you installed. However, you will need to
configure and register the adapter.
Procedure
Next Steps
Now, you can register your adapter with the Data Provisioning Agent.
Related Information
Parameter Description
Root directory The root directory for your data files. This is used for security. No remote source can reach
beyond this directory for data files.
File format root directory The root directory for your File Format definitions. This is used for security. No remote
source can reach beyond this directory for data files.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 169
Parameter Description
Access Token A password. An access token protects the files from access from different agents. Use this
same password when creating a remote source.
The active parameters may change, depending on which options you choose.
Note
If you want to use a DPAgent agent, installed on Linux, to connect to the SharePoint site, enable Basic
Authentication on the SharePoint server.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
170 PUBLIC Data Provisioning Adapters
Category Sub-category Option Description
Note
Do not use a link directory
or directory shortcut for a
value in this parameter.
Note
Do not use a link directory
or directory shortcut for a
value in this parameter.
SharePoint Server Server URL Enter the URL for the server
Configuration where the SharePoint source
is located.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 171
Category Sub-category Option Description
SharePoint Login SharePoint User (Domain The domain and user name
\Username) for the SharePoint account.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
172 PUBLIC Data Provisioning Adapters
8.7.3 Generate the Configuration File
Procedure
1. Navigate to <DPAgent_root>\agentutils
2. Run the following from command line:
For Windows:
For UNIX:
Only the -file, -cfgdir, -format (when using a CSV file) parameters are required.
The value for the -file parameter is the path to the directory containing one or more data files or path to a
single file name for which the configuration files need to be generated. The value for the -cfgdir is the path
to the output directory where the generated configuration files will be stored.
A number of options and value pairs can be provided as additional parameters. The following are supported:
Parameter Description
Note
This is a required parameter, if you are using a CSV file. The syntax is -format
CSV.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 173
Delimiter Character
Column delimiter ,
\r\n (Windows)
Escape character \
Note
Only one format of each type (date, time, second date) is allowed per file. So, if you have two columns
containing different formatted dates in it, only the first one will be recognized. The second will be Varchar.
Example
Run this tool to generate a configuration file named call_center.dat that has ';' as a column delimiter and
'\n' as a row delimiter:
Create a file format configuration file to work with your data file.
Each configuration file is a text file and must match the following format:
The first line must contain a comment or a description. This line will be ignored for processing.
Then a set of key-value-pairs to specify the various parsing options
A set of COLUMN=<name>;<Hana datatype>;<optional description>
Example
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
174 PUBLIC Data Provisioning Adapters
COLUMN=FIPSTATE;VARCHAR(2);FIPS State Code
COLUMN=EMP;INTEGER;Total Mid-March Employees with Noise
COLUMN=QP1_NF;VARCHAR(1);Total First Quarter Payroll Noise Flag
COLUMN=CENSTATE;VARCHAR(2);Census State Code
COLUMN=CENCTY;VARCHAR(3);Census County Code
COLUMN=PARTITION
COLUMNSTARTENDPOSITION=
Fixed file formats are also supported. (FORMAT=fixed). The formatting can be specified using the
COLUMSTARTENDPOSITION, or the ROW_DELIMITER and ROWLENGTH parameters.
Example
Fixed Fileformat
FORMAT=FIXED
FORCE_FILENAME_PATTERN=fixed%.txt
CODEPAGE=UTF-8
LOCALE=
ROW_DELIMITER=\r\n
SKIP_HEADER_LINES=1
COLUMNSSTARTENDPOSITION=0-1;2-7;8-15
ROWLENGTH=16
COLUMN=COL1;VARCHAR(2)
COLUMN=COL2;VARCHAR(6)
COLUMN=COL3;VARCHAR(8)
Example
If your file exists in a subfolder, be sure to include that in the path for the FORCE_DIRECTORY_PATTERN
parameter.
FORCE_FILENAME_PATTERN=<file_name>.txt
FORCE_DIRECTORY_PATTERN=<root_directory><local_folder_path>/<folder_name>
Note
The FORCE_DIRECTORY_PATTERN should be an absolute path that includes the root directory, local folder
path, and folder path on the Sharepoint server.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 175
8.7.4.1 Format Parameters
Global
FORCE_FILENAME_PATTERN You might want to execute a simple select * from <virtualtable> with
out a WHERE clause on a directory and name of file. In that case, every single file in
FORCE_DIRECTORY_PATTERN
the root directory and subdirectories will be read and parsed according to this virtual
table format definitions. That might take a while and produce many errors. However,
if the virtual table does map to files in a particular directory, directory tree, or to par
ticular file names only, you can specify this information in the virtual table directly.
For example:
FORCE_DIRECTORY_PATTERN=/usr/sap/FileAdapter/
FileServer/plandata
FORCE_FILENAME_PATTERN=plan%.txt
CODEPAGE The character encoding the file is read with. By default the operating system default
is used. In case the file has a Byte Order Mark this codepage is used always. Valid
values of the Java installation can be found by creating a virtual table for CODEPAGE
and querying its contents.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
176 PUBLIC Data Provisioning Adapters
Parameter Description and Examples
ROW_DELIMITER A character sequence indicating the end of a row in the file. In case these are non-
printable characters they can be provided encoded as /d65536 or /xFFFF or as Uni
code notation /u+FFFF. Alternatively the typical \r and \n is supported as well. Ex
amples:
\n Unix standard
\r\n Windows standard
\d13\d10 Windows standard but characters provided as decimal number
\x0D\x0A Windows standard but characters provided as hex number
SKIP_HEADER_LINES In case the file has a header, the number of lines to be skipped is entered here
ERROR_ON_COLUMNCOUNT By default a row with less columns then defined is considered okay. By setting this
parameter to true, it is expected that all rows of the file have as many columns as
defined.
LOCALE The decimal and date conversion from the strings in the file into native numbers or
dates might be locale specific. For example the text "3,1415" is a perfectly nice value
for PI but in the German notation where the comma is the decimal separator. With
an English locale it would be a large integer number 31415. Same thing with dates in
case the month or day name is used. "14. Oktober 2000" with locale German is fine,
for all other languages it is not. Again, valid values for the locale can be found by
querying a virtual table based on the LOCALE table of the adapter.
DATEFORMAT The file format can use these datatypes for the date/time related values. Each can
have a different format string. The syntax of the format string is the Java SimpleDa
TIMEFORMAT
teFormat syntax.
SECONDDATEFORMAT
TIMESTAMPFORMAT
COLUMN Multiple entries each consist of the columnname;datatype where the datatype is any
normal SAP HANA datatype.
CSV only
COLUMN_DELIMITER The character sequence indicating the next column. If non-printable characters
are used then either one of the encodings will work \d65536, \xFFFF or \u+FFFF
; Meaning the ; is the column separator, so a line looks like 2000;IT Costs;
435.55
| using the pipe character as delimiter
\d09 using an ASCII tab character as delimiter
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 177
Parameter Description and Examples
TEXT_QUOTES Sometimes text data is enclosed in quotes so a column delimiter inside the text
does not break the format. The line 2000;IT Costs; software related only;435.55
would appear as 4 columns as the text contains a semicolon as well. If the file
was created with quotes like 2000;"IT Costs; software related only";435.55 then
there is no such issue but the file parser needs to act more carefully and not just
search for the next column delimiter. It needs to check if the text is inside the text
quote character or outside.
ESCAPE_CHAR Another way to deal with inline special characters is to escape those, like in
2000;IT Costs\; software related only;435.55. Here the \ char is an escape char
and indicates that the subsequent character is to be taken literally, not as e.g.
column delimiter.
TEXT_QUOTES_ESCAPE_CHAR Leaves the question on how to make quotes appear inside the text, like in IT
Costs; "software related" only. One option the file creator might have used is to
simply use the global escape character: 2000;"IT Costs; \"software related\"
only";435.55. Another popular method is the have the quotes escaped by an
other quote like in 2000;"IT Costs; ""software related"" only";435.55. In that case
both the TEXT_QUOTE=" and the TEXT_QUOTE_ESCAPE_CHAR=" are set to the
" character.
QUOTED_TEXT_CONTAIN_ROW_DELIM The default value is false and tells the parser regardless of any quotes or escape
ITER characters the text inside a row does never contain the row delimiter character
sequence. In this case the parser can break the file into rows much faster, it
needs to search for the character sequence only, and only the column parsing
has to consider the escape and quote characters. If set to true parsing will be
slower.
COLUMNSSTARTENDPOSI In a fixed width file the column positions need to be specified for each column. Example:
TION
0-3;4-11;12-37;38-53 defines that the first 4 characters are the first column, the next 8
contain the data for the second column etc. Columns need to be in the proper order.
0;4;12;38 is equivalent to above example, the last column ends with the line end
0;4;12;38-53 can be used as well. In fact every single column can either specify the start
and end position or just the start.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
178 PUBLIC Data Provisioning Adapters
Parameter Description and Examples
ROWLENGTH In fixed with files there does not need to be a row delimiter. Often the file has some and then
they need to be stripped away. Examples assuming the last data character is at index 53 as
specified above:
ROWLENGTH=56 ROW_DELIMITER= would work for a file that has a row delimiter. The
payload text ranges from 0..53 and hence 54 characters long plus two characters for \r
\n. But the last column does not contain the \r\n as it is told to end at index 53.
ROWLENGTH=54 ROW_DELIMITER=\r\n is equivalent to above. Each row is expected to
be 54 characters plus 2 characters long. The main advantage of this notation is that COL
UMNSSTARTENDPOSITION=0;4;12;38 would work as well as the trailing \r\n is stripped
away. In the previous example the the last column would start at 38 but end at index 55
due to rowlength=56 and hence contain the \r\n characters in the last column.
After a remote source is created, you can browse the remote source. Each of the configured CFG files is shown as
a remote table under the remote source and can be imported as a virtual table. The following tables are always
included:
Table Description
CODEPAGES Use this table to retrieve all supported codepages of the Java installation and optionally spec
ify one in the various file format configuration files. The codepage controls the used charac
ter encodings of the source files.
FILECONTENT This virtual table has one row per file and the entire file content is inside a BLOB column. Use
this table for unstructured data files.
FILECONTENTROWS Similar to FILECONTENT, this table returns the data as is, without any conversion, but splits
the file at every <newline> character into a new row.
FILECONTENTTEXT This virtual table has one row per file, and the entire file content is inside a NCLOB column.
Use this table for unstructured data files. In case the file has no ByteOrderMark (BOM)
header to identify the codepage, or the operating system default codepage is not the proper
one, the reader option CODEPAGE can be supplied.
FILEDIRECTORY Returns the list of all files in the remote source configured root directory and its sub directo
ries.
LOCALES This table returns all supported Java locales, and the values can be used to control the locale
of the file read, which impacts the decimal format, the month names of a date format, and so
on.
STATISTICS_CHAR Calculates the number of occurrences of each character in the files. Characters that occur
often will be column delimiters, optional text quotes, and row delimiter characters.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 179
8.7.6 HDFS Target Files
You can write to an HDFS target file using the File adapter.
The File adapter supports target files copied from a local machine to a remote HDFS when processing commit
changes after finishing an insert operation. You must configure your HDFS target file using the File adapter
remote source configuration parameters.
An HDFS target accepts all file formats that are already supported in the File adapter.
Related Information
8.8 Google+
Use the Google+ adapter to access social information from the Google+ website.
Before you can create a Google+ remote source, you will need to acquire a Google+ user ID and a verification code
to use when creating a Google+ remote source.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
180 PUBLIC Data Provisioning Adapters
5. Copy and paste your verification code into the Google+ Verification Code parameter when creating your
remote source.
Related Information
Configure the following options in smart data access to configure your connection to your Google+ source.
Option Description
Google+ User ID The user ID for the Google+ account being used. This is your Google e-mail address.
Google+ Verification Code The verification code you are given when accessing the following URL (Existing Google
account neccessary for access.)
https://accounts.google.com/o/oauth2/auth?access_type=offline&appro
val_prompt=force&client_id=272692714371-lk8ugf7fbour
fojrhg68sno2tle3c82q.apps.googleusercontent.com&redirect_uri=urn:ietf:wg:oauth:
2.0:oob&response_type=code&scope=https://www.googleapis.com/auth/plus.login
Note
You may need to copy and paste the URL into a browser.
The following is an example of the SQL code to use for creating a Google+ remote source.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 181
<PropertyEntry name="httpProxyHost" displayName="HTTP Proxy Host"><Host
Name></PropertyEntry>
<PropertyEntry name="httpProxyPort" displayName="HTTP Proxy
Port"><Port></PropertyEntry>
</PropertyGroup>
</ConnectionProperties>'
WITH CREDENTIAL TYPE 'PASSWORD' USING
'<CredentialEntry name="credential">
<user><User ID></user>
<password displayName="Google plus Verification Code"><Password></password>
</CredentialEntry>';
People Table
The following tables show you the kind of data that you can retrieve from a Google+ source.
kind VARCHAR
nickname VARCHAR
occupation VARCHAR
skills NVARCHAR
birthday VARCHAR
gender VARCHAR
objectType VARCHAR
id VARCHAR
displayName NVARCHAR
name.formatted NVARCHAR
name.familyName NVARCHAR
name.givenName NVARCHAR
name.middleName NVARCHAR
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
182 PUBLIC Data Provisioning Adapters
Column Name Data Type
name.honorificPrefix NVARCHAR
name.honorificSuffix NVARCHAR
tagline NVARCHAR
braggingRights VARCHAR
aboutMe NVARCHAR
relationshipStatus NVARCHAR
url VARCHAR
image.url VARCHAR
isPlusUser TINYINT
language NVARCHAR
ageRange.min INTEGER
ageRange.max INTEGER
plusOneCount INTEGER
circledByCount INTEGER
verified TINYINT
domain NVARCHAR
value VARCHAR
type VARCHAR
value VARCHAR
type VARCHAR
label VARCHAR
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 183
Table 43: Organizations Table
name NVARCHAR
department NVARCHAR
title NVARCHAR
type VARCHAR
startDate VARCHAR
endDate VARCHAR
location NVARCHAR
description NVARCHAR
primary TINYINT
Activities Table
kind VARCHAR
title NVARCHAR
published TIMESTAMP
updated TIMESTAMP
id VARCHAR
url VARCHAR
actor.id VARCHAR
actor.displayName NVARCHAR
actor.name.familyName NVARCHAR
actor.name.givenName NVARCHAR
actor.url VARCHAR
actor.image.url VARCHAR
verb VARCHAR
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
184 PUBLIC Data Provisioning Adapters
Column Name Data Type
object.objectType VARCHAR
object.id VARCHAR
object.actor.id VARCHAR
object.actor.displayname NVARCHAR
object.actor.url VARCHAR
object.actor.image.url VARCHAR
object.content NVARCHAR
object.originalcontent NVARCHAR
object.url VARCHAR
object.replies.totalitems INTEGER
object.replies.selflink VARCHAR
object.plusoners.totalitems INTEGER
object.plusoners.selflink VARCHAR
object.resharers.totalitems INTEGER
object.resharers.selflink VARCHAR
annotation NVARCHAR
crosspostSource VARCHAR
provider.title NVARCHAR
access.kind VARCHAR
access.description NVARCHAR
geocode VARCHAR
address NVARCHAR
radius VARCHAR
placeid VARCHAR
placename NVARCHAR
location.kind VARCHAR
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 185
Column Name Data Type
location.id VARCHAR
location.displayname NVARCHAR
location.position.latitude VARCHAR
location.position.longitude VARCHAR
location.address.formatted NVARCHAR
Attachments Table
objectType VARCHAR
displayName NVARCHAR
id VARCHAR
content NVARCHAR
url VARCHAR
image.url VARCHAR
image.type VARCHAR
image.height INTEGER
image.width INTEGER
fullimage.url VARCHAR
fullimage.type VARCHAR
fullimage.height INTEGER
fullimage.width INTEGER
embed.url VARCHAR
embed.type VARCHAR
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
186 PUBLIC Data Provisioning Adapters
Comments Table
kind VARCHAR
verb VARCHAR
id VARCHAR
published TIMESTAMP
updated TIMESTAMP
actor.id VARCHAR
actor.displayName NVARCHAR
actor.url VARCHAR
actor.image.url VARCHAR
object.objectType VARCHAR
object.content NVARCHAR
object.originalContent NVARCHAR
selfLink VARCHAR
plusoners.totalItems INTEGER
8.9 Hive
Hive is the data warehouse that sits on top of Hadoop and includes a SQL interface. While Hive SQL does not fully
support all SQL operations, the majority of SELECT features are available. Because Hadoop stores its data in
distributed files using one of a number of file formats, INSERT, UPDATE and DELETE functions are more
complicated than with standard SQL, and therefore they are not supported in this first version of the Hive
Adapter. Transactions are currently not supported by Hive. The Hive adapter service provider is created as a
remote source, and requires the support of artifacts like virtual table and remote subscription for each source
table to perform replication.
Note
Before registering your adapter with the SAP HANA system, be sure that you have downloaded and installed
the correct JDBC libraries. For information about the proper JDBC library for your source, see the Product
Availability Matrix . The Product Availability Matrix also provides information about supported Hive versions.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 187
Place your files in <DPAgent_root>/lib, and you will need to manually create the /lib folder.
Adapter Functionality
Functionality Supported?
Realtime No
Functionality Supported?
ORDER BY Yes
GROUP BY Yes
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
188 PUBLIC Data Provisioning Adapters
8.9.1 Hive Remote Source Configuration
Configure the following options in smart data access to configure your connection to a Hive remote source.
Connection Hive Version The version of Hive. For Hive 0.12.0, set
its value to 0.12.0; For Hive 0.13.0 and
0.13.1, set its value to 0.13.1; and so on.
Default
Kerberos: If set to Kerberos, the
Kerberos Realm , Kerberos
KDC, and Kerberos
Principal settings are used
when making the Hive connection.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 189
Category Option Description
The following table shows data type mappings from Hive to SAP HANA.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
190 PUBLIC Data Provisioning Adapters
Hive Data Type SAP HANA Data Type Notes
STRING VARCHAR
BOOLEAN VRCHAR
BINARY VARBINARY
The DB2 Log Reader adapter provides real-time changed-data capture capability to replicate changed data from a
database to SAP HANA in real time. You can also use it for batch loading.
The Log Reader service provider is created as a remote source, and it requires the support of artifacts like virtual
tables and remote subscriptions for each source table to perform replication.
Note
Before registering your adapter with the SAP HANA system, be sure that you have downloaded and installed
the correct JDBC libraries. For information about the proper JDBC library for your source, see the Product
Availability Matrix .
Place your files in <DPAgent_root>/lib, and you will need to manually create the /lib folder.
Restriction
For real-time replication, you can initialize each source database by only one instance of the adapter. You
cannot configure two adapter instances for real-time replication of the same source database, even when using
a different Data Provisioning Agent or schema in the source database.
Adapter Functionality
With this adapter, you can add multiple remote sources using the same Data Provisioning Agent
Virtual table as a source
Real-time change data capture
Note
Log Reader adapters do not support the truncate table operation.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 191
Loading options for target tables
DDL propagation. The supported schema changes are:
ADD COLUMN
DROP COLUMN
Replication monitoring and statistics
Search for tables
Functionality Supported?
Realtime Yes
Functionality Supported?
ORDER BY Yes
GROUP BY Yes
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
192 PUBLIC Data Provisioning Adapters
Remember the following when setting up for replication:
If you have a UDB client instance and a UDB server instance on different machines, the client and server must
be of the same UDB version.
On a Windows system, the DB2 connectivity autocommit parameter must be turned on (automcommit=1).
The autocommit parameter is specified in the DB2 call level interface (CLI) configuration file for the primary
database.
If the autocommit parameter is not turned on, a deadlock problem can occur. The path to the CLI
configuration file is: %DB2DIR% \sqllib\db2cli.ini where %DB2DIR% is the path to the DB2 client
installation. Alternatively, to turn on autocommit, open the DB2 administrative command line console and
run: db2set DB2OPTIONS=+c
To initialize Replication Agent without error, the database must have a tablespace created with these
characteristics:
The tablespace should be a user temporary tablespace. By default, user temporary tablespaces are not
created when a database is created.
The tablespace must be a system-managed space (SMS).
The PAGESIZE parameter must be set to 8192 (8 kilobytes) or greater.
The method to set DB2 UDB environment variables depends on the operating system.
For Linux, the DB2 UDB installation provides two scripts for setting up the DB2 UDB environment variables:
db2cshrc for C shell and db2profile for Bourne or Korn shell. These scripts set the library path environment
variable based on the bit size of the installed server or client.
For Linux platforms, the 32-bit and 64-bit versions of the driver and API libraries are located in <$HOME/sqllib/
lib32> and <$HOME/sqllib/lib64>, respectively, where <$HOME> is the home directory of the DB2 UDB
instance owner.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 193
Note
If the Data Provisioning Agent is installed on Linux, the library path environment variable must point to the 64-
bit libraries. For Windows, the library path environment variable must point to the 32-bit libraries.
Note
We recommend that you add a line to the <DPAgent_root>/bin/dpagent_env.sh file to source the
db2profile. This will ensure that when you use dpagent_service.sh to start and stop the DPAgent service,
the DB2 UDB environment variables will be sourced automatically. For example, you could add a line such as
source /home/db2inst1/sqllib/db2profile.
Additional steps are necessary when installing the Data Provisioning Agent and DB2 Server on different servers.
On a Windows system, you must configure a DB2 Universal Database JDBC data source in the DB2 Administration
Client, then use the database name and database alias specified for that DB2 Universal Database JDBC data
source when you configure DB2 LogReader Adapter connectivity.
On a Linux system, catalog the node and the primary database in DB2. Set the DB2 LogReader Adapter
pds_datasource_name parameter to the database alias. Also set the pds_host_name and pds_host_number.
Follow these steps to catalog the remote TCP/IP node from the DB2 client.
Procedure
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
194 PUBLIC Data Provisioning Adapters
In C shell, source the db2cshrc file: source <$HOME>/sqllib/db2cshrc
(where $HOME is the home directory of the DB2 instance owner.)
2. Start the DB2 command-line processor by typing the following DB2 command: %>db2 db2 =>
3. Catalog the remote TCP/IP node using this command at the DB2 prompt: db2 => catalog TCPIP node
MYNODE remote MYHOST server XXXX (where MYNODE is the node name, MYHOST is the host name or IP
address of the data server, and XXXX is the data server port number.)
4. Verify the catalog entry: db2 => list node directory DB2 should return something similar to: Node 1 entry:
Node name = MYNODE Comment = Directory entry type = LOCAL Protocol = TCPIP Hostname = MYHOST
Service name = XXXX
Follow these steps to catalog the primary database from the DB2 client.
Procedure
1. Catalog the primary database using this command at the DB2 prompt:
Parameter Description
MYNODE The node name used in the catalog TCPIP node command
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 195
System Database Directory
Comment =
Configure your DB2 UDB database to work with the Log Reader adapter and replication.
If you have a UDB client instance and a UDB server instance on different machines, the client and server must
be of the same UDB version.
On a Windows system, the DB2 connectivity autocommit parameter must be turned on (autocommit=1). The
autocommit parameter is specified in the DB2 call level interface (CLI) configuration file for the primary
database. If the autocommit parameter is not turned on, a deadlock problem can occur.
The path to the CLI configuration file is: %DB2DIR% \sqllib\db2cli.ini where %DB2DIR% is the path to
the DB2 client installation. Alternatively, to turn on autocommit, open the DB2 administrative command line
console and run: db2set DB2OPTIONS=+c
To initialize Replication Agent without error, the database must have a tablespace created with these
characteristics:
The tablespace should be a user temporary tablespace. By default, user temporary tablespaces are not
created when a database is created.
The tablespace must be a system-managed space (SMS).
The PAGESIZE parameter must be set to 8192 (8 kilobytes) or greater.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
196 PUBLIC Data Provisioning Adapters
8.10.1.3.1 Add a Temporary Tablespace to the Primary
Database
These steps show how to add a temporary tablespace to the primary database.
Procedure
%>bash
%>source /db2home/db2inst1/sqllib/db2profile
%>db2
(where db2_admin_user and db2_admin_password are the administrative user ID and password for the
primary database.)
3. Create a buffer pool:
(where pdb_buffer_name is the buffer name, and same_pagesize_as_pdb is the page size at the primary
database.)
4. Create a temporary tablespace:
(where pdb_temp_space_name is the tablespace name, same_pagesize_as_pdb is the page size at the
primary database, and pdb_buffer_name is the buffer name.)
Note
Determine the DB2 UDB page size using the LIST TABLESPACES SHOW DETAIL command. For example,
to create a temporary tablespace named deep13 with a 16KB page size and buffer pool named tom_servo,
enter:
db2 => create user temporary tablespace deep13 pagesize 16K managed by
automatic storage bufferpool tom_serv
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 197
8.10.1.3.2 Verify the Current Archive Setting of the
Transaction Log
Set the primary DB2 UDB database transaction logging to archive logging, instead of circular logging for DB2
LogReader Adapter.
Procedure
(where dbalias is the cataloged alias of the primary database, db2_user is the primary database user, and
db2_user_ps is the password.)
b. Determine the LOGARCHMETH1 setting:
2. If the results do not show that LOGARCHMETH1 is set to LOGRETAIN or to the path name of the directory to
which logs are archived, set it:
(where path is the full path name of the directory where the archive logs are to be stored. If you change the
setting of the DB2 UDB logarchmeth1 parameter, DB2 UDB requires you to back up the database. Use your
normal backup procedure, or see the IBM documentation for information on the BACKUP DATABASE
command.)
3. Reactive and backup DB2 UDB database to make the configuration change take effect:
a. DEACTIVE the database db2 => DEACTIVE DATABASE dbalias USER db2_user USING
db2_user_ps (where dbalias is the cataloged alias of the primary database, db2_user is the primary
database user, and db2_user_ps is the password.)
b. BACKUP database
LOGARCHMETH1=LOGRETAIN
LOGARCHMETH1=DISK: path
db2 => BACKUP DATABASE dbalias TO path USER db2_user USING db2_user_ps
(where dbalias is the cataloged alias of the primary database, path is the log archive path you
specified, db2_user is the primary database user, and db2_user_ps is the password.)
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
198 PUBLIC Data Provisioning Adapters
c. ACTIVE the database again db2 => ACTIVE DATABASE dbalias USER db2_user USING
db2_user_ps (where dbalias is the cataloged alias of the primary database, db2_user is the primary
database user, and db2_user_ps is the password.)
4. Verify the configuration change
(where dbalias is the cataloged alias of the primary database, db2_user is the primary database user,
and db2_user_ps is the password.)
The last SELECT statement returns two rows, one for on-disk (DBCONFIG_TYPE=0) value and another for in-
memory (DBCONFIG_TYPE=1) value. Make sure that both of the values are changed to LOGRETAIN or DISK.
These steps show how to create a DB2 UDB user and grant permissions.
Context
DB2 LogReader Adapter requires a DB2 UDB login that has permission to access data and create new objects in
the primary database. The DB2 UDB login must have SYSADM or DBADM authority to access the primary
database transaction log.
Procedure
1. Create a new operating system user named ra_user using commands appropriate for your operating system.
For example, to create a user named ra_user on a Linux operating system, use: %>useradd -gusers -
Gmgmt -s/bin/shell -psybase -d/home/ra_user -m ra_user (where sybase is the password
corresponding to the ra_user user name.)
2. Start the DB2 UDB command-line processor:
%>bash
%>source /db2home/db2inst1/sqllib/db2profile
%>db2
3. Connect to the primary DB2 UDB database: db2=>connect to pdb user db2_admin_user using
db2_admin_password (where db2_admin_user and db2_admin_password are the administrative user ID
and password for the primary database.)
4. Grant all necessary authorities to ra_user:
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 199
GRANT CREATETAB ON DATABASE TO USER <user>
GRANT BINDADD ON DATABASE TO USER <user>
GRANT CONNECT ON DATABASE TO USER <user>
GRANT CREATE_NOT_FENCED_ROUTINE ON DATABASE TO USER <user>
GRANT IMPLICIT_SCHEMA ON DATABASE TO USER <user>
GRANT LOAD ON DATABASE TO USER <user>
GRANT CREATE_EXTERNAL_ROUTINE ON DATABASE TO USER <user>
GRANT QUIESCE_CONNECT ON DATABASE TO USER <user>
The following table contains a list of the required libraries for setting up the DB2 Log Reader Adapter.
Library Notes
DB2 UDB JDBC driver Include the DB2 JDBC driver library in the Data Provisioning Agent CLASSPATH envi
ronment variable. Please use the corresponding version of JDBC driver listed in the IBM
documentation.
For information about required JDBC libraries, see the Product Availability Matrix. This
JAR file (db2jcc4.jar) needs to be copied to the following directory:
<DPAgent_root>/lib
Log Reader native interface The DB2 Log Reader Adapter calls a C-based native interface to access the DB2 Log
Reader API to read its log record. Include the native interface library into the DPAgent
PATH (for Windows) or LD_LIBRARY_PATH (for Linux) environment variable or JVM
-Djava.libary.path variable if you start up the Data Provisioning Agent from
Eclipse.
Platform Notes
Note
The native interface libraries will be packaged into Data Provisioning Agent installer.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
200 PUBLIC Data Provisioning Adapters
Library Notes
These libraries will be installed into DB2 database during replication initialization for
specific procedure calls. Please include them in the Data Provisioning Agent
CLASSPATH environment variable. These libraries will be packaged into Data Provi
sioning Agent installer.
Related Information
Note
Log Reader adapter preferences (except for Number of wrapped log files, Enable verbose trace,
and Maximum log file size) are no longer set in the Data Provisioning Agent Configuration Tool. They are
now moved to the remote source configuration options in SAP HANA. If you have upgraded from a previous
version, then the settings you find in the Agent Configuration Tool are your previous settings, displayed for your
reference.
You can adjust DB2 Log Reader adapter settings in the Data Provisioning Agent Configuration Tool.
(<DPAgent_root>/configTool/dpagentconfigtool.exe)
Maximum scan queue size The maximum number of log records 1000
permitted in the log reader log scan
queue during replication.
Ignore log record processing errors Determines whether to ignore log record false
processing errors.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 201
Parameter Description Default value
Timeout in seconds to retry connecting The number of seconds the agent waits 10
between retry attempts to connect to
the primary database.
Maximum log file size Limit the size of the message log to con 1000
serve disk space.
Configure the following options in smart data access to configure your connection to a DB2 remote source.
Note
When setting up a remote source and you use an instance name longer than 30 characters, the generated log
reader folder name under <DPAgent_root>/LogReader/ will be converted to "AGENT<xxxx>".
The log file is located at <DPAgent_root>/log/Framework.trc, and will read: The instance name
<original_name> exceeds 30 characters and it is converted to <converted_name>.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
202 PUBLIC Data Provisioning Adapters
Category Option Description
Schema Alias Replacements Schema Alias Schema name to be replaced with the
schema given in Schema Alias
Replacement. If given, accessing tables
under it is considered to be accessing
tables under the schema given in
Schema Alias Replacement.
CDC Properties > Log Reader Maximum operation queue size The maximum number of operations
permitted in the log reader operation
queue during replication.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 203
Category Option Description
Timeout in seconds to retry connecting The number of seconds the agent waits
between retry attempts to connect to
the primary database.
Logreader read buffer size Allows you to adjust the size of the DB2
log read. If the size is too small, you may
encounter a sqlcode -2650 reason 8
error
Related Information
SAP HANA Security Guide: SAP HANA Smart Data Access (HTML)
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
204 PUBLIC Data Provisioning Adapters
SAP HANA Security Guide: SAP HANA Smart Data Access (PDF)
SAP HANA Smart Data Integration and SAP HANA Smart Data Quality Configuration Guide: Create Remote
Subscription (PDF)
Adapter Remote Source User Credentials [page 130]
Using a Schema Alias [page 246]
Prepare SSL when SAP HANA is on premise [page 23]
Make sure that the DB2 port number is within a valid range.
If the DB2 port number is set to 0 or larger than 65535, DB2 will convert it to a port number that is less than
65535. The following translation rules apply:
If the port number is 0 or 65536, DB2 will set a random port number after you restart DB2, each time.
If the port number larger than 65536, the real port number that DB2 set is the port number, minus 65536. For
example , 70000-65536=4464. In this case, 4464 is the real port number that DB2 sets.
On windows, open the Task Manager. Find the PID of DB2_XX service, then open a cmd prompt, and type
netstat -aon | findstr PID.
On Linux, use the ps -aux |grep db2sysc command.
The following table shows the conversion between DB2 data types and SAP HANA data types.
BIGINT BIGINT
DECFLOAT(16) DOUBLE
DECFLOAT(32) DECIMAL
DECIMAL DECIMAL
DOUBLE DOUBLE
INTEGER INTEGER
REAL REAL
SMALLINT SMALINT
GRAPHIC NVARCHAR
LONGVARGRAPHIC NCLOB
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 205
DB2 data type SAP HANA data type
CHAR VARCHAR
CHARACTER VARCHAR
DATE DATE
TIME TIME
TIMESTAMP TIMESTAMP
BLOB BLOB
CLOB CLOB
DBCLOB NCLOB
ROWID Unsupported
XML Unsupported
Run SQL scripts to manually clean objects from the DB2 source database.
Cleanup scripts are used to drop database-level objects. Usually, you do not need to execute a cleanup script after
an adapter is dropped, because database-level objects are dropped automatically by the adapter. However, in
some cases, if any errors occur during or before automatically dropping these objects, the objects may not be
dropped. At that point, you may need to execute the cleanup script to drop the objects.
You can review processing information in the Log Reader log files.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
206 PUBLIC Data Provisioning Adapters
Log file name and location Description
The Oracle Log Reader adapter provides real-time changed-data capture capability to replicate changed data
from a database to SAP HANA in real time. You can also use it for batch loading.
The Log Reader service provider is created as a remote source, and it requires the support of artifacts like virtual
tables and remote subscriptions for each source table to perform replication.
With this adapter, you can add multiple remote sources using the same Data Provisioning Agent.
Note
There are three important tasks that you must perform to set up your Oracle database:
Before registering your adapter with the SAP HANA system, be sure that you have downloaded and
installed the correct JDBC libraries. For information about the proper JDBC library for your source, see the
Product Availability Matrix .
Place your files in <DPAgent_root>/lib, and you will need to manually create the /lib folder.
Set up database permissions
Decide if you want table- (default) or database-level supplemental logging for realtime replication and set it
up.
Restriction
For real-time replication, you can initialize each source database by only one instance of the adapter. You
cannot configure two adapter instances for real-time replication of the same source database, even when using
a different Data Provisioning Agent or schema in the source database.
Adapter Functionality
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 207
Note
Log Reader adapters do not support the truncate table operation.
Functionality Supported?
Realtime Yes
Functionality Supported?
ORDER BY Yes
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
208 PUBLIC Data Provisioning Adapters
Functionality Supported?
GROUP BY Yes
The remote database must be set up properly for Log Reader adapters to function correctly when using realtime
replication.
Multitenant databases are supported for Oracle 12c. Be aware that some of the setup procedures are different for
multitenant, for example in Remote source configuration, permissions, and cleanup.
LOB replication
When attempting LOB replication, be sure to have the db_securefile parameter set to PERMITTED in the
Oracle system. Depending on the Oracle version you are using, the parameter may be set to a different value.
Note
SecureFiles LOB replication is not supported.
During realtime (CDC) replication for Oracle to SAP HANA, if the table in Oracle has a BLOB column as the first
column, the replication will fail due to NullPointerException, which LogMiner returns as an invalid SQL statement.
This occurs on Oracle 11.2.0.3 and 11.2.0.4.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 209
Unsupported table types:
Table with all LOB columns
Table with computed columns
Table with LOB column and no primary key or unique index
Table with duplicated rows and no primary key
Table with user-defined identifier
Nested table
Related Information
The following scripts can be found in the oracle_init_example.sql file, which is located in the Scripts folder
of the Data Provisioning Agent installation (<DPAgent_root>\LogReader\Scripts).
Note
Be aware that the oracle_init_example.sql file is a template script. You may need to alter the following:
Change LR_USER to the configured database user name in the remote source options, if it is not LR_USER.
Change <_replace_with_password> in line 85 to the password of the database user.
Also, be sure that you grant select access to the log reader user by issuing the following statement. In these
examples, taken from the oracle_init_example.sql file, the user is named LR_USER. Change this user name
to whatever you need.
Note
We have removed the following permissions, as of SPS 11:
CREATE PUBLIC SYNONYM
DROP PUBLIC SYNONYM
ALTER SYSTEM
EXECUTE on DBMS_FLASHBACK
If you are using Oracle 12c, the following permission is required: LOGMINING
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
210 PUBLIC Data Provisioning Adapters
The GRANT SELECT ON SYS.DEFERRED_STG$ TO LR_USER permission is not required for Oracle
versions below 11gR2.
It is not necessary to grant the EXECUTE CATALOG ROLE or the SELECT CATALOG ROLE. Instead, you can grant
the following specific permissions that are part of those roles:
Role Permissions
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 211
Role Permissions
To set permissions for a multitenant database, run the scripts in the following files. They are also located in
<DPAgent_root>\LogReader\Scripts. The same rules apply to this script as above, concerning <LR_USER>,
and so on.
Note
The <C##LR_USER> in the container database must be the common user and the <LR_USER> user in the
pluggable database is the local user
oracle_multitenant_init_example_for_container_database.sql
oracle_multitenant_init_example_for_pluggable_database.sql
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
212 PUBLIC Data Provisioning Adapters
8.11.1.2 Oracle Supplemental Logging
Decide which logging level is best for you and set it up.
Set your logging level in the Adapter Preferences window of the Data Provisioning Agent configuration tool for the
Oracle Log Reader adapter. Then, run the necessary scripts found in the oracle_init_example.sql file,
located in <DPAgent_root>\LogReader\Scripts.
Note
Be aware that the oracle_init_example.sql file is a template script. You may need to alter the following:
Uncomment line 38 and comment line 42-84 and 89-90, if you want database-level supplemental logging.
Table-level Logging
We recommend table-level logging, which turns on supplemental logging for subscribed tables and some required
system tables. Run the scripts located in the oracle_init_example.sql file on your Oracle client to set this up.
Database-level Logging
Database level turns on supplemental logging for all tables, including system tables. Execute the following DDL
statements, which are located in the oracle_init_example.sql file. Then, set the Oracle supplemental logging
level Adapter Preferences option to Database.
Related Information
Note
Log Reader adapter preferences (except for Number of wrapped log files, Enable verbose trace,
and Maximum log file size) are no longer set in the Data Provisioning Agent Configuration Tool. They are
now moved to the remote source configuration options in SAP HANA. If you have upgraded from a previous
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 213
version, then the settings you find in the Agent Configuration Tool are your previous settings, displayed for your
reference.
You can adjust Oracle Log Reader adapter settings in the Data Provisioning Agent Configuration Tool.
(<DPAgent_root>/configTool/dpagentconfigtool.exe)
Directory containing Oracle archive redo Specifies the location of the archived
log files
redo log files.
Distinguished Name (DN) in Certificate The distinguished name (DN) of the pri
mary data server certificate.
Oracle supplemental logging level Specifies the level of supplemental log table
ging.
Maximum scan queue size The maximum number of log records 1000
permitted in the log reader log scan
queue during replication.
Maximum session cache size The maximum number of Oracle ses 1000
sions to be cached in memory during
replication.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
214 PUBLIC Data Provisioning Adapters
Parameter Description Default value
Queue size of parallel scan tasks Specifies the number of tasks in the 0
queue.
Number of log record rows fetched by Specifies the number of log record rows 1
the scanner at a time fetched by the scanner.
Ignore log record processing errors Determines whether to ignore log record false
processing errors.
Replicate LOB columns Oracle logs all LOB data (except for true
BFILE datatypes) in the Oracle redo log.
This allows the agent to apply each indi
vidual LOB change. However, for BFILE
data, the same technique is used.
Ignore data of unsupported types stored Specifies whether you want to ignore false
in ANYDATA data with unsupported types housed in
ANYDATA wrapper.
Timeout in seconds to retry connecting The number of seconds the agent waits 10
between retry attempts to connect to
the primary database.
Maximum log file size Limit the size of the message log to con 1000
serve disk space.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 215
Related Information
Note
When setting up a remote source and you use an instance name longer than 30 characters, the generated log
reader folder name under <DPAgent_root>/LogReader/ will be converted to AGENT<xxxx>.
The log file is located at <DPAgent_root>/log/framework.trc, and will read: The instance name
<original_name> exceeds 30 characters and it is converted to <converted_name>.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
216 PUBLIC Data Provisioning Adapters
Category Sub-category Option Description
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 217
Category Sub-category Option Description
Note
This parameter is
only valid if Use SSL is
set to true.
If this parameter is
set, the DN field in the
server certificate is
verified to match this
parameter. If it does
not match, the
connection to the
primary data server
fails.
CDC Properties Database Configuration Oracle Supplemental logging Specifies the level of
level supplemental logging.
table: Enables
supplemental logging for
subscribed tables and
some required system
tables.
database: Enables
supplemental logging for
all tables including
system tables.
To achieve better
performance for high-volume
log throughput, set the
parameter to true to enable
parallel scanning.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
218 PUBLIC Data Provisioning Adapters
Category Sub-category Option Description
Note
Do not use the same name
as the pds_username.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 219
Category Sub-category Option Description
Note
You will need to make sure
that the the user is
granted the GRANT
CREATE DATABASE
LINK to
C##LR_USER;
permission, located in the
oracle_multitenant
_init_example_for_
pluggable_database
.sql file.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
220 PUBLIC Data Provisioning Adapters
Category Sub-category Option Description
Oracle Multitenant Credential Common User Name The common user name in
the container database (case
sensitive)
Related Information
SAP HANA Security Guide: SAP HANA Smart Data Access (HTML)
SAP HANA Security Guide: SAP HANA Smart Data Access (PDF)
Configuration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data Quality: Create Remote
Subscription (PDF)
Adapter Remote Source User Credentials [page 130]
Using a Schema Alias [page 246]
Prepare SSL when SAP HANA is on premise [page 23]
Configure an Oracle Real Application Cluster (RAC) source by, among other requirements, setting up the
tnsnames.ora file.
When a Data Provisioning Adapter for an Oracle instance initializes, the Oracle database is queried to determine
how many nodes are supported by the cluster. Based on this information, the Data Provisioning Adapter
automatically configures itself to process the redo log information from all nodes.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 221
You configure the Data Provisioning Adapter to connect to a single Oracle instance by supplying the required
Host, Port Number, and Database Name remote source configuration parameters. However, in an Oracle RAC
environment, the Data Provisioning Adapter must be able to connect to any node in the cluster in the event that a
node fails or otherwise becomes unavailable. To support the configuration of multiple node locations, the Data
Provisioning Adapter supports connectivity to all possible RAC nodes by obtaining necessary information from an
Oracle tnsnames.ora file for one specified entry. As a result, instead of configuring individual host, port, and
instance names for all nodes, the Data Provisioning Adapter only requires the location of a tnsnames.ora file and
the name of the TNS connection to use. Therefore, it's recommended that you point the Data Provisioning
Adapter to a tnsnames.ora entry that contains the address for all nodes in the cluster.
Refer to the following procedure for details on the correct configuration for an Oracle RAC source.
Configure the remote source for Oracle Real Application Cluster (RAC) as follows.
Procedure
1. Use the tnsnames.ora file to connect to Oracle (instead of providing individual host names and SIDs) by
setting the remote source property Database Use TNSNAMES file to true.
2. Ensure the tnsnames.ora file includes details for all nodes.
RAC11G =
(DESCRIPTION =
(ADDRESS_LIST =
(LOAD_BALANCE = yes)
(FAILOVER = ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = www.xxx.yyy.zz1)
(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = www.xxx.yyy.zz2)
(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = www.xxx.yyy.zz3)
(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = rac11g)
)
)
3. Configure tnsnames.ora with the entry of the global SID to the remote source.
<net_service_name> =
(DESCRIPTION =
(ADDRESS = (<protocol_address_information>))
(CONNECT_DATA =
(SERVICE_NAME = <service_name>)))
For example:
ABC =
(DESCRIPTION =
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
222 PUBLIC Data Provisioning Adapters
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ABC) ) )
4. If the Data Provisioning Agent and Oracle source are on different computers, for all versions up to and
including HANA DP AGENT 1.0 SP03 Patch 2 (1.3.2), set the parameter CDC Properties Database
Configuration Oracle Timezone File to a location that the Data Provisioning Agent can access. (The Oracle
Timezone File parameter was removed in version HANA DP AGENT 1.0 SP03 Patch 3 (1.3.3).
6. Set the location of the Database Oracle TNSNAMES File to tnsnames.ora. This location must be
accessible by the DP Agent computer.
The following table shows the conversion between Oracle data types and SAP HANA data types.
INTEGER DECIMAL
NUMBER DECIMAL
NUMBER(19)-NUMBER(38) DECIMAL
NUMBER(10)-NUMBER(18) BIGINT
NUMBER(5)-NUMBER(9) INTEGER
NUMBER(2)-NUMBER(4) SMALLINT
NUMBER(1) TINYINT
FLOAT DOUBLE
FLOAT(1)-FLOAT(24) REAL
FLOAT(25)-FLOAT(126) DOUBLE
BINARY_FLOAT REAL
BINARY_DOUBLE DOUBLE
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 223
Oracle data type SAP HANA data type
DATE TIMESTAMP
Note
BC dates are not supported.
TIMESTAMP(n) TIMESTAMP
Note
BC dates are not supported.
CHAR VARCHAR
NCHAR NVARCHAR
VARCHAR2 VARCHAR
NVARCHAR2 NVARCHAR
BLOB BLOB
BFILE BLOB
RAW VARBINARY
LONG CLOB
CLOB CLOB/NCLOB
NCLOB NCLOB
INTERVAL VARCHAR
Note
BC dates are not supported.
Note
BC dates are not supported.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
224 PUBLIC Data Provisioning Adapters
Oracle data type SAP HANA data type
Run SQL scripts to manually clean objects from the source database.
Cleanup scripts are used to drop database-level objects. Usually, you do not need to execute a cleanup script after
an adapter is dropped, because database-level objects are dropped automatically by the adapter. However, in
some cases, if any errors occur during or before automatically dropping these objects, the objects may not be
dropped. At that point, you may need to execute the cleanup script to drop the objects.
Oracle oracle_logreader_cleanup.sql
You can review processing information in the Log Reader log files.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 225
8.11.8 Synchronize the Oracle and DP Agent Timestamp
Context
If there is timestamp with a local time zone column in an Oracle table, the DP agent needs to have the same time
zone. To acheive this, follow the procedure below before starting the DP agent.
Procedure
1. Find the Oracle server time zone (for example, use date -R in linux), for example, -04:00.
2. Open the dpagent.ini file in DP agent install root directory.
3. Add -Duser.timezone=GMT-4 to the dpagent.ini file.
4. Start the DP agent.
Use the Microsoft SQL Server Log Reader adapter to batch load, or replicate changed data in real time from a
database, to SAP HANA.
The Microsoft SQL Server Log Reader adapter provides real-time changed-data capture capability to replicate
changed data from a database to SAP HANA in real time. You can also use it for batch loading.
Note
Before registering your adapter with the SAP HANA system, be sure that you have downloaded and installed
the correct JDBC libraries. For information about the proper JDBC library for your source, see the Product
Availability Matrix .
Place your JDBC library in <DPAgent_root>/lib, and you will need to manually create the /lib folder.
The Log Reader service provider is created as a remote source, and it requires the creation of artifacts like virtual
tables and remote subscriptions for each source table to perform replication.
Note
The Microsoft SQL Server Log Reader relies on database logs to perform data movement. This means that logs
must be available until the data is successfully read and replicated to the target SAP HANA database. You
should configure Microsoft SQL Server in Full Recovery Mode to ensure that the data will be replicated to SAP
HANA.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
226 PUBLIC Data Provisioning Adapters
Note
The user configured during the installation of the Data Provisioning Agent must have read access to the
transaction log (the .ldf file).
Restriction
For real-time replication, you can initialize each source database by only one instance of the adapter. You
cannot configure two adapter instances for real-time replication of the same source database, even when using
a different Data Provisioning Agent or schema in the source database.
Adapter Functionality
With this adapter, you can add multiple remote sources using the same Data Provisioning Agent
Virtual table as a source
Real-time changed-data capture (CDC)
Note
Log Reader adapters do not support the truncate table operation.
The Microsoft SQL Server Log Reader adapter does not support WRITETEXT and UPDATETEXT.
For CDC replication, data imported into Microsoft SQL Server using the bcp tool is not supported
because the tool bypasses writing to the Microsoft SQL Server transaction logs.
Functionality Supported?
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 227
Functionality Supported?
Functionality Supported?
ORDER BY Yes
GROUP BY Yes
The remote database must be set up properly for Log Reader adapters to function correctly when using realtime
replication.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
228 PUBLIC Data Provisioning Adapters
Table with duplicated rows and no primary key
Table with user-defined identifier
Nested table
Table with REF constraint
Table with a clustered column store index
WRITETEXT and UPDATETEXT
Update LOB data types with like keyword
Big size TEXT data using BCP
Procedure
Create an SQL Server user (for example, DP_USER) for the remote source. Grant the required privileges as
follows:
use master
go
create login DP_USER with password =MyPW
go
use <primary database>
go
create user DP_USER for login DP_USER
go
EXEC sp_addsrvrolemember DP_USER, sysadmin
go
Procedure
1. Log on to Microsoft SQL Server using the newly created user, and change the Microsoft SQL Server Remote
Admin Connections Configuration option to enable DAC to allow remote connections.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 229
2. Update the remote admin connection setting.
reconfigure
go
Procedure
1. In Windows Explorer, navigate to the sybfilter driver installation directory. This directory is located at
<DPAgent_root>\LogReader\sybfilter\system\<platform>, where <DPAgent_root> is the root
directory or Data Provisioning Agent installation, and <platform> is winx86 or winx64.
winx86 is for 32-bit Windows Server 2008, Windows Server 2008 R2, and Windows 7
winx64 is for 64-bit Windows Server 2008, Windows Server 2008 R2, and Windows 7
2. Right-click the sybfilter.inf to install the sybfilter driver.
3. Under any directory, create a configuration file to save all log file paths for primary databases. The
configuration file must have a .cfg suffix. For example, under <DPAgent_root>\LogReader\sybfilter
\system\<platform>, create a file named LogPath.cfg.
4. Add a system environment variable named <RACFGFilePath>, and set its value to the path and the file name
of the configuration file.
5. In Windows Explorer, navigate to <DPAgent_root>\LogReader\sybfilter\bin\, and right-click the
sybfiltermgr.exe file and then select Run as administrator to start the sybfilter driver management
console.
6. To start the sybfilter driver, enter start at the management console.
7. Add the log file path to the sybfilter driver with the user manager or by modifying the configuration file:
User manager use the add command in the management console. The syntax for this command is as
follows. add serverName dbName logFilePath. For example, to add log file named pdb1_log.ldf
for the database pdb1 on the data server PVGD50857069A\MSSQLSERVER, use this: add
PVGD50857069A\MSSQLSERVER pdb1 C:\Mssql2012\MSSQL11.MSSQLSERVER\MSSQL\DATA
\pdb1_log.ldf
Or, add the following into LogPath.cfg file directly.
[PVGD50857069A\MSSQLSERVER, pdb1]
log_file_path=C:\Mssql2012\MSSQL11.MSSQLSERVER\MSSQL\DATA\pdb1_log.ldf
8. If you added a log file for your primary database before adding the log file path to the sybfilter driver, restart
Microsoft SQL Server to make the log file readable.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
230 PUBLIC Data Provisioning Adapters
9. At the management console, verify that log files are readable. If some log files are unreadable, make sure the
files have been created and that Microsoft SQL Server has been restarted, if necessary. Execute check
command in sybfilter console screen.
Related Information
Microsoft SQL Server Log Reader Remote Source Configuration [page 241]
Procedure
1. Go to SQL Server Configuration Tool, and choose SQL Server Configuration Manager SQL Server Network
Configuration Protocols for <SQLInstanceName> , where <SQLInstanceName> is your SQL Server
instance.
2. Right-click TCP/IP, and choose Enable.
8.12.1.4 Configure the Primary Data Server for the First Time
Context
Before you can begin, you must configure the primary data server.
Note
When you create a remote source, if the Database Data Capture Mode option is set to MSSQL CDC Mode, this
step is not necessary.
Note
If you are using Microsoft SQL Server installed on Windows 2012 and above, you can also restart Microsoft SQL
Server in single-user mode from the command line opened with the Run as Administrator option.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 231
Procedure
a. In Control Panel Administrative Tools Services , find the service named MicrosoftSQLServer
(<SERVER>), where <SERVER> is the name of your Microsoft SQL Server data server. For example
Microsoft SQL Server (TEAMSTER).
b. Stop the service.
2. Restart Microsoft SQL Server in single-user mode.
Tip
You can also restart Microsoft SQL Server in single-user mode from the command line, using Administrator
privileges.
Related Information
Microsoft SQL Server Log Reader Remote Source Configuration [page 241]
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
232 PUBLIC Data Provisioning Adapters
8.12.1.5 Installing Data Provisioning Agent and MS SQL Server
on Different Servers
Additional steps are necessary when installing the Data Provisioning Agent and MS SQL server on different
machines.
Context
The following procedure is an example. The example shows you how to set up an environment with an MS SQL
Server database named mypdb on machine A and a DP Agent installed on a different machine (B).
Procedure
Sybfilter can be copied from the DP Agent install directory on machine B (for example, C:\usr\sap
\dataprovagent\LogReader\sybfilter).
2. Run a SQL query to get the exact location of the log files.
Note
Grant READ permissions for the shared folders to the DPAGENT user on machine B. If you haven't done so
already, make sure that your log files are readable by following the instructions in Make Log Files Readable
[page 230].
Because the mapping is based on a parent directory and not on the log file itself, only one entry is
sufficient for both mypdb_log.ldf and mypdb_log_2.ldf
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 233
Put the original path on the left side of the equal symbol and the UNC pathname of the share folder on the
right side
[DB1]
D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA=\
\machine1\mssql_data
[DB2]
D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA=\
\machine2\mssql_data
If DB1 and DB2 have the same name, add an instance name to differentiate:
[INST1:DB1]
D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA=\
\machine1\mssql_data
[INST2:DB1]
D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA=\
\machine2\mssql_data
6. When you create the remote source, set the value of the Use Remote Database parameter to true.
Related Information
Microsoft SQL Server Log Reader Remote Source Configuration [page 241]
Make Log Files Readable [page 230]
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
234 PUBLIC Data Provisioning Adapters
8.12.1.6 Run a Microsoft SQL Server Log Reader Adapter on
Linux
Learn how to set up your environment to run your MS SQL Server database on one machine and run the DP Agent
on a separate Linux maching.
Context
The following procedure is an example of how to set up an environment with an MS SQL Server database named
mypdb installed on machine A (Windows) and a DP Agent installed on machine B. (Linux)
Procedure
For example, in the previous step 2, the MS SQL log files are stored in two directories:
C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQL2K12SP1\MSSQL\DATA
C:\MSSQL_LOG\mypdb
Share the two directories on machine A, and then mout the two directories on machine B.
a. Create a directory on machine B where you want to mount the MSSQL log file folder. For example, create
directories on machine B named /MSSQL_share_folder1 and /MSSQL_share_folder2.
b. On machine B execute the following command:
c. Assuming that the username/password for machine A is ABC/123456, the login domain is localhost,
and the share name of MS SQL log file folder on machine A is //10.172.162.145/DATA and //
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 235
10.172.162.145/mypdb, you can execute the following command to mount the MS SQL log file folder
on machine B:
and
Related Information
Additional steps are necessary when configuring a Microsoft SQL Server Log Reader Adapter to connect to a
Microsoft SQL Server host that is using Always On Availability Groups.
Prerequisites
Before you can configure the log reader adapter with Always On support, Microsoft SQL Server must be
configured with an Availability Group Listener. For more information, see the Microsoft SQL Server
documentation.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
236 PUBLIC Data Provisioning Adapters
Context
The following procedure is an example. The example shows you how to set up an environment with an MS SQL
Server database named mypdb that is configured with an Always On Availability Group that has one secondary
database in addition to the primary database..
Procedure
1. Install and configure Sybfilter on each host in the MS SQL Server Always On Availability Group, including
primary and secondary databases.
Sybfilter can be copied from the agent installation directory on the Data Provisioning Agent host (for example,
C:\usr\sap\dataprovagent\LogReader\sybfilter).
2. Run a SQL query to get the exact location of the log files.
Note
Grant READ permissions for the shared folders to the DPAGENT user on each host in the Always On
Availability Group. If you haven't done so already, make sure that your log files are readable by following the
instructions in Make Log Files Readable [page 230].
Because the mapping is based on a parent directory and not on the log file itself, only one entry is
sufficient for both mypdb_log.ldf and mypdb_log_2.ldf
Put the original path on the left side of the equal symbol and the UNC pathname of each share folder on
the right side, separated by semicolons.
For example, suppose you are connecting to the database mypdb, with the primary database on machine A
and one secondary database on machine B.
[myrs:mypdb]
C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQL2K12SP1\MSSQL\DATA=\
\<host_name_A>\mssql_data;\\<host_name_B>\mssql_data
5. When you create the remote source, set the value of the SQL Server Always On parameter to true and
specify the Availability Group Listener Host and Availability Group Listener Port.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 237
Tip
We recommend that you also set the Database Data Capture Mode to MS SQL CDC Mode. If you do not
use the MS CDC data capture mode, you need to execute server-level initialization scripts on each host in
the Always On Availability Group.
Note
Log Reader adapter preferences (except for Number of wrapped log files, Enable verbose trace,
and Maximum log file size) are no longer set in the Data Provisioning Agent Configuration Tool. They are
now moved to the remote source configuration options in SAP HANA. If you have upgraded from a previous
version, then the settings you find in the Agent Configuration Tool are your previous settings, displayed for your
reference.
You can adjust SQL Server Log Reader adapter settings in the Data Provisioning Agent Configuration Tool
(<DPAgent_root>/configTool/dpagentconfigtool.exe).
Maximum scan queue size The maximum number of log records 1000
permitted in the log reader log scan
queue during replication.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
238 PUBLIC Data Provisioning Adapters
Parameter Description Default value
Maximum wait interval between log The maximum wait interval between Log 2
scans
Reader transaction log scans.
Note
The value of the parameter is the
maximum number of seconds
that can elapse before the Log
Reader component scans the
transaction log for a transaction
to be replicated, after a previous
scan yields no such transaction.
For reduced replication latency
in an infrequently updated data
base, we recommends lower
number settings for the parame
ter.
If the primary database is contin
uously updated, the value of the
parameter is not significant to
performance.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 239
Parameter Description Default value
Seconds to add to each log scan wait in The number of seconds to add to each 0
terval wait interval before scanning the trans
action log, after a previous scan yields
no transaction to be replicated.
Note
The value of the parameter is the
number of seconds added to
each wait interval before the
LogReader component scans the
log for a transaction to be repli
cated, after a previous scan
yields no such transaction.
The number of seconds specified
by the parameter is added to
each wait interval, until the wait
interval reaches the value speci
fied by the Maximum wait inter
val between log scans parame
ter.
For optimum performance, the
value of the parameter should be
balanced with the average num
ber of operations in the primary
database over a period of time.
In general, better performance
results from reading more oper
ations from the transaction log
during each LogReader scan.
With a primary database that is
less frequently updated, increas
ing the value of the parameter
may improve overall perform
ance.
If the database is continuously
updated, the value of the param
eter may not be significant to
performance.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
240 PUBLIC Data Provisioning Adapters
Parameter Description Default value
Timeout in seconds to retry connecting The number of seconds the agent waits 10
between retry attempts to connect to
the primary database.
Maximum log file size Limit the size of the message log to con 1000
serve disk space.
Configure the following options for a connection to a Microsoft SQL Server remote source.
Note
When setting up a remote source and you use an instance name longer than 30 characters, the generated log
reader folder name under <DPAgent_root>/LogReader/ will be converted to AGENT<xxxx>.
The log file is located at <DPAgent_root>/log/framework.trc and will read: The instance name
<original_name> exceeds 30 characters and it is converted to <converted_name>.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 241
Category Sub-category Option Description
Note
Microsoft SQL Server CDC
does not need to be
enabled.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
242 PUBLIC Data Provisioning Adapters
Category Sub-category Option Description
Note
Do not use the same name
as the pds_username.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 243
Category Sub-category Option Description
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
244 PUBLIC Data Provisioning Adapters
Category Sub-category Option Description
Related Information
SAP HANA Security Guide: SAP HANA Smart Data Access (HTML)
SAP HANA Security Guide: SAP HANA Smart Data Access (PDF)
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 245
SAP HANA Smart Data Integration and SAP HANA Smart Data Quality Configuration Guide: Create Remote
Subscription (PDF)
Adapter Remote Source User Credentials [page 130]
SAP HANA Smart Data Integration and SAP HANA Smart Data Quality Configuration Guide (HTML)
SAP HANA Smart Data Integration and SAP HANA Smart Data Quality Configuration Guide (PDF)
Using a Schema Alias [page 246]
Prepare SSL when SAP HANA is on premise [page 23]
Using a schema alias can help make managing multiple schemas, remote sources, and tables easier.
The Schema Alias and Schema Alias Replacement options, available in the remote source configuration
parameters for some Data Provisioning adapters allows you too easily switch between schemas, remote sources,
and tables.
A common use case is to create a remote source pointing to a development database (for example, "DB1"), and
then create virtual tables under that remote source. Afterwards, you may switch to the production database
("DB2") without needing to create new virtual tables; the same tables exist in both DB1 and DB2, but under
different schemas and different databases.
During the development phase, you may create a virtual table for a source table OWNER1.MYTABLE in DB1, for
example. (Note: OWNER1.MYTABLE is the unique name of the source table.) This is a property of the virtual table.
With it, the adapter knows which table in the source database it is expected to access. However, when you switch
to the production database (DB2), there is no OWNER1.MYTABLE, only OWNER2.MYTABLE. The unique name
info of the virtual table cannot be changed once created.
You can resolve this problem using the Schema Alias options. In this case, we want to tell the adapter to replace
OWNER1 with OWNER2. For example, when we access OWNER1.MYTABLE, the adapter should access
OWNER2.MYTABLE. So here, OWNER1 is Schema Alias from the perspective of DB2, while OWNER2 is Schema
Alias Replacement.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
246 PUBLIC Data Provisioning Adapters
8.12.5 Microsoft SQL Server to SAP HANA Data Type Mapping
The following table shows the conversion between SQL Server data types and SAP HANA data types.
BIT TINYINT
TINYINT TINYINT
SMALLINT SMALLINT
INT INTEGER
FLOAT DOUBLE
REAL REAL
BIGINT DECIMAL
MONEY DECIMAL
SMALMONEY DECIMAL
DECIMAL DECIMAL
NUMERIC DECIMAL
NCHAR NVARCHAR
UNIQUEIDENTIFIER VARCHAR(36)
DATETIMEOFFSET VARCHAR(34)
DATETIME TIMESTAMP
DATETIME2 TIMESTAMP
DATE DATE
TIME TIMESTAMP
BINARY VARBINARY
TIMESTAMP VARBINARY(8)
IMAGE BLOB
VARBINARY VARBINARY
TEXT CLOB
NTEXT CLOB
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 247
Microsoft SQL Server data type SAP HANA data type
Run SQL scripts to manually clean up objects from the Microsoft SQL Server source database.
Clean-up scripts are used to drop database-level objects. Usually, you do not need to execute a clean-up script
after an adapter is dropped, because database-level objects are dropped automatically by the adapter. However,
in some cases, if any errors occur during or before automatically dropping these objects, the objects may not be
dropped. At that point, you may need to execute the clean-up script to drop the objects.
You can find the Microsoft QL Server cleanup script file at <DPAgent_root>\LogReader\scripts
\mssql_logreader_cleanup.sql.
You can review processing information in the Log Reader log files.
The Microsoft Excel adapter enables SAP HANA users to read Excel files that are accessible on the computer
running the Adapter with the operating user permissions the adapter/agent had been started under.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
248 PUBLIC Data Provisioning Adapters
Note
Excel files must be located in the same directory where the data provisioning agent was installed.
(<DPAgent_root>/dataprovagent/excel directory, or a sub-directory).
Adapter Functionality
Functionality Supported?
Realtime No
Option Description
Access Token A password. An access token protects the Excel files from access from a different remote
source. Use this same password when creating a remote source.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 249
8.13.2 MS Excel Remote Source Configuration
Note
If you want to use a DPAgent agent, installed on Linux, to connect to the SharePoint site, enable Basic
Authentication on the SharePoint server.
File Source File Source Type File System: Specifies that the Excel source is lo
cated in a file system.
HANA: Specifies that the Excel source is located in
an SAP HANA system.
SharePoint: Specifies that the Excel source is lo
cated on a SharePoint server.
File System Folder The directory of Excel files. It must point to a sub-direc
tory of the data provisioning install root, and it will be
treated as the parent directory of this remote source. All
Excel files that you want to load must be under this pa
rent directory.
HANA Port The port used to connect to the SAP HANA server
SharePoint Server URL Enter the URL for the server where the SharePoint
source is located.
Local Folder Path The path to the folder that you want to access on the lo
cal file system where the DP Agent is deployed.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
250 PUBLIC Data Provisioning Adapters
Category Parameter Description
Table First Row as Header Determines whether the first row of the sheet is consid
ered the header. If set to True, each column's content
will be used as the column name of the virtual table in
HANA.
Values:
Start Row of Data Determines which row of the sheet is the first data row
the Excel adapter loads into virtual table.
End Row of Data Determines which row of the sheet is the last data row
the adapter loads into virtual table.
Show Hidden Column and Rows Determines whether to process the columns which are
hidden from the sheet.
Values:
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 251
Category Parameter Description
Column Filter The list of columns which will be processed. Any column
that does not exist in the list will be ignored.
Note
If the Column Filter option is empty, all columns will
be processed. If the Column Filter option is not
empty, only the listed columns will be processed.
User Token User Token for Excel Folder Access The same password as the adapter "Access Token"
preference. If this is left blank or is different from the
Access Token, the remote source is not allowed to read
the Excel files.
SharePoint Credential SharePoint Login (Domain\UserName) The domain and user name for the SharePoint account.
The following table shows the data type conversion between a remote MS Excel source and an SAP HANA target.
Because MS Excel does not allow data type definition, like a database, SAP HANA data types are assigned based
on the cell format.
NUMERIC (values) INTEGER Integer number (>= -2,147,483,648 and <= 2,147,483,647)
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
252 PUBLIC Data Provisioning Adapters
Excel Column SAP HANA Data Type Examples
DECIMAL (34, 15) All non-integer numbers are mapped to DECIMAL (34, 15). Integer
numbers of < -9,223,372,036,854,775,808 or >
9,223,372,036,854,775,807 are mapped to DECIMAL (34, 15).
TIMESTAMP The column style format meets the conditions of both TIME and
DATE
OTHERS NVARCHAR(n) n is the max length of all rows' content of the same column
Note
If different rows of the same column have different column style format:
If those different column formats are incompatible, the column will be mapped to NVARCHAR in SAP
HANA. (For example, one row has numeric value and another row has a text value.)
If those different column formats are compatible, the column will be mapped to the data type which can
cover both of them. For example, if one row has an integer value and another row has a decimal value, then
it will be mapped to DECIMAL.
8.14 OData
The Open Data Protocol (OData) is a standardized protocol for exposing and accessing information from various
sources based on core protocols including HTTP, AtomPub (Atom Publishing Protocol), XML, and JSON (Java
Script Object Notation).
OData provides a standard API on service data and metadata presentation and data operations.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 253
Virtual table as a target using a Data Sink in a flowgraph
Get access to the OData service provider and its data and metadata.
The SAP OData Adapter is a data provisioning adapter that provides OData client access to the OData service
provider and its data/metadata. The OData service provider is created as a remote source. OData resources are
exposed as metadata tables of the remote source. These metadata tables can be added as virtual tables. OData
data can then be accessed via SAP HANA SQL query. Collections of OData data entries are represented as rows of
the virtual table.
The data of the main navigation entities can be accessed via SQL, with the following restrictions:
Without a Join, selected projection columns will appear in the OData system query $select.
With a Join, columns of the joined table (associated OData entity) can occur in the projection. Selected
projection columns will appear in the OData system query $select. All joined tables will appear in the
OData system query $expand.
Due to a restriction of the OData system queries $select and $orderby, no expressions can occur in
the Projection and the Order By clause.
The Where clause supports logical, arithmetic, and ISNULL operators, string functions, and date functions.
The expression is translated into the OData system query $filter.
Related Information
URI Conventions
You must configure the SAP HANA server and provide the appropriate settings when you create a remote source
to connect to the service provider.
Unlike other adapters, the OData adapter is not installed with the Data Provisioning Agent.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
254 PUBLIC Data Provisioning Adapters
8.14.2.1 Set up the SAP HANA Server
Procedure
Related Information
Procedure
1. Make sure the "SYS"."ADAPTERS_" table exists with the ODataAdapter Adapter Type.
To add the OData adapter to the ADAPTERS table, run the following SQL:
2. Create a remote source of ODataAdapter type, and provide the following information:
Option Description
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 255
Option Description
Trust Store The trust store that contains the OData client's public
certificate, either a file in SECUDIR or a database trust
store.
Is File Trust Store Enter true if the trust store is a file in SECUDIR, or false if
the trust store resides in the SAP HANA database. The
default value is true.
Require CSRF Header Enter true if OData Service requires CSRF Header. The
default value is true.
CSRF Header Name Enter the name used for CSRF Header. The default value is
X-CSRF-Token.
CSRF Header Fetch Value Enter the value used for CSRF Header Fetch. The default
value is Fetch.
Support Date Functions Set the value to false if the OData service site does not
support date functions hour/minute/month/year. The
default value is true.
3. Expand the new OData adapter remote source to browse for table metadata information, and add tables from
that remote source as virtual tables.
4. Expand the Catalog/<SCHEMA>/Tables to find the added virtual tables to view the table definition or to
preview table data.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
256 PUBLIC Data Provisioning Adapters
8.14.3 OData to SAP HANA Data Type Mapping
The following table shows the mapping of data types between OData and SPA HANA.
Edm.String nvarchar
Edm.Boolean varchar
Edm.Guid varchar
Edm.Binary blob
Edm.Byte tinyint
Edm.SByte tinyint
Edm.Int16 smallint
Edm.Int32 integer
Edm.Int64 bigint
Edm.Decimal decimal
Edm.Single real
Edm.Double double
Edm.DataTimeOffset timestamp
Edm.Date date
Edm.DateTime timestamp
Edm.Time time
Edm.Stream blob
Edm.EnumType nvarchar
Edm.DateTimeOffset timestamp
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 257
8.14.4 Consume HTTPS OData Services
Context
If you want to consume HTTPS based OData Services (as opposed to non-secured HTTP based OData Services),
the SSL certificate from the OData Services provider needs to get imported into the trust store on your SAP HANA
platform in order to establish the connection between the OData adapter and the OData Service.
Procedure
You can use your browser to navigate to the OData URL and export the certificate from the browser.
2. Import the SSL certificate using the SAP HANA XS Admin Trust Manager.
For file trust stores, import the certificate to the Trust Manager SAML trust store. This imports the
certificate to the sapsrv.pse file in SECUDIR.
For database trust stores, create a database trust store and import the certificate to the new trust store.
See the SAP HANA Administration Guide for more information about the Trust Manager and trust
relationships.
3. Create the remote source.
For file trust stores, set Trust Store to the sapsrv.pse file.
For database trust stores, set Trust Store to the new database trust store, and Is File Trust Store to
false.
4. Use SAP HANA studio or Web Workbench to browse the remote source and create virtual tables.
Related Information
You can access Microsoft Outlook data (PST file) using the Outlook adapter.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
258 PUBLIC Data Provisioning Adapters
This adapter supports the following functionality:
You can adjust Outlook adapter settings in the Data Provisioning Agent Configuration Tool. (<DPAgent_root>/
configTool/dpagentconfigtool.exe)
Configure the following options in smart data access to configure your connection to an Outlook PST file.
Option Description
PST File Location Specifies the path and file name to the PST file the adapter will read from. The user of
the DP agent must have permission to access this PST file.
Ignore Extra Folder Select True to ignore (not show) any extra folders that are irrelevant when browsing
metadata.
Credentials Mode Technical user or secondary user. Select one of the choices, depending on the purpose
of the remote source you want to create.
PST File Access Token Specifies the access token. This value must be the same as the Access Token value in
the Outlook adapter preferences set in the Data Provisioning agent configuration tool.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 259
<PropertyEntry name="PSTLocation" displayName="PST File Location"
description="Indication where the PST file locate" isRequired="true"><PST File
Location></PropertyEntry>
</PropertyGroup>
</ConnectionProperties>'
WITH CREDENTIAL TYPE 'PASSWORD' USING
'<CredentialEntry name="PstAccessToken">
<password><PST Access Token></password>
</CredentialEntry>';
You can access the mail message and mail attachment tables.
The only tables that the adapter can access are the mail message table and the mail attachment table.
This table will store all the mail messages in this folder. Mails in sub-folders will not be replicated.
MSG_ID VARCHAR(256)
SUBJECT NVARCHAR(4096)
SENDER_NAME NVARCHAR(4096)
CREATION_TIME TIMESTAMP
LAST_MDF_TIME TIMESTAMP
COMMENT NCLOB
DESC_NODE_ID VARCHAR(1024)
SENDER_MAIL_ADDR VARCHAR(256)
RECIPIENTS CLOB
DISPLAYTO CLOB
DISPLAYCC CLOB
DISPLAYBCC CLOB
IMPORTANCE VARCHAR(100)
PRIORITY VARCHAR(100)
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
260 PUBLIC Data Provisioning Adapters
Column Name Data Type
ISFLAGGED TINYINT
MESSAGEBODY NCLOB
This table stores attachments attached to the mails in a folder and no sub-folder will be expand to search
attachments.
MSG_ID VARCHAR(1024)
LONG_FILENAME NVARCHAR(4096)
FILENAME NVARCHAR(4096)
DISPLAY_NAME NVARCHAR(1024)
PATH_NAME NVARCHAR(1024)
CREATION_TIME TIMESTAMP
MODIFICATION_TIME TIMESTAMP
SIZE INTEGER
COMMENT NCLOB
CONTENT BLOB
The ABAP adapter retrieves data from virtual tables through RFC for ABAP tables and ODP extractors. You can
find more information about setting up your environment and adapter by reading the following topics:
http://help.sap.com/saphelp_erp60_sp/helpdata/en/b3/c30a0e9c44204eb596c6353c827d2e/
frameset.htm
http://help.sap.com/saphelp_nwes72/helpdata/en/4a/1be8b7aece044fe10000000a421937/frameset.htm
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 261
Adapter Functionality
Functionality Supported?
Realtime No
Functionality Supported?
ORDER BY No
GROUP BY No
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
262 PUBLIC Data Provisioning Adapters
8.16.1 Authorizations
This section describes the authorizations that support SAP ABAP adapter operations. For improved security,
avoid using wildcards, generic, or blank values for authorization fields, especially in a production environment.
Enter more specific values that are appropriate to your business applications.
Note
Even though some of the listed authorizations are described as being necessary for SAP Data Services, they
are also necessary for the ABAP adapter.
8.16.1.1 ZPGMCHK
Purpose: This authorization determines which programs may execute in a production environment.
Use: PROD
Text (Description): SBOP Data Services Authorization Object for program names
Field Values
PROGRAM: ABAP program name Program names that are allowed to be executed in a produc
tion environment
8.16.1.2 ZDSDEV
Purpose: This is the general authorization object (Data Services-specific version of S_DEVELOP).
Field Values
Activity 03
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 263
8.16.1.3 ZDSAUTH
Field Values
8.16.1.4 S_USER_GRP
Purpose: This authorization allows Data Services to establish a connection to the SAP server.
Field Values
User group in user master maintenance User group for Data Services user
8.16.1.5 S_TCODE
Field Value
Purpose: This authorization allows Data Services to execute functions in the Data Warehousing Workbench.
Field Values
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
264 PUBLIC Data Provisioning Adapters
In addition, you should have access to the contents of the following tables:
RSDAREA
RSDAREAT
RSDCUBE
RSDCUBET
RSDODSO
RSDODSOT
8.16.1.6 S_TABU_DIS
Purpose: This authorization allows Data Services to access table data in an SAP system.
Class: Basis
Field Value
Activity 03
8.16.1.7 S_SCRP_TXT
Field Values
Activity SHOW
8.16.1.8 S_RFC_ADM
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 265
Use: DEV, PROD
Class: Cross-application
Field Values
Activity 03
8.16.1.9 S_RFC
Purpose: This authorization allows users to execute remote functions on an SAP server.
Field Values
Activity 16
Name of RFC to be protected BAPI, CADR, RFC1, SCAT, SDIF, SLST, SUNI, SUTL, SDTX, SYST, /BODS/
BODS, RSAB, SDIFRUNTIME, and any other required function group
8.16.1.10 S_DEVELOP
Field Values
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
266 PUBLIC Data Provisioning Adapters
Field Values
Activity 03
Purpose: This authorization allows Data Services to run generated programs on the SAP server.
Use: DEV
Field Values
Package $TMP
Object name List of temporary program names that are allowed to be gen
erated
Activity 01 and 02
Purpose: This implementation allows Data Services to import a table or to search for a table.
Field Values
Object name List of tables and views that a user is allowed to access
Activity 03
8.16.1.11 S_BTCH_JOB
Class: Basis
Field Values
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 267
8.16.1.12 S_BTCH_ADM
Class: Basis
Field Values
Background administrator ID Y
8.16.1.13 G_800S_GSE
Field Values
Activity 03
There are advantages and disadvantages to using either RFC or non-RFC streaming.
The non-RFC streaming is done by extracting the whole target recordset as one batch. That is anywhere between
0.1s and 10 seconds faster (depends on the SAP ECC response) than the RFC streaming in case of small batches.
So non-RFC streaming is noticeably faster on very small queries, especially with a slow SAP ECC system.
Extracting a whole recordset at once comes with the obvious requirement to have enough memory for the whole
recordset. A general rule (depending on the record length) is 1 GB of RAM on the DP Agent machine per 1 million
records, and several concurrent sessions would require further calculations. Because the non-RFC streaming
mode runs in the ECC dialog mode, it is also subject to various limitations on the ECC side, like dialog mode
timeout.
We recommend using RFC streaming based on the fact that it works for many different scenarios (small queries,
large queries, long queries, multiple concurrent sessions, and so on). There are tradeoffs, such as the
performance cost already mentioned for small queries and the cost of requiring additional configuration, including
on the ECC side.
To activate RFC streaming, you must configure the following ABAP adapter remote source parameters:
Streaming Read: This must be set to true to expose the following parameters.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
268 PUBLIC Data Provisioning Adapters
The following parameters must be set to have RFC streaming work:
Gateway Server
Gateway Host
RFC Destination
The following parameters are optional when RFC streaming is enabled:
Batch size
RFC Trace
Batch receive timeout
Related Information
Note
Depending on the values you choose for the remote source configuration parameters, different parameters will
appear. Thus, some of the following parameters will not appear.
Application Server The name of the host to which you want to connect.
Message Server Enter the name of the message server or its IP address. SAP
logon attempts to connect to this server to load the available
Group Server selection.
Message Server Port (Optional) If the message server isn't on the default port, enter
the port to use to connect to the message server.
Server Group If SAP Logon could reach the specified message server, you
can now select an appropriate server group entry for your con
nection.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 269
Category Option Description
Specifies the gateway host where the ABAP adapter would reg
ister an RFC server instance to receive callbacks with the table
data batches. Usually, the gateway host will be the same a s the
target ECC system host.
Batch Size (Optional) The size (in MB) of the data packet sent by ECC in
one callback. On the DP agent, upon receiving, the batch will be
copied into a queue to be sent to DP server, and thus the mem
ory requirements for that process is 2 x batchsize. The de
fault value is 1 MB.
RFC Trace (Optional) Set to On to turn RFC tracing on. By default, this
parameter is set to Off.
Batch Receive Timeout (Optional) The maximum time period in seconds that the
adapter would be waiting for the next batch to come or to push
the batch to DP server. It wouldn't make sense for this value to
be larger than the value of the framework.messageTimeout
parameter of DP server (for example, the timeout for DP server
to wait for a response from the agent). Thus, the default value
is the same as the default value of the DP server's property
(600 seconds).
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
270 PUBLIC Data Provisioning Adapters
Category Option Description
User Name The user name that is used to connect to the SAP ECC system.
After you have created the remote source, the directory structure will look similar to this, depending on the
structure of the source system.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 271
8.16.4 Initial Load
Extractioname Parameter
To correctly initialize the delta extraction process, you need to set the extractionname parameter to the remote
subscription value of the subscription, which can be found in M_REMOTE_SSUBSCRIPTIONS view:
The ABAP adapter relies on a periodic pull when implementing change data capture.
The ABAP adapter uses a periodic pull to retrieve changed data from the source. The default interval value is
3600 seconds.
An extractor can specify the interval itself in the DELTA_PERIOD_MINIMUM field of the ET_ADDITIONAL_INFO
return table field of the details request. You can also override the interval value either in virtual table creation or in
remote subscription creation. See the examples below.
Example
Setting Extraction Period in the Virtual Table
Example
Setting Extraction Period in the Remote Subscription
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
272 PUBLIC Data Provisioning Adapters
</PropertyGroup>'))
target table z_rodps_repl_test_aied_s;
For transparent tables, the mapping is taken from the underlying database. For cluster and pooled tables, the
following table shows the ABAP data types and the corresponding SAP HANA data types.
ABAP Data Type Data Type in ABAP Dictionary SAP HANA Data Type
CHAR NVARCHAR
CLNT NVARCHAR
CUKY NVARCHAR
LANG NVARCHAR
SSTR NVARCHAR
STRG NVARCHAR
UNIT NVARCHAR
VARC NVARCHAR
ACCP VARCHAR
NUMC VARCHAR
DATS VARCHAR
TIMS VARCHAR
LCHR NCLOB
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 273
ABAP Data Type Data Type in ABAP Dictionary SAP HANA Data Type
D16D DECIMAL
D34D DECIMAL
CURR DECIMAL
QUAN DECIMAL
DEC DECIMAL
PREC DECIMAL
D16R VARBINARY
D16S VARBINARY
D34R VARBINARY
D34S VARBINARY
RAW VARBINARY
FLTP DOUBLE
INT1 SMALLINT
INT2 SMALLINT
INT4 INTEGER
LRAW BLOB
RSTR BLOB
F DOUBLE
P DECIMAL
D VARCHAR
T VARCHAR
N VARCHAR
C NVARCHAR
If a data type is not defined in the table above, it is imported as VARBINARY. The order in the table determines the
order of mapping: for example, an LCHR field will be imported as VARBINARY even though it has ABAP data type
of C.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
274 PUBLIC Data Provisioning Adapters
8.17 SAP ASE
The SAP ASE adapter provides realtime replication and change data capture functionality to SAP HANA or back to
a virtual table.
The SAP ASE Adapter is a data provisioning adapter that receives the data stream from SAP ASE database,
reformats the data and then sends the data change to the downstream Data Provisioning Server component to
provide real-time change data capture capability in order to replicate change data from SAP ASE to SAP HANA in
real-time manner.
The SAP ASE adapter service provider is created as a remote source, and requires the support of artifacts like
virtual tables and remote subscription for each source table to perform replication.
Note
Be sure that after you have upgraded to the SPS 10 Data Provisioning agent you finish completing the setup of
the SAP ASE adapter by following the instructions found in the topic Update the SAP ASE Adapter
Preferences.
Restriction
For real-time replication, you can initialize each source database by only one instance of the adapter. You
cannot configure two adapter instances for real-time replication of the same source database, even when using
a different Data Provisioning Agent or schema in the source database.
Adapter Functionality
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 275
Table with minimal logging option
Related Information
The remote database must be set up properly when using the SAP ASE adapter.
Procedure
1. Connect to an SAP ASE data server using ISQL or other utility and create a database youre going to replicate
(if it doesnt already exist).
2. Create the primary user and grant permissions.
Sample Code
Sample Code
4. Add a new entry for the SAP ASE adapter in the interface file of the SAP ASE data server. For example:
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
276 PUBLIC Data Provisioning Adapters
Sample Code
<entry name>
master tcp ether <host name or IP> <port>
query tcp ether <host name or IP> <port>
Note
The entry name must be the same as the Adapter Instance Name specified when creating the remote
source.
The host name or IP must be the same IP of the computer where the SAP ASE adapter will be running.
The port must be the same as the SAP ASE Adapter Server port that you set up in the SAP ASE
adapter interface file located in <DPAgent_root>/Sybase/interfaces.
Related Information
Data Server Information Data Server Name The SAP ASE data server name.
Data Server Host Host name or IP address on which the remote SAP
ASE data server is running.
Data Server Port Number The SAP ASE data server port number.
Security Properties Enable SSL Encryption Specifies whether you will be using SSL encryption
between the source SAP ASE data server and SAP
ASE adapter.
Common Name in Server Certifi The common name in SAP ASE Adapter certificate
cate file.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 277
Category Option Description
Adapter Properties Adapter Instance Name The SAP ASE adapter instance name, which needs to
be specified when creating remote source and will be
shown in HANA studio after the remote source is cre
ated. The adapter instance name can be determined
by you, and it should be unique in the same HANA
server.
Data Transfer Protocol The protocol the SAP ASE data server and SAP ASE
adapter will be using to transfer data. Only CI or LTL
is allowed. The default value is CI.
Maintenance User The maintenance user that will be used by the ASE
Replication Agent Thread to filter transactions ap
plied by this user.
User Name The SAP ASE database user which ASE adapter
needs to log on to SAP ASE database to configure the
SAP ASE Replication Agent, query data for initial load,
and write back data into SAP ASE when updating a
virtual table in HANA.
Related Information
Parameter Description
Adapter Server Name The name of the SAP ASE adapter server that receives data changes from the SAP
ASE data server.
Adapter Server Port The port number for the SAP ASE adapter server.
Enable SSL for Adapter Server Specifies whether to use SSL for the adapter server.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
278 PUBLIC Data Provisioning Adapters
Parameter Description
SSL Certificate File Password The password for accessing the SSL certificate file.
The following table shows data type mappings from SAP ASE to SAP HANA.
BIGDATATIME TIMESTAMP
BIGINT BIGINT
BIGTIME TIMESTAMP
BINARY VARBINARY
BIT TINYINT
CHAR VARCHAR
DATE DATE
DATETIME TIMESTAMP
DECIMAL DECIMAL
FLOAT DOUBLE
IDENTITY DOUBLE
INT INTEGER
IMAGE BLOB
NCHAR NVARCHAR
NUMERIC DECIMAL
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 279
SAP ASE Data Type SAP HANA Data Type
NVARCHAR NVARCHAR
REAL REAL
SMALLDATETIME TIMESTAMP
SMALLINT SMALLINT
TEXT CLOB
TINYINT TINYINT
TIME TIME
UNICHAR UVCHAR
UNIVARCHAR NVARCHAR
UNITEXT NCLOB
VARBINARY VARBINARY
VARCHAR VARCHAR
SAP ECC adapters are a set of data provisioning adapters to provide access to and interaction with SAP ECC data
and metadata.
All adapters designed to work with SAP ECC are built on top of Data Provisioning Log Reader adapters for the
same database. Currently supported are the following:
IBM DB2
Oracle
MS SQL Server
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
280 PUBLIC Data Provisioning Adapters
SAP ASE
These adapters provide additional ECC-specific functionality: ECC metadata browsing and support for cluster
tables and pooled tables in SAP ECC. Please see the description of Log Reader adapters for the common
functionality.
Note
Before registering your adapter with the SAP HANA system, be sure that you have downloaded and installed
the correct JDBC libraries. For information about the proper JDBC library for your source, see the Product
Availability Matrix . You will also find information about supported ECC versions.
Place your files in <DPAgent_root>/lib, and you will need to manually create the /lib folder.
Restriction
For real-time replication, you can initialize each source database by only one instance of the adapter. You
cannot configure two adapter instances for real-time replication of the same source database, even when using
a different Data Provisioning Agent or schema in the source database.
Adapter Functionality
Functionality Supported?
Realtime Yes
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 281
Table 56: Select Options
Functionality Supported?
ORDER BY Yes
GROUP BY Yes
Limitations
Related Information
8.18.1 Terminology
Setting up ECC adapters requires an understanding of certain SAP ERP and ECC concepts.
Here are some key terms and concepts that will help understand how to set up your ECC adapters.
Term Description
SAP ERP Enterprise Resource Planning software that allows you to leverage role-based access to critical
data, applications, and analytical tools and streamline your processes across procurement,
manufacturing, service, sales, finance, and HR.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
282 PUBLIC Data Provisioning Adapters
Term Description
SAP ECC (SAP ERP Central The central technical component of SAP ERP system.
Component)
Cluster table A logical table type where the data of several such tables are stored together as a table cluster
in the database. The intersection of the key fields of the cluster tables forms the primary key of
the table cluster. Therefore, a cluster table is known in the ABAP Dictionary, but not in the da
tabase.
Pooled table A logical table type where the data of several such tables are stored together as a table pool in
the database. Therefore, a pooled table is known in the ABAP Dictionary, but not in the data
base.
Related Information
Refer to Log Reader and SAP ASE adapters for installation and setup information.
Because the SAP ECC adapters are built on top of existing Data Provisioning adapters, you must use the
procedures of those adapters to build your SAP ECC adapters.
Related Information
To replicate SAP ECC dictionary tables, you'll need specific permissions, depending on the database you are
using.
Table 57:
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 283
Database Permissions or instructions
Oracle Permissions are granted when setting up your adapter by running the script found in the
oracle_init_example.sql file, which is located in the Scripts folder of the Data Pro
visioning Agent installation (<DPAgent_root>\LogReader\Scripts).
Context
The following is an example of creating an ECC Adapter remote source in SAP HANA studio.
Procedure
The following are the ECC-specific parameters for creating a remote source. You can find information about
database-specific parameter information in the remote source parameter topics for Log Reader adapters.
Option Description
ERP Additional Info Owner/Schema The owner of the ECC tables or the schema where the ECC
tables are located.
ERP Additional Info Dictionary Schema If you want to use pool or cluster tables, you have to
replicate a set of DD* tables into SAP HANA. The
Dictionary Schema must be the schema name where those
tables are replicated.
4. Click the Save the Editor icon in the upper right-hand corner of the screen.
Related Information
Microsoft SQL Server Log Reader Remote Source Configuration [page 241]
DB2 Log Reader Remote Source Configuration [page 202]
Oracle Log Reader Remote Source Configuration [page 216]
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
284 PUBLIC Data Provisioning Adapters
Adapter Remote Source User Credentials [page 130]
Before working with cluster or pooled tables, their metadata must be loaded into SAP HANA into a schema
specified by the dictionarySchema attribute. To do this, execute the replication_dictionary.sql script,
and execute the stored procedures that it creates.
For transparent tables, the mapping is taken from the underlying database. For cluster and pooled tables, the
following table shows the ABAP data types and the corresponding SAP HANA data types.
ABAP Data Type Data Type in ABAP Dictionary SAP HANA Data Type
CHAR NVARCHAR
CLNT NVARCHAR
CUKY NVARCHAR
LANG NVARCHAR
SSTR NVARCHAR
STRG NVARCHAR
UNIT NVARCHAR
VARC NVARCHAR
ACCP VARCHAR
NUMC VARCHAR
DATS VARCHAR
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 285
ABAP Data Type Data Type in ABAP Dictionary SAP HANA Data Type
TIMS VARCHAR
LCHR NCLOB
D16D DECIMAL
D34D DECIMAL
CURR DECIMAL
QUAN DECIMAL
DEC DECIMAL
PREC DECIMAL
D16R VARBINARY
D16S VARBINARY
D34R VARBINARY
D34S VARBINARY
RAW VARBINARY
FLTP DOUBLE
INT1 SMALLINT
INT2 SMALLINT
INT4 INTEGER
LRAW BLOB
RSTR BLOB
F DOUBLE
P DECIMAL
D VARCHAR
T VARCHAR
N VARCHAR
C NVARCHAR
If a data type is not defined in the table above, it is imported as VARBINARY. The order in the table determines the
order of mapping: for example, an LCHR field will be imported as VARBINARY even though it has ABAP data type
of C.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
286 PUBLIC Data Provisioning Adapters
8.18.7 Adapter Preferences
You can adjust adapter settings specific to your source in the Data Provisioning Agent Configuration Tool.
(<DPAgent_root>/configTool/dpagentconfigtool.exe)
Note
Log Reader and ECC adapter preferences (except for Number of wrapped log files, Enable verbose
trace, and Maximum log file size) are no longer set in the Data Provisioning Agent Configuration Tool.
They are now moved to the remote source configuration options in SAP HANA. If you have upgraded from a
previous version, then the settings you find in the Agent Configuration Tool are your previous settings,
displayed for your reference.
Maximum scan queue size The maximum number of log records 1000
permitted in the log reader log scan
queue during replication.
Ignore log record processing errors Determines whether to ignore log record false
processing errors.
Timeout in seconds to retry connecting The number of seconds the agent waits 10
between retry attempts to connect to
the primary database.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 287
Parameter Description Default value
Maximum log file size Limit the size of the message log to con 1000
serve disk space.
Note
Log Reader and ECC adapter preferences (except for Number of wrapped log files, Enable verbose
trace, and Maximum log file size) are no longer set in the Data Provisioning Agent Configuration Tool.
They are now moved to the remote source configuration options in SAP HANA. If you have upgraded from a
previous version, then the settings you find in the Agent Configuration Tool are your previous settings,
displayed for your reference.
Maximum scan queue size The maximum number of log records 1000
permitted in the log reader log scan
queue during replication.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
288 PUBLIC Data Provisioning Adapters
Parameter Description Default value
Maximum wait interval between log The maximum wait interval between Log 60
scans
Reader transaction log scans.
Note
The value of the parameter is the
maximum number of seconds
that can elapse before the Log
Reader component scans the
transaction log for a transaction
to be replicated, after a previous
scan yields no such transaction.
For reduced replication latency
in an infrequently updated data
base, we recommend lower
number settings for the parame
ter.
If the primary database is contin
uously updated, the value of the
parameter is not significant to
performance.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 289
Parameter Description Default value
Seconds to add to each log scan wait in The number of seconds to add to each 5
terval wait interval before scanning the trans
action log, after a previous scan yields
no transaction to be replicated.
Note
The value of the parameter is the
number of seconds added to
each wait interval before the
LogReader component scans the
log for a transaction to be repli
cated, after a previous scan
yields no such transaction.
The number of seconds specified
by the parameter is added to
each wait interval, until the wait
interval reaches the value speci
fied by the Maximum wait inter
val between log scans parame
ter.
For optimum performance, the
value of the parameter should be
balanced with the average num
ber of operations in the primary
database over a period of time.
In general, better performance
results from reading more oper
ations from the transaction log
during each LogReader scan.
With a primary database that is
less frequently updated, increas
ing the value of the parameter
may improve overall perform
ance.
If the database is continuously
updated, the value of the param
eter may not be significant to
performance.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
290 PUBLIC Data Provisioning Adapters
Parameter Description Default value
Timeout in seconds to retry connecting The number of seconds the agent waits 10
between retry attempts to connect to
the primary database.
Maximum log file size Limit the size of the message log to con 1000
serve disk space.
Note
Log Reader and ECC adapter preferences (except for Number of wrapped log files, Enable verbose
trace, and Maximum log file size) are no longer set in the Data Provisioning Agent Configuration Tool.
They are now moved to the remote source configuration options in SAP HANA. If you have upgraded from a
previous version, then the settings you find in the Agent Configuration Tool are your previous settings,
displayed for your reference.
Directory containing Oracle archive redo Specifies the location of the archived
log files
redo log files.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 291
Parameter Description Default value
Distinguished Name (DN) in Certificate The distinguished name (DN) of the pri
mary data server certificate.
Oracle supplemental logging level Specifies the level of supplemental log table
ging.
Maximum operation queue size Specifies the maximum number of oper 1000
ations permitted in the log reader opera
tion queue during replication.
Maximum scan queue size The maximum number of log records 1000
permitted in the log reader log scan
queue during replication.
Maximum session cache size The maximum number of Oracle ses 1000
sions to be cached in memory during
replication
Queue size of parallel scan tasks Specifies the number of tasks in the 0
queue.
Number of log record rows fetched by Specifies the number of log record rows 1
the scanner at a time fetched by the scanner.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
292 PUBLIC Data Provisioning Adapters
Parameter Description Default value
Ignore log record processing errors Determines whether to ignore log record false
processing errors.
Replicate LOB columns Oracle logs all LOB data (except for true
BFILE datatypes) in the Oracle redo log.
This allows the agent to apply each indi
vidual LOB change. However, for BFILE
data, the same technique is used.
Ignore data of unsupported types stored Specifies whether you want to ignore false
in ANYDATA data with unsupported types housed in
ANYDATA wrapper.
Timeout in seconds to retry connecting The number of seconds the agent waits 10
between retry attempts to connect to
the primary database.
Maximum log file size Limit the size of the message log to con 1000
serve disk space.
Related Information
Parameter Description
Adapter Server Name The name of the SAP ASE adapter server that receives data changes from the SAP
ASE data server.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 293
Parameter Description
Adapter Server Port The port number for the SAP ASE adapter server.
Enable SSL for Adapter Server Specifies whether to use SSL for the adapter server.
SSL Certificate File Password The password for accessing the SSL certificate file.
The SAP HANA adapter provides real-time change data capture capability in order to replicate data from a remote
SAP HANA database to a target SAP HANA database. Unlike LogReader adapters, which read a remote
database's log to get change data, the SAP HANA adapter is trigger-based: change data is captured by triggers,
and the adapter needs to continuously query the target database to get the change data. When a table is
subscribed to replicate, the adapter creates three triggers on the table for capturing INSERT, UPDATE, and
DELETE, respectively.
The adapter also creates a shadow table for the subscribed table. Except for a few extra columns for supporting
replication, the shadow table has the same columns as its replicated table. Triggers record change data in shadow
tables. For each adapter instance (remote source), the adapter creates a Trigger Queue table to mimic a queue.
Each row in shadow tables has a corresponding element (or placeholder) in the queue. The adapter continuously
scans the queue elements and corresponding shadow table rows to get change data and replicate them to target
HANA database.
Adapter Functionality
Functionality Supported?
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
294 PUBLIC Data Provisioning Adapters
Functionality Supported?
Realtime Yes
Functionality Supported?
ORDER BY Yes
GROUP BY Yes
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 295
8.19.1 SAP HANA Remote Source Configuration
Use the SAP HANA adapter to move data from one SAP HANA instance to another.
Privileges
The following schema privileges on the schemas, under which there are tables to be accessed, must be granted to
the configured user on the remote SAP HANA database:
Usually, a user inherently has the above schema privileges if they are the schema owner (that is, the schema
name and user name are the same). But if it's not, the above schema privileges must be granted to the user using
the following access control statement:
GRANT CREATE ANY, DROP, SELECT, INSERT, UPDATE, DELETE ON SCHEMA <schema_name> TO
<user_name>;
Database Host The host name or IP address on which the remote SAP HANA
server is running.
Port Number The port number of the remote SAP HANA server.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
296 PUBLIC Data Provisioning Adapters
Category Option Description
Database Name The database name, if the remote database is a tenant data
base. Leave this parameter empty if the remote database is
not a tenant database.
Schema
Note
This option is no longer required. It is visible solely for
backward compatibility purposes. It was used in previous
versions to restrict the viewing of tables to those under the
given schema. Now, you can view all tables, regardless of
the schema they are located under. For those remote sour
ces that were created in a previous version, this option
value must keep unchanged.
Schema Alias Replacements Schema Alias Schema name to be replaced with the schema given in
Schema Alias Replacement. If given, accessing tables under it
is considered to be accessing tables under the schema given
in Schema Alias Replacement.
Schema Alias Replacement Schema name to be used to replace the schema given in
Schema Alias.
CDC Properties Maintenance User Filter Optional. Enter a source database user name. Source data
(Case Sensitive) base transactions (INSERT, UPDATE, and DELETE) con
ducted by this user will be filtered out (ignored) and not
propagated to the SAP HANA target. For example, if you log in
to source database with this maintenance user and delete a
row from a source table that is subscribed for replication, this
row will not be deleted from the SAP HANA target table.
Note
Do not use the same name as the SAP HANA database
username.
System Object Prefix The prefix of the names of the SAP HANA adapter system ob
jects created in the source SAP HANA database by the
adapter. We recommend keeping the default value of HADP_.
Minimum Scan Interval in The minimum interval in seconds that the adapter scans the
Seconds Trigger Queue table to get change data. The default value is 0
(seconds), which means there is no waiting time before the
next scan.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 297
Category Option Description
Maximum Scan Interval in The maximum interval in seconds that the adapter scans the
Seconds Trigger Queue table to get change data. The default value is 10
(seconds). If the adapter scans the queue and finds that the
queue is empty, it will gradually increase the scan interval
from the minimum scan interval to the maximum scan inter
val.
DDL Scan Interval in Minutes The interval for detecting DDL changes in the source.
Maximum Batch Size The maximum number of consecutive change data on the
same table that are batched to process and send to Data Pro
visioning Server together. The default value is 128.
Batch Queue Size The internal batch queue size. The batch queue size deter
mines the maximum number of batches of change data that
are queued in memory. The default value is 64.
Connection Security Enable SSL Encryption Specifies whether to enable SSL encryption on connections to
a remote SAP HANA database. The default value is false.
Validate Server Certificate Specifies whether to validate the certificate of a remote SAP
HANA server. This configuration is only meaningful if Enable
SSL encryption is set to true. The default value is false
Host Name in Server Certifi Controls the verification of the host name field of the server
cate certificate:
If not set, the host name used for the connection is used
for verification. Note that SSL is name-based; connecting
to an IP address, or to localhost is unlikely to work.
If set to a string,
If the string is "*", any name matches.
If the string starts with CN=, it is treated as a com
mon name, and the textual representation of the
common name entry in the certificate must be ex
actly the same.
Otherwise, the host name in the server certificate
must match this string (case insensitive).
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
298 PUBLIC Data Provisioning Adapters
SAP HANA DDL Propagation [page 299]
Using a Schema Alias [page 246]
Prepare SSL when SAP HANA is on premise [page 23]
Information about DDL propagation when using the SAP HANA adapter.
Enabling DDL propagation can impact the performance of the source SAP HANA database. Setting an appropriate
value for the remote source option DDL Scan Interval in Minutes matters.
From the time the DDL changes occurs on the source database to the time the DDL changes are propagated to
the target SAP HANA database, no DML changes on the tables are allowed. At configured intervals (DDL Scan
Interval in Minutes. By default, 10 minutes), the HANA adapter queries the metadata of all subscribed tables from
the source HANA database, and it determines if changes to the DDL have occurred. If changes are detected, it will
propagate the DDL changes to the target database through the Data Provisioning Server.
Because the HANA adapter detects DDL changes by querying source HANA system tables, the source database
might be burdened if you configure a small value for the DDL Scan Interval in Minutes option. However, configuring
a large value would increase the latency of DDL propagation. Therefore, you need to figure out what value works
best for you. If changes to the DDL are rare, you might even want to disable DDL propagation by setting the value
of the DDL Scan Interval in Minutes option to zero. This will prevent the HANA adapter from querying metadata
from the source database periodically.
Limitation
Be aware that, during the time period between when DDL changes occur on the source database and when they
are replicated to the target HANA, there must be no DML changes on the subscribed source tables. This is
because replicating DDL changes would trigger the SAP HANA adapter to update (drop and then recreate)
triggers and shadow tables on the changed source tables. Errors may result if any data is inserted, updated, or
deleted on the source tables during this time period.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 299
8.19.3 SAP HANA Adapter Preferences
Set the thread pool size when executing jobs of querying shadow tables to get change data.
Parameter Description
Thread Pool Size The size of the SAPHANA adapter global thread pool. The thread pool is shared by the
SAP HANA adapter remote sources. The thread pool is used to execute jobs of query
ing shadow tables to get change data.
We recommend that you configure the thread pool size to the number of available pro
cessors in the system, if possible.
The following table shows the data type conversion between a remote SAP HANA source and an SAP HANA
target.
Remote SAP HANA Data Type Target SAP HANA Data Type
ALPHANUM ALPHANUM
BIGINT BIGINT
BINARY VARBINARY
BINTEXT NCLOB
BLOB BLOB
BOOLEAN TINYINT
CHAR VARCHAR
CLOB CLOB
DECIMAL DECIMAL
Note
An exception of the DECIMAL type mapping is that DECI
MAL(34, 0) is always mapped to floating-point DECIMAL
data type
DOUBLE DOUBLE
DATE DATE
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
300 PUBLIC Data Provisioning Adapters
Remote SAP HANA Data Type Target SAP HANA Data Type
INTEGER INTEGER
NCHAR NVARCHAR
NCLOB NCLOB
NVARCHAR NVARCHAR
REAL REAL
SECONDDATE SECONDDATE
SHORTTEXT NVARCHAR
SMALLDECIMAL DECIMAL
SMALLINT SMALLINT
TEXT NCLOB
TIME TIME
TIMESTAMP TIMESTAMP
TINYINT TINYINT
VARBINARY VARBINARY
VARCHAR VARCHAR
8.20 SOAP
The SOAP adapter provides access to SOAP Web Services via HANA SQL.
The SOAP adapter is a SOAP web services client that can talk to a web service using the HTTP protocol to
download the data. The SOAP adapter uses virtual functions instead of virtual tables to expose server side
operations as it closely relates to how the operation is invoked.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 301
8.20.1 SOAP Adapter Remote Source Configuration
Option Description
WSDL File The location of the WSDL file. Enter a URL or a path to the local file.
Use System Proxy If set to yes, the adapter will use the proxy information saved in the dpagentconfig.ini
or that is set up in the DP Agent Configuration Tool.
Treat WebServiceError If set to True, fail web services call in case of failure. The default value is No.
(SOAP Fault) as failure
By default, the SOAP Adapter will write the fault to one of the output columns if the call fails. In
certain scenarios, you may want to fail the call itself. For example, suppose the proxy was in
correctly configured.
Sample Code
If set to No, the select call is a success and the actual error is populated in SOAP_FAULT
column.
If set to Yes, the select call will fail itself and write the error to a caller.
SOAP web service browsing will display all of the operations as a leaf node. Because SOAP requests and
responses are both XML messages, you will use the Hierarchical node in a flowgraph, with the virtual function as
your source. We will use Virtual Function Configuration to keep the root schemas and referenced schemas from
the WSDL file. Use the GET_REMOTE_SOURCE_FUNCTION_DEFINITION procedure, and as part of this call, the
SOAP adapter will provide the following information to HANA.
Note
You can only create virtual function using SQL or the Web-based Development Workbench. We provide sample
SQL code here. For more information about creating a virtual function using the Web-based Development
Workbench, see the Configuration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
302 PUBLIC Data Provisioning Adapters
8.20.3 Process the Response
Context
You have created a virtual function, and now you can process the response using the Hierarchical node in the
Web-based Development Workbench. For more information and details about the Hierarchical node, see
Configure a Hierarchical Node in the SAP HANA SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality Configuration Guide.
Procedure
1. Open the Catalog editor and import the virtual function you want to execute.
2. Configure the remote source to use the imported virtual function.
3. Add a Hierarchical node to the flowgraph, connect it to the data source, and configure the node.
4. Add a target table to the flowgraph, connect it upstream, and name it.
5. Save the flowgraph, and execute it.
6. Click the Data Preview button on the target table to confirm that the data is saved correctly.
SQL example for setting up the SOAP adapter to use a remote webservice.
Here is the SQL to setup the SOAP Adapter to use a remote webservice. http://www.webservicex.net/
stockquote.asmx?WSDL. You can use the Web-based Development Workbench to complete some of these tasks
(for example, creating a virtual function).
Sample Code
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 303
WITH CREDENTIAL TYPE 'PASSWORD' USING
'<CredentialEntry name="webservice_credential"><user></user><password></
password></CredentialEntry>';
--Get the function definition from adapter
CALL "PUBLIC"."GET_REMOTE_SOURCE_FUNCTION_DEFINITION"
('WebServiceRS','{"serviceName":"StockQuote","portName":"StockQuoteSoap",
"operationName":"GetQuote","nodeType":"OPERATION"}',?,?,?);
--Using the json configuration we can now create a virtual function.
drop FUNCTION getStockQuote;
CREATE VIRTUAL FUNCTION getStockQuote(SOAP_REQUEST Nvarchar(5000))
RETURNS TABLE (SOAP_HEADERS Nvarchar(5000), SOAP_FAULT NVARCHAR(5000), SOAP_BODY
NCLOB)
CONFIGURATION 'use the json data returned from
GET_REMOTE_SOURCE_FUNCTION_DEFINITION' AT "WebServiceRS";
--Invoking the SOAP Request is as below.
8.21 Teradata
The Teradata adapter can be used to connect to a Teradata remote source, and create a virtual table to read from
and write to.
Note
Before registering your adapter with the SAP HANA system, be sure that you have downloaded and installed
the correct JDBC libraries. For information about the proper JDBC library for your source, see the Product
Availability Matrix .
Place your files in <DPAgent_root>/lib, and you will need to manually create the /lib folder.
Adapter Functionality
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
304 PUBLIC Data Provisioning Adapters
DDL propagation.
Replication monitoring and statistics
Access to multiple schemas
Functionality Supported?
Realtime Yes
Functionality Supported?
ORDER BY Yes
GROUP BY Yes
Authentication
If you are using LDAP, you will need to provide a user name and password when setting up your remote source.
If you are using Kerberos, the adapter will use the default Kerberos settings of the machine it is deployed on. If the
Kerberos configuration file (krb5.conf) is in a non-standard location, the path has to be specified via the
java.security.krb5.conf system property (by adding it to dpagent.ini). The Realm and KDC connection
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 305
parameters in the remote source are now optional. Both have to be specified in order to override the machine's
default krb5.conf settings. To use Kerberos, use the Kerberos principal name for the username with the
corresponding password.
Privileges
The following database user privileges are required for accessing databases, tables, and so on, so that the adapter
can read metadata. The user needs SELECT access on the following dbc tables:
"DBC"."UDTInfo"
"DBC"."DBase"
"DBC"."AccessRights"
"DBC"."TVM"
"DBC"."TVFields"
CREATE TABLE
DROP TABLE
CREATE TRIGGER
DROP TRIGGER
CREATE PROCEDURE
DROP PROCEDURE
Related Information
Options for setting up the connection to the remote Teradata data server.
Configuration parameters
Connection Host Host name or IP address on which the remote Teradata data
server is running
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
306 PUBLIC Data Provisioning Adapters
Category Option Description
Encrypt traffic Controls whether the traffic between the adapter and the data
base is encrypted.
If turned off, data exchanged between the adapter and the data
base is unencrypted and can be read by anyone with access to
the network. Login data is not affected by this setting, because
this data is always sent encrypted by the Teradata JDBC driver.
JDBC FastExport Speeds up retrieving large amounts of data from Teradata (disa
bled when using Kerberos authentication)
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 307
Category Option Description
http://developer.teradata.com/doc/connectivity/jdbc/refer
ence/current/frameset.html
System Object Prefix The prefix of the names of the Teradata adapter system objects
created in the source Teradata database by the adapter. We rec
ommend keeping the default value of TADP_.
Shadow Table Prefix The prefix of the names of the Teradata adapter shadow tables
created in the source Teradata database by the adapter.
Stored Procedure Suffix The prefix of the names of the Teradata adapter stored proce
dures created in the source Teradata database by the adapter.
Trigger Suffix The suffix of the names of the Teradata adapter triggers created
in the source Teradata database by the adapter.
Connection Pool Size Maximum number of connections allowed in the connection pool
on a secondary node. The default value is 8.
Minimum Scan Interval in The minimum interval in seconds that the adapter scans the Trig
Seconds ger Queue table to get change data. The default minimum scan
interval is 3 seconds to avoid putting excessive load on the data
base with frequent repeat scans.
Maximum Scan Interval in The maximum interval in seconds that the adapter scans the Trig
Seconds ger Queue table to get change data. The default value is 10 (sec
onds). If the adapter scans the queue and finds that the queue is
empty, it will gradually increase the scan interval from the mini
mum scan interval to the maximum scan interval.
Scan Retry Max Attempts When querying the trigger queue table, the scanner may encoun
ter a deadlock exception. Use this option to set the maximum
number of retries before failing (if the retries do not succeed).
The default value is 0, which means the adapter will not retry any
scans when encountering deadlock exceptions.
Scan Retry Wait Time in The number of seconds for the scanner to wait before trying
Seconds again to query the trigger queue table. This applies only when you
encounter a deadlock exception. The default value is 30 sec
onds.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
308 PUBLIC Data Provisioning Adapters
Category Option Description
Related Information
The Teradata adapter needs to create a number of system objects on the source database, in order for it to
manage realtime replication. These objects include shadow tables, triggers and stored procedures. If your
Teradata database has a 30-character name limit, the default remote source settings can lead to Teradata
adapter system objects with names greater than 30 characters. By default, the Teradata adapters system object
prefixes and suffixes will add up to 12 extra characters, meaning that only tables with names of up to 18 characters
are fully supported in this scenario.
To maximize the number of table name characters supported, edit the 4 system object prefix and suffix properties
to 1 character each (they cannot be empty). This will ensure that the Teradata adapter uses at most 5 additional
characters when creating its system objects, meaning that table names of up to 25 characters can be supported
when the 30-character database limit is in place. The following options are available to configure:
Note
When upgrading, if the Teradata adapter tries to read those properties and theyre not present (i.e. not part of
the previous remote source before the upgrade), then the adapter will use the default values. When the user
edits the remote source after the upgrade, theyll see those default values in the remote source description.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 309
Related Information
Grant the necessary permissions before accessing multiple schemas in a Teradata source
To access multiple schemas, you will need the following permissions assigned to you. In the following example,
you are USER2, and you are accessing tables, creating procedures, executing procedures, etc., belonging to
USER1.
Note
The EXECUTE PROCEDURE permission allows USER1 to executre the procedures in database USER2.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
310 PUBLIC Data Provisioning Adapters
<PropertyEntry name="ddl_scan_interval">2</PropertyEntry>
<PropertyEntry name="scan_retry_max_attempts">3</PropertyEntry>
<PropertyEntry name="scan_retry_wait_time">10</PropertyEntry>
</PropertyGroup>
</ConnectionProperties>'
WITH CREDENTIAL TYPE 'PASSWORD' USING
'<CredentialEntry name="credential">
<user>myuser</user>
<password>mypassword</password>
</CredentialEntry>';
The DDL Scan Interval in Minutes Adapter Preference option is important to review when setting up DDL
propagation.
Enabling DDL propagation can impact the performance of the source Teradata database. Setting an appropriate
value for the remote source option DDL Scan Interval in Minutes matters.
From the time the DDL changes occurs on the source database to the time the DDL changes are propagated to
the target Teradata database, no DML changes on the tables are allowed. At configured intervals (DDL Scan
Interval in Minutes. By default, 10 minutes), the Teradata adapter queries the metadata of all subscribed tables
from the source Teradata database, and it determines if changes to the DDL have occurred. If changes are
detected, it will propagate the DDL changes to the target database through the Data Provisioning Server.
Because the Teradata adapter detects DDL changes by querying source Teradata system tables, the source
database might be burdened if you configure a small value for the DDL Scan Interval in Minutes option. However,
configuring a large value would increase the latency of DDL propagation. Therefore, you need to figure out what
value works best for you. If changes to the DDL are rare, you might even want to disable DDL propagation by
setting the value of the DDL Scan Interval in Minutes option to zero. This will prevent the Teradata adapter from
querying metadata from the source database periodically.
Related Information
Parameter Description
Thread Pool Size The size of the Teradata global thread pool. The thread pool is shared by the Teradata
adapter remote sources. The thread pool is used to execute jobs of querying shadow
tables to get change data.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 311
8.21.5 Teradata to SAP HANA Data Type Mapping
The following table shows the conversion between Teradata data types and SAP HANA data types.
BLOB BLOB
BYTE VARBINARY
VARBYTE VARBINARY
BYTEINT SMALLINT
SMALLINT SMALLINT
INTEGER/INT INETEGER
BIGINT BIGINT
DECIMAL/DEC/NUMERIC(p,s) DECIMAL
FLOAT/REAL/DOUBLE DOUBLE
NUMBER DECIMAL
DATE DATE
TIME TIMESTAMP
TIMESTAMP TIMESTAMP
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
312 PUBLIC Data Provisioning Adapters
Teradata Data Type SAP HANA Data Type
JSON CLOB/NCLOB
XML NCLOB
Interval Types
Intervals are split up into multiple columns, one for each filed of an interval, e.g. day, hour, minute etc. However,
since value restrictions apply (e.g. only 11 months, 12 months are carried over to 1 year) special value checks will
have to be implemented. If a number of months were added to a month column of an interval year to month in
HANA, the insert operation or the update operation to Teradata will have to be intercepted (required for loading to
Teradata).
INTERVAL DAY TO SECOND -'9999 23:59:59' or -'9999 SMALLINT + 1 DOUBLE with value
23:59:59.999999' 3x checks
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 313
INTERVAL SECOND -'9999.999999' DOUBLE with value checks
Related Information
When writing to a virtual table, keep in mind that there are special considerations related to data types, depending
on the operation you use.
INSERT
Inserting values into a Teradata backed virtual table comes with some restrictions:
Period Period columns are split into two columns in SAP HANA (begin and ending bound of the time
period). Because the adapter will reconstruct a Teradata period under the hood from these
values, Teradata restrictions on periods apply for these columns in SAP HANA, as well. Oth
erwise, the insert will fail. For example:
The ending bound value has to be greater than the beginning value.
Null values in the ending bound are not allowed for time periods.
Interval All columns have to be "mentioned" in the insert statement and assigned values.
If the resulting interval should be negative, all values of the interval have to be negative;
no mixing of signs is allowed. This mirrors the behavior of selecting values from negative
periods; think additive behaviour of the values.
If the resulting interval should be null, all values have to be null.
Some values have restricted ranges. For example, the minute column (in SAPA HANA)
of a minute to second interval (in Teradata) can only have values in the range of -59 <= x
<= 59, even though the minute part may be represented by a smallint column in SAP
HANA. See the Teradata documentations for allowed values.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
314 PUBLIC Data Provisioning Adapters
UPDATE
When updating interval columns, all columns and values have to be specified (see below), because Teradata does
not allow partial updates of intervals.
Sample Code
To make the overall interval null, all interval values have to be set to null
To make the interval negative, all values have to be negative
Related Information
8.22 Twitter
The Twitter adapter provides access to Twitter data via the Data Provisioning Agent.
Twitter is a social media website which hosts millions of tweets every day. The Twitter platform provides access to
this corpus of data. Twitter has exposed all its data via RESTful API so that it can be consumed with any HTTP
client. Twitter APIs allow you to consume tweets in different ways, from getting tweets from a specific user, to
performing a public search, or subscribing to real-time feeds for specific users or the entire Twitter community.
Adapter Functionality
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 315
Table 62: Global Settings
Functionality Supported?
Functionality Supported?
ORDER BY No
GROUP BY No
Twitter Adapter
The Twitter adapter is a streaming data provisioning adapter written in Java, and utilizes the Adapter SDK to
provide access to Twitter data via SAP HANA SQL (with or without Data Provisioning parameters) or via virtual
functions.
Using the Adapter SDK and the Twitter4j library, the Twitter adapter consumes the tweets from Twitter and
converts to AdapterRow objects to send to SAP HANA server. The tweet is exposed to SAP HANA server via
virtual tables. Each Status table is basically a map of JSON data returned from Twitter to tabular form. Currently
we expose the following columns in all Status tables.
Id BIGINT
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
316 PUBLIC Data Provisioning Adapters
Column name SQL Data Type Dimension
Truncated TINYINT
InReplyToStatusId BIGINT
InReplyToUserId BIGINT
Favorited TINYINT
Retweeted TINYINT
FavoriteCount INTEGER
Retweet TINYINT
RetweetCount INTEGER
RetweedByMe TINYINT
PossiblySensitive TINYINT
CreatedAt DATE
Latitude DOUBLE
Longitude DOUBLE
UserId BIGINT
CurrentUserRetweetId BIGINT
Understanding Twitter terminology helps you get the most out of Twitter data.
Term Definition
Home timeline The home timeline is the tweets that appear in your home
page when you log in. It returns a collection of the most
recent tweets and retweets posted by the authenticating user
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 317
Term Definition
and the users they follow. It will contain tweets that you
follow, or those that you have tweeted, retweeted, replied to,
favorited, mentioned, and so on.
User timeline User timeline returns a collection of the most recent Tweets
posted by the user indicated by the screen_name. The
timeline returned is the equivalent of the one seen when you
view a users profile on twitter.com.
User stream User streams provide a way for a single user to be streamed
the equivalent of their home timeline (the tweets authored by
the users they follow) and mentions timeline (the tweets
authored by users @mentioning that user).
Public stream This stream returns public statuses (public data flowing
through Twitter) that match one or more filter predicates.
Though the Twitter adapter is installed with the Data Provisioning Agent, you must configure your Agent to
communicate with the SAP HANA server.
In addition, you must configure your SAP HANA server and create a remote source.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
318 PUBLIC Data Provisioning Adapters
8.22.2.1 Set Up a Twitter Account
Procedure
API Key
API Secret
Access Token
Access Token Secret
Procedure
API Key
API Secret
Access Token
Access Token Secret
5. Set the Credentials Mode parameter to technical user.
6. Click the Save the Editor icon in the upper right-hand corner of the screen.
Results
The following directory structure is created, allowing you to create virtual tables or virtual functions as needed.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 319
Related Information
Configure the HTTP proxy parameters to allow the Twitter adapter to connect to Twitter from behind a firewall.
Parameter Description
HTTP Proxy The hostname of the HTTP proxy required to access Twitter when the Data Provision
ing Agent is behind a firewall.
HTTP Port The port of the HTTP proxy required to access Twitter when the Data Provisioning
Agent is behind a firewall.
NAME
CAP_NON_TRANSACTIONAL_CDC
CAP_WHERE
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
320 PUBLIC Data Provisioning Adapters
NAME
CAP_LIKE
CAP_SIMPLE_EXPR_IN_WHERE
CAP_OR
CAP_SELECT
CAP_BIGINT_BIND
CAP_TABLE_CAP
CAP_COLUMN_CAP
CAP_METADATA_ATTRIBUTE
See the description of these capabilities in the Javadoc documentation, which can be found in
<DPAgent_root>/doc/javadoc.
Depending on your needs, you will need to create either a virtual table or virtual function to access Twitter data.
For batch data queries, you'll need to create a virtual function. For realtime data queries, you'll need to create a
virtual table. You will then need to connect to the virtual table or function in the Data Source node in a flowgraph.
In the following examples, we provide you with SQL commands for creating these virtual tables and functions. You
can, however, also create them using the Web-based Development Workbench UI. For information about creating
virtual tables and functions using the UI, see the Configuration Guide for SAP HANA Smart Data Integration and
SAP HANA Smart Data Quality.
After you create a Twitter remote source, you can create a virtual function (or virtual table) to retrieve data from
the following Twitter components:
Home Timeline
User Timeline
Search: Tweets
Application: Rate_Limit_Status (Virtual table only)
In addition, the Twitter adapter supports additional input parameters supported on the above components in a
Data Source node for a flowgraph.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 321
8.22.3.1 Statuses: Home Timeline
Home Timeline returns a collection of the most recent Tweets and retweets posted by the authenticating user and
the users they follow. The home timeline is equivalent to what a user sees when they go to their home page on
Twitter.com. The example below assumes that you have created a remote source called rsrc_twitter.
Sample Code
Creating a virtual function
Sample Code
Querying Twitter
These are additional, Twitter-specific parameters that you can use and define using SQL or the flowgraph editor in
the Web-based Development workbench, Data Source node.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
322 PUBLIC Data Provisioning Adapters
DP Parameter Twitter Equivalent Description
User timeline returns a collection of the most recent Tweets posted by the user indicated by the screen_name.
The timeline returned is the equivalent of the one seen when you view a users profile on Twitter.com. The
example below assumes that you have created a remote source called rsrc_twitter.
Sample Code
Creating a virtual function
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 323
UserUrl NVARCHAR(256)) CONFIGURATION
'{"__DP_UNIQUE_NAME__":"Statuses_User_Timeline"}' AT "rsrc_twitter";
Sample Code
Querying Twitter
These are additional, Twitter-specific parameters that you can use and define using SQL or the flowgraph editor in
the Web-based Development workbench, Data Source node.
The Search API is not meant to be an exhaustive source of Tweets. Not all Tweets will be indexed or made
available via the search interface. Also, note that the search index has a 7-day limit i.e. it does not return any
results older than one week. The example below assumes that you have created a remote source called
rsrc_twitter.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
324 PUBLIC Data Provisioning Adapters
Example
Sample Code
Creating a virtual function.
Sample Code
Querying Twitter
The previous example just shows how to use all parameters and may not return any results. To see results,
specify meaningful search parameters. For example:
Sample Code
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 325
select * from GetSearchTweets('movie -scary :)',
40,null,null,null,null,null,null,null);
select * from GetSearchTweets('"happy hour"',
40,null,null,null,null,null,null,null);
select * from GetSearchTweets('from:SAP',40,null,null,null,null,null,null,null);
select * from GetSearchTweets('SAP HANA',
20,643480345531273216,643484387561066497,'37.781157,-122.398720,1000mi',null,nul
l,null,null);
These are additional, Twitter-specific parameters that you can use and define using SQL or the flowgraph editor in
the Web-based Development workbench, Data Source node.
count count Number of tweets to return (up to 1500). Default value is 100.
This parameter is optional.
since_id since_id Returns results with an ID greater than (that is, more recent
than) the specified ID.
max_id max_id Returns results with an ID less than (that is, older than) or
equal to the specified ID.
geocode geocode Returns tweets by users located within a given radius of the
given latitude/longitude. Specified by latitude,longitude,ra
dius
locale locale Specify the language of the query you are sending (only ja is
currently effective)
result_type result_type Specifies what type of search results you would prefer to re
ceive (e.g. mixed, recent, popular)
until until Returns tweets created before the given date. Date should be
formatted as YYYY-MM-DD
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
326 PUBLIC Data Provisioning Adapters
8.22.3.4 Application: Rate Limit Status
The Rate limit status returns the current rate limits for the endpoints supported by the Twitter adapters batch
querying methods. It shows the limit, remaining requests, and the time until the limits will be reset for each
method.
Note
This uses a virtual table to retrieve the rate limit status, not a virtual function like other batch Twitter queries.
The example below assumes that you have created a virtual table called vt_Rate_Limit_Status.
Sample Code
After you create a Twitter remote source, you can create a virtual table to retrieve realtime data from the following
Twitter components:
User Stream
User Stream (with tracking keywords)
Public Stream
In addition, the Twitter adapter supports additional streaming parameters supported on Twitters User and Public
streams in a Data Source node for a flowgraph.
Also, do not forget to select the Real-time behavior checkbox in the UI to indicate that this is a realtime operation.
User Streams provide a stream of data and events specific to the authenticated user.
User streams provide a way for a single user to be streamed the equivalent of their home timeline (the tweets
authored by the users they follow) and mentions timeline (the tweets authored by users mentioning that user). It
also offers the ability to be streamed DMs received by the user when permissions are given. In addition, events like
other users favoriting or retweeting that users tweets, users following that user (or that user following other
users), and so on can be streamed. Think of it as a me feed everything on Twitter as it relates to me, the
account holder.
User Streams provide a stream of data and events specific to the authenticated user. No additional parameters
are needed when subscribing to an authenticated user stream.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 327
Example
Create the virtual table: vt_User_Stream
Sample Code
Creating the remote subscription
User Streams provide a stream of data and events specific to the authenticated user.
In addition to providing user stream data, you can specify a comma-separated list of phrases which will be used to
determine what Tweets will be delivered on the stream. A phrase may be one or more terms separated by spaces.
Also, a phrase will match if all of the terms in the phrase are present in the Tweet, regardless of order and ignoring
case. By this model, you can think of commas as logical ORs, while spaces are equivalent to logical ANDs. For
example, 'the twitter' is the AND twitter. the,twitter is the OR twitter.
Sample Code
Creating a remote subscription
These are additional, Twitter-specific parameters that you can use and define using SQL or the flowgraph editor in
the Web-based Development workbench, Data Source node.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
328 PUBLIC Data Provisioning Adapters
Input Parameter Twitter Equivalent Description
track track Additional keywords to track along with User stream. This param
eter is optional.
This stream returns public statuses (public data flowing through Twitter) that match one or more filter predicates.
Create a virtual table called vt_Public_Stream and the target table T_TWITTER_PUBLIC_STREAM, then execute
the following (example) to create the remote subscription.
Example
Sample Code
Creating a remote subscription
These are additional, Twitter-specific parameters that you can use and define using SQL or the flowgraph editor in
the Web-based Development workbench, Data Source node.
Note
At least one of track, follow or locations is mandatory. The track, follow, and locations fields should be
considered to be combined with an OR operator. track=foo&follow=1234 returns tweets matching foo OR
created by user 1234.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Data Provisioning Adapters PUBLIC 329
Input Parameter Twitter Equivalent Description
follow follow A comma-separated list of user IDs, indicating the users whose
Tweets should be delivered on the stream. This parameter is
optional.
Note
Count is not supported as a parameter, because it requires elevated access to use. A typical use of count in
streams is to tell how many past tweets (prior to start of current streaming) to include in the stream.
Twitter API
There are many Twitter APIs; some of them are meaningful and can be used by our framework. Each of the
Twitter APIs could be converted to a meaningful SQL statement (with or without Data Provisioning parameters) or
a virtual function and be consumed.
Currently, the adapter covers only few APIs, and it is very limited as to the APIs provided by Twitter. Site streams
are not supported by Twitter adapter. Site streams is an expansion of user stream concept for services that want
to stream the equivalent of me feed on behalf of many users at one time.
Flowgraph considerations
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
330 PUBLIC Data Provisioning Adapters
9 Security
The SAP HANA smart data integration option adds new database objects and communication channels to the
SAP HANA security landscape.
Some aspects of the SAP HANA smart data integration option require specific security-related considerations,
such as the communication channel between SAP HANA and the Data Provisioning Agent. However, in general,
the SAP HANA smart data integration option follows standard SAP HANA security concepts. For complete
information, refer to the SAP HANA Security Guide.
Related Information
9.1 Authentication
The identity of database users accessing SAP HANA is verified through a process called authentication. SAP
HANA supports several authentication mechanisms, several of which can be used for the integration of SAP
HANA into single sign-on environments (SSO).
For complete information about authentication and single sign-on within SAP HANA, refer to the SAP HANA
Security Guide.
For remote source systems accessed by Data Provisioning adapters, user name and password authentication is
supported. That is, users authenticate themselves by entering their user name and password for the remote
source.
For custom adapters, the developer is free to implement any type of authentication as required.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Security PUBLIC 331
9.2 Authorizations
The SAP HANA smart data integration option adds new entities that are stored as catalog objects in the SAP
HANA database.
Catalog objects such as adapters and remote subscriptions follow standard SAP HANA database security
concepts. That is, they follow standard processes for metadata management, system views, public views,
authorizations, and so on.
In addition to the privileges supported by the GRANT statement in the SAP HANA SQL and System Views
Reference, the following privileges are relevant to the SAP HANA smart data integration option and its associated
catalog objects.
System Privileges
ADAPTER ADMIN Controls the execution of the following adapter-related commands: CREATE
ADAPTER, DROP ADAPTER and ALTER ADAPTER. Also allows access to ADAPT
ERS and ADAPTER_LOCATIONS system views.
AGENT ADMIN Controls the execution of the following agent-related commands: CREATE AGENT,
DROP AGENT and ALTER AGENT. Also allows access to AGENTS and
ADAPTER_LOCATIONS system views.
Source Privileges
CREATE REMOTE SUBSCRIPTION This privilege allows the creation of remote subscriptions executed on this source
entry. Remote subscriptions are created in a schema and point to a virtual table or
SQL on tables to capture changed data.
PROCESS REMOTE SUBSCRIPTION EX This privilege allows processing exceptions on this source entry. Exceptions that
CEPTION are relevant for all remote subscriptions are created for a remote source entry.
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
332 PUBLIC Security
Object Privileges
AGENT MESSAGING Authorizes the user with which the agent communicates with DDL
the data provisioning server using HTTP protocol.
For example:
Related Information
_SYS_REPO requires additional object or schema authorizations to activate and execute objects such as task
flowgraphs and replication tasks.
To activate and execute these objects, _SYS_REPO requires the following authorizations:
For example, the following statement grants all necessary authorizations to _SYS_REPO on a specific schema:
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Security PUBLIC 333
9.3 Communication Channel Security
The security of communication channels between SAP HANA and adapters hosted by the Data Provisioning Agent
depends on the SAP HANA deployment.
Additional components added to SAP HANA landscape by SAP HANA Smart Data Integration and SAP HANA
smart data quality require security considerations in addition to the information described in the SAP HANA
Security Guide.
When SAP HANA and the Data Provisioning Agent are both installed on-premise, or locally in relation to each
other, communication is performed using TCP/IP and encrypted with SSL.
The agent listens on a port and the Data Provisioning Server connects to it. The agent generates a key pair and
stores its public certificate in SAP HANA. The Data Provisioning Server then uses this public certificate to perform
SSL server authentication when connecting to the agent.
Caution
Because passwords for remote systems accessed by adapters are sent in plain text over this communication
channel, encryption is mandatory.
When SAP HANA is in the cloud or a firewall exists between SAP HANA and the Data Provisioning Agent, the agent
connects to SAP HANA using a proxy XS application. The proxy performs authentication and authorization before
passing messages to or from the Data Provisioning Server.
The agent can connect using the user name and password scheme supported by SAP HANA XS applications.
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
334 PUBLIC Security
9.4 Auditing Activity on SAP HANA Smart Data Integration
Objects
Auditing provides you with visibility on who did what in the SAP HANA database (or tried to do what) and when.
Actions performed on Enterprise Information Management objects can be audited using the standard auditing
tools and processes described in the SAP HANA Security Guide.
In addition to the audit actions listed in the SAP HANA SQL and System Views Reference, the following audit
actions are available:
Related Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Security PUBLIC 335
Important Disclaimers and Legal Information
Coding Samples
Any software coding and/or code lines / strings ("Code") included in this documentation are only examples and are not intended to be used in a productive system
environment. The Code is only intended to better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and
completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, unless damages were caused by SAP
intentionally or by SAP's gross negligence.
Accessibility
The information contained in the SAP documentation represents SAP's current view of accessibility criteria as of the date of publication; it is in no way intended to be a
binding guideline on how to ensure accessibility of software products. SAP in particular disclaims any liability in relation to this document. This disclaimer, however, does
not apply in cases of willful misconduct or gross negligence of SAP. Furthermore, this document does not result in any direct or indirect contractual obligations of SAP.
Gender-Neutral Language
As far as possible, SAP documentation is gender neutral. Depending on the context, the reader is addressed directly with "you", or a gender-neutral noun (such as "sales
person" or "working days") is used. If when referring to members of both sexes, however, the third-person singular cannot be avoided or a gender-neutral noun does not
exist, SAP reserves the right to use the masculine form of the noun and pronoun. This is to ensure that the documentation remains comprehensible.
Internet Hyperlinks
The SAP documentation may contain hyperlinks to the Internet. These hyperlinks are intended to serve as a hint about where to find related information. SAP does not
warrant the availability and correctness of this related information or the ability of this information to serve a particular purpose. SAP shall not be liable for any damages
caused by the use of related information unless damages have been caused by SAP's gross negligence or willful misconduct. All links are categorized for transparency
(see: http://help.sap.com/disclaimer).
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
336 PUBLIC Important Disclaimers and Legal Information
Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data
Quality
Important Disclaimers and Legal Information PUBLIC 337
go.sap.com/registration/
contact.html