TAILIEUCHUNG - Oracle PL/SQL Language Pocket Reference- P27

Oracle PL/SQL Language Pocket Reference- P27: This pocket guide features quick-reference information to help you use Oracle's PL/SQL language. It includes coverage of PL/SQL features in the newest version of Oracle, Oracle8i. It is a companion to Steven Feuerstein and Bill Pribyl's bestselling Oracle PL/SQL Programming. Updated for Oracle8, that large volume (nearly 1,000 pages) fills a huge gap in the Oracle market, providing developers with a single, comprehensive guide to building applications with PL/SQL and building them the right way. . | THEN IF right_now hire_date THEN hdate right_now ELSIF ADD_MONTHS right_now -120 hire_date THEN MESSAGE Hire date TO_CHAR hire_date MM DD YY more than ten years past. RAISE FORM_TRIGGER_FAILURE END IF END IF END The performance gain from each of these conversions may be slight. If they were the only tuning steps you took or the only ones left to take in your PL SQL programs I doubt that you would notice a difference. Combined with all the other tuning tips however avoidance of host variables in PL SQL blocks will contribute to a more efficient PL SQL layer in your application. Use Package Data to Avoid Passing Bulky Parameter Values With the exception of cursor variables PL SQL passes arguments by value instead of reference in the parameter lists of procedures and functions. If the argument can be changed . it is an OUT or IN OUT parameter then the runtime engine makes a local copy of your structure and applies changes to that copy. If the program terminates without error the local data is copied to your structure which is then returned to the calling program. This approach preserves the values of actual parameters against the possibility of program failure but it introduces some potential performance problems. This is particularly the case when your OUT or IN OUT parameters are complex data structures such as records and PL SQL tables. Suppose that a record has 15 columns in it. Every time you pass that record into a procedure or function as an OUT or IN OUT parameter PL SQL copies the entire record into an internal record structure column by column. Suppose that a PL SQL table has 100 rows defined in it. Every time you pass that table into a procedure or function as an OUT or IN OUT parameter PL SQL copies the entire table into an internal table structure row by row. Suppose now that you have a record with 15 columns in it three of which are PL SQL tables each with 100 rows. Then every time you pass that record into a procedure or function as an OUT or

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.