Test

Page 156

SQL> CREATE OR REPLACE PACKAGE BODY create_policy IS 2 PROCEDURE process_dec_page ( 3 dec_page IN OUT NOCOPY CLOB ) IS 4 BEGIN 5 default_dec(dec_page); 6 END process_dec_page; 7 END create_policy; 8 / SP2-0810: Package Body created with compilation warnings SQL> SHOW ERRORS Errors for PACKAGE BODY CREATE_POLICY: LINE/COL ERROR -------- ------------------------------------------------3/6 PLW-05000: mismatch in NOCOPY qualification between specification and body SQL> CREATE OR REPLACE PROCEDURE dead_code IS 2 x NUMBER := 10; 3 BEGIN 4 IF x = 10 THEN 5 x := 20; 6 ELSE 7 x := 100; -- dead code 8 END IF; 9 END dead_code; 10 / SP2-0804: Procedure created with compilation warnings SQL> SHOW ERRORS Errors for PROCEDURE DEAD_CODE: LINE/COL ERROR -------- ------------------------------------------------7/7 PLW-06002: Unreachable code

Optimizing Compiler PL/SQL’s optimizing compiler can improve runtime performance dramatically while imposing only a relatively slight overhead at compile time. Fortunately, the benefits of optimization apply to both interpreted and natively compiled PL/SQL because optimizations are applied by analyzing patterns in source code. Compilation |

147


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.