Skip to content

Commit 5491a3d

Browse files
authored
Merge pull request #183411 from linda33wj/purview
Add SAP HANA support
2 parents 9d7b02f + e3da014 commit 5491a3d

File tree

5 files changed

+167
-1
lines changed

5 files changed

+167
-1
lines changed
31.4 KB
Loading
52.8 KB
Loading

articles/purview/purview-connector-overview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: jingwang
66
ms.service: purview
77
ms.subservice: purview-data-map
88
ms.topic: conceptual
9-
ms.date: 11/23/2021
9+
ms.date: 12/21/2021
1010
ms.custom: ignite-fall-2021
1111
---
1212

@@ -38,6 +38,7 @@ Purview supports the following data stores. Select each data store to learn the
3838
|| [MySQL](register-scan-mysql.md) | [Yes](register-scan-mysql.md#register) | No | [Yes](register-scan-mysql.md#scan) | No |
3939
|| [Oracle](register-scan-oracle-source.md) | [Yes](register-scan-oracle-source.md#register)| No | [Yes*](how-to-lineage-oracle.md) | No|
4040
|| [PostgreSQL](register-scan-postgresql.md) | [Yes](register-scan-postgresql.md#register) | No | [Yes](register-scan-postgresql.md#scan) | No |
41+
|| [SAP HANA](register-scan-sap-hana.md) | [Yes](register-scan-sap-hana.md#register) | No | No | No |
4142
|| [Snowflake](register-scan-snowflake.md) | [Yes](register-scan-snowflake.md#register) | No | [Yes](register-scan-snowflake.md#scan) | No |
4243
|| [SQL Server](register-scan-on-premises-sql-server.md)| [Yes](register-scan-on-premises-sql-server.md#register) |[Yes](register-scan-on-premises-sql-server.md#scan) | No* | No|
4344
|| [Teradata](register-scan-teradata-source.md)| [Yes](register-scan-teradata-source.md#register)| No | [Yes*](how-to-lineage-teradata.md) | No|
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
---
2+
title: Connect to and manage SAP HANA
3+
description: This guide describes how to connect to SAP HANA in Azure Purview, and how to use Azure Purview to scan and manage your SAP HANA source.
4+
author: linda33wj
5+
ms.author: jingwang
6+
ms.service: purview
7+
ms.subservice: purview-data-map
8+
ms.topic: how-to
9+
ms.date: 12/21/2021
10+
ms.custom: template-how-to
11+
---
12+
13+
# Connect to and manage SAP HANA in Azure Purview (Preview)
14+
15+
This article outlines how to register SAP HANA, and how to authenticate and interact with SAP HANA in Azure Purview. For more information about Azure Purview, read the [introductory article](overview.md).
16+
17+
## Supported capabilities
18+
19+
|**Metadata extraction**| **Full scan** |**Incremental scan**|**Scoped scan**|**Classification**|**Access policy**|**Lineage**|
20+
|---|---|---|---|---|---|---|
21+
| [Yes](#register)| [Yes](#scan)| No | No | No | No| No |
22+
23+
When scanning SAP HANA source, Purview supports extracting metadata including:
24+
25+
- Server
26+
- Database
27+
- Schema
28+
- Table including its column, foreign key, index, and unique constraint
29+
- View including its view column
30+
- Stored procedure including its parameter dataset and result set
31+
- Function including its parameter dataset
32+
- Synonym
33+
34+
## Prerequisites
35+
36+
* You must have an Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
37+
38+
* You must have an active [Azure Purview resource](create-catalog-portal.md).
39+
40+
* You need Data Source Administrator or Data Reader permissions to register a source and manage it in Azure Purview Studio. For more information about permissions, see [Access control in Azure Purview](catalog-permissions.md).
41+
42+
* Set up the latest [self-hosted integration runtime](https://www.microsoft.com/download/details.aspx?id=39717). For more information, see [Create and configure a self-hosted integration runtime](manage-integration-runtimes.md). The minimal supported Self-hosted Integration Runtime version is 5.13.8013.1.
43+
44+
* Ensure that [JDK 11](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html) is installed on the machine where the self-hosted integration runtime is running.
45+
46+
* Ensure that Visual C++ Redistributable for Visual Studio 2012 Update 4 is installed on the machine where the self-hosted integration runtime is running. If you don't have this update installed, [download it now](https://www.microsoft.com/download/details.aspx?id=30679).
47+
48+
* Download the SAP HANA JDBC driver ([JAR ngdbc](https://mvnrepository.com/artifact/com.sap.cloud.db.jdbc/ngdbc)) on the machine where your self-hosted integration runtime is running.
49+
50+
> [!Note]
51+
> The driver should be accessible to all accounts in the machine. Don't put it in a path under user account.
52+
53+
### Required permissions for scan
54+
55+
Azure Purview supports basic authentication (username and password) for scanning SAP HANA.
56+
57+
The SAP HANA user you specified must have the permission to select metadata of the schemas you want to import.
58+
59+
```sql
60+
CREATE USER <user> PASSWORD <password> NO FORCE_FIRST_PASSWORD_CHANGE;
61+
GRANT SELECT METADATA ON SCHEMA <schema1> TO <user>;
62+
GRANT SELECT METADATA ON SCHEMA <schema2> TO <user>;
63+
```
64+
65+
And the user must have the permission to select on system table _SYS_REPO.ACTIVE_OBJECT and on system schemas _SYS_BI and _SYS_BIC.
66+
67+
```sql
68+
GRANT SELECT ON _SYS_REPO.ACTIVE_OBJECT TO <user>;
69+
GRANT SELECT ON SCHEMA _SYS_BI TO <user>;
70+
GRANT SELECT ON SCHEMA _SYS_BIC TO <user>;
71+
```
72+
73+
## Register
74+
75+
This section describes how to register a SAP HANA in Azure Purview by using [Azure Purview Studio](https://web.purview.azure.com/).
76+
77+
1. Go to your Azure Purview account.
78+
79+
1. Select **Data Map** on the left pane.
80+
81+
1. Select **Register**.
82+
83+
1. In **Register sources**, select **SAP HANA** > **Continue**.
84+
85+
1. On the **Register sources (SAP HANA)** screen, do the following:
86+
87+
1. For **Name**, enter a name that Azure Purview will list as the data source.
88+
89+
1. For **Server**, enter the host name or IP address used to connect to a SAP HANA source. For example, `MyDatabaseServer.com` or `192.169.1.2`.
90+
91+
1. For **Port**, enter the port number used to connect to the database server (39013 by default for SAP HANA).
92+
93+
1. For **Select a collection**, choose a collection from the list or create a new one. This step is optional.
94+
95+
:::image type="content" source="media/register-scan-sap-hana/configure-sources.png" alt-text="Screenshot that shows boxes for registering SAP HANA sources." border="true":::
96+
97+
1. Select **Finish**.
98+
99+
## Scan
100+
101+
Use the following steps to scan SAP HANA databases to automatically identify assets and classify your data. For more information about scanning in general, see [Scans and ingestion in Azure Purview](concept-scans-and-ingestion.md).
102+
103+
### Authentication for a scan
104+
105+
The supported authentication type for a SAP HANA source is **Basic authentication**.
106+
107+
### Create and run scan
108+
109+
1. In the Management Center, select integration runtimes. Make sure that a self-hosted integration runtime is set up. If it isn't set up, use the steps in [Create and manage a self-hosted integration runtime](./manage-integration-runtimes.md).
110+
111+
1. Go to **Sources**.
112+
113+
1. Select the registered SAP HANA source.
114+
115+
1. Select **+ New scan**.
116+
117+
1. Provide the following details:
118+
119+
1. **Name**: Enter a name for the scan.
120+
121+
1. **Connect via integration runtime**: Select the configured self-hosted integration runtime.
122+
123+
1. **Credential**: Select the credential to connect to your data source. Make sure to:
124+
125+
* Select **Basic Authentication** while creating a credential.
126+
* Provide the user name used to connect to the database server in the User name input field.
127+
* Store the user password used to connect to the database server in the secret key.
128+
129+
For more information, see [Credentials for source authentication in Azure Purview](manage-credentials.md).
130+
131+
1. **Database**: Specify the name of the database instance to import.
132+
133+
1. **Schema**: List subset of schemas to import expressed as a semicolon separated list. For example, `schema1; schema2`. All user schemas are imported if that list is empty. All system schemas and objects are ignored by default. When the list is empty, all available schemas are imported.
134+
135+
Acceptable schema name patterns that use SQL `LIKE` expression syntax include the percent sign (%). For example, `A%; %B; %C%; D` means:
136+
* Start with A or
137+
* End with B or
138+
* Contain C or
139+
* Equal D
140+
141+
Usage of NOT and special characters are not acceptable.
142+
143+
1. **Driver location**: Specify the path to the JDBC driver location in your machine where self-host integration runtime is running. This should be the path to valid JAR folder location. Do not include the name of the driver in the path.
144+
145+
1. **Maximum memory available**: Maximum memory (in gigabytes) available on the customer's machine for the scanning processes to use. This value is dependent on the size of SAP HANA database to be scanned.
146+
147+
:::image type="content" source="media/register-scan-sap-hana/scan.png" alt-text="Screenshot that shows boxes for scan details." border="true":::
148+
149+
1. Select **Continue**.
150+
151+
1. For **Scan trigger**, choose whether to set up a schedule or run the scan once.
152+
153+
1. Review your scan and select **Save and Run**.
154+
155+
[!INCLUDE [create and manage scans](includes/view-and-manage-scans.md)]
156+
157+
## Next steps
158+
159+
Now that you've registered your source, use the following guides to learn more about Azure Purview and your data:
160+
161+
- [Data insights in Azure Purview](concept-insights.md)
162+
- [Lineage in Azure Purview](catalog-lineage-user-guide.md)
163+
- [Search the data catalog](how-to-search-catalog.md)

articles/purview/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ items:
170170
href: register-scan-salesforce.md
171171
- name: SAP ECC
172172
href: register-scan-sapecc-source.md
173+
- name: SAP HANA
174+
href: register-scan-sap-hana.md
173175
- name: SAP S/4HANA
174176
href: register-scan-saps4hana-source.md
175177
- name: Snowflake

0 commit comments

Comments
 (0)