Guest User

Untitled

a guest
Sep 11th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CREATE OR REPLACE
  2. PROCEDURE system_run2
  3. IS
  4. file1   VARCHAR2(40) := 'my-temp-file4.dat';
  5. MyFile        utl_file.file_type;
  6. d             VARCHAR2(4000);
  7. BEGIN
  8. -- Open file
  9. MyFile := utl_file.fopen('TMP2',file1,'R');
  10. LOOP
  11. BEGIN
  12. utl_file.get_line(MyFile,d);
  13. dbms_output.put_line(d);
  14. EXCEPTION
  15. WHEN OTHERS THEN
  16. EXIT;
  17. END;
  18. END LOOP;
  19. utl_file.fclose(MyFile);
  20. END;
Add Comment
Please, Sign In to add comment