You are on page 1of 2

What is a clustered index?

For a clustered index DB2 maintains rows in the same sequence as the columns in the index for as long as there is free space. DB2 can then process that table in that order efficiently. Clustered index is unique for any given table and we can have only one clustered index on a table. The leaf level of a clustered index is the actual data and the data is resorted in case of clustered index What is a clustering index ? Causes the data rows to be stored in the order specified in the index. A mandatory index defined on a partitioned table space. What are correlated subqueries? A subquery in which the inner ( nested ) query refers back to the table in the outer query. Correlated subqueries must be evaluated for each qualified row of the outer query that is referred to. What is the difference between CS and RR isolation levels? Cursor Stability: Releases the lock on a page after use Repeatable Read: Retains all locks acquired till end of transaction How does DB2 determine what lock-size to use? 1. Based on the lock-size given while creating the tablespace 2. Programmer can direct the DB2 what lock-size to use 3. If lock-size ANY is specified, DB2 usually chooses a lock-size of PAGE What is a DB2 bind? A DB2 bind is a process that builds an access path to DB2 tables A BIND process establishes a relationship between an APPLICATION PROGRAM and its RELATIONAL DATA. What is RUNSTATS? A DB2 utility used to collect statistics about the data values in tables which can be used by the optimizer to decide the access path. It also collects statistics used for space management. These statistics are stored in DB2 catalog tables. Which DB2 configuration is used to set the maximum number of applications that can execute concurrently? MAXCAGENTS. The parameter assists in managing the load on the system during high concurrent application requests. The parameter is useful in managing in a shared environment with limited memory and high levels of connections.

To force an application to wait indefinitely to obtain a table lock , which database configuration parameter is used? LOCKTIMEOUT. Assign a value to LOCKTIMEOUT , to detail the number of seconds an application will wait to obtain a lock. To set LOCKTIMEOUT for an indefinite wait use -1 . The application will wait until a lock is granted or a deadlock is present In contrast , assigning 0 , an application will not wait for locks. What command disables roll-forward recovery? The LOGARCMETH1 is the Primary Log Archive method configuration parameter. Assigning the OFF value indicates the log archiving method is not to be used. An example of assigning the OFF value is : UPDATE DB CFG FOR MYDB USING LOGARCMETH1 OFF; Describe the DB2 Database Configuration Parameter SORTHEAP? Defines the maximum number of memory pages used for private sorts or the maximum number of shared memory pages to be used for shared ports. In a private sort , the agent private memory is affected. If its a shared sort then the database shared memory is influenced. An example of using SORTHEAP, is if an application creates regular large sorts

You might also like