我想有触发器在指定路径下面建一个文件,只要一个文件可以没有一点内容,
只要一个文件名做标志,然后server来检查这个文件从而触发一些事件;我试了很多
都不行;
例如save edit.sql replace;等都不行啊

解决方案 »

  1.   

    用utl_file我来试试:
    1.设置init.ora参数utl_file_dir=G:\parameter
    2.重启oracle数据库
    3.用过程在G:\parameter文件夹下建一个文件'test.txt'并输入一行:'this a test!'
    SQL> declare
      2  l_output utl_file.file_type;
      3  l_path   varchar2(40):='G:\parameter';
      4  l_filename varchar2(40):='test.txt';
      5  begin
      6  l_output:=utl_file.fopen(l_path,l_filename,'w');
      7  utl_file.put_line(l_output,'this a test!');
      8  utl_file.fclose(l_output);
      9  end;
     10  /PL/SQL 过程已成功完成。