db2 interview questions for experienced 5 years
#1

I need interview questions for 5 yrs Datawarehousing ETL candidate who worked in Db2.If some scenario based questions available
Reply
#2
db2 interview questions for experienced 5 years

1.) Define DB2.

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

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 data

What are the uses of DB2 Optimizer?

It processes SQL statements.
It helps to select the access path
3) 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 needed. FORTRAN need more than one SQLCA to be provided .For Java, SQLCA is not applicable.

4.) 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 creation of the table.

5.) What is SQLCA’s maximum length?

136 is the maximum length of the SQLCA.

6.) 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. It checks for user authentication and validates SQL statements in the DBRM(s).

7.) List out the three types of page locks that can be held.

Exclusive
Update
Share.
8.) 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 pages.

9.) 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 etc.

10.) 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 database.

11.) Define predicate?

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

12.) 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 validity of SQL statements.

13.) List out the buffer pools in DB2

There are four buffer pools in DB2 and they are:

BP0
BP1
BP2
BP32
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 tablespace.

14.) 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 uncommitted data.

15.) 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 for performing functionalities like logging, locking and in performing other I/O operations.

16.) 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 extracted out of the application program. DBRMs form inputs that are helpful in the binding process.

17.) 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. The form in which data is retrieved depends on the way the table is defined inside the database. Data page also contains information regarding the catalog or user that are part of the database.

18.) 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. RCT matches with the transaction ID that of CICS, with the authorization ID that of DB2. This should also be matched with plan ID.

19.) 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 statements that are helpful in creating new STOGROUP that can point towards the new volume. ALTER tablespace and REORG and RECOVER are statements used for altering and recovering the tablespace allocated in the memory.

20.) 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 constraints.

21.) 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 input as well as output operations that are actually performed by making use of buffering techniques that are highly sophisticated.

22.) 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 used.

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 evaluation of correlated sub-query is a must.

23.) Comment whether the cursor is closed during COMMIT or not.

Yes. The cursor is closed during COMMIT.

24.) 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 CURSOR.

25.) 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 done basically to highlight the SELECT statement. Once DECLARE CURSOR is used, this is followed by OPEN, FETCH and finally CLOSE.

26.) 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 for CICS pseudo-conventional programs.

27.) Explain PACKAGES.

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

28.) 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 that you do not have to bring a large collection of members of DBRM together for a particular plan.
In case if you wish to make changes in the program and these changes eventually lead to errors, then you can decrease the fallback complexities with the help of PACKAGE.
During the process of automatic binding and rebinding of a particular plan, make sure that the total transaction attached to the process is unavailable during the course.

Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: android interview questions and answers for 3 years experience pdf, infosys 2 years java interview questions, rct schools snow, viva questions for btech final years, cics rics, db2 sqlumatic press wiki, java interview questions and answers for 2 years experience pdf,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  interview questions with answer with a ration shop owner 2 1,956 12-02-2018, 03:15 PM
Last Post: Guest
  pdms piping interview question and answers pdf 2 1,633 08-01-2018, 10:18 AM
Last Post: Guest
  viva questions and answers for fluid mechanics lab 2 8,655 16-12-2017, 11:45 PM
Last Post: dhiraj prajapati
  aptitude questions in ihorse technologies 5 2,481 16-12-2017, 09:59 AM
Last Post: jaseela123d
  physics lab viva questions with answers for b tech 1st year 6 15,521 08-12-2017, 10:26 AM
Last Post: jaseela123d
  viva questions for energy conversion engineering lab pdf 3 2,110 27-11-2017, 09:15 AM
Last Post: pawan
  b tech 1st year physics lab viva questions 3 2,708 07-11-2017, 11:11 AM
Last Post: jaseela123d
Heart ansys 10 viva questions and answers 2 6,144 22-10-2017, 10:27 AM
Last Post: Guest
  mechanical jntu hyd comprehensive viva questions 6 1,311 07-09-2017, 12:58 PM
Last Post: Guest
  electrical machines lab viva questions answers 1 1,177 15-04-2017, 12:28 PM
Last Post: jaseela123d

Forum Jump: