DB2 Database Utilities and Administration
Covers DB2 database utilities including LOAD, UNLOAD, REORG, RUNSTATS, RECOVER, QUIESCE, and EXPLAIN, along with triggers, locking mechanisms, and referential integrity concepts.
Questions
Which one is not the output of the LOAD utility
- Loaded table or partition
- Discard file of rejected records
- Summary report of errors encountered
- Updated system catalog table stats
Which utility is used to insert bulk amount of data in to a table.
- LOAD
- UNLOAD
- INSERT
- RUNSTATS
Which utility is used to reclaim fragmented space
- LOAD
- UNLOAD
- REORG
- RUNSTATS
Which utility is used to update the data related to tablespaces & indexes in system catalog tables
- LOAD
- UNLOAD
- REORG
- RUNSTATS
Which one is the correct option for taking unload from the table EMPTAB
- UNLOAD TABLE DSN1DB04.EMPTABSP
- UNLOAD TABLESPACE DSN1DB04.EMPTABSP
- UNLOAD DATABASE DSN1DB04.EMPTABSP
- UNLOAD DATABASE DSN1DB04 EMPTABSP
) While doing loading, data is sorted and then loaded into table (True or False)
- True
- False
While doing loading , indexes are built automatically(True or False)
- True
- False
No need to use RUNSTATS when
- a table is unloaded
- a table is loaded
- an index is created
- a table is reorganized
Which utility should be used for maintaining referential integrity between two tables
- LOAD
- CHECK
- REORG
- RUNSTATS
Which utility should be used for maintaining consistency for list of tablespaces
- QUIESCE
- CHECK
- REORG
- RUNSTATS
Which utility should be used to restore DB2 tablespaces and indexes to a specific instance
- QUIESCE
- RECOVER
- REORG
- RUNSTATS
Which utility should be used to obtain the access paths details?
- QUIESCE
- EXPLAIN
- REORG
- RUNSTATS
To create a trigger you need the following option
- Triggering Table
- Triggering Event
- Triggered Action
- All the above
Triggers can not be used for
- Validate input data
- Automatically generate values for newly inserted rows
- support alerts
- To Implement Referential Integrity
Choose the correct options on acquiring locks
- If transaction A holds X lock on row R, If transaction B requests for S lock, then B would go into wait state until A releases the lock
- If transaction A holds S lock on row R, If transaction B requests for S lock, then B would be granted the lock
- If transaction A holds X lock on row R, If transaction B requests for X lock,then B would be granted the lock.
- If transaction A holds S lock on row R, If transaction B requests for X lock, then B would be granted the lock
Choose the correct options on LOCKSIZE
- Database
- Tablespace
- Table
- View
Referential constraint is
- Designates the values that columns of a table can contain
- The limiting of a set of foreign key values to a set of primary key values
- The limiting of a set of Primary key values to a set of foreign key values
- None of the above
When acquiring Tablespace lock more data is restricted than page level Lock (True or False)
- True
- False
Triggers can be defined on a system catalog table (True or False)
- True
- False
MERGECOPY utility combines multiple incremental image copies into a full Image copy. ( True or False)
- True
- False