IBM Db2 integration

IBM Db2 database (local, cloud, z/OS): queries, execute, bulk operations

Help Centre › Connectors

Overview

IBM Db2 is IBM's relational database – runs on-prem, IBM Cloud, or z/OS mainframe. The Automize Db2 connector covers SQL queries, execute, bulk operations.

  • Regions: Wherever your Db2 instance runs.
  • Plans: IBM licensing varies by edition.

Setting up the connection

Auth type: HTTP Basic.

  1. Ask your Db2 administrator for a database user with rights on the schemas the process uses.
  2. In Automize, open Settings → Connectors → IBM Db2 → Add connection.
  3. Enter the database server in Server and the database name in Database, then the user name in Username and its password in Password.

Find your credentials at https://www.ibm.com/products/db2.


Rate limits

Per-DB capacity.


Data model

Relational DB:

    Database ─── Schemas ─── Tables ─── Rows
            └─ Stored procedures + functions

Available operations

10 operations available. Click any row to jump to its detail.

OperationCategoryWhat it does
Bulk InsertGeneralInsert rows in batches
Call ProcedureGeneralCall a stored procedure
ExecuteGeneralExecute an INSERT/UPDATE/DELETE statement
Execute ManyGeneralExecute a statement with multiple parameter sets
Export CSVGeneralExport query results to a CSV file
Import CSVGeneralImport a CSV file into a table
List ColumnsGeneralList columns of a table
List TablesGeneralList tables in the database
QueryGeneralExecute a SELECT query and return results
Table ExistsGeneralCheck if a table exists

Operations

Bulk Insert

Insert rows in batches

ParameterRequiredTypeDescription
Table tableYesstringTable name
Rows rowsYeslistList of row dicts
Batch Size batch_sizeNointegerBatch size

Tips

  • Bulk load – multi-row INSERT or LOAD utility.

Call Procedure

Call a stored procedure

ParameterRequiredTypeDescription
Procedure procedureYesstringProcedure name
Params paramsNolistProcedure parameters

Tips

  • Invoke stored procedure with IN/OUT params.

Execute

Execute an INSERT/UPDATE/DELETE statement

ParameterRequiredTypeDescription
Sql sqlYesstringSQL statement
Params paramsNolistBind parameters

Tips

  • INSERT/UPDATE/DELETE. Returns affected rows.

Execute Many

Execute a statement with multiple parameter sets

ParameterRequiredTypeDescription
Sql sqlYesstringSQL statement
Params List params_listYeslistList of parameter sets

Export CSV

Export query results to a CSV file

ParameterRequiredTypeDescription
Sql sqlYesstringSQL SELECT statement
File Path file_pathYesstringOutput CSV path
Params paramsNolistBind parameters

Import CSV

Import a CSV file into a table

ParameterRequiredTypeDescription
Table tableYesstringTarget table
File Path file_pathYesstringPath to CSV file
Has Header has_headerNobooleanCSV has header row

List Columns

List columns of a table

ParameterRequiredTypeDescription
Table tableYesstringTable name
Schema schemaNostringSchema name

List Tables

List tables in the database

ParameterRequiredTypeDescription
Schema schemaNostringSchema name

Query

Execute a SELECT query and return results

ParameterRequiredTypeDescription
Sql sqlYesstringSQL SELECT statement
Params paramsNolistBind parameters

Tips

  • SELECT statement. Returns rows.

Table Exists

Check if a table exists

ParameterRequiredTypeDescription
Table tableYesstringTable name
Schema schemaNostringSchema name

FAQ

z/OS vs LUW vs Cloud?
z/OS (mainframe), LUW (Linux/Unix/Windows), IBM Cloud all share core SQL. APIs differ slightly – connector handles common cases.

Related connectors

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.