IBM DB2 (AS/400)

This article outlines the integration with the IBM DB2 (AS/400) 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.2.4

Releases Supported (Available from)

Release6.3.4

Connectivity

[How the connection is established with the IBM DB2 (AS/400)]

JDBC driver

Verified IBM DB2 (AS/400) Version

11.5.x

The IBM DB2 (AS/400) connector has been validated with the mentioned "Verified IBM DB2 (AS/400) Versions" and is expected to be compatible with other supported IBM DB2 (AS/400) versions. If there are any issues with validation or metadata crawling, please submit a support ticket for investigation and feedback.

Connector Features

Feature
Availability

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 (AS/400) and mapped to the corresponding UI assets.

DB2 (AS/400) Object
DB2 (AS/400) Attribute
OvalEdge Attribute
OvalEdge Category
OvalEdge Type

Table

Table Name

Table Name

Tables

oetable

Table

Table Data Type

Table Type

Tables

oetable

Table

Table Comments

Table Description

Tables

oetable

Column

Column Name

Column Name

Table Columns

oecolumn

Column

Data Type

Data Type

Table Columns

oecolumn

Column

Length

Length

Table Columns

oecolumn

Column

Ordinal Position

Column Position

Table Columns

oecolumn

Column

Column Comments

Column Description

Table Columns

oecolumn

Column

Is Nullable

Nullable

Table Columns

oecolumn

Schema

Schema Name

Schema Name

Schemas

oeschema

View

View Name

Query Name

Queries

oequery

View

View Definition

Query Code

Queries

oequery

Procedure

Routine Name

Query Name

Queries

oequery

Procedure

Routine Type

Query Type

Queries

oequery

Procedure

Routine Definition

Query Code

Queries

oequery

Procedure

Long Comment

Query Description

Queries

oequery

Function

Routine Name

Query Name

Queries

oequery

Function

Routine Type

Query Type

Queries

oequery

Function

Routine Definition

Query Code

Queries

oequery

Function

Long Comment

Query Description

Queries

oequery

Trigger

Trigger Name

Query Name

Queries

oequery

Trigger

Action Statement

Query Code

Queries

oequery

Trigger

Long Comment

Query Description

Queries

oequery

Index

Index Name

Index Name

Indexes

-

Index

Table Name

Table Name

Indexes

-

Index

Column Name

Column Name

Indexes

-

Index

Uniqueness

Is Unique

Indexes

-

Foreign Key Relationship

Left Table

Source Table

Relationships

-

Foreign Key Relationship

Left Column

Source Column

Relationships

-

Foreign Key Relationship

Right Table

Target Table

Relationships

-

Foreign Key Relationship

Right Column

Target Column

Relationships

-

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 (AS/400) 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.

File Name
Description

jt400-21.0.6.jar

Use this file to enable DB2 (AS/400) 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 (AS/400) database.

Service Account User Permissions

👨‍💻 Who can provide these permissions? These permissions are typically granted by the DB2 (AS/400) administrator, as users may not have the required access to assign them independently.

Objects
System Tables
Access Permission

Schema

QSYS2.SCHEMATA

Select

Tables

QSYS2.SYSTABLES

Select

Columns

QSYS2.SYSCOLUMNS

Select

Indexes

QSYS2.SYSINDEXES

Select

Foreign Keys / Relationships

QSYS2.SYSCSTCOL

Select

Views

QSYS2.SYSVIEWS

Select

Procedures / Functions

QSYS2.SYSROUTINES

Select

Triggers

QSYS2.SYSTRIGGERS

Select

Schema Permissions

SYSCAT.SCHEMATA

Select

Table Permissions

SYSCAT.TABAUTH

Select

Connection Configuration Steps

  1. Log into OvalEdge, go to Administration > Connectors, click + (New Connector), search for DB2 (AS/400), and complete the required parameters.

Fields marked with an asterisk (*) are mandatory for establishing a connection.

Field Name
Description

Connector Type

By default, "DB2AS400" 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 the selection.

Supported Credential Managers:

  • OE Credential Manager

  • AWS Secrets Manager

  • HashiCorp Vault

  • Azure Key Vault

License Add Ons

Auto Lineage

Supported

Data Quality

Supported

Data Access

Not Supported

  • 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 (AS/400) connection

(Example: "DB2 (AS/400)_Prod").

Connector Environment

Select the environment (Example: PROD, STG) configured for the connector.

Connector description

Enter a brief description of the connector.

Server*

Enter the DB2 (AS/400) 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 (AS/400), "50005" is auto-populated. If required, the port number can be modified as per the custom port number that is configured for the DB2 (AS/400).

Database*

Enter the database name to which the service account user has access within the DB2 (AS/400).

Driver*

By default, the DB2 (AS/400) driver details are auto-populated.

Username*

Enter the service account username set up to access the DB2 (AS/400) database (Example: "oesauser").

Password*

Enter the password associated with the service account user.

Connection String

Configure the connection string for the DB2 (AS/400) 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.

  1. After entering all connection details, the following actions can be performed:

    1. Click Validate to verify the connection.

    2. Click Save to store the connection for future use.

    3. Click Save & Configure to apply additional settings before saving.

  2. The saved connection will appear on the Connectors home page.

Manage Connector Operations

Crawl/Profile

The Crawl/Profile button allows users to select one or more schemas for crawling and profiling.

  1. Navigate to the Connectors page and click Crawl/Profile.

  2. Select the schemas you want to crawl.

  3. The Crawl option is selected by default. Click the Crawl & Profile radio button to run both operations.

  4. Click Run to collect metadata from the connected source and load it into the OvalEdge Data Catalog.

  5. 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.

  1. Click the Schedule checkbox to enable the Select Period drop-down.

  2. Select a time period for the operation from the drop-down menu.

  3. Click Schedule to initiate metadata collection from the connected source.

  4. 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.

Sl. No.
Category
Error Message
Error Description & Resolution

1

Connection & Authentication

Access denied for user

Error Description: This error occurs when the provided DB2 AS400 credentials are incorrect, the user profile is disabled, or the user lacks required access privileges.

Resolution:

  • Verify the username matches the DB2 AS400 user profile.

  • Confirm the password is correct, including case sensitivity and special characters.

  • Ensure the user profile exists and is not disabled in AS400.

  • Verify the user has permission to connect from the host/IP.

  • If using a credential manager, ensure credentials are stored and accessible.

  • Test the credentials using IBM i Access Client Solutions or another AS400 client.

2

Connection & Authentication

Communications link failure / Connection refused

Error Description: This error occurs when the application cannot establish a network connection to the DB2 AS400 server.

Resolution:

  • Verify the server hostname or IP address is correct and reachable.

  • Confirm the port number is correct (default 50005).• Ensure firewall rules allow inbound connections on the configured port.

  • Verify the DB2 AS400 server is running and accepting connections.

  • Test connectivity using ping <server> or telnet <server> <port>.

3

Connection & Authentication

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.

4

Connection & Authentication

Unknown database

Error Description: This error occurs when the specified database or library name does not exist or is incorrectly specified in the connection settings.

Resolution:

  • Verify the database/library name entered in the SID field is correct.

  • Ensure the library name matches an existing AS400 schema and is case-sensitive.

  • Confirm the connection string format is jdbc:as400://{server}/{sid}.

  • Validate library existence using SELECT SCHEMA_NAME FROM QSYS2.SCHEMATA.

  • Ensure the user has access privileges to the specified library.

5

Connection & Authentication

Failed to retrieve DataSource from DataSourceProvider

Error Description: This error occurs when the system fails to initialize the data source or connection pool for the DB2 AS400 connection.

Resolution:

  • Verify the connection string format is correct.

  • Ensure the AS400 JDBC driver is available in the application classpath.

  • Confirm network connectivity to the AS400 server.

  • Validate connection pool configuration settings.

  • Recreate the connector to clear cached connection pool state.

6

Column Access & Visibility

Unsupported Data Type for Profile

Error Description: This error occurs when a column data type or length is not supported for profiling operations.

Resolution:

  • Columns with length less than 0 or greater than MAX_COLUMN_PROFILE_LENGTH_LIMIT are skipped.

  • Verify the column data type and length before profiling.

  • Ensure SELECT privilege exists on the source table.

7

Data Profiling & Query Execution

Could not profile table. No Data found

Error Description: This error occurs when the profiling query returns no rows or an unexpected result structure.

Resolution:

  • Verify the table contains data using SELECT COUNT(*) FROM <library>.<table>.

  • Check whether all column values are NULL.

  • Confirm the column data type is supported for profiling.

  • Ensure column length is within supported limits.

FAQs

What is the difference between database and schema in DB2 AS400?

In DB2 AS400, database and schema are synonymous and represent the same concept called a library. The connection format is jdbc:as400://{server}/{sid}, where the SID specifies the library/schema. Libraries organize tables, views, procedures, and other objects, and can be listed using SELECT SCHEMA_NAME FROM QSYS2.SCHEMATA.

I can't see any databases/schemas when trying to crawl. What's wrong?

I can see some databases but not all. Why are some missing?This is typically due to permission issues. The user must have SELECT privilege on QSYS2.SCHEMATA. Access can be verified using SELECT SCHEMA_NAME FROM QSYS2.SCHEMATA. Some system libraries may be filtered.

I can see some databases but not all. Why are some missing?

Only libraries that the connected user has access to are visible. Missing libraries may be system libraries or libraries without granted privileges. Verify accessible libraries using SELECT SCHEMA_NAME FROM QSYS2.SCHEMATA and confirm required permissions with the AS400 administrator.

I can see tables in one library but not another. What permissions are required?

To view tables in a library, SELECT privilege on QSYS2.SYSTABLES is required. Table visibility can be verified using SELECT TABLE_NAME FROM QSYS2.SYSTABLES WHERE TABLE_SCHEMA = '<library_name>'.

Some columns are missing from my table. Why?

Column metadata is retrieved from QSYS2.SYSCOLUMNS. All data types are supported for crawling, but some columns may be skipped during profiling if column length exceeds limits or is negative. Verify column metadata queries and connection settings.

Column nullable status is showing incorrectly. How is it determined?

The nullable status is derived from IS_NULLABLE in QSYS2.SYSCOLUMNS. DB2 AS400 returns YES or NO, which the system converts to nullable or not nullable. If parsing fails, it defaults to NOT NULL and logs a warning. Validation can be done using SELECT COLUMN_NAME, IS_NULLABLE FROM QSYS2.SYSCOLUMNS.

Indexes are not being fetched for my tables. What is required?

Index retrieval requires enabling the Indexes option in crawler settings and SELECT privilege on QSYS2.SYSINDEXES and QSYS2.SYSINDEXCOLUMNS. If queries fail, indexes are not attached to table metadata.

Foreign key relationships are not being retrieved. What permissions are needed?

Foreign key retrieval requires SELECT privilege on QSYS2.SYSCSTCOL. If the query fails, relationships will not be available. Access can be verified using SELECT * FROM QSYS2.SYSCSTCOL.

Row count is showing as 0 when the table has data. Why?

Row count is retrieved using SELECT COUNT(*) FROM <library>.<table>. If this query fails due to insufficient permissions, the system returns 0. Ensure SELECT privilege on the table and allow sufficient time for large tables.

I’m getting connection pool errors. What causes this?

Connection pool issues can occur due to excessive concurrent connections, connection leaks, network timeouts, or misconfigured pool size. The system uses HikariCP. Verify pool settings, monitor active connections, and restart the application if required.

How do I switch from database credentials to a credential manager?

Select the appropriate credential manager type, provide the secret name or path, and ensure the credential manager is accessible. The system retrieves credentials automatically. Test the connection after switching.

Connection string format is incorrect. How can it be fixed?

The correct format is jdbc:as400://{server}/{sid}. The system auto-generates the string based on Server and Database fields. The port is specified separately. Avoid manual edits unless necessary and verify formatting after changes.


Copyright © 2025, OvalEdge LLC, Peachtree Corners, GA, USA.

Last updated

Was this helpful?