Skip to main content

What does Atlan crawl from IBM Db2 for LUW?

TL;DR

Metadata Atlan extracts from IBM Db2 for LUW - databases, schemas, tables, views, columns, stored procedures, and functions - mapped to Atlan assets.

Connect

Atlan extracts metadata for databases, schemas, tables, views, columns, stored procedures, and functions from the IBM Db2 for LUW system catalog and maps each property to its internal asset model. The tables below list which source properties Atlan reads and how they appear on the corresponding Atlan asset.

Atlan automatically excludes the system schemas SYSCAT, SYSIBM, SYSSTAT, SYSPUBLIC, SYSTOOLS, SYSFUN, SYSIBMADM, NULLID, SYSIBMINTERNAL, and SYSIBMTS.

Asset types

Source objectAtlan asset type
Connected databaseDatabase
SchemaSchema
Base tableTable
ViewView
Column of a table or viewColumn
Stored procedureProcedure
User-defined functionFunction

Atlan doesn't catalog nicknames, materialized query tables, typed tables, aliases, indexes, triggers, sequences, or routines that belong to a module.

Databases

A Db2 for LUW connection reaches exactly one database, so Atlan maps the connected database to its Database asset type. Each database and port pair you add under Databases produces its own Database asset.

Source propertyAtlan propertyDescription
Connected database namenameName of the connected database
Number of schemasschemaCountCount derived during the crawl

Schemas

Atlan maps schemas to its Schema asset type. Every schema sits under its owning database.

Source propertyAtlan propertyDescription
SCHEMANAMEnameSchema name
OWNERsourceCreatedByAuthorization ID that owns the schema
CREATE_TIMEsourceCreatedAtCreation timestamp
REMARKSdescriptionSchema comment
Number of tablestableCountCount derived during the crawl
Number of viewsviewsCountCount derived during the crawl

Tables

Atlan maps base tables to its Table asset type.

Source propertyAtlan propertyDescription
TABNAMEnameTable name
TABSCHEMAschemaNameOwning schema
REMARKSdescriptionTable comment
OWNERsourceCreatedByAuthorization ID that owns the table
CREATE_TIMEsourceCreatedAtCreation timestamp
ALTER_TIMEsourceUpdatedAtLast alteration timestamp
Number of columnscolumnCountRecounted from the columns Atlan crawled

Views

Atlan maps views to its View asset type. Db2 stores long view text as numbered fragments, so Atlan reassembles the statement in sequence order and uses it to generate lineage to the view's source tables.

Source propertyAtlan propertyDescription
TABNAMEnameView name
TABSCHEMAschemaNameOwning schema
View statement textdefinitionView SQL, reassembled from its fragments
REMARKSdescriptionView comment
OWNERsourceCreatedByAuthorization ID that owns the view
CREATE_TIMEsourceCreatedAtCreation timestamp
ALTER_TIMEsourceUpdatedAtLast alteration timestamp
Number of columnscolumnCountRecounted from the columns Atlan crawled

Columns

Atlan maps columns of tables and views to its Column asset type.

Source propertyAtlan propertyDescription
COLNAMEnameColumn name
COLNOorderOrdinal position
TYPENAMEdataTypeDb2 data type
LENGTHmaxLengthDeclared length
SCALEnumericScaleNumeric scale, when non-zero
NULLSisNullableWhether the column accepts nulls
KEYSEQisPrimaryTrue when the column belongs to the primary key
REMARKSdescriptionColumn comment

Foreign key constraints aren't in scope for Db2 for LUW, so isForeign is always false.

Stored procedures

Atlan maps stored procedures to its Procedure asset type. Routines that belong to a module are excluded. The procedure body is used to generate lineage.

Source propertyAtlan propertyDescription
ROUTINENAMEnameProcedure name
ROUTINESCHEMAschemaNameOwning schema
TEXTdefinitionProcedure body
LANGUAGEsqlLanguageImplementation language
REMARKSdescriptionProcedure comment
OWNERsourceCreatedByAuthorization ID that owns the procedure
CREATE_TIMEsourceCreatedAtCreation timestamp
ALTER_TIMEsourceUpdatedAtLast alteration timestamp

Functions

Atlan maps user-defined functions to its Function asset type. Built-in and system-generated functions, and functions that belong to a module, are excluded. The function body is used to generate lineage.

Source propertyAtlan propertyDescription
ROUTINENAMEnameFunction name
ROUTINESCHEMAschemaNameOwning schema
TEXTfunctionDefinitionFunction body
LANGUAGEfunctionLanguageImplementation language
REMARKSdescriptionFunction comment
OWNERsourceCreatedByAuthorization ID that owns the function
CREATE_TIMEsourceCreatedAtCreation timestamp
ALTER_TIMEsourceUpdatedAtLast alteration timestamp

Lineage

Atlan generates lineage by parsing the SQL definitions of views, stored procedures, and functions. Query history mining and usage metrics aren't supported for Db2 for LUW.

See also