InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
List down the types of Triggers in the DB2 database? |
|
Answer» There are two TYPES of triggers:- |
|
| 2. |
What is a trigger in the DB2 database? |
|
Answer» A trigger is a set of particular actions that are primarily PERFORMED to respond to the OPERATIONS (INSERT, UPDATE or DELETE) on a specific table in the database. Triggers can be ACCESSED and shared among the multiple applications. This particular db2 INTERVIEW QUESTIONS defines explicitly the about triggers. |
|
| 3. |
What is the role of Schema in the DB2 database? |
|
Answer» In a database USER cannot CREATE the MULTIPLE database OBJECTS with the same name. In this case, SCHEMA provides a group which means a user can create various database objects with the same name in different schema groups. |
|
| 4. |
What is the physical storage length of the Data Types: date, Time, Timestamp in the DB2 database? |
| Answer» | |
| 5. |
What are the two types of Logging in the DB2 database? Explain them. |
|
Answer» The two types of logging are:- 1. Circular logging:- When the user wants to allocate the new transaction LOG file then in Circular Clogging the old transaction logs are OVERWRITTEN that means erasing the SEQUENCES of old log files and reusing them. 2. Archive logging:-This METHOD supports for the Online Backup and database recovery using the log files called roll-forward recovery. |
|
| 6. |
What is the function of Logging in the DB2 database? |
|
Answer» The log files CONSIST of the error logs, which are USED to recover from the APPLICATION errors. The logs keep the record of CHANGES that HAPPENED in the database. |
|
| 7. |
What is the syntax for seeing the columns and data types of a table in the DB2 database? |
| Answer» EXAMPLE | |
| 8. |
What is the syntax for creating a table in the DB2 database? |
|
Answer» EXAMPLE DB2 CREATE table <schema_name>.<table_name> (column_name column_type....) in <tablespace_name> |
|
| 9. |
What are the different types of Base tables? |
|
Answer» There are six types of base tables in the DB2 database:-
|
|
| 10. |
What types of tables are there in the DB2 database? |
|
Answer» There are three types of TABLES in the DB2 database:-
Point to be noted: Make SURE that you go through this TWICE as this is the favorite db2 dba interview questions for FRESHER and experienced as well. |
|
| 11. |
What is the role of the cursor in DB2? |
|
Answer» A cursor is a programming device which allows the SELECT statement to FIND a set of ROWS but it returns one ROW at a time, and the cursor plays a VITAL role because the host language needs only one row at a time. |
|
| 12. |
What is the role of UNION ALL and UNION |
|
Answer» The UNION command eliminates the DUPLICATES and the UNION ALL command RETAINS the duplicates while combining the results of the different SELECT statements. |
|
| 13. |
What are the benefits of using the DB2 database? |
Answer»
|
|
| 14. |
What is buffer pool in the DB2 database? |
|
Answer» A buffer pool is the are of the main memory allocated by the data MANAGER. It is expressly RESERVED to satisfy the BUFFERING requirements for one or more TABLESPACES, or the indexes and Bufferpool is made up of either 4K or 32K PAGES. |
|
| 15. |
How to find the maximum value in a column in the DB2 database? |
|
Answer» A user can FIND the maximum VALUE in a column by USING SELECT MAX(...)..in DB2 query. |
|
| 16. |
How can the duplicate values be eliminated from DB2 SELECT? |
|
Answer» A user can ELIMINATE the DUPLICATE values from DB2 SELECT by using SELECT DISTINCT in DB2 query. |
|
| 17. |
How to find the number of rows in DB2 tables? |
|
Answer» The user can find the number of ROWS in the DB2 TABLES by USING the SELECT COUNT (*) on the DB2 query. This question has always been a center of the discussion in db2 Interview Questions. |
|
| 18. |
What is the Clustering Index in the DB2 database? |
|
Answer» A clustering index is a type of index, which locates the roes of the table and determines how to GROUP these rows in the TABLESPACE. 8. What is the role of the DATA page in the DB2 database?Data page retrieves the data from the database. The database from which the data can be extracted is in the form of 4 kilobytes or 32 kilobytes. Data page also includes the INFORMATION regarding the user that is part of the database. |
|
| 19. |
What is the role of Data Manager in the DB2 database? |
|
Answer» DB2 database has a component which MANAGES the physical database, and also it requests the system components to perform the operations LIKE LOCKING, logging, etc. and also to perform I/O operations. |
|
| 20. |
What is the meaning concurrency in the DB2 database? |
|
Answer» CONCURRENCY is the PERIOD when more than one DB2 application PROCESS can access the same DATA at the same TIME. |
|
| 21. |
What is DBRM in DB2 database? |
|
Answer» DBRM stands for Database REQUEST Module.DBRM is the COMPONENT inside DB2, which is created by the precompiler of DB2. DRBM consists of the SQL SOURCE statements which get extracted out of the application program.DBRMs form the INPUTS which are very helpful in the binding process. |
|