Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Open a File from Oracle but only if it is close
On 2 Dec 2004, ivl5_at_hotmail.com wrote:
> Galen Boyer <galenboyer_at_hotpop.com> wrote in message
> news:<upt1sxyrp.fsf_at_standardandpoors.com>...
>> On 2 Dec 2004, shirley_sanjuan_at_tutopia.com wrote: >> > Hi, >> > >> > I am doing a program in Delphi that writes a file, and the >> > file is read from Oracle using UTL_FILE. But I need Oracle >> > reads the file only if the another program finish to write >> > the file. >> > >> > ¿Somebody knows how I validate that?
>> Did you test whether utl_file.is_open solves this? I'm not >> sure, but it might. The documentation suggests this, but >> Oracle might only be able to tell if another Oracle process >> has it open.
Yeah, I know how to test. I was asking the OP to give it a go.
> I tried to copy utl_file.file_type variable from session where
> file is opened to another where it's not. Is_open returns true
> in this case (I think it just checks that id and datatype
> fields are not nulls). Read attempt gives 'ORA-29282: invalid
> file ID'. Fair enough.
-- Galen BoyerReceived on Fri Dec 03 2004 - 08:07:14 CST
![]() |
![]() |