1 create or replace directory temp as '/home/marting/test';
2 Declare
3 l_file utl_file.file_type;
4 strbuffer VARCHAR2(32767);
5 mynum number;
6
7 Begin
8 l_file:=utl_file.fopen('temp','Cimteet.txt','R');
9 utl_file.get_line(l_file,strbuffer);
10 END;
11 /
12 quit
I keep getting the error ORA 29280 invaled directory and two errors that show the sys.utl_file line 18 (1) and line 424(2).
Is the 'temp' correct? I took this straight out of an O'reilly example book. (and yes the directory exists)
2 Declare
3 l_file utl_file.file_type;
4 strbuffer VARCHAR2(32767);
5 mynum number;
6
7 Begin
8 l_file:=utl_file.fopen('temp','Cimteet.txt','R');
9 utl_file.get_line(l_file,strbuffer);
10 END;
11 /
12 quit
I keep getting the error ORA 29280 invaled directory and two errors that show the sys.utl_file line 18 (1) and line 424(2).
Is the 'temp' correct? I took this straight out of an O'reilly example book. (and yes the directory exists)