FND_FILE.PUT_LINE, 当您运行并发程序时,将在输出或 LOG 文件中打印字符串。
FND_FILE.PUT_LINE(FND_FILE.output, 'message'); -- This will print in Concurrent program output
FND_FILE.PUT_LINE(FND_FILE.log, 'message'); -- This will print in Concurrent program log
UTL_FILE.PUT_LINE将在可写文件中打印字符串,您需要在 pl-sql 中打开该文件。
使用 UTL_FILE 的示例
v_chr_out_file UTL_FILE.file_type;
v_chr_out_file :=
UTL_FILE.fopen (<directory_path>,
<file_name>,
'W',
32767);
UTL_FILE.put_line (v_chr_out_file, 'this will get written in file');
UTL_FILE.fclose (v_chr_out_file);