syscat.tables

The below query will help to search against all available tables/views/aliases/Nicknames in DB2 LUW.

SELECT SUBSTR(TABSCHEMA, 1, 20) TABSCHEMA, SUBSTR(TABNAME, 1,40) TABNAME, SUBSTR(OWNER, 1, 20) OWNER, TYPE, STATUS from syscat.tables where TABNAME like ‘%CUST_ORDER%’

Note: The above query searches syscat.tables view for all objects matching the work CUST_ORDER

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: