May
28
2015
28
2015
Serially_Reusable Paket Yaratmak
Merhaba,
serially_reasuble hinti pragma cümlesi ile birlikte kullanılan bir compiler hintidir.
Bu cümlenin amacı paket içerisindeki property attribute değerlerinin UGA (user global area) içerisinde cache lenmesinin engellenmesidir. Bu sayede bu propertry değerleri paket her çağırıldığında bir kez kullanılarak memoryden kaldırılır.
Aşağıdaki örnek ile daha net anlaşılacaktır.
CREATE OR REPLACE PACKAGE pkg_with_pragma IS PRAGMA SERIALLY_REUSABLE; n NUMBER := 5; -- default initialization END pkg_with_pragma; BEGIN pkg_with_pragma.n := 10; DBMS_OUTPUT.put_line (pkg_with_pragma.n); END; Output IS 10 BEGIN DBMS_OUTPUT.put_line (pkg_with_pragma.n); END; Output IS 5 CREATE OR REPLACE PACKAGE pkg_without_pragma IS n NUMBER := 5; -- default initialization END pkg_without_pragma; BEGIN pkg_without_pragma.n := 10; DBMS_OUTPUT.put_line (pkg_without_pragma.n); END; Output IS 10 BEGIN DBMS_OUTPUT.put_line (pkg_without_pragma.n); END; Output IS 10 |
Latest posts by Mustafa Korkmaz (see all)
- Write for us sponsored posts - 16 Mayıs 2025
- CameraBag Photo Software 2024.0.0 Download Free For PC - 16 Mayıs 2025
- HTML Görüntüsü için Unicode Dönüşümü - 27 Temmuz 2020
Etiketler: CREATE OR REPLACE PACKAGE, PRAGMA, PRAGMA SERIALLY_REUSABLE, SERIALLY_REUSABLE, UGA SERIALLY_REUSABLE
Yazar




