Sybex OCA Oracle 10g Administration I Study Guide phần 8

Có các cột cho mỗi đặc quyền đối tượng kiểm toán có thể được kích hoạt, và trong các cột này, một mã số được báo cáo cho thấy các tùy chọn kiểm toán. Ví dụ, báo cáo sau đây trên bàn cho thấy rằng kiểm toán không được kích hoạt cho các đặc quyền đối tượng INSERT và các đặc quyền đối tượng SELECT đã kiểm toán được kích hoạt với một mục kiểm toán để truy cập mỗi khi truy cập thành công, nhập cảnh kiểm toán một cho mỗi phiên khi truy cập không thành công:. | 418 Chapter 8 Managing Consistency and Concurrency In the following example you lock the EMPLOYEES and DEPARTMENTS tables at the highest possible level EXCLUSIVE SQL lock table 2 in exclusive mode Table s Locked. Until the transaction with the LOCK statement either commits or rolls back only queries are allowed on the EMPLOYEES or DEPARTMENTS tables. In the sections that follow we will review the lock modes as well as show you how to avoid the lock enqueue process and terminate the command if the requested resource is already locked. Lock Modes Lock modes provide a way for you to specify how much and what kinds of access other users have on tables that you are using in DML commands. In Table you can see the types of locks that can be obtained at the table level. TABLE Table Lock Modes Table Lock Mode Description ROW SHARE Permits concurrent access to the locked table but prohibits other users from locking the entire table for exclusive access. ROW EXCLUSIVE Same as ROW SHARE but also prohibits locking in SHARE mode. This type of lock is obtained automatically with standard DML commands such as UPDATE INSERT or DELETE. SHARE Permits concurrent queries but prohibits updates to the table this mode is required to create an index on a table and is automatically obtained when using the CREATE INDEX statement. SHARE ROW EXCLUSIVE Used to query a whole table and to allow other users to query the table but to prevent other users from locking the table in SHARE mode or updating rows. EXCLUSIVE The most restrictive locking mode permits queries on the locked table but prohibits any DML by any other users. This mode is required to drop the table and is automatically obtained when using the DROP TABLE statement. Manual lock requests wait in the same queue as implicit locks and are satisfied in a first in first out FIFO manner as each request releases the lock with either an implicit or explicit COMMIT or ROLLBACK. Monitoring Locking and .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
101    533    2    03-07-2024
55    96    2    03-07-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.