1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
alter session set nls_date_format = 'dd/mm/yyyy';
DECLARE
pb_delai_depasse EXCEPTION;
PRAGMA EXCEPTION_INIT(pb_delai_depasse , -12170);
cursor c_table (jour date) is
select
c1,c2,c3....,c4
from
table@base_distante
where
jour = p_date ;
BEGIN
dbms_output.put_line('debut');
.....
dbms_output.put_line('fin');
EXCEPTION
WHEN utl_file.invalid_path THEN
dbms_output.put_line('Chemin invalide');
...
WHEN pb_delai_depasse THEN
dbms_output.put_line('pb_delai_depasse ');
WHEN OTHERS THEN
dbms_output.put_line('Autres : '||SQLERRM);
END;
/
exit |
Partager