2023-04-17 16:45:47 +02:00
---
title: DB2
2023-05-04 12:37:18 -07:00
slug: /connectors/database/db2
2023-04-17 16:45:47 +02:00
---
# DB2
{% multiTablesWrapper %}
| Feature | Status |
| :----------------- | :--------------------------- |
| Stage | PROD |
| Metadata | {% icon iconName="check" /%} |
| Query Usage | {% icon iconName="cross" /%} |
| Data Profiler | {% icon iconName="check" /%} |
| Data Quality | {% icon iconName="check" /%} |
| Lineage | Partially via Views |
| DBT | {% icon iconName="check" /%} |
| Supported Versions | -- |
| Feature | Status |
| :----------- | :--------------------------- |
| Lineage | Partially via Views |
| Table-level | {% icon iconName="check" /%} |
| Column-level | {% icon iconName="check" /%} |
{% /multiTablesWrapper %}
In this section, we provide guides and references to use the DB2 connector.
Configure and schedule DB2 metadata and profiler workflows from the OpenMetadata UI:
- [Requirements ](#requirements )
- [Metadata Ingestion ](#metadata-ingestion )
2023-04-28 07:09:12 -07:00
- [Data Profiler ](/connectors/ingestion/workflows/profiler )
- [Data Quality ](/connectors/ingestion/workflows/data-quality )
- [dbt Integration ](/connectors/ingestion/workflows/dbt )
2023-04-17 16:45:47 +02:00
2023-07-06 15:11:13 +02:00
{% partial file="/v1.1.0/connectors/ingestion-modes-tiles.md" variables={yamlPath: "/connectors/database/db2/yaml"} /%}
2023-04-17 16:45:47 +02:00
## Requirements
2023-04-21 20:14:41 +05:30
To create a new Db2 user please follow the guidelines mentioned [here ](https://www.ibm.com/docs/ko/samfess/8.2.0?topic=schema-creating-users-manually )
Db2 user must have the below permissions to ingest the metadata:
- `SELECT` privilege on `SYSCAT.SCHEMATA` to fetch the metadata of schemas.
```sql
-- Grant SELECT on tables for schema metadata
GRANT SELECT ON SYSCAT.SCHEMATA TO USER_NAME;
```
- `SELECT` privilege on `SYSCAT.TABLES` to fetch the metadata of tables.
```sql
-- Grant SELECT on tables for table metadata
GRANT SELECT ON SYSCAT.TABLES TO USER_NAME;
```
- `SELECT` privilege on `SYSCAT.VIEWS` to fetch the metadata of views.
```sql
-- Grant SELECT on tables for view metadata
GRANT SELECT ON SYSCAT.VIEWS TO USER_NAME;
```
### Profiler & Data Quality
2023-07-06 15:11:13 +02:00
Executing the profiler workflow or data quality tests, will require the user to have `SELECT` permission on the tables/schemas where the profiler/tests will be executed. More information on the profiler workflow setup can be found [here ](https://docs.open-metadata.org/connectors/ingestion/workflows/profiler ) and data quality tests [here ](https://docs.open-metadata.org/connectors/ingestion/workflows/data-quality ).
2023-04-17 16:45:47 +02:00
## Metadata Ingestion
2023-07-06 15:11:13 +02:00
{% partial
file="/v1.1.0/connectors/metadata-ingestion-ui.md"
variables={
connector: "DB2",
selectServicePath: "/images/v1.1.0/connectors/db2/select-service.png",
addNewServicePath: "/images/v1.1.0/connectors/db2/add-new-service.png",
serviceConnectionPath: "/images/v1.1.0/connectors/db2/service-connection.png",
}
/%}
2023-04-17 16:45:47 +02:00
{% stepsContainer %}
{% extraContent parentTagName="stepsContainer" %}
2023-07-06 15:11:13 +02:00
#### Connection Details
2023-04-17 16:45:47 +02:00
- **Username**: Specify the User to connect to DB2. It should have enough privileges to read all the metadata.
- **Password**: Password to connect to DB2.
- **database**: Database of the data source.
- **Host and Port**: Enter the fully qualified hostname and port number for your DB2 deployment in the Host and Port field.
2023-06-28 20:31:50 +05:30
2023-07-06 15:11:13 +02:00
{% partial file="/v1.1.0/connectors/database/advanced-configuration.md" /%}
2023-04-17 16:45:47 +02:00
{% /extraContent %}
2023-07-06 15:11:13 +02:00
{% partial file="/v1.1.0/connectors/test-connection.md" /%}
2023-04-17 16:45:47 +02:00
2023-07-06 15:11:13 +02:00
{% partial file="/v1.1.0/connectors/database/configure-ingestion.md" /%}
2023-04-17 16:45:47 +02:00
2023-07-06 15:11:13 +02:00
{% partial file="/v1.1.0/connectors/ingestion-schedule-and-deploy.md" /%}
2023-04-17 16:45:47 +02:00
{% /stepsContainer %}
2023-07-06 15:11:13 +02:00
{% partial file="/v1.1.0/connectors/troubleshooting.md" /%}
2023-04-17 16:45:47 +02:00
2023-07-06 15:11:13 +02:00
{% partial file="/v1.1.0/connectors/database/related.md" /%}
2023-04-17 16:45:47 +02:00