Catalog tables in DB2 are system tables that are automatically created during the database creation process. There is no need to create them explicitly.
Table of contents
- DB2 Catalog Tables
- DB2 Catalog Table Interview Questions
- Database Object and Related Catalog View
- Conclusion

DB2 Catalog Tables
- Tables
- Indexes
- Views
- Security information
- Tables update information
- Statistics
Catalog Table Schemas
The tables under the SYSIBM schema are master tables. The tables under SYSCAT are views of SYSIBM.
- SYSIBM
- SYSCAT
- SYSFUN
- SYSPROC
- SYSSTAT
DB2 Catalog Table Interview Questions
01. Which is the schema used for user-defined functions?
SYSFUN
02. What is the schema used for stored procedures?
SYSPROC
03. The views created under SYSSTAT are user editable?
Yes. These are editable.
04. Which command do you need to use to know tables defined under a schema?
LIST TABLES FOR SCHEMA schema-name
Database Object and Related Catalog View
| Database Object | SYSCAT System Catalog View |
| Table | TABLES |
| View | VIEWS |
| Index | INDEXES |
| Data type | DATATYPES |
| Column | COLUMNS |
| Table space | TABLESPACES |
| Buffer pool | BUFFERPOOLS |
| Package | PACKAGES |
| Constraints | CHECKS |
| Referential integrity | REFERENCES |
| Partition groups | NODEGROUPS |
| Partition group definitions | NODEGROUPDEF |
| XML values index | INDEXXMLPATTERNS |
| Stored procedures | PROCEDURES |
| Sequences | SEQUENCES |
| Event Monitors | EVENTMONITORS |
Conclusion
The DB2 catalog tables play a crucial role in the database creation process. These system tables are automatically created, eliminating the need for explicit creation. The catalog tables provide important information about various database objects such as tables, indexes, views, security information, and statistics.
The catalog tables are organized under different schemas, with SYSIBM containing the master tables and SYSCAT serving as views of SYSIBM. Additionally, there are schemas like SYSFUN and SYSPROC for user-defined functions and stored procedures, respectively.
When it comes to managing the catalog tables, there are a few interview questions that may arise. For example, the schema used for user-defined functions is SYSFUN, while SYSPROC is used for stored procedures. It’s also worth noting that the views created under SYSSTAT are editable.
To retrieve information about tables defined under a specific schema, the command “LIST TABLES FOR SCHEMA schema-name” can be used.
In conclusion, understanding the DB2 catalog tables is essential for effectively managing and retrieving information about the database objects. They serve as a valuable resource for database administrators and developers alike.
References







You must be logged in to post a comment.