我利用utl_file包对文件进行读写操作,实验程序如下:create or replace procedure utl_file_test_write(path in varchar2, filename in varchar2)
is
    output_file utl_file.file_type;
begin
    output_file := utl_file.fopen (path,filename, 'W');    utl_file.put_line (output_file, 'why');
    utl_file.put_line (output_file, 'mygod');
    utl_file.fclose(output_file);
  
end utl_file_test_write;执行过程如下:SQL> exec utl_file_test_write(path => '&path',filename => '&filename');begin utl_file_test_write(path => 'e:/test',filename => 'output.txt'); end;ORA-29280: 目录路径无效
ORA-06512: 在"SYS.UTL_FILE", line 18
ORA-06512: 在"SYS.UTL_FILE", line 424
ORA-06512: 在"SYS.UTL_FILE_TEST_WRITE", line 5
ORA-06512: 在line 1为什么会出现“目录路径无效”呢?我确认在e盘下存在test文件夹,是输入格式的问题吗?
期待高手帮忙!