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. |
What are the steps that you need to execute to generate a detailed report containing all of the explain data? |
|
Answer» If you want to GENERATE a detailed report containing all of the explain data, you can execute the db2exfmt command in a sequence shown as follows: Enable the Explain FACILITY by setting the current explain mode to EXPLAIN. This will configure the CURRENT EXPLAIN MODE special REGISTER so that the EXPLAIN the facility can capture the explain information without executing the SQL statement: 1. SET CURRENT EXPLAIN MODE EXPLAIN; 2. Run the actual SQL statement in the same SESSION: db2 -tvf employee.ddl > employee.log 3. Disable the Explain facility by setting the current explain mode to NO: SET CURRENT EXPLAIN MODE NO 4. Run the db2exfmt tool: db2exfmt -d SAMPLE -g TIC -w -1 -s % -n % -# 0 -o employee.db2exfmt.out |
|
| 2. |
What are the advantages of MDC tables? |
|
Answer» First, MDC enables a table to be physically clustered on more than one key, or dimension, simultaneously. As a result query performance is improved where there is a clustering of one or more specified dimensions of a table. CONSEQUENTLY not only will these QUERIES access only those PAGES having records with the correct dimension values, but these qualifying pages will ALSO be grouped into blocks, or extents. Second, although a table with a clustering index can become unclustered over time, in most cases an MDC table is able to maintain and guarantee its clustering overall dimensions automatically and continuously. Third, in MDC the clustering INDEXES are block-based. These indexes are much smaller than regular record-based indexes, hence they take up much less disk space and are faster to scan. |
|
| 3. |
What are the different event monitors available in Db2? |
Answer»
|
|
| 4. |
What are the monitoring elements in Db2? |
|
Answer» The monitoring elements in Db2 are as follows :
For example, the last_backup monitoring element lists the date and time that thelatest database backup was completed. |
|
| 5. |
In Db2, how can one create MQT? |
|
Answer» To CREATE and MAINTAIN an MQT is a two-step process. First, we NEED to create an MQT based on the needs of the business logic, and then refresh the data in the MQT table. Below is an example CREATE TABLE SALES_MQT AS (SELECT SUM (AMOUNT) AS TOTAL_SUM, DATE FROM SALES GROUP BY DATE) DATA INITIALLY DEFERRED REFRESH DEFERRED; REFRESH TABLE SALES_MQT; |
|
| 6. |
Explain the usage of the following Db2 database manager configuration parameteragent_stack_szaslheapszaudit_buf_sz |
Answer»
Agent stack size CONFIGURATION parameter. This parameter DETERMINES the MEMORY that is ALLOCATED by Db2 for each agent thread stack.
Application support layer heap size configuration parameter.The application support layer heap represents a COMMUNICATION buffer between the local application and its associated agent. This buffer is allocated as shared memory by each database manager agent that is started.
Audit buffer size configuration parameter. This parameter specifies the size of the buffers used when you audit the Db2instance. |
|
| 7. |
What are the four types of Db2 registry variables? |
|
Answer» The four types of Db2 REGISTRY variables are:
|
|
| 8. |
What is Column store in Db2 BLU Acceleration? |
|
Answer» Db2 column-organized tables ADD columnar CAPABILITIES to DB2 databases, which include data that is stored with column organization and vector processing of column data. If the workload is entirely an analytics or OLAP workload, the recommended approach is to put as many tables as possible into a column-organized format. The process of inserting data into column-organized tables, or updating previously inserted data, is optimized for large INSERT transactions. As a RESULT, workloads that are transactional in nature should not use column-organized tables. Traditional row-organized tables with index access are generally better suited for these types of workloads. With column-organized tables, performance is optimal if 100 or more ROWS are impacted by each insert or update transaction. |
|
| 9. |
Name all the 12 different authorities in Db2 |
Answer»
|
|
| 10. |
What is the full form of SPUFI? |
|
Answer» What is the full FORM of SPUFI? |
|
| 11. |
Name the component to checks DB2 deadlocks? |
|
Answer» NAME the component to checks DB2 deadlocks? LOCKING services component which PROVIDE locking services is known as IRLM (Internal Resource Lock Manager) which manages CONCURRENCY ISSUES and dead locks. |
|
| 12. |
In DB2 on which level we can apply the locks? |
|
Answer» In DB2 on which LEVEL we can apply the locks? |
|