IBM DB2
This article outlines the integration with the IBM DB2 connector, enabling streamlined metadata management through features such as crawling, profiling, querying, data preview, and lineage building (both automatic and manual). It also ensures secure authentication via Credential Manager.

Overview
Connector Details
Connector Category
RDBMS
Connector Version
Release7.1.1
Releases Supported (Available from)
Legacy Connector
Connectivity
[How the connection is established with the RDBMS System]
JDBC driver
Verified IBM DB2 Version
11.1.4.4
The IBM DB2 connector has been validated with the mentioned "Verified IBM DB2 Versions" and is expected to be compatible with other supported IBM DB2 versions. If there are any issues with validation or metadata crawling, please submit a support ticket for investigation and feedback.
Connector Features
Crawling
✅
Delta Crawling
❌
Profiling
✅
Query Sheet
✅
Data Preview
✅
Auto Lineage
✅
Manual Lineage
✅
Secure Authentication via Credential Manager
✅
Data Quality
✅
DAM (Data Access Management)
❌
Bridge
✅
Metadata Mapping
The following objects are crawled from DB2 and mapped to the corresponding UI assets.
Schema
SCHEMANAME
schema
Databases
Schema
Table
TABNAME
Table
Tables
table
Table
TYPE
Type
Tables
table
Table
REMARKS
Source Description
Descriptions
Source Description
Columns
colname
Column
Table Columns
Columns
Columns
TYPENAME
Column Type
Table Columns
Columns
Columns
colname
Title
Table Columns
Columns
Columns
REMARKS
Source Description
Table Columns
Columns
Columns
LENGTH
Length
Table Columns
Columns
Columns
COLNO
Column Position
Table Columns
Columns
Columns
NULLS
Nullable
Table Columns
Columns
Views
VIEWNAME
View
Tables
view
Views
TEXT
View Query
Views
View
Views
VIEWSCHEMA
Schema
Views
View
Procedures & Functions
ROUTINENAME
Name
Procedures/Functions
Procedure/Function
Procedures & Functions
TEXT
Query
Procedures/Functions
Procedure/Function
Procedures & Functions
ROUTINETYPE
Job Type
Procedures/Functions
Procedure/Function
Procedures & Functions
ROUTINESCHEMA
Schema
Procedures/Functions
Procedure/Function
Set up a Connection
Prerequisites
The following are the prerequisites to establish a connection:
External Supporting File
The supporting file listed below is required for establishing a DB2 database connection using JDBC. Ensure that the correct supporting file is used based on the specific installation environment. The supporting file is available for download. After downloading, place the file in the appropriate directory to proceed. To download the ZIP file, click here.
db2jcc4-10.1.jar
Use this file to enable DB2 JDBC connectivity for the application. Place the JAR file in the Third Party Jars or external JAR directory (ovaledge.jarpath) and restart the application to load the driver successfully.
Whitelisting Ports
Ensure the inbound port “50005” is whitelisted for OvalEdge to connect to the DB2 database.
The default port number for DB2 is 50005. If a different port is used, ensure that the updated port number is specified during connection setup, the port is whitelisted, and communication between the system and DB2 is properly established.
Service Account User Permissions
It is recommended to use a separate service account to establish the connection to the data source, configured with the following minimum set of permissions.
👨💻 Who can provide these permissions? These permissions are typically granted by the DB2 administrator, as users may not have the required access to assign them independently.
Schema
Syscat.Schemata
Select
Tables
Syscat.Tables
Select
Table Columns
Syscat.Columns
Select
Relationships
Syscat.Keycoluse, Syscat.References
Select
Views
Syscat.Views
Select
Procedures & Functions
Syscat.Routines
Select
Schema Users
Syscat.Schemata, Sysibmadm.Privileges
Select
Table Users
Syscat.Tabauth, Sysibmadm.Privileges
Select
Connection Configuration Steps
Users are required to have the Connector Creator role in order to configure a new connection.
Log into OvalEdge, go to Administration > Connectors, click + (New Connector), search for DB2, and complete the required parameters.
Fields marked with an asterisk (*) are mandatory for establishing a connection.
Connector Type
By default, "DB2" is displayed as the selected connector type.
Credential Manager*
Select the desired credentials manager from the drop-down list. Relevant parameters will be displayed based on your selection.
Supported Credential Managers:
OE Credential Manager
AWS Secrets Manager
HashiCorp Vault
Azure Key Vault
License Add Ons
Select the checkbox for Auto Lineage Add-On to build data lineage automatically.
Select the checkbox for Data Quality Add-On to identify data quality issues using data quality rules and anomaly detection.
Connector Name*
Enter a unique name for the DB2 connection
(Example: "DB2_Prod").
Connector Environment
Select the environment (Example: PROD, STG) configured for the connector.
Catalog SYS Schemas*
Select True to include DB2 system schemas in metadata cataloging, or select False to exclude system schemas and catalog only user-defined schemas.
Connector description
Enter a brief description of the connector.
Server*
Enter the DB2 database server name or IP address (Example: xxxx-xxxx.xxxx4ijtzasl.xx-south-1.rds.amazonaws.com or 1xx.xxx.1.x0).
Port*
By default, the port number for the DB2, "50005" is auto-populated. If required, the port number can be modified as per custom port number that is configured for the DB2.
Database*
Enter the database name to which the service account user has access within the DB2.
Driver*
By default, the DB2 driver details are auto-populated.
Username*
Enter the service account username set up to access the DB2 database (Example: "oesauser").
Password*
Enter the password associated with the service account user.
Connection String
Configure the connection string for the DB2 database:
Automatic Mode: The system generates a connection string based on the provided credentials.
Manual Mode: Enter a valid connection string manually.
Replace placeholders with actual database details.
{sid} refers to Database Name.
Plugin Server
Enter the server’s name when running as a plugin server.
Plugin Port
Enter the port number on which the plugin is running.
Default Governance Roles
Default Governance Roles*
Select the appropriate users or teams for each governance role from the drop-down list. All users and teams configured in OvalEdge Security are displayed for selection.
Admin Roles
Admin Roles*
Select one or more users from the dropdown list for Integration Admin and Security & Governance Admin. All users configured in OvalEdge Security are available for selection.
No of Archive Objects
No Of Archive Objects*
This shows the number of recent metadata changes to a dataset at the source. By default, it is off. To enable it, toggle the Archive button and specify the number of objects to archive.
Example: Setting it to 4 retrieves the last four changes, displayed in the 'Version' column of the 'Metadata Changes' module.
Bridge
Select Bridge*
If applicable, select the bridge from the drop-down list.
The drop-down list displays all active bridges configured in OvalEdge. These bridges enable communication between data sources and OvalEdge without altering firewall rules.
After entering all connection details, the following actions can be performed:
Click Validate to verify the connection.
Click Save to store the connection for future use.
Click Save & Configure to apply additional settings before saving.
The saved connection will appear on the Connectors home page.
Manage Connector Operations
Crawl/Profile
To perform crawl and profile operations, users must be assigned the Integration Admin role.
The Crawl/Profile button allows users to select one or more schemas for crawling and profiling.
Navigate to the Connectors page and click Crawl/Profile.
Select the schemas you want to crawl.
The Crawl option is selected by default. Click the Crawl & Profile radio button to run both operations.
Click Run to collect metadata from the connected source and load it into the OvalEdge Data Catalog.
After a successful crawl, the information appears in the Data Catalog > Databases tab.
The Schedule checkbox allows automated crawling and profiling at defined intervals, from a minute to a year.
Click the Schedule checkbox to enable the Select Period drop-down.
Select a time period for the operation from the drop-down menu.
Click Schedule to initiate metadata collection from the connected source.
The system will automatically execute the selected operation (Crawl or Crawl & Profile) at the scheduled time.
Other Operations
The Connectors page in OvalEdge provides a centralized view of all configured connectors, including their health status.
Managing connectors includes:
Connectors Health: Displays the current status of each connector using a green icon for active connections and a red icon for inactive connections, helping to monitor the connectivity with data sources.
Viewing: Click the Eye icon next to the connector name to view connector details, including databases, tables, columns, and codes.
Nine Dots Menu Options:
To view, edit, validate, build lineage, configure, or delete connectors, click on the Nine Dots menu.
Edit Connector: Update and revalidate the data source.
Validate Connector: Check the connection's integrity.
Settings: Modify connector settings.
Crawler: Configure data extraction.
Profiler: Customize data profiling rules and methods.
Query Policies: Define query execution rules based on roles.
Access Instructions: Add notes on how data can be accessed.
Business Glossary Settings: Manage term associations at the connector level.
Anomaly Detection Settings: Configure anomaly detection preferences at the connector level.
Connection Pooling: Allows configuring parameters such as maximum pool size, idle time, and timeouts directly within the application.
Others: Configure notification recipients for metadata changes.
Build Lineage: Automatically build data lineage using source code parsing.
Delete Connector: Remove a connector with confirmation.
Connectivity Troubleshooting
If incorrect parameters are entered, error messages may appear. Ensure all inputs are accurate to resolve these issues. If issues persist, contact the assigned support team.
1
Login failed for user
Error Description: This error occurs due to incorrect database credentials or an invalid authentication configuration while connecting to the DB2 database.
Resolution: Verify the following to resolve the issue:
Ensure the username and password are correct and case-sensitive.
Confirm the database name (SID) is correct and exists.
Verify the user account has CONNECT privilege on the target database.
Check that the user account is not locked or expired.
Test the credentials using DB2 Command Line Processor or IBM Data Studio.
Validate the connection string format:
jdbc:db2://{server}:{port}/{sid}
2
The TCP/IP connection to the host has failed
Error Description: This error indicates a network connectivity issue while attempting to connect to the DB2 database server.
Resolution: Verify the following to resolve the issue:
Ensure the hostname or IP address is correct and reachable.
Confirm the port number (default 50005) is correct and open in the firewall.
Verify the DB2 server is running and accessible.
Ensure the DB2 instance is started using the db2start command.
Test connectivity using telnet <server> <port> or ping.
Validate the connection string format:
jdbc:db2://{server}:{port}/{sid}
3
Invalid number format for port number
Error Description: This error occurs when an invalid or incorrectly formatted port number is provided for the DB2 connection.
Resolution
Ensure the port number is numeric and within the valid range (1–65535).
Remove any special characters or spaces from the port field.
Use the default DB2 port 50005 unless a custom port is configured.
Verify the configured port in DB2 using the command: db2 get dbm cfg.
FAQs
Connection validation fails with "Failed to load driver class com.ibm.db2.jcc.DB2Driver". What does this mean?
This indicates that the DB2 JDBC driver is not available in the classpath. Verify the following:
Driver com.ibm.db2.jcc.DB2Driver is present in the classpath.
DB2 JDBC driver JAR (db2jcc.jar or db2jcc4.jar) is placed in the external JAR directory (ovaledge.jarpath).
Restart the application after placing the JAR file.
Verify the driver version compatibility with the DB2 server version.
What's the difference between Database (SID) and how should I configure it?
In DB2, Database (SID) refers to the target database name. Ensure the following:
Connection string format: jdbc:db2://{server}:{port}/{sid}
Database exists and is accessible (list db directory).
User has CONNECT privilege on the database.
Database is in the correct state (ACTIVE, not RESTRICTED).
My connection string keeps showing errors. Why?
Ensure the connection string uses the correct placeholders and format:
Format: jdbc:db2://{server}:{port}/{sid}
Replace placeholders with actual values (no curly braces in the final string).
Ensure there are no spaces in the connection string.
Verify the server name resolves correctly.
I'm getting a "Cannot open database" error. How do I fix this?
This occurs when the database name is incorrect or inaccessible. Verify the following:
Database (SID) exists and is online (db2 list db directory).
User has CONNECT permission on the database.
Database state is ACTIVE (not RESTRICTED or QUIESCE).
User is mapped to the correct database.
getRemoteDatabases() returns empty list or fails. What should I check?
Check user permissions and schema filtering:
User has SELECT privilege on SYSCAT.SCHEMATA.
System schemas are excluded by default (DEFINERTYPE='U' and OWNERTYPE='U').
To include system schemas, set Catalog SYS Schemas attribute to true.
Verify the connection and database name.
Query used: SELECT SCHEMANAME FROM SYSCAT.SCHEMATA WHERE DEFINERTYPE='U' AND OWNERTYPE='U'
I'm getting an "Invalid object name" error when fetching tables. How do I resolve this?
This occurs when the table or schema does not exist or is inaccessible. Verify the following:
Schema name exists in SYSCAT.SCHEMATA.
Table name is correct (case-sensitive in DB2).
User has SELECT privilege on SYSCAT.TABLES.
Schema name matches exactly (trimmed in code).
Query uses a parameterized WHERE clause: tabschema = ?
getRemoteTables() returns tables but TYPE field shows incorrect values.
The TYPE field from SYSCAT.TABLES determines the table type:
'V' = VIEW (mapped to TableType.VIEW)
Other values = TABLE (mapped to TableType.TABLE)
REMARKS field provides the table description or comment.
Verify TYPE values in SYSCAT.TABLES match expectations.
getRemoteColumns() returns empty or fails. What should I check?
Verify permissions and object names:
User has SELECT privilege on SYSCAT.COLUMNS.
Table and schema names are correct (case-sensitive).
Proper escaping is used for special characters in identifiers.
Query uses parameterized WHERE clause: tabschema = ? AND tabname = ?
NULLS field ('Y' / 'N') determines nullable status.
executeQuery() returns empty results or times out. How to troubleshoot?
Check the following:
Query correctness and DB2 syntax compliance.
Network stability and connection health.
jdbcTemplate.setMaxRows(limit) is set correctly.
User has required SELECT privileges.
Review execution logs for SQL errors.
Verify table and schema names are correct.
getRemoteProcedureAndFunctionCode() fails with "Could not find stored procedure".
Verify the following:
Procedure or function exists in SYSCAT.ROUTINES.
User has SELECT privilege on SYSCAT.ROUTINES.
ROUTINESCHEMA matches the provided schema name.
TEXT IS NOT NULL filter is applied (only routines with definitions).
ROUTINETYPE values:
'P' = PROCEDURE
'F' = FUNCTION
Stored procedure execution returns incorrect parameter types.
Verify DB2 to JDBC type mappings:
SMALLINT → SMALLINT
INTEGER → INTEGER
BIGINT → BIGINT
VARCHAR → VARCHAR
CHAR → CHAR
CLOB → CLOB
DATE → DATE
TIME → TIME
TIMESTAMP → TIMESTAMP
DECIMAL → DECIMAL
DOUBLE → DOUBLE
Ensure the types match the SYSCAT.ROUTINEPARMS definition exactly.
getSqlProfileResults() fails with "Skip datatype profile validation". What does this mean?
This indicates unsupported column types for profiling:
XML data type is skipped (present in SkipDataTypeForProfile list).
Columns with length < 0 or > MAX_COLUMN_PROFILE_LENGTH_LIMIT are skipped.
This is expected behavior and requires no action.
Copyright © 2025, OvalEdge LLC, Peachtree Corners, GA, USA.
Last updated
Was this helpful?

