TAILIEUCHUNG - Oracle SQL Internals Handbook phần 6

Tham khảo tài liệu 'oracle sql internals handbook phần 6', công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Although at present this does not stop the outline from being applied correctly or so it seems in this simple case who can say how fussy Oracle might become in future releases. Old Methods 2 Because views introduce an anomaly that might turn into an error in a future release we have to be fussier. So let s try the following Create a new schema. Create table T1 in that schema. Create ONLY the index T1_I1. Rebuild the outline in that schema If we compare the contents of view user_outline_hints for our outline before and after the rebuild we have to recconect to the original schema to do so we will find that they are identical apart from the one line that we wanted to alter. Connecting back to our original schema and doing the usual check of flushing the shared pool and switching on outlines we find that the modified outline is used. However there is a hidden threat this time a little more subtle. Go back to figure 2 with its definitions of the new columns that appear in Oracle 9 - what information do you think is kept in the column user_table_name It is the qualified table name . User_name . table_name In our example this will tell Oracle that table T1 is actually a table belonging to the new schema not to the original schema. Even though Oracle is using the stored outline the information in the table is sufficient to tell it that it is applying the plan to the wrong object. 84 Oracle SQL Internals Handbook Again it works at present but why is the information there -possibly because of enhancements coming in future releases. The Safe Bet It seems that there is only one way to generate a stored outline which doesn t expose you to future risk -- be as honest as possible. Do it in the right schema with the right objects. In this case you need to drop the primary key index generate the plan and then replace the primary key Of course you might not want to do this on a production system and even if you did it is possible that the outline would switch to a full .

TÀI LIỆU LIÊN QUAN
TỪ KHÓA LIÊN QUAN
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.