单项选择题To which of the following resources can a lock be applied?()

A.Row
B.Alias
C.Bitmap
D.Column


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题Application A holds an Update lock on a single row and application B is trying to read that row. If both applications are using isolation level UR, which of the following will occur?()

A.Application B will read the row.
B.Applications A and B will cause a deadlock situation.
C.Application B will wait until application A releases the Update lock.
D.Application A will be terminated so that application B can read the row.

2.单项选择题

Application A is designed to execute the following SQL statements within a single Unit of Work (UOW).
UPDATE employee SET salary = salary * 1.1 WHERE empno='000010' UPDATE department SET deptname = 'NEW dept' WHERE deptno='A00'Application B is designed to execute the following SQL statements within a single Unit of Work (UOW). UPDATE department SET deptname = 'OLD DEPT' WHERE deptno='A00' UPDATE employee SET salary = salary * 0.5 WHERE empno='000010'
Application A and application B execute their first SQL statement at the same time. When application A and application B try to execute their second SQL statement, a deadlock occurs.
What will happen?()
 

A.The database manager will rollback the transaction in both applications.
B.The database manager will rollback the transaction in one of the two applications.
C.Application B will successfully update the EMPLOYEE and DEPARTMENT tables; Application A will be placed in a lock wait state.
D.Application A will successfully update the EMPLOYEE and DEPARTMENT tables; Application B will terminate when the lock timeout value is reached.

3.单项选择题Which of the following is TRUE for the DB2 isolation level Cursor Stability (CS)?()

A.An application process acquires at least a share lock on the current row of every cursor.
B.Any row that is read during a unit of work cannot be changed by other application processes until the unit of work is complete.
C.Any row changed by another application process can be read, even if the change has not been committed by that application process.
D.An application process that issues the same query more than once in a unit of work will not see additional rows caused by other application processes appending new information to the database.

4.单项选择题Which of the following best describes the lock protection provided by DB2 for the current row of a cursor?()

A.The cursor is only protected from updates and deletes by concurrent applications.
B.The row is only protected from positioned updates and deletes that reference another cursor of the same application.
C.The cursor is protected from positioned updates and deletes that reference another cursor of a different application.
D.The row is protected from updates and deletes by the current application and from positioned updates and deletes that reference another cursor of the same application.

5.单项选择题Which of the following resources can be referenced in the LOCK statement?()

A.Row
B.Table
C.Column
D.Table space

6.单项选择题Which of the following tools for DB2 V9 allows a user to create and debug a SQL stored procedure?()

A.Control Center
B.Development Center
C.Developer Workbench
D.Stored Procedure Builder

7.单项选择题In which situation is shredding XML data recommended?()

A.When the data is naturally tabular
B.When the number of nodes are volatile
C.When the data by nature has sparse attributes
D.When the data is of low volume and requires a complex star-schema topology

8.单项选择题Which of the following is a typical data warehouse query?()

A.What is this customers address?
B.Does this customer have any unpaid bills?
C.What is the balance in this customers account?
D.What are the total sales for each of the last 6 months?

10.单项选择题Which of the following describes the model used by the Geodetic Extender?()

A.Flat earth
B.3-D Square
C.Trapezoidal
D.Round earth

最新试题

A UDT is a data type which:()

题型:单项选择题

A user needs to create a trigger that will update table T2 whenever a row is added to table T1. Assuming the user has all appropriate privileges for table T2, which privilege is required on table T1 to create the trigger?()

题型:单项选择题

On which of the following database objects may the SELECT privilege be controlled?()

题型:单项选择题

Which of the following will begin a new unit of work?()

题型:单项选择题

CREATE TABLE customer (cid BIGINT NOT NULL PRIMARY KEY, info XML) How many names will be returned for this XQuery?()

题型:单项选择题

Which kind of non-sourced UDF can be created so that it only returns a single value?()

题型:单项选择题

An application needs a table for each connection that tracks the ID and Name of all items previously ordered and committed within the connection. The table also needs to be cleaned up and automatically removed each time a connection is ended. Assuming the ITEMS table was created with the following SQL statement:CREATE TABLE items item_no INT, item_name CHAR(5), item_qty INT)Which of the following SQL statements will provide the table definition that meets the specified requirements?()

题型:单项选择题

Given the following requirements:Create a table to contain employee data, with a unique numeric identifier automatically assigned when a row is added, has an EDLEVEL column that permits only the values 'C', 'H' and 'N', and permits inserts only when a corresponding value for the employee's department exists in the DEPARTMENT table.Which of the following CREATE statements will successfully create this table?()

题型:单项选择题

Given that tables T1 and T2 contain the following rows:Table T1: C1 C2 1 4 1 3 1 2Table T2: C1 C2 1 1 1 2 1 3Which of the following queries will return only those rows that exist in both T1 and T2?()

题型:单项选择题

Given the following stored procedure:CREATE PROCEDURE increase_salary ( IN p_workdept CHAR(6), OUT p_sum DECIMAL(9,2) ) SET p_sum = (SELECT SUM(salary) FROM employee WHERE workdept=p_workdept);How can this stored procedure be called from the Command Line Processor?()

题型:单项选择题