我在学习utl_file程序包时,使用下列代码进行调试
1 declare
2l_file utl_file.file_type;
3 begin
4 l_file:=utl_file.fopen('c:/temp/tmp','debug.txt','w');
5 utl_file.put_line(l_file,'One');
6utl_file.fflush(l_file);
7 utl_file.fclose(l_file);
8 exception
9when others then
10if utl_file.is_open(l_file) then
11utl_file.fclose(l_file);
12dbms_output.put_line('failed');
13 end if;
14 raise;
15*end;
总是无法编绎通过,出现以下错误,
declare
*
ERROR 位于第 1 行:
ORA-06510: PL/SQL: 无法处理的用户自定义异常事件
ORA-06512: 在line 14
希望各路高手指点一下,我已为此郁闷很久了
|