I have 2 applications using text_io package, one is reading a file and the other one is writing. When i deploy both applications on the web, ive got an error on my first application(reading file) that says ora-302000. the second application(writing on a file) have no errors but the file was lost, i already check the apps server for the file but it wasnt there, i also check the client machine and still no file were found.
Can anyone Help me on this?
here's an example of the code(reading file)
Declare
cSpoolFile VARCHAR2(500) := 'connectinfo.txt';
in_file TEXT_IO.FILE_TYPE;
lineread Varchar2(4000);
urn Varchar2(4000);
urp Varchar2(4000);
constr Varchar2(30);
Begin
in_file := TEXT_IO.FOPEN(cSpoolFile, 'R' );
Text_IO.Get_Line(in_file,lineread);
urn := rtrim(lineread);
Text_IO.Get_Line(in_file,lineread);
urp := rtrim(lineread);
Text_IO.Get_Line(in_file,lineread);
constr := rtrim(lineread);
TEXT_IO.FCLOSE( in_file );
End;
Can anyone Help me on this?
here's an example of the code(reading file)
Declare
cSpoolFile VARCHAR2(500) := 'connectinfo.txt';
in_file TEXT_IO.FILE_TYPE;
lineread Varchar2(4000);
urn Varchar2(4000);
urp Varchar2(4000);
constr Varchar2(30);
Begin
in_file := TEXT_IO.FOPEN(cSpoolFile, 'R' );
Text_IO.Get_Line(in_file,lineread);
urn := rtrim(lineread);
Text_IO.Get_Line(in_file,lineread);
urp := rtrim(lineread);
Text_IO.Get_Line(in_file,lineread);
constr := rtrim(lineread);
TEXT_IO.FCLOSE( in_file );
End;