Db2 Interview Questions And Answers

Db2 interview questions and answers on advance and basic Db2 with example so this page for both freshers and experienced condidate. Fill the form below we will send the all interview questions on Db2 also add your Questions if any you have to ask and for apply in Db2 Tutorials and Training course just send a mail on info@pcds.co.in in detail about your self.

Top Db2 interview questions and answers for freshers and experienced

What is Db2 ?

Answer :

Questions : 1 :: Define DB2.

DB2 is a Database Management System for the MVS Operating System where, DB2 is a subsystem of MVS Operating...View answers

Questions : 2 :: What is the purpose of using COMMIT?

The data changes can be made permanent by using COMMIT. It also permits data to be accessed by other applications who can reference the committed...View answers

Questions : 3 :: List out the Data types available.


The Data types available here are: 1. SMALLINT 2. INTEGER 3. FLOAT 4. DECIMAL 5. CHAR 6. VARCHAR 7. DATE 8....View answers

Questions : 4 :: What are the uses of DB2 Optimizer?

It processes SQL statements. It helps to select the access...View answers

Questions : 5 :: Define SQLCA?

SQL Communication Area is a structure of variables, which are updated after every execution of SQL statements. For an application that contains executable SQL statements, only one SQLCA is...View answers

Questions : 6 :: Define CHECK constraint.


It is specified as a condition or criteria to ensure data integrity. A value to be inserted or updated to a table is tested by CHECK constraint. The CHECK constraints are created during the...View answers

Questions : 7 :: What is SQLCA's maximum length?

136 is the maximum length of the...View answers

Questions : 8 :: Discuss about DB2 bind?

The process that builds access paths to the DB2 table is known as bind. The bind uses Database Request Modules  from the DB2 pre-compile step as input and produces an application plan....View answers

Questions : 9 :: List out the three types of page locks that can be held.


...View answers

Questions : 10 :: Define buffer pool.

 The buffer pool is a reserved main storage, which is to satisfy the buffering requirements for one or more table spaces or indexes. It can be made up of either 4K or 32K...View answers

Questions : 11 :: Explain the function of Data Manager.

The physical database is managed by the DB2 component called Data manager. It invokes other system components to perform logging, locking...View answers

Questions : 12 :: What is a storage group (STOGROUP)?

STOGROUP is a named collection of DASD volumes, which is to be used by index spaces and table spaces of the...View answers

Questions : 13 :: Define predicate?

Predicate is an element of a search condition. It expresses or implies a search...View answers

Questions : 14 :: Define Declaration Generator (DCLGEN).

Declaration Generator is a facility that is used to form SQL statements that describes a table or view. At pre-compile time, the table or view descriptions are then used to check the...View answers

Questions : 15 :: List out the buffer pools in DB2

There are four buffer pools in DB2 and they...View answers

Questions : 16 :: Define clustering index.

Clustering index is a type of index, which locates the table rows and determines how to group the rows together in the...View answers

Questions : 17 :: What is concurrency?

More than one DB2 application process can access the same data at the same time, is known as concurrency. However, problems can happen such as, lost updates access to unrepeatable reads and...View answers

Questions : 18 :: Explain the Function done by data manager?

Data manager can be considered as a component that is capable of managing the databases that are physically present and is capable of invoking other components associated with the system...View answers

Questions : 19 :: Explain about DBRM.

DBRM stands for Database Request Module and is a component inside DB2, which is created by the pre compiler of DB2. This is a module that consists of SQL source statements that get...View answers

Questions : 20 :: Define Data page.

Data page can be considered as a unit that is capable of retrieving data from the database. The database from which the data can be retrieved is in the form of 4 kilobytes or 32 kilobytes....View answers

Questions : 21 :: Explain about RCT.

RCT is expanded as Resource – Control Table and is defined in the DB2/CICS region. This is the component that comprises of features that are gathered through macros of DSNCRCT....View answers

Questions : 22 :: How can tablespace be moved to another DASD volume that is allocated for that tablespace?

Tablespace that you are using is allocated only to STOGROUP, then you can enter the command ALTER STOGROUP for adding as well as deleting volume. REORG TABLESPACE and RECOVER TABLESPACE are...View answers

Questions : 23 :: What is the information associated with SYSIBM.SYSLINKS table?

This is the table that contains information on the links that exists between the tables created through referential...View answers

Questions : 24 :: Explain in detail about buffer manager and its functionalities?

Buffer manager can be considered as the component inside DB2 that helps in transferring data between virtual as well as external medium. The buffer manager reduces the quantity of physical...View answers

Questions : 25 :: Explain about cursor stability?

Cursor stability is the property that tells the DB2 that the values of database that are read by making use of this application gets protected while the data is...View answers

Questions : 26 :: Mention a credible reason why SELECT* is never given preference in an SQL program that has been embedded.

There are primarily three reasons why SELECT* is never given preference in an embedded SQL program. These are: – -In case if there is an alteration in the structure of the table,...View answers

Questions : 27 :: Explain correlated sub-queries.

Correlated sub-queries are those queries wherein the nester query on the inner side refers directly back to outer query’s table. For each and every row that is qualified, the...View answers

Questions : 28 :: Comment whether the cursor is closed during COMMIT or not.

Yes. The cursor is closed during...View answers

Questions : 29 :: In an SQL table that is embedded, what is the procedure to retrieve rows that are part of a DB2 table?

Either you can use SELECT statements of single rows or an alternative way is to use...View answers

Questions : 30 :: Mention the way of highlighting as well as putting a CURSOR to use in a COBOL program.

The best way of putting a CURSOR to use in a COBOL program is to make use of DECLARE CURSOR, which can be used either in procedure division operation or in working storage. This is being...View answers

Questions : 31 :: If the CURSOR is kept open followed the issuing of COMMIT, what is the procedure to leave the CURSOR that way?

inside DECLARE CURSOR, there is a WITH HOLD option, which will come useful in this case. Although, one should note the point that WITH HOLD function has absolutely no effect if considered...View answers

Questions : 32 :: Explain PACKAGES.

PACKAGES are units, which consist of executable codes that are meant for SQL statements for one respective...View answers

Questions : 33 :: Highlight all the advantages that are attached to a PACKAGE.

Following are the advantages attached to a PACKAGE. Avoid the cost of a large collection of bind. It is much more advisable to go for a small collection instead of a large one. Ensure...View answers

Questions : 34 :: Mention the definition of COBOL in VARCHAR field.

The REMARKS of VARCHAR column are as follows: – MySQL 10 REMARKS 49 REMARKS – LEN PIC S9 (4) USAGE COMP. 49 REMARKS – TEXT PIC X...View answers

Questions : 35 :: Mention the length of physical storage of the given data types of DB2 – DATE, TIMESTAMP, TIME

MySQL DATE: PIC X (10) TIMESTAMP: PIC X (26) TIME: PIC X (08)

Questions : 36 :: For a DB2 column that is being defined as DECIMAL (11, 2), discuss the COBOL picture clause.

PIC S9 (9) V99 COMP – 3 In the expression DECIMAL (11, 2)  2 happens to be the precision whereas 11 is the data type...View answers

Questions : 37 :: Explain DCLGEN.

DCLGEN basically refers to DeCLarations GENerator whose primary purpose is to generate copy books of the host language for the tables. It is also used to create the DECLARE...View answers

Questions : 38 :: Mention some fields that are a part of SQLCA.

SQLERRM, SQLCODE,...View answers

Questions : 39 :: Explain the contents that are a part of DCLGEN.

There are primarily two components of DCLGEN. These are: – A copy book of the host language, which will give alternative definitions for all the column names. In terms of the...View answers

Questions : 40 :: Comment whether DCLGEN is mandatorily used. If not, then what is the point of using it?

It is not exactly mandatory to bring DCLGEN into use. The primary use of DCLGEN comes during the pre-compilation phase where it helps in detecting the misspelt column names. Since DCLGEN is...View answers

Questions : 41 :: In case if at some point of time DB2 is down, would that impact the pre-compilation process of a DB2-COBOL program?

Even if DB2 is down at some point of time, even then it will not impact the pre-compilation process of DB2-COBOL program. The reason for the same is that the pre-compiler never refers to...View answers

Questions : 42 :: Following a DB2 update statement, what is the quickest way to compute the total number of updated rows?

All you have to do is check the value that has been stored in SQLERRD...View answers

Questions : 43 :: What is meant by EXPLAIN?

EXPLAIN is basically used to show the path of access by the optimizer basically for an SQL statement. Furthermore, EXPLAIN can also be brought to use in SPUFI or even in BIND...View answers

Questions : 44 :: Before you give the EXPLAIN statement, what are the prerogatives?

Before giving the EXPLAIN statement, we need to make sure that PLAN_TABLE has already been created under...View answers

Questions : 45 :: Mention the location where the output received from EXPLAIN statement is stored.

The output from EXPLAIN is stored in...View answers

Questions : 46 :: Outputs of EXPLAIN are with MATCHCOLS = 0. What does this signify?

This signifies a non-matching scan of index provided that ACCESSTYPE =...View answers

Questions : 47 :: Mention the various locks that are available in DB2.

EXCLUSIVE, SHARE and...View answers

Questions : 48 :: What is RELEASE/ACQUIRE in BIND?

There is a certain point in a program at which DB2 acquires or perhaps releases the locks against tables as well as table-spaces. These include intent...View answers

Questions : 49 :: Mention the different locking levels that are available in DB2.

TABLE, PAGE and...View answers

Questions : 50 :: Mention the downsides of PAGE level lock.

In case if there are large updates to be done, then the resource utilization is high...View answers
More Question

Ask your interview questions on Db2

Write Your comment or Questions if you want the answers on Db2 from Db2 Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 






--------- Tutorials ---