TAILIEUCHUNG - Oracle Built−in Packages- P124

Oracle Built−in Packages- P124: Ah, for the good old days of Version of PL /SQL! Life was so simple then. No stored procedures or functions and certainly no packages. You had your set of built−in functions, like SUBSTR and TO_DATE. You had the IF statement and various kinds of loops. With these tools at hand, you built your batch−processing scripts for execution in SQL*Plus, and you coded your triggers in SQL*Forms , and you went home at night content with a good day's work done. | Appendix A What s on the Companion Disk BEFORE INSERT OR UPDATE ON countries FOR EACH ROW DECLARE vGlobalName VARCHAR2 30 BEGIN IF NOT THEN BEGIN SYSDATE USER vGlobalName END IF END This trigger fires when an application performs an INSERT or UPDATE but not when the DML is propagated from other sites. NOTE All row-level replication triggers are AFTER ROW triggers. Although a table can have multiple triggers of the same type you cannot control the order in which they are fired. Therefore it is safest to use BEFORE ROW triggers to perform auditing on replicated tables in this way you are guaranteed that BEFORE ROW triggers fire before AFTER ROW triggers. The procedure The SET_I_AM_A_REFRESH procedure sets the I_AM_A_REFRESH package variable. The header for the procedure is PROCEDURE value IN BOOLEAN where value is the value Y or N being set. This procedure does not raise any exceptions. Example If you need to enable and disable replication triggers at the session level you can do so with the SET_I_AM_A_REFRESH procedure. To enable the triggers specify the following value FALSE To disable them specify the following value TRUE Use this package carefully because disabling replication triggers effectively disables any conflict resolution mechanisms you may have defined. See Chapter 17 Deferred Transactions and Remote Procedure Calls for a discussion of these mechanisms. Refreshing Snapshots Calling the REFRESH procedure from a snapshot site forces the refresh of the specified snapshot s . Typically this procedure is used to refresh an individual snapshot or a group of snapshots that are not in the same snapshot refresh group. The procedure Call the REFRESH procedure to force a snapshot

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.