TAILIEUCHUNG - ORACLE8i- P19

ORACLE8i- P19: We want information information.” Possibly you recognize these words as the primary interest of a somewhat clandestine group, and as told by a character called Number 2 to Patrick McGoohan’s character Number 6 (in the old TV show The Prisoner). Indeed, in this day, information is king, and the speedy, accurate, and reliable retrieval of this information is paramount. | 716 CHAPTER 16 ORACLE8i SQL PERFORMANCE MONITORING AND TUNING And here are the results TABLE_NAME PCT_FREE PCT_USED EMPLOYEE 1 1 It s pretty obvious that the problem is that the block storage settings have been very badly done indeed. 3. Let s fix the block storage parameters with an ALTER TABLE command ALTER TABLE employee PCTFREE 20 PCTUSED 40 Of course you will set your PCTFREE and PCTUSED values based on the velocity and nature of changes to the table. 4. Having fixed the table s block storage parameters we now move the chained rows from the EMPLOYEE table to a temporary table called TEMP_EMP This temporary table is not a global temporary table mind you but one we ll create simply to populate this data. Afterward we ll remove the table. Here is the SQL statement for this operation CREATE TABLE temp_emp AS SELECT FROM employee WHERE rowid IN select head_rowid from chained_rows NOTE Note that we don t use a real temporary table for this table because we don t want to accidentally lose this data should the database crash or the session fail. Core dumps always happen when they are the most inconvenient don t you think TIP Of course in creating your own TEMP_ table you may want to add STORAGE clauses TABLESPACE clauses and the like but for our purposes here we ve not done so. The CREATE SELECT. command CTAS is very useful for operations such as this. It allows us to create a table using another table as a template and then will even populate the table for us. Notice the subquery that selects from the EMPLOYEE table all the rows based on the ROWIDs stored in the CHAINED_ROWS table. 5. Before we continue please raise your right hand and repeat after me I will back up my database or at least the object I m removing chained rows from before I do the next step. I promise so help me Codd. Please purchase PDF SplibMJe 9e to removebihis watermark. THE ORACLE OPTIMIZER 717 6. Having done the necessary backup you did keep your promise didn t you you re

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.