Ans: DB2 is a Database Management System for the MVS Operating System where, DB2 is a subsystem of MVS Operating System.
Ans: Locking services are provided by Locking services component which is known as Internal Resource Lock Manager (IRLM) and manages concurrency issues and dead locks.
Ans: 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
Ans: The Data types available here are:
1 |
1. SMALLINT
|
2 |
2. INTEGER
|
3 |
3. FLOAT
|
4 |
4. DECIMAL
|
5 |
5. CHAR
|
6 |
6. VARCHAR
|
7 |
7. DATE
|
8 | 8. TIME |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 |
Ans: 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.
Ans: 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.
Ans: Locking services are provided by Locking services component which is known as Internal Resource Lock Manager (IRLM) and manages concurrency issues and dead locks.
Ans: Database services component is responsible for execution of SQL statements and it manages buffer pool also.
Ans: System services component handles DB2 startup and shutdown.
Ans: Locking can be applied on either of these − Page, table and table space.
Ans: In Bind step we specify the isolation level.
Ans: 136 is the maximum length of the SQLCA.
Ans: Check the value of SQLERRD to know how many rows got updated after an update statement.
Ans: TIMESTAMP data type takes 10 bytes and default is YYYY-MM-DD:HH:MM:SS-NNNNNN
Ans: DATE data types take 4 bytes and default is 'YYYY-MM-DD'
Ans: DB2 optimizer is used to select the access paths & to process the SQL queries.
Ans: This statement is incorrect as SQL statements must be coded in Area B.
Ans: This statement is incorrect as cursors are used to handle multiple row selections at a time.
Ans: There are four buffer pools in DB2 and they are:
Ans: Clustering index is a type of index, which locates the table rows and determines how to group the rows together in the tablespace.
Ans: 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.
Ans: 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.
Ans: Bind step converts all the SQL statements into executable form in COBOL-DB2 program.
Ans: A negative SQL code indicates a failure while a positive one indicates an exception.
Ans: REVOKE statement is used to take away the permissions from a Database.
Ans: GRANT keyword is used to grant privileges on DB2 tables.