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.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which one is not the output of the LOAD utility

  1. Loaded table or partition
  2. Discard file of rejected records
  3. Summary report of errors encountered
  4. Updated system catalog table stats
Question 2 Multiple Choice (Single Answer)

Which utility is used to insert bulk amount of data in to a table.

  1. LOAD
  2. UNLOAD
  3. INSERT
  4. RUNSTATS
Question 3 Multiple Choice (Single Answer)

Which utility is used to reclaim fragmented space

  1. LOAD
  2. UNLOAD
  3. REORG
  4. RUNSTATS
Question 4 Multiple Choice (Single Answer)

Which utility is used to update the data related to tablespaces & indexes in system catalog tables

  1. LOAD
  2. UNLOAD
  3. REORG
  4. RUNSTATS
Question 5 Multiple Choice (Single Answer)

Which one is the correct option for taking unload from the table EMPTAB

  1. UNLOAD TABLE DSN1DB04.EMPTABSP
  2. UNLOAD TABLESPACE DSN1DB04.EMPTABSP
  3. UNLOAD DATABASE DSN1DB04.EMPTABSP
  4. UNLOAD DATABASE DSN1DB04 EMPTABSP
Question 6 True/False

) While doing loading, data is sorted and then loaded into table (True or False)

  1. True
  2. False
Question 7 True/False

While doing loading , indexes are built automatically(True or False)

  1. True
  2. False
Question 8 Multiple Choice (Single Answer)

No need to use RUNSTATS when

  1. a table is unloaded
  2. a table is loaded
  3. an index is created
  4. a table is reorganized
Question 9 Multiple Choice (Single Answer)

Which utility should be used for maintaining referential integrity between two tables

  1. LOAD
  2. CHECK
  3. REORG
  4. RUNSTATS
Question 10 Multiple Choice (Single Answer)

Which utility should be used for maintaining consistency for list of tablespaces

  1. QUIESCE
  2. CHECK
  3. REORG
  4. RUNSTATS
Question 11 Multiple Choice (Single Answer)

Which utility should be used to restore DB2 tablespaces and indexes to a specific instance

  1. QUIESCE
  2. RECOVER
  3. REORG
  4. RUNSTATS
Question 12 Multiple Choice (Single Answer)

Which utility should be used to obtain the access paths details?

  1. QUIESCE
  2. EXPLAIN
  3. REORG
  4. RUNSTATS
Question 13 Multiple Choice (Single Answer)

To create a trigger you need the following option

  1. Triggering Table
  2. Triggering Event
  3. Triggered Action
  4. All the above
Question 14 Multiple Choice (Single Answer)

Triggers can not be used for

  1. Validate input data
  2. Automatically generate values for newly inserted rows
  3. support alerts
  4. To Implement Referential Integrity
Question 15 Multiple Choice (Multiple Answers)

Choose the correct options on acquiring locks

  1. 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
  2. If transaction A holds S lock on row R, If transaction B requests for S lock, then B would be granted the lock
  3. If transaction A holds X lock on row R, If transaction B requests for X lock,then B would be granted the lock.
  4. If transaction A holds S lock on row R, If transaction B requests for X lock, then B would be granted the lock
Question 16 Multiple Choice (Multiple Answers)

Choose the correct options on LOCKSIZE

  1. Database
  2. Tablespace
  3. Table
  4. View
Question 17 Multiple Choice (Single Answer)

Referential constraint is

  1. Designates the values that columns of a table can contain
  2. The limiting of a set of foreign key values to a set of primary key values
  3. The limiting of a set of Primary key values to a set of foreign key values
  4. None of the above
Question 18 True/False

When acquiring Tablespace lock more data is restricted than page level Lock (True or False)

  1. True
  2. False
Question 19 True/False

Triggers can be defined on a system catalog table (True or False)

  1. True
  2. False
Question 20 True/False

MERGECOPY utility combines multiple incremental image copies into a full Image copy. ( True or False)

  1. True
  2. False