try:declare
v_outputfile utl_file.file_type;
v_name varchar2(10):='Scott';
begin
v_outputfile:=utl_file.fopen('D:\','cj.txt','a');
utl_file.putf(v_outputfile,'Hi there!\nMy name is %s,and I am a %s major.\n',
v_name,'Computer Science');
utl_file.fclose(v_outputfile);
end;
v_outputfile utl_file.file_type;
v_name varchar2(10):='Scott';
begin
v_outputfile:=utl_file.fopen('D:\','cj.txt','a');
utl_file.putf(v_outputfile,'Hi there!\nMy name is %s,and I am a %s major.\n',
v_name,'Computer Science');
utl_file.fclose(v_outputfile);
end;
如果不行就改为
utl_file_dir = *