There are also many times cases when you are tracing error in multi hundres of lines of code and do not know if the file writing is causing error or its some other code in your plsql.
One can quickly test file writing is happening or not with the help below small code.
DECLARE ---------- Oracle utl file write test.
L_HANDLER UTL_FILE.FILE_TYPE;
BEGIN
L_HANDLER := UTL_FILE.FOPEN ('/xfer/data', 'utl_test.txt', 'W');
UTL_FILE.PUTF (L_HANDLER, 'UTL_FILE Test Success');
UTL_FILE.FCLOSE (L_HANDLER);
END;
No comments:
Post a Comment
Please leave your relevant comments and questions only.