TAILIEUCHUNG - Oracle Built−in Packages- P125

Oracle Built−in Packages- P125: 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 master VARCHAR2 num BINARY_INTEGER DEFAULT 1 flag VARCHAR2 DEFAULT NOP Parameters are summarized in the following table. Name Description master Name of the master table num Delete records required to refresh the oldest number of unrefreshed snapshot default is 1 flag Set to DELETE to guarantee that records are deleted for at least one snapshot regardless of the setting of num The PURGE_LOG procedure does not raise any exceptions. Examples The following examples illustrate the use of the PURGE_LOG procedure. The first example shows the simplest form of the procedure the only parameter is master BEGIN master COUNTRIES END Since the call uses the default value for num 1 it will purge the snapshot log records required for a fast refresh of the least recently refreshed snapshot that is the most stale snapshot. This example shows the use of several parameters BEGIN master COUNTRIES num 5 flag DELETE END In this example the procedure deletes snapshot log records required for a fast refresh of the five most stale snapshots. However since we have set the flag parameter to DELETE the call is guaranteed to delete the records for at least one snapshot even if the table masters fewer than five snapshots. NOTE To delete all records from a snapshot log set the num parameter to a high value greater than the number of snapshots mastered to the master table specified in the master parameter . Reorganizing Tables Occasionally a DBA must reorganize a table -- in other words coalesce its extents and reduce row chaining. Two new programs in Oracle8 allow you to reorganize a master table without invalidating its snapshot log BEGIN_TABLE_REORGANIZATION and END_TABLE_REORGANIZATION. Therefore you do not have to perform complete refreshes of the table s snapshots after it is reorganized. To take advantage of this new feature you must be using primary key snapshots. The .

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.