TAILIEUCHUNG - Rampant TechPress Oracle Data Warehouse Management PHẦN 4

lưu trữ được thực hiện thông qua tất cả các lĩnh vực lưu trữ phân vùng. Một bảng phân vùng được sử dụng để chia dữ liệu của bảng vào các khu vực riêng biệt vật lý cũng như hợp lý. Điều này tạo ra lợi ích của việc có thể để phá vỡ một bảng lớn trong nhiều quân quản lý và cho phép hạt nhân Oracle8 để lấy giá trị tối ưu hơn. Chúng ta hãy nhìn vào một ví dụ nhanh chóng. | ROBO Books Monograph Data Warehousing and Oracle8i storage to be carried through to all partition storage areas. A partitioned table is used to split up a table s data into separate physical as well as logical areas. This gives the benefits of being able to break up a large table in more manageable pieces and allows the Oracle8 kernel to more optimally retrieve values. Let s look at a quick example. We have a sales entity that will store results from sales for the last twelve months. This type of table is a logical candidate for partitioning because 1. Its values have a clear separator months . 2. It has a sliding range the last year . 3. We usually access this type of date by sections months quarters years . The DDL for this type of table would look like this CREATE TABLE sales acct_no NUMBER 5 sales_person VARCHAR2 32 sales_month NUMBER 2 amount_of_sale NUMBER 9 2 po_number VARCHAR2 10 PARTITION BY RANGE sales_month PARTITION sales_mon_1 VALUES LESS THAN 2 PARTITION sales_mon_2 VALUES LESS THAN 3 PARTITION sales_mon_3 VALUES LESS THAN 4 PARTITION sales_mon_12 VALUES LESS THAN 13 PARTITION sales_bad_mon VALUES LESS THAN MAXVALUE In the above example we created the sales table with 13 partitions one for each month plus an extra to hold improperly entered months values 12 . Always specify a last partition to hold MAXVALUE values for your partition values. Using Subpartitioning New to Oracle8i is the concept of subpartitioning. This subpartitioning allows a table partition to be further subdivided to allow for better spread of large tables. In this example we create a table for tracking the storage of data items stored by various departments. We partition by storage date on a quarterly basis and do a further storage subpartition on data_item. The normal activity quarters have 4 partitions the slowest has 2 and the busiest has 8. CREATE TABLE test5 data_item INTEGER length_of_item INTEGER storage_type VARCHAR 30 owning_dept NUMBER storage_date DATE PARTITION BY RANGE

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.