The DB2 Admin 001
The DB2 Admin 001
1. What is DB2?
o Answer: DB2 is a family of data management products, including database
servers, developed by IBM. It provides high availability, scalability, and
robust data management capabilities. DB2 can be used for both relational and
non-relational data.
2. Can you explain the difference between a table space and a database?
o Answer: A database in DB2 is a collection of tables, indexes, views, and other
database objects. A table space is a storage structure within a database where
the actual data is physically stored. Multiple table spaces can exist within a
single database.
3. What are the different types of table spaces in DB2?
o Answer: DB2 supports several types of table spaces, including:
Universal Table Space (UTS): Can be either simple or segmented and
is flexible in terms of space management.
Simple Table Space: Stores data in a single data set.
Segmented Table Space: Divides data into segments based on table or
index structure.
7. How would you handle a situation where a DB2 instance is not responding?
o Answer: First, check the DB2 diagnostic logs and system error logs for any
indications of issues. Ensure that the DB2 instance is up and running using
commands like db2pd or db2stop and db2start to manage the instance.
Check system resources such as memory and disk space.
8. What is a deadlock, and how do you resolve it?
oAnswer: A deadlock occurs when two or more transactions are waiting for
each other to release locks, causing a standstill. Deadlock detection and
resolution involve DB2 automatically identifying and rolling back one of the
transactions to break the deadlock.
9. How do you manage user permissions and security in DB2?
o Answer: User permissions and security are managed using SQL commands
such as GRANT and REVOKE. You can grant specific privileges on databases,
tables, or other objects to users or roles.
Advanced Topics
General Tips
Know the basics of SQL: You might be asked to write or explain SQL queries.
Stay updated on DB2 features and best practices: Familiarize yourself with the
latest DB2 versions and their new features.
Practice problem-solving scenarios: Be prepared to discuss how you would handle
specific database issues or optimization tasks.